|
|
@@ -147,8 +147,8 @@
|
|
147
|
147
|
<popup-distribution ref="PopupDistribution" @receviceFromChild="receviceFromDistreibution" :selectRows="selectRows"></popup-distribution>
|
|
148
|
148
|
<popup-out ref="PopupOut" @receviceFromChild="receviceFromOut"></popup-out>
|
|
149
|
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
|
152
|
<el-form-item label="旧货主">
|
|
153
|
153
|
<el-input v-model="oldCustomer">
|
|
154
|
154
|
</el-input>
|
|
|
@@ -316,6 +316,7 @@
|
|
316
|
316
|
},
|
|
317
|
317
|
data() {
|
|
318
|
318
|
return {
|
|
|
319
|
+ loadingCustomer: false,
|
|
319
|
320
|
addressDialogVisible: false,
|
|
320
|
321
|
customerDialogVisible: false,
|
|
321
|
322
|
query: {
|
|
|
@@ -661,6 +662,10 @@
|
|
661
|
662
|
},
|
|
662
|
663
|
|
|
663
|
664
|
handleCustomerSave() {
|
|
|
665
|
+ if(this.loadingCustomer){
|
|
|
666
|
+ return
|
|
|
667
|
+ }
|
|
|
668
|
+ this.loadingCustomer = true
|
|
664
|
669
|
this.newCustomer.id = this.newCustomer.name;
|
|
665
|
670
|
var url = 'WareChange/changeCustomer.do'
|
|
666
|
671
|
var param = {
|
|
|
@@ -673,11 +678,13 @@
|
|
673
|
678
|
if (response.data.code == 0) {
|
|
674
|
679
|
this.getTableData()
|
|
675
|
680
|
this.customerDialogVisible = false
|
|
|
681
|
+ this.loadingCustomer = false
|
|
676
|
682
|
} else {
|
|
677
|
683
|
this.$message({
|
|
678
|
684
|
type: 'error',
|
|
679
|
685
|
message: '操作失败;' + response.data.msg,
|
|
680
|
686
|
});
|
|
|
687
|
+ this.loadingCustomer = false
|
|
681
|
688
|
}
|
|
682
|
689
|
});
|
|
683
|
690
|
},
|