lilei 1 年之前
父节点
当前提交
6271fce8d8
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      pages/codeBar/codeBar.vue

+ 6 - 2
pages/codeBar/codeBar.vue

@@ -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
 				})
 			},