|
@@ -450,6 +450,7 @@ export default {
|
|
selectProduct(row){
|
|
selectProduct(row){
|
|
for(var i=0;i<this.products.length;i++){
|
|
for(var i=0;i<this.products.length;i++){
|
|
if(this.products[i].id==row.id){
|
|
if(this.products[i].id==row.id){
|
|
|
|
+ this.$message.warning("请删除商品在重新选择!")
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -458,6 +459,7 @@ export default {
|
|
this.products.push(row);
|
|
this.products.push(row);
|
|
this.$message.success("商品"+ row.goodsName + "添加成功")
|
|
this.$message.success("商品"+ row.goodsName + "添加成功")
|
|
this.compute();
|
|
this.compute();
|
|
|
|
+ this.product.open=false;
|
|
},
|
|
},
|
|
handleAddProduct(){
|
|
handleAddProduct(){
|
|
this.product.open=true;
|
|
this.product.open=true;
|