From 8611a1ba1696e76cced04ff5d658ba138a05dafd Mon Sep 17 00:00:00 2001
From: zenglf <18502938215@163.com>
Date: 星期六, 19 八月 2023 14:37:32 +0800
Subject: [PATCH] 设备管理前端代码提交 截止 20230819 13:55 分

---
 src/views/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/src/views/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue b/src/views/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue
index a4d8c38..8bbd37e 100644
--- a/src/views/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue
+++ b/src/views/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue
@@ -20,6 +20,7 @@
             >
               <a-input
                 placeholder='璇疯緭鍏ュ簱鍗曠紪鍙�'
+                :disabled="disableSubmit"
                 v-decorator="['num', validatorRules.num]"
               />
             </a-form-item>
@@ -42,6 +43,7 @@
                 :placeholder="'璇烽�夋嫨閲囪喘閮ㄩ棬'"
                 :options="this.departs"
                 style="width: 100%"
+                :disabled="disableSubmit"
                 v-decorator="['departId', validatorRules.departId]"
               />
             </a-form-item>
@@ -89,6 +91,7 @@
       type='primary'
       :style="{ marginRight: '8px',marginBottom:'8px' }"
       :loading='confirmLoading'
+      :disabled="disableSubmit"
       @click='selectSparePart()'
     >澧炲姞澶囦欢淇℃伅
     </a-button>
@@ -113,15 +116,17 @@
             :options='record.suppliers'
             @change='(e) => handleChange(e, record.key, col, index)'
             style='width: 100%'
-            :disabled='false'
+            :disabled="disableSubmit"
+
           />
           <a-select
             v-if="col.dataIndex == 'warehouseAreaId'"
             :value='text'
+            :disabled="disableSubmit"
             :options='record.warehouseAreas'
             @change='(e) => handleChange(e, record.key, col, index)'
             style='width: 100%'
-            :disabled='false'
+
           />
           <a-select
             v-if="col.dataIndex == 'warehouseLocationId'"
@@ -129,22 +134,25 @@
             :options='record.warehouseLocations'
             @change='(e) => handleChange(e, record.key, col, index)'
             style='width: 100%'
-            :disabled='false'
+            :disabled="disableSubmit"
           />
           <a-input-number
             :value='text'
             v-if="col.dataIndex == 'mainQuantity'"
             :min='0'
+            :disabled="disableSubmit"
             :max='record.wastageRate'
             @change='(e)=>handleChange(e, record.key, col, index)'
           />
           <a-input
             :value='text'
+            :disabled="disableSubmit"
             v-if="col.dataIndex == 'batchNum'"
             @change='(e)=>handleChange(e, record.key, col, index)'
           />
           <a-date-picker
             :value='text'
+            :disabled="disableSubmit"
             v-if="col.dataIndex == 'manufactureDate'"
             format='YYYY-MM-DD'
             @change='(e)=>handleChange(e, record.key, col, index)'
@@ -159,6 +167,7 @@
       >
         <a-popconfirm
           title='纭畾鍒犻櫎鍚�?'
+          :disabled="disableSubmit"
           @confirm='() => handleDelete(text,record, index)'
         >
           <a>鍒犻櫎</a>
@@ -176,6 +185,7 @@
       <a-button
         @click='handleOk()'
         type='primary'
+        :disabled="disableSubmit"
         :loading='confirmLoading'
       >纭畾
       </a-button>

--
Gitblit v1.9.3