提交 f5541a03 authored 作者: huaxinzhu's avatar huaxinzhu

fix-bug和调整

上级 6a61727d
......@@ -864,11 +864,13 @@
toPage(name) {
switch (name) {
case 'brand' : {
this.$router.push({ path: '/system/shop/brand' });
// this.$router.push({ path: '/system/shop/brand' });
this.$router.push({ path: '/system/goods/brand' });
break;
}
case 'group' : {
this.$router.push({ path: '/system/settings/commodityGroup' });
// this.$router.push({ path: '/system/settings/commodityGroup' });
this.$router.push({ path: '/system/goods/commodityGroup' });
break;
}
case 'supplier' : {
......
......@@ -561,29 +561,43 @@ export default {
},
/**如果保存失败,将乘以100的价格还原
* 当多规格数据时候,才调用
* 当规格数据时候,单/多都可
* */
priceReduce() {
if(this.parameterdata.pamTableList && this.parameterdata.pamTableList.length > 0) {
this.parameterdata.pamTableList.forEach((item)=> {
if(item[0].sc_price) {
item[0].sc_price = item[0].sc_price / 100;
}
console.log(567,this.parameterdata)
if(item[0].price) {
item[0].price = item[0].price / 100;
// 单规格
if(this.parameterdata.isradioguide === 1) {
this.parameterdata.ladder.forEach((item)=> {
if (item.money) {
item.money = item.money / 100
}
})
}else {
if(this.parameterdata.pamTableList && this.parameterdata.pamTableList.length > 0) {
this.parameterdata.pamTableList.forEach((item)=> {
if(item[0].sc_price) {
item[0].sc_price = item[0].sc_price / 100;
}
if(item[0].js_price) {
item[0].js_price = item[0].js_price / 100;
}
if(item[0].price) {
item[0].price = item[0].price / 100;
}
if(item[0].price_cost) {
item[0].price_cost = item[0].price_cost / 100;
}
})
if(item[0].js_price) {
item[0].js_price = item[0].js_price / 100;
}
if(item[0].price_cost) {
item[0].price_cost = item[0].price_cost / 100;
}
})
}
}
},
/**如果保存失败,将乘以100的价格还原
* 当单规格数据时候,才调用
* */
/** 一键应用所有 */
applyAllTable(key) {
let text = ''
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论