From 1980a84b1aeabf2fda317b1c8ffd0a3cc1ba2b26 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 12 三月 2024 15:54:54 +0800
Subject: [PATCH] 完成产品追溯,成品库存、成品出库修改

---
 src/views/warehouse/FinishedWarehousing/index.vue |  320 ++++++++++++++++++++++++++++++++--------------------
 1 files changed, 196 insertions(+), 124 deletions(-)

diff --git a/src/views/warehouse/FinishedWarehousing/index.vue b/src/views/warehouse/FinishedWarehousing/index.vue
index 3afc521..b49dc54 100644
--- a/src/views/warehouse/FinishedWarehousing/index.vue
+++ b/src/views/warehouse/FinishedWarehousing/index.vue
@@ -1,138 +1,210 @@
 <template>
-    <div class="mod-config">
-        <basic-container>
-        <ttable
+  <div class="mod-config">
+    <basic-container>
+      <ttable
         :table="table"
         :isShowHide="true"
+        :ajaxFun="ajaxFun"
         :prelang="prelang"
         :options="options"
-        :dataListLoading="false" 
         ref="processconfiguration"
-        >
+      >
         <template #toolbar></template>
-        </ttable>
-        </basic-container>
-    </div>
+      </ttable>
+    </basic-container>
+  </div>
 </template>
 
 <script>
 import ttable from '@/views/common/ztt-table.vue'
+import { productPage, } from '@/api/warehouse/stock'
+
 export default {
-    data(){
-        return {
-            prelang: 'operation',
-            options: {
-                height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾
-                stripe: true, // 鏄惁涓烘枒椹汗 table
-                highlightCurrentRow: false, // 鏄惁瑕侀珮浜綋鍓嶈
-                border: true, // 鏄惁鏈夌旱鍚戣竟妗�
-                lazy: false, // 鏄惁闇�瑕佹噿鍔犺浇
-                fit: true, // 鍒楃殑瀹藉害鏄惁鑷拺寮�
-                multiSelect: true, //
-                seqNo: true,
-                isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳
-                isRefresh: true, // 鏄惁鏄剧ず鍒锋柊鎸夐挳
-                isSearch: true, // 楂樼骇鏌ヨ鎸夐挳
-                defaultOrderBy: { column: 'createTime', direction: 'desc' }
-            },
-            table: {
-                total: 0,
-                currentPage: 1,
-                pageSize: 20,
-                data: [],
-                // 鏍囬
-                column: [
-                  {
-                    minWidth: '140',
-                    prop: 'material',
-                    label: '浜у搧鍚嶇О',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                  },
-                  {
-                    minWidth: '140',
-                    prop: 'type',
-                    label: '浜у搧鍨嬪彿',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                  },{
-                    minWidth: '140',
-                    prop: 'oo',
-                    label: '璐ㄩ噺杩芥函鍙�',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                  },{
-                    minWidth: '140',
-                    prop: 'materhhooial',
-                    label: '鍚堝悓缂栫爜',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                  },
-                  {
-                    minWidth: '140',
-                    prop: 'mateuurial',
-                    label: '鍗曚綅',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                  },
-                  {
-                    minWidth: '140',
-                    prop: 'materoiial',
-                    label: '鏁伴噺',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                  },
-                  {
-                    minWidth: '140',
-                    prop: 'matperoial',
-                    label: '妫�鏌ョ姸鎬�',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                  },
-                  {
-                    minWidth: '140',
-                    prop: 'materpial',
-                    label: '妫�鏌ヤ汉鍛�',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                  },
-                  {
-                    minWidth: '130',
-                    prop: 'dealTime',
-                    label: '瑁呴厤浜哄憳',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                },
-                {
-                    minWidth: '130',
-                    prop: 'dealTissme',
-                    label: '缂栧埗浜�',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                },
-                ],
-                toolbar: [],
-                // operator: [],
-                // operatorConfig: {}
-            },
-       }
-    },
-    medthods: {},
-    computed: {
-    // ...mapGetters(['permissions'])
-    },
-    components: {
+  data() {
+    return {
+      ajaxFun: productPage,
+      prelang: 'operation',
+      dataListLoading: false,
+      options: {
+        height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾
+        stripe: true, // 鏄惁涓烘枒椹汗 table
+        highlightCurrentRow: false, // 鏄惁瑕侀珮浜綋鍓嶈
+        border: true, // 鏄惁鏈夌旱鍚戣竟妗�
+        lazy: false, // 鏄惁闇�瑕佹噿鍔犺浇
+        fit: true, // 鍒楃殑瀹藉害鏄惁鑷拺寮�
+        multiSelect: true, //
+        seqNo: true,
+        isShowHide: true, // 鏄惁鏄剧ず鏄惧奖鎸夐挳
+        isRefresh: true, // 鏄惁鏄剧ず鍒锋柊鎸夐挳
+        isSearch: true, // 楂樼骇鏌ヨ鎸夐挳
+        defaultOrderBy: { column: 'id', direction: 'desc' },
+      },
+      table: {
+        total: 0,
+        currentPage: 1,
+        pageSize: 20,
+        data: [],
+        // 鏍囬
+        column: [
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'factoryName',
+            label: '宸ュ巶',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text',
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'partNo',
+            label: '闆朵欢鍙�',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text',
+            propVal: this.$route.query.partNo,
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'partName',
+            label: '闆朵欢鍚嶇О',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text',
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'warehouseName',
+            label: '浠撳簱',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text',
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'locationNo',
+            label: '搴撲綅鍙�',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text',
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'locationName',
+            label: '搴撲綅鍚嶇О',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text',
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'systemNo',
+            label: '绯荤粺缂栧彿',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text',
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'customerOrderNo',
+            label: '閿�鍞鍗曞彿',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text'
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'mpsNo',
+            label: '涓荤敓浜ц鍒掑彿',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text'
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'moNo',
+            label: '杞﹂棿璁㈠崟鍙�',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text'
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'stockQuantity',
+            label: '搴撳瓨鏁伴噺',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text'
+          },
+          {
+            width: '100',
+            minWidth: '120',
+            prop: 'availableStockQuantity',
+            label: '鍙敤搴撳瓨鏁伴噺',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text'
+          },
+          {
+            width: '100',
+            minWidth: '100',
+            prop: 'unit',
+            label: '鍗曚綅',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text'
+          },
+          {
+            minWidth: '100',
+            prop: 'ifsBatchNo',
+            label: '鎵规鍙�',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text'
+          },
+          {
+            minWidth: '100',
+            prop: 'sourceName',
+            label: '鏉ユ簮',
+            sort: true,
+            isTrue: true,
+            isSearch: true,
+            searchInfoType: 'text'
+          }
+        ],
+        toolbar: [],
+        // operator: [],
+        // operatorConfig: {}
+      },
+    }
+  },
+  medthods: {},
+  components: {
     ttable
-    },
+  },
 }
-</script>
\ No newline at end of file
+</script>

--
Gitblit v1.9.3