Commit ce7a92e1 by zhangquan

备注

1 parent d7783459
......@@ -1683,6 +1683,7 @@ export default {
params.tireFlag = 1
}
this.$apis.beforeSale.getNewPackageListApi(params).then(res => {
//新增的时候过滤已下架副套餐的产品
if (this.routeInfo.addOrEdit == 1) {
res = res?.filter(item => item.shelfStatus !== 0) || []
}
......@@ -1743,6 +1744,7 @@ export default {
packCode = []
detailInfo.attributes.forEach(item => {
let targetItem = productArrData.find(k => k.packageCode == item.packageCode)
//编辑时,把详情里面的副套餐parentId覆盖without产品列表里的parentId
if (targetItem && item.parentId) {
targetItem.parentId = item.parentId
targetItem.parentName = item.parentName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!