Commit ba620c3f by zhangquan

修复bug

1 parent 1ddc7e40
......@@ -1134,10 +1134,15 @@ export default {
subOrderList.forEach((ele, eleIdx) => {
const { id, subOrderCode, subTotalPrice, upgradeGoodsCommodityCode, upgradeGoodsName, upgradeGoodsTypeName, subProfitAllocation, profitAllocationRule } = ele
let { shopTrafficMoneyCalculateType, shopTrafficMoneyCalculateValue } = profitAllocationRule || {}
const { goodsCost, virtualAccountCost, actualIncomeMoney } = subProfitAllocation || {}
const { goodsCost, virtualAccountCost, actualIncomeMoney, thirdPartyCost, djCost } = subProfitAllocation || {}
let ruleType = TYPELIST[shopTrafficMoneyCalculateType] || '--'
let setMealRuleType = TYPELIST[setMealRuleObj.shopTrafficMoneyCalculateType] || '--'
let orderRuleType = TYPELIST[orderRuleObj.shopTrafficMoneyCalculateType] || '--'
let _goodsCost = virtualAccountCost || goodsCost
if ((thirdPartyCost || djCost) && this.pageName == 'insurance') {
_goodsCost = (thirdPartyCost || 0) + (djCost || 0)
}
const _obj = {
...item,
rowspan: 1,
......@@ -1151,7 +1156,7 @@ export default {
actualIncomeMoney,
realityShopMerchantName: orderRuleObj.shopMerchantName,
shopTrafficMoney: orderRuleObj.shopTrafficMoney,
goodsCost: virtualAccountCost || goodsCost,
goodsCost: _goodsCost,
rule: `${ruleType}${!shopTrafficMoneyCalculateType ? '' : shopTrafficMoneyCalculateValue}${!shopTrafficMoneyCalculateType ? '' : '%'}`,
orderRule: `${orderRuleType}${!orderRuleObj.shopTrafficMoneyCalculateType ? '' : orderRuleObj.shopTrafficMoneyCalculateValue}${!orderRuleObj.shopTrafficMoneyCalculateType ? '' : '%'}`,
setMealRule: `${setMealRuleType}${!setMealRuleObj.shopTrafficMoneyCalculateType ? '' : setMealRuleObj.shopTrafficMoneyCalculateValue}${!setMealRuleObj.shopTrafficMoneyCalculateType ? '' : '%'}`,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!