|
@@ -557,13 +557,13 @@ export default {
|
|
.get('/goods/getById/' + this.SHOPID)
|
|
.get('/goods/getById/' + this.SHOPID)
|
|
.then(async (res) => {
|
|
.then(async (res) => {
|
|
if (res.code === 200 && res.msg === 'OK') {
|
|
if (res.code === 200 && res.msg === 'OK') {
|
|
|
|
+ console.log(res);
|
|
this.shopData = res.data;
|
|
this.shopData = res.data;
|
|
|
|
|
|
this.getShopList();
|
|
this.getShopList();
|
|
|
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
// 判断返回的是否是自营商品
|
|
// 判断返回的是否是自营商品
|
|
- this.typeProperty = this.shopData.saleRule;
|
|
|
|
this.price = this.shopData.salePrice / 100;
|
|
this.price = this.shopData.salePrice / 100;
|
|
this.rateprice = this.shopData.price / 100;
|
|
this.rateprice = this.shopData.price / 100;
|
|
|
|
|
|
@@ -714,6 +714,8 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
this.storeId = this.storeList[this.storeIndex].id;
|
|
this.storeId = this.storeList[this.storeIndex].id;
|
|
|
|
+ this.typeProperty = this.storeList[this.storeIndex].type;
|
|
|
|
+
|
|
// 商品类型回显
|
|
// 商品类型回显
|
|
this.getType();
|
|
this.getType();
|
|
this.getLine();
|
|
this.getLine();
|
|
@@ -774,7 +776,6 @@ export default {
|
|
shopId: this.storeId,
|
|
shopId: this.storeId,
|
|
})
|
|
})
|
|
.then(async (res) => {
|
|
.then(async (res) => {
|
|
- console.log(res);
|
|
|
|
let arr = [];
|
|
let arr = [];
|
|
this.hasNameList = +res.data.shopFrom;
|
|
this.hasNameList = +res.data.shopFrom;
|
|
res.data.customGroupList.forEach((element) => {
|
|
res.data.customGroupList.forEach((element) => {
|
|
@@ -961,7 +962,6 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- console.log(this.shopNumIndex);
|
|
|
|
if (this.shopIndex === 0) {
|
|
if (this.shopIndex === 0) {
|
|
this.inventory = '';
|
|
this.inventory = '';
|
|
}
|
|
}
|