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/FinishedGoods/index.vue |  105 ++++++++++++++++++++++------------------------------
 1 files changed, 44 insertions(+), 61 deletions(-)

diff --git a/src/views/warehouse/FinishedGoods/index.vue b/src/views/warehouse/FinishedGoods/index.vue
index 2207225..c652a3d 100644
--- a/src/views/warehouse/FinishedGoods/index.vue
+++ b/src/views/warehouse/FinishedGoods/index.vue
@@ -4,8 +4,9 @@
         <ttable
         :table="table"
         :isShowHide="true"
+        :ajaxFun="ajaxFun"
         :prelang="prelang"
-        :options="options" 
+        :options="options"
         ref="processconfiguration"
         >
         <template #toolbar></template>
@@ -16,9 +17,11 @@
 
 <script>
 import ttable from '@/views/common/ztt-table.vue'
+import { finishedOutcome } from '@/api/warehouse/finishedOutcome'
 export default {
     data(){
         return {
+            ajaxFun: finishedOutcome,
             prelang: 'operation',
             dataListLoading: false,
             options: {
@@ -44,104 +47,84 @@
                 column: [
                   {
                     minWidth: '140',
-                    prop: 'material',
-                    label: '璁㈠崟缂栫爜',
+                    prop: 'outBatchNo',
+                    label: '鎵规鍙�',
                     isTrue: true,
                     isSearch: true,
                     searchInfoType: 'text',
                   },
                   {
                     minWidth: '140',
-                    prop: 'type',
+                    prop: 'parNo',
+                    label: '浜у搧缂栧彿',
+                    isTrue: true,
+                    isSearch: true,
+                    searchInfoType: 'text',
+                  },{
+                    minWidth: '140',
+                    prop: 'partName',
                     label: '浜у搧鍚嶇О',
                     isTrue: true,
                     isSearch: true,
                     searchInfoType: 'text',
                   },{
                     minWidth: '140',
-                    prop: 'oo',
-                    label: '浜у搧鍨嬪彿',
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'text',
-                  },{
-                    minWidth: '140',
-                    prop: 'materhhooial',
-                    label: '璐ㄩ噺杩芥函鍙�',
+                    prop: 'specs',
+                    label: '瑙勬牸鍨嬪彿',
                     isTrue: true,
                     isSearch: true,
                     searchInfoType: 'text',
                   },
                   {
                     minWidth: '140',
-                    prop: 'mateuurial',
-                    label: '瀹㈡埛鍚嶇О',
+                    prop: 'unit',
+                    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',
-                    width: '150',
-                    prop: 'dealTime',
-                    label: '瀹℃牳鏃堕棿',
-                    sort: true,
-                    isTrue: true,
-                    isSearch: true,
-                    searchInfoType: 'datetimerange',
-                    // formatter: this.formatDateTime,
-                },
-                {
-                    minWidth: '140',
-                    prop: 'maial',
+                    prop: 'number',
                     label: '鏁伴噺',
+                    isTrue: true,
+                    isSearch: true,
+                    searchInfoType: 'text',
+                  },
+                  {
+                    minWidth: '140',
+                    prop: 'c莽reateTime',
+                    label: '鍑哄簱鏃堕棿',
+                    isTrue: true,
+                    isSearch: true,
+                    searchInfoType: 'text',
+                    searchInfoType: 'datetimerange',
+                    formatter: this.formatDateTime,
+                  },
+                  {
+                    minWidth: '140',
+                    prop: 'createUser',
+                    label: '鍒涘缓浜�',
                     isTrue: true,
                     isSearch: true,
                     searchInfoType: 'text',
                   },
                 ],
                 toolbar: [
-                  {
-                    text: '鑾峰彇IFS鎴愬搧搴�',
-                    type: 'primary',
-                    // fun: this.addOrUpdateHandle
-                  },
+
                 ],
                 // operator: [],
                 // operatorConfig: {}
             },
        }
     },
-    medthods: {},
-//     computed: {
-//     ...mapGetters(['permissions'])
-//   },
+    medthods: {
+      formatDateTime(row, column, cellValue) {
+          return cellValue ? fecha.format(new Date(cellValue), 'yyyy-MM-dd') : ''
+      },
+    },
     components: {
     ttable
     },
 }
-</script>
\ No newline at end of file
+</script>

--
Gitblit v1.9.3