Browse Source

订单-统计-概况-预警

zhangjinxing 3 years ago
parent
commit
b4e0228053

+ 55 - 0
src/views/stock/stockCount/components/dataWeido/columns.js

@@ -0,0 +1,55 @@
+export default [
+    {
+          type: "expand",
+          _slot_: "expand",
+          label: "",
+        },
+        {
+          prop: "supplier_code",
+          label: "供应商编码",
+          width: "150",
+        },
+        {
+          prop: "supplier_name",
+          label: "供应商名称",
+          'min-width':"180"
+        },
+        {
+          prop: "wsm_code",
+          label: "仓库编码",
+          width:'180'
+        },
+        {
+          prop: "wsm_name",
+          label: "仓库名称",
+          'min-width':"100"
+        },
+        {
+          prop: "total_stock",
+          label: "当前库存",
+        },
+        {
+          prop: "wait_in_stock",
+          label: "待入库",
+        },
+        {
+          prop: "wait_out_stock",
+          label: "待出库",
+          width: "80px",
+        },
+        {
+          prop: "usable_stock",
+          label: "可用库存",
+          // sortable: true,
+        },
+        {
+          prop: "intra_stock",
+          label: "在途库存",
+          // sortable: true,
+        },
+        {
+          prop: "warn_stock",
+          label: "预警库存",
+        },
+      
+]

+ 9 - 52
src/views/stock/stockCount/components/dataWeido/index.vue

@@ -49,7 +49,7 @@
                   />
                 </el-col>
                 <!-- 搜索 -->
-                <el-col :span="4" style="width: 54px;">
+                <el-col :span="4" style="width: 54px">
                   <el-button
                     :size="searchSize"
                     type="primary"
@@ -57,19 +57,18 @@
                     icon="el-icon-search"
                     label=""
                     @click="searchList"
-                    ></el-button
-                  >
+                  ></el-button>
                 </el-col>
                 <!-- 重置 -->
                 <el-col
                   :span="4"
-                  style="width: 74px; margin-left: 10px"
+                  style="width: 54px; margin-left: 10px"
                   class="mr5"
                 >
                   <el-button
                     :size="searchSize"
                     class="fr"
-                    icon="el-icon-refresh-right"
+                    type="warning"
                     @click="restSearch"
                     >重置</el-button
                   >
@@ -103,13 +102,14 @@
             <el-table-column
               label="商品名称"
               prop="good_name"
-              width="120"
+              min-width="150"
               :show-overflow-tooltip="true"
             ></el-table-column>
                        
             <el-table-column
               label="商品属性"
               prop="attribute"
+              min-width="120"
               :show-overflow-tooltip="true"
             ></el-table-column>
                        
@@ -153,7 +153,7 @@
 import mixinPage from "@/mixins/elPaginationHandle";
 import resToken from "@/mixins/resToken";
 import asyncRequest from "@/apis/service/stock/dataWeido";
-
+import columns from "./columns";
 import { mapGetters } from "vuex";
 
 export default {
@@ -200,53 +200,11 @@ export default {
         total: 0,
       },
       // 表格 - 列参数
-      columns: [
-        {
-          type: "expand",
-          _slot_: "expand",
-          label: "",
-        },
-        {
-          prop: "wsm_code",
-          label: "仓库编号",
-        },
-        {
-          prop: "wsm_name",
-          label: "仓库名称",
-        },
-        {
-          prop: "total_stock",
-          label: "当前库存",
-        },
-        {
-          prop: "wait_in_stock",
-          label: "待入库",
-        },
-        {
-          prop: "wait_out_stock",
-          label: "待出库",
-          width: "80px",
-        },
-        {
-          prop: "usable_stock",
-          label: "可用库存",
-          // sortable: true,
-        },
-        {
-          prop: "intra_stock",
-          label: "在途库存",
-          // sortable: true,
-        },
-        {
-          prop: "warn_stock",
-          label: "预警库存",
-        },
-      ],
+      columns: columns,
     };
   },
   mounted() {
     this.searchList();
-    // this.stockName();
   },
 
   methods: {
@@ -321,6 +279,5 @@ export default {
   },
 };
 </script>
-<style lang="scss" scoped>
-</style>
+
    

+ 57 - 0
src/views/stock/stockCount/components/productWeido/columns.js

@@ -0,0 +1,57 @@
+export default [
+    {
+          type: "expand",
+          _slot_: "expand",
+          label: "",
+        },
+        {
+          prop: "good_code",
+          label: "商品编码",
+          width: "150",
+        },
+        {
+          prop: "type_code",
+          label: "属性编码",
+          width: "150",
+        },
+        {
+          prop: "good_name",
+          label: "商品名称",
+          "min-width": "150",
+        },
+        {
+          prop: "sort_f",
+          label: "分类",
+          width: "100",
+        },
+        {
+          prop: "unit",
+          label: "单位",
+          width: "50",
+        },
+        {
+          prop: "usable_stock",
+          label: "当前库存",
+          width: "80",
+        },
+        {
+          prop: "wait_in_stock",
+          label: "待入库",
+          width: "80",
+        },
+        {
+          prop: "wait_out_stock",
+          label: "待出库",
+          width: "80",
+        },
+        {
+          prop: "intra_stock",
+          label: "在途库存",
+          width: "80",
+        },
+        {
+          prop: "intra_stock",
+          label: "预警库存",
+          width: "80",
+        },
+]

+ 7 - 62
src/views/stock/stockCount/components/productWeido/index.vue

@@ -36,7 +36,7 @@
                 </el-col>
 
                 <!-- 搜索 -->
-                <el-col :span="4" style="width: 74px; margin-left: 10px">
+                <el-col :span="4" style="width: 54px">
                   <el-button
                     :size="searchSize"
                     type="primary"
@@ -44,19 +44,18 @@
                     icon="el-icon-search"
                     label=""
                     @click="searchList"
-                    >搜索</el-button
-                  >
+                  ></el-button>
                 </el-col>
                 <!-- 重置 -->
                 <el-col
                   :span="4"
-                  style="width: 74px; margin-left: 10px"
+                  style="width: 56px; margin-left: 10px"
                   class="mr5"
                 >
                   <el-button
                     :size="searchSize"
                     class="fr"
-                    icon="el-icon-refresh-right"
+                    type="warning"
                     @click="restSearch"
                     >重置</el-button
                   >
@@ -125,7 +124,7 @@ import resToken from "@/mixins/resToken";
 import statusList from "@/assets/js/statusList";
 import asyncRequest from "@/apis/service/stock/productWeido";
 import { mapGetters } from "vuex";
-
+import columns from "./columns";
 export default {
   name: "productWeido",
   mixins: [mixinPage, resToken],
@@ -171,62 +170,7 @@ export default {
         total: 0,
       },
       // 表格 - 列参数
-      columns: [
-        {
-          type: "expand",
-          _slot_: "expand",
-          label: "",
-        },
-        {
-          prop: "good_code",
-          label: "商品编码",
-          width: "150",
-        },
-        {
-          prop: "type_code",
-          label: "属性编码",
-          width: "150",
-        },
-        {
-          prop: "good_name",
-          label: "商品名称",
-          width: "120",
-        },
-        {
-          prop: "sort_f",
-          label: "分类",
-        },
-        {
-          prop: "unit",
-          label: "单位",
-          width: "50",
-        },
-        {
-          prop: "usable_stock",
-          label: "当前库存",
-          width: "80",
-        },
-        {
-          prop: "wait_in_stock",
-          label: "待入库",
-          width: "80",
-        },
-        {
-          prop: "wait_out_stock",
-          label: "待出库",
-          width: "80",
-        },
-        {
-          prop: "intra_stock",
-          label: "在途库存",
-          width: "80",
-        },
-        {
-          prop: "intra_stock",
-          label: "预警库存",
-          width: "80",
-        },
-      ],
+      columns: columns,
     };
   },
   mounted() {
@@ -253,6 +197,7 @@ export default {
     async searchList() {
       this.loading = true;
       // { type_code: "GY202104290049" }
+      console.log(this.parmValue);
       const res = await asyncRequest.list(this.parmValue);
       if (res && res.code === 0 && res.data) {
         this.tableData = res.data.list;

+ 44 - 0
src/views/stock/stockCount/components/spaceCount/columns.js

@@ -0,0 +1,44 @@
+export default [
+     {
+          prop: "supplier_code",
+          label: "供应商编码",
+          width: "150",
+        },
+        {
+          prop: "supplier_name",
+          label: "供应商名称",
+          "min-width": "180",
+        },
+        {
+          prop: "wsm_code",
+          label: "仓库编码",
+          width: "180",
+        },
+        {
+          prop: "wsm_name",
+          label: "仓库名称",
+        },
+        {
+          prop: "good_code",
+          label: "商品编码",
+          width: "150",
+        },
+        {
+          prop: "good_name",
+          label: "商品名称",
+          "min-width": "150",
+        },
+        {
+          prop: "type_code",
+          label: "商品属性编码",
+          width: "130",
+        },
+        {
+          prop: "in_total",
+          label: "入库量",
+        },
+        {
+          prop: "out_total",
+          label: "出库量",
+        },
+]

+ 2 - 52
src/views/stock/stockCount/components/spaceCount/index.vue

@@ -127,9 +127,8 @@
    <script>
 import mixinPage from "@/mixins/elPaginationHandle";
 import resToken from "@/mixins/resToken";
-// import statusList from "@/assets/js/statusList";
 import asyncRequest from "@/apis/service/stock/spaceCount";
-
+import columns from "./columns";
 import { mapGetters } from "vuex";
 export default {
   name: "spaceCount",
@@ -178,55 +177,7 @@ export default {
         total: 0,
       },
       // 表格 - 列参数
-      columns: [
-        {
-          prop: "wsm_code",
-          label: "仓库编码",
-          width: "180",
-        },
-        {
-          prop: "wsm_name",
-          label: "仓库名称",
-        },
-        {
-          prop: "good_code",
-          label: "商品编码",
-          width: "150",
-        },
-        {
-          prop: "good_name",
-          label: "商品名称",
-        },
-        {
-          prop: "type_code",
-          label: "属性编码",
-          width: "130",
-        },
-        {
-          prop: "total_stock",
-          label: "当前库存",
-        },
-        {
-          prop: "usable_stock",
-          label: "可用库存",
-        },
-        {
-          prop: "warn_stock",
-          label: "预警库存",
-        },
-        {
-          prop: "wait_in_stock",
-          label: "待入库",
-        },
-        {
-          prop: "wait_out_stock",
-          label: "待出库",
-        },
-        {
-          prop: "intra_stock",
-          label: "在途库存",
-        },
-      ],
+      columns: columns,
     };
   },
   mounted() {
@@ -286,7 +237,6 @@ export default {
         total: 0,
       };
       this.parmValue = {
-        // 缺少时间区间(开始-结束)
         start: "",
         end: "",
         type_code: "", //商品编码