From d5043ad197423641b066b13fa1eed2189b103f52 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 22 三月 2024 17:34:22 +0800
Subject: [PATCH] 模具台账更改,未完成

---
 src/views/equipment/mould/index.vue |  111 +++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 103 insertions(+), 8 deletions(-)

diff --git a/src/views/equipment/mould/index.vue b/src/views/equipment/mould/index.vue
index c3bfe27..7e5b89c 100644
--- a/src/views/equipment/mould/index.vue
+++ b/src/views/equipment/mould/index.vue
@@ -114,20 +114,98 @@
                 },
                 {
                   minWidth: '140px',
-                  prop: 'createUser',
-                  label: '璐d换浜�',
-                  isTrue: true,
-                  isSearch: true,
-                  searchInfoType: 'text',
-                },
-                {
-                  minWidth: '140px',
                   prop: 'status',
                   label: '妯″叿鐘舵��',
                   isTrue: true,
                   isSearch: true,
                   searchInfoType: 'text',
                 },
+                {
+                  minWidth: '140px',
+                  prop: 'model',
+                  label: '妯″叿鍨嬪彿',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'text',
+                },
+                {
+                  minWidth: '140px',
+                  prop: 'workShop',
+                  label: '杞﹂棿',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'select',
+                  formatter: this.workShopFormatter,
+                  optList: () => {
+                    return this.workshopList
+                  }
+                },
+                {
+                  minWidth: '140px',
+                  prop: 'shelfNo',
+                  label: '璐ф灦鍙�',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'text',
+                },
+                {
+                  minWidth: '140px',
+                  prop: 'erpOrder',
+                  label: 'ERP璁㈠崟鍙�',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'text',
+                },
+                {
+                  minWidth: '140px',
+                  prop: 'texture',
+                  label: '鏉愯川',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'text',
+                },
+                {
+                  minWidth: '140px',
+                  prop: 'supplier',
+                  label: '渚涘簲鍟�',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'text',
+                },
+                {
+                  minWidth: '140px',
+                  prop: 'userTime',
+                  label: '鎶曞叆浣跨敤鏃ユ湡',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'date',
+                  formatter: this.formatDateTime
+                },
+                {
+                  minWidth: '140px',
+                  prop: 'serviceLife',
+                  label: '浣跨敤瀵垮懡',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'text'
+                },
+                {
+                  minWidth: '140px',
+                  prop: 'number',
+                  label: '宸蹭娇鐢ㄦ鏁�',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'text',
+                },
+                {
+                  minWidth: '140px',
+                  prop: 'person',
+                  label: '璐d换浜�',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'text',
+                },
+                
                 {
                   minWidth: '140px',
                   prop: 'createTime',
@@ -147,6 +225,7 @@
                 minWidth: 100
               },
           },
+        workshopList: []
      }
   },
   computed: {
@@ -180,6 +259,14 @@
             fun: this.deleteHandle
         }]
     }
+    this.table.operator = arr.length>0 ? arr : null
+    remote('work_shop').then((response) => {
+      if (response.data.code === 0) {
+        this.workshopList = response.data.data
+      } else {
+        this.workshopList = []
+      }
+    })
   },
   mounted(){
 
@@ -228,6 +315,14 @@
             }
         })
     },
+    workShopFormatter(row, column, cellValue) {
+      this.workshopList.forEach((obj) => {
+        if (obj.value == cellValue) {
+          cellValue = obj.label
+        }
+      })
+      return cellValue
+    },
     addOrUpdateHandle(row){
         if(row){
             this.editRow = row

--
Gitblit v1.9.3