From c51167b62fea2831abba53ba9c05bc13646340cf Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 22 三月 2024 14:53:34 +0800
Subject: [PATCH] 原材料报检时间修改

---
 src/views/equipment/mould/index.vue |   37 ++++++++++++++++++++++++++-----------
 1 files changed, 26 insertions(+), 11 deletions(-)

diff --git a/src/views/equipment/mould/index.vue b/src/views/equipment/mould/index.vue
index 8439374..c3bfe27 100644
--- a/src/views/equipment/mould/index.vue
+++ b/src/views/equipment/mould/index.vue
@@ -2,7 +2,9 @@
   <div class="mod-config">
       <basic-container>
         <ttable
+        @handleSelectionChange="handleSelectionChange"
         :table="table"
+        :uploadInfo="uploadInfo"
         :ajaxFun="ajaxFun"
         :prelang="prelang"
         :options="options"
@@ -23,6 +25,9 @@
                 <el-form-item prop="name" label="妯″叿鍚嶇О">
                     <el-input v-model="editRow.name" placeholder="璇疯緭鍏ユā鍏峰悕绉�"></el-input>
                 </el-form-item>
+                <el-form-item prop="drawingNo" label="妯″叿鍥惧彿">
+                    <el-input v-model="editRow.drawingNo" placeholder="璇疯緭鍏ユā鍏峰浘鍙�"></el-input>
+                </el-form-item>
             </el-form>
         <span slot="footer" class="dialog-footer">
             <el-button @click="dialogVisible = false">鍙� 娑�</el-button>
@@ -40,6 +45,7 @@
 export default {
   data(){
       return {
+          diaPrintTab: false,
           editRules: {
             code: [{required:true,message:'璇疯緭鍏ユā鍏风紪鍙�',trigger:'blur'}],
             name: [{required:true,message:'璇疯緭鍏ユā鍏峰悕绉�',trigger:'blur'}]
@@ -48,9 +54,17 @@
             code: null,
             name: null,
           },
+          uploadInfo: {
+            // 鏄惁灞曠ず涓婁紶EXCEL浠ュ強瀵瑰簲鐨剈rl
+            isShow: true,
+            url: '/mes/mould/upload',
+            download: true,
+            fileName: '妯″叿缁熻琛�'
+          },
           dialogVisible: false,
           ajaxFun: fetchList,
           prelang: 'moudle',
+          multipleSelection: [],
           dataListLoading: false,
           options: {
               height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾
@@ -86,6 +100,14 @@
                   minWidth: '140px',
                   prop: 'name',
                   label: '妯″叿鍚嶇О',
+                  isTrue: true,
+                  isSearch: true,
+                  searchInfoType: 'text',
+                },
+                {
+                  minWidth: '140px',
+                  prop: 'drawingNo',
+                  label: '妯″叿鍥惧彿',
                   isTrue: true,
                   isSearch: true,
                   searchInfoType: 'text',
@@ -131,7 +153,7 @@
     ...mapGetters(['permissions'])
   },
   components: {
-    ttable
+    ttable,
   },
   watch: {
     dialogVisible(newVal){
@@ -151,13 +173,6 @@
             fun: this.addOrUpdateHandle
         })
     }
-    if(this.permissions.equipment_mould_lableprint){
-        this.table.toolbar.push({
-            text: '鏍囩鎵撳嵃',
-            type: 'primary',
-            fun: this.lableprint
-        })
-    }
     if(this.permissions.equipment_mould_del){
         this.table.operator = [{
             text: '鍒犻櫎',
@@ -170,6 +185,9 @@
 
   },
   methods: {
+    handleSelectionChange(val) {
+      this.multipleSelection = val
+    },
     deleteHandle(row){
         this.$confirm('鏄惁纭鍒犻櫎妯″叿鍚嶇О涓�' + row.name, '鎻愮ず', {
           confirmButtonText: '纭畾',
@@ -183,9 +201,6 @@
             this.$message.success('鍒犻櫎鎴愬姛')
             this.getData()
           })
-    },
-    lableprint(){
-
     },
     confirmSaveOrUpdateMould(){
         this.$refs.editForm.validate(valid=>{

--
Gitblit v1.9.3