Browse Source

发运明细-重复保存问题

jbb 2 years ago
parent
commit
fb8114f31e

+ 3 - 3
src/views/packing-list/packinglist-fabrics/addFabricDrawer.vue

@@ -365,7 +365,7 @@ export default {
         {
           title: '计划单号',
           dataIndex: 'planLotNumber',
-          width: 160,
+          width: 100,
           // fixed: 'left',
           className: 'replacecolor',
           ellipsis: true,
@@ -373,7 +373,7 @@ export default {
         {
           title: '款号/Kimball',
           dataIndex: 'itemNumber',
-          width: 120,
+          width: 100,
           className: 'replacecolor',
           ellipsis: true,
         },
@@ -388,7 +388,7 @@ export default {
         {
           title: '颜色/Color',
           dataIndex: 'colour',
-          width: 120,
+          width: 100,
           className: 'replacecolor',
           ellipsis: true,
         },

+ 7 - 2
src/views/shipment-details/editShipDetDrawer.vue

@@ -206,7 +206,7 @@
         <a-popconfirm title="确定放弃编辑?" @confirm="handleCancel" okText="确定" cancelText="取消">
           <a-button :style="{ marginRight: '8px' }">取消</a-button>
         </a-popconfirm>
-        <a-button type="primary" @click="editSave">
+        <a-button type="primary" @click="editSave" :disabled="confirmLoading">
           保存
         </a-button>
       </div>
@@ -638,13 +638,18 @@ export default {
          
          await this.JudgeVluabled()
           if(this.judge == 0){
-            editById(this.editShipDet).then(res => {
+            this.confirmLoading = true
+            editById(this.editShipDet).then(res => {  
             if (res.success) {
               this.$message.success('编辑成功');
               this.addShipDet = {};
               this.addShipDet.syShippingDetailsItemList = [];
+                this.confirmLoading = false
               this.close();
               // this.fatherList(); // 调用父组件的查询方法
+            }else{
+              this.$message.error('res.message')
+               this.confirmLoading = false
             }
            })
           }