Commit a5f02e6b by 张立顺

fix 参数bug修复

1 parent 49916172
...@@ -764,7 +764,13 @@ export default { ...@@ -764,7 +764,13 @@ export default {
}, },
getParams() { getParams() {
const obj = deepClone(this.classificationObj) const obj = deepClone(this.classificationObj)
obj.packageGoods = obj.packageGoods.map((val) => {
val.categoryType = 3 // 按商品套餐
if (val.tempPackageCode) { // 是临时套餐 就去掉套件编码
delete val.packageCode
}
return val
})
return { return {
...obj, ...obj,
goodsTypeGroupRelations: goodsTypeGroupRelations:
...@@ -1215,6 +1221,9 @@ export default { ...@@ -1215,6 +1221,9 @@ export default {
}) })
this.classificationObj.packageGoods?.map((val) => { this.classificationObj.packageGoods?.map((val) => {
val.categoryType = this.classificationObj.categoryType val.categoryType = this.classificationObj.categoryType
if (val.tempPackageCode) { // 是临时套餐 就去掉套件编码
delete val.packageCode
}
return val return val
}) })
// 按商品分类 // 按商品分类
...@@ -1235,6 +1244,7 @@ export default { ...@@ -1235,6 +1244,7 @@ export default {
upgradeGoods, upgradeGoods,
packageGoods packageGoods
} = this.classificationObj } = this.classificationObj
return expenseCategoryRulesObj.goodsSource == 1 return expenseCategoryRulesObj.goodsSource == 1
? { ? {
...expenseCategoryRulesObj, ...expenseCategoryRulesObj,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!