This commit is contained in:
jia 2023-09-13 10:56:26 +08:00
parent 5937911cda
commit 817f410089
2 changed files with 16 additions and 7 deletions

View File

@ -187,7 +187,7 @@
// #endif
},
onLoad(options) {
console.log(options.type);
this.id = options.id;
this.order_id = options.order_id;
this.tabActive = options.type || 1;

View File

@ -351,6 +351,7 @@
this.checkboxList1 = item.attrValue
// console.log(this.checkboxList1.length)
if (this.checkboxList1.length > 0) {
this.show = true
this.data.product_id = this.checkboxList1[0].product_id
this.data.unique = this.checkboxList1[0].unique
@ -378,7 +379,9 @@
})
} else {
postImport(this.mer_id, this.data).then(res => {
// console.log(res);
this.data.unique = ''
this.data.product_id=''
this.data.number=1
this.loading = false
this.loaded = false
this.getList(this.mer_id, true);
@ -386,10 +389,16 @@
this.$util.Tips({
title: res.message
})
this.data.unique = ''
this.data.product_id=''
this.data.number=1
}).catch(err => {
this.show = false
this.data.unique = ''
this.data.product_id=''
this.data.number=1
this.$util.Tips({
title: '请选择规格后再次进行入库'
})