Selaa lähdekoodia

1.新增货权转移,防连点功能

dw 5 päivää sitten
vanhempi
commit
7e51698d67
1 muutettua tiedostoa jossa 9 lisäystä ja 2 poistoa
  1. 9
    2
      src/view/ware/storechange.vue

+ 9
- 2
src/view/ware/storechange.vue Näytä tiedosto

147
 		<popup-distribution ref="PopupDistribution" @receviceFromChild="receviceFromDistreibution" :selectRows="selectRows"></popup-distribution>
147
 		<popup-distribution ref="PopupDistribution" @receviceFromChild="receviceFromDistreibution" :selectRows="selectRows"></popup-distribution>
148
 		<popup-out ref="PopupOut" @receviceFromChild="receviceFromOut"></popup-out>
148
 		<popup-out ref="PopupOut" @receviceFromChild="receviceFromOut"></popup-out>
149
 		<popup-in ref="PopupIn" @receviceFromChild="receviceFromIn" :wares="options" :wareId="query.wareId" :stack="moveFromStack"></popup-in>
149
 		<popup-in ref="PopupIn" @receviceFromChild="receviceFromIn" :wares="options" :wareId="query.wareId" :stack="moveFromStack"></popup-in>
150
-		<el-dialog title="货权转移" :visible.sync="customerDialogVisible" width="500px">
151
-			<el-form>
150
+		<el-dialog title="货权转移"  :visible.sync="customerDialogVisible" width="500px">
151
+			<el-form v-loading="loadingCustomer">
152
 				<el-form-item label="旧货主">
152
 				<el-form-item label="旧货主">
153
 					<el-input v-model="oldCustomer">
153
 					<el-input v-model="oldCustomer">
154
 					</el-input>
154
 					</el-input>
316
 		},
316
 		},
317
 		data() {
317
 		data() {
318
 			return {
318
 			return {
319
+        loadingCustomer: false,
319
 				addressDialogVisible: false,
320
 				addressDialogVisible: false,
320
 				customerDialogVisible: false,
321
 				customerDialogVisible: false,
321
 				query: {
322
 				query: {
661
 			},
662
 			},
662
 
663
 
663
 			handleCustomerSave() {
664
 			handleCustomerSave() {
665
+        if(this.loadingCustomer){
666
+          return
667
+        }
668
+        this.loadingCustomer = true
664
 				this.newCustomer.id = this.newCustomer.name;
669
 				this.newCustomer.id = this.newCustomer.name;
665
 				var url = 'WareChange/changeCustomer.do'
670
 				var url = 'WareChange/changeCustomer.do'
666
 				var param = {
671
 				var param = {
673
 					if (response.data.code == 0) {
678
 					if (response.data.code == 0) {
674
 						this.getTableData()
679
 						this.getTableData()
675
 						this.customerDialogVisible = false
680
 						this.customerDialogVisible = false
681
+            this.loadingCustomer = false
676
 					} else {
682
 					} else {
677
 						this.$message({
683
 						this.$message({
678
 							type: 'error',
684
 							type: 'error',
679
 							message: '操作失败;' + response.data.msg,
685
 							message: '操作失败;' + response.data.msg,
680
 						});
686
 						});
687
+            this.loadingCustomer = false
681
 					}
688
 					}
682
 				});
689
 				});
683
 			},
690
 			},

Loading…
Peruuta
Tallenna