更新
This commit is contained in:
parent
5937911cda
commit
817f410089
@ -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;
|
||||
|
@ -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: '请选择规格后再次进行入库'
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user