优化代码

master
zhoulei 4 years ago
parent 27c00ecf13
commit f02a18a741

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

@ -279,9 +279,6 @@ export default class dnReceiptDom extends BasePage {
this.receiptAmount = null;
}
async onSubmit() {
this.resetForm();
return;
if (this.LocationList.length === 0) {
uni.showToast({
icon: 'none',
@ -289,8 +286,8 @@ export default class dnReceiptDom extends BasePage {
});
}
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() {
if (this.form.documentNo == '') {

Loading…
Cancel
Save