Browse Source

出运明细-参照页-按钮多次点击

jbb 2 years ago
parent
commit
66981e3d2e
1 changed files with 5 additions and 2 deletions
  1. 5 2
      src/views/shipment-details/referOrderDataModal.vue

+ 5 - 2
src/views/shipment-details/referOrderDataModal.vue

@@ -3,10 +3,13 @@
     title="参照订单数据"
     v-model="referOrderDataModVis"
     :confirmLoading="confirmLoading"
-    @ok="onSubmit"
     @cancel="handleCancel"
     width="90%"
   >
+   <template #footer>
+          <a-button  @click="handleCancel" style="margin-left: 8px;">取消</a-button>
+          <a-button  type="primary"  @click="onSubmit" :disabled="loading">确定</a-button>
+   </template>
     <!-- tabel 加载 -->
     <a-spin :spinning="confirmLoading">
       <!-- 查询  -->
@@ -551,7 +554,6 @@ export default {
            garment = '面料'
         }     
          this.loading = true
-
         addShipmentList({itemId:this.confimList,readyFabric:garment}).then(res => {
          if (res.success) {
          this.loading = false
@@ -561,6 +563,7 @@ export default {
             this.close()
           }else {
            this.$message.error('res.message')
+           this.loading = false
           }
         })
       }