Rx goods supported / Product detail multi-specification added / "window" in fetch removed

This commit is contained in:
Vion
2022-01-22 19:20:04 +08:00
parent 79ff28e63d
commit c6267a73ee
10 changed files with 222 additions and 239 deletions

View File

@@ -733,17 +733,25 @@ export default {
this.dialogInfo1 = false;
},
selectproduce(item,index){
if(item.productList[0]==undefined){
item.productlist[0].productCode=0;
}
if(item.productList[0]==undefined){
item.productlist[0]=[];
let isRxGoods=false;
let productCode = [];
let mainProductCode = item.productCode;
if(!item.ecPrice && !item.price)
{
isRxGoods=1;
productCode = [item.productCode];
} else {
for(let i of item.productList) {
productCode.push(i.productCode);
}
}
this.$router.push({
path: "/productdetails/producted",
query: {
stype: 1,
productCode:item.productList[0].productCode
isRxGoods: isRxGoods,
mainProductCode:mainProductCode,
productCode:productCode.join(",")
},
});
},