Commit 1e2ddd2a by zhangxw

购买数量修改

1 parent 6cf6d2d9
......@@ -1152,7 +1152,7 @@ export default {
const setMealRuleObj = subItem.profitAllocationRule || {} // 套餐规则取值对象
subOrderList.forEach((ele, eleIdx) => {
const { id, subOrderCode, subTotalPrice, upgradeGoodsCommodityCode, upgradeGoodsName, upgradeGoodsTypeName, subProfitAllocation, profitAllocationRule } = ele
let { shopTrafficMoneyCalculateType, shopTrafficMoneyCalculateValue } = profitAllocationRule || {}
let { shopTrafficMoneyCalculateType, shopTrafficMoneyCalculateValue, purchaseNum } = profitAllocationRule || {}
const { goodsCost, virtualAccountCost, actualIncomeMoney, thirdPartyCost, djCost } = subProfitAllocation || {}
let ruleType = TYPELIST[shopTrafficMoneyCalculateType] || '--'
let setMealRuleType = TYPELIST[setMealRuleObj.shopTrafficMoneyCalculateType] || '--'
......@@ -1186,13 +1186,13 @@ export default {
}
// 按固定金额*购买数量特殊处理
if (shopTrafficMoneyCalculateType == 10) {
_obj.rule = `按固定金额${shopTrafficMoneyCalculateValue}元*${ele.purchaseNum || ''}`
_obj.rule = `按固定金额${shopTrafficMoneyCalculateValue}元*${purchaseNum || ''}`
}
if (orderRuleObj.shopTrafficMoneyCalculateType == 10) {
_obj.orderRule = `按固定金额${orderRuleObj.shopTrafficMoneyCalculateValue}元*${ele.purchaseNum || ''}`
_obj.orderRule = `按固定金额${orderRuleObj.shopTrafficMoneyCalculateValue}元*${orderRuleObj.purchaseNum || ''}`
}
if (setMealRuleObj.shopTrafficMoneyCalculateType == 10) {
_obj.setMealRule = `按固定金额${setMealRuleObj.shopTrafficMoneyCalculateValue}元*${ele.purchaseNum || ''}`
_obj.setMealRule = `按固定金额${setMealRuleObj.shopTrafficMoneyCalculateValue}元*${setMealRuleObj.purchaseNum || ''}`
}
tableData.push(_obj)
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!