优化代码

master
zhoulei 4 years ago
parent 27c00ecf13
commit f02a18a741

@ -74,9 +74,12 @@ export default {
this.listData = n; this.listData = n;
this.selByValKey(); this.selByValKey();
}, },
val() { val: {
handler() {
this.selByValKey(); this.selByValKey();
}, },
deep: true,
},
}, },
mounted() { mounted() {
this.selByValKey(); this.selByValKey();

@ -279,9 +279,6 @@ export default class dnReceiptDom extends BasePage {
this.receiptAmount = null; this.receiptAmount = null;
} }
async onSubmit() { async onSubmit() {
this.resetForm();
return;
if (this.LocationList.length === 0) { if (this.LocationList.length === 0) {
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
@ -289,8 +286,8 @@ export default class dnReceiptDom extends BasePage {
}); });
} }
this.every.wllist = this.LocationList; this.every.wllist = this.LocationList;
console.log('new this.every :::: ', this.every); await this.model.submitOrderInEnter([this.every]);
// await this.model.submitOrderInEnter([this.every]); this.resetForm();
} }
async bill() { async bill() {
if (this.form.documentNo == '') { if (this.form.documentNo == '') {

Loading…
Cancel
Save