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

fix-bug和调整

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