|
@@ -162,8 +162,9 @@
|
|
|
},
|
|
|
productSave(){
|
|
|
this.subloading = true
|
|
|
- this.tempProduct.qrCode = this.code
|
|
|
- dealerProductSave(this.tempProduct).then(res => {
|
|
|
+ const prams = JSON.parse(JSON.stringify(this.tempProduct))
|
|
|
+ prams.qrCode = this.code
|
|
|
+ dealerProductSave(prams).then(res => {
|
|
|
if(res.status == 200){
|
|
|
this.queryProduct()
|
|
|
this.closePop()
|
|
@@ -189,6 +190,9 @@
|
|
|
if(res.status == 200){
|
|
|
this.detailList = res.data && res.data.list || []
|
|
|
}
|
|
|
+ if(res.data.count>10){
|
|
|
+ uni.$u.toast("最多显示前10条匹配产品!")
|
|
|
+ }
|
|
|
this.loading = false
|
|
|
})
|
|
|
},
|