Commit 3d93eea5 by zhangxw

订单列表分润规则兼容处理

1 parent 318c14ce
...@@ -1143,7 +1143,7 @@ export default { ...@@ -1143,7 +1143,7 @@ export default {
converterApi(para).then(res => { converterApi(para).then(res => {
res.list = res && res.list ? res.list : [] res.list = res && res.list ? res.list : []
let tableData = [] let tableData = []
const TYPELIST = { 0: '--', 1: '毛利', 2: '收入', 3: '固定', 8: '(收入-自定义其他费用)', 9: '(收入-其他费用)' } const TYPELIST = { 0: '--', 1: '毛利', 2: '收入', 3: '固定', 4: "(产值-流量成本)", 5: "(产值-流量成本-其他费用不包含产品成本)",6: "(产值-流量成本-其他费用包含产品成本)", 8: '(收入-自定义其他费用)', 9: '(收入-其他费用)' }
res.list.forEach((item, _idx) => { res.list.forEach((item, _idx) => {
const packageOrderList = item.packageOrderList || [] const packageOrderList = item.packageOrderList || []
const orderRuleObj = item.mainProfitAllocation || {} // 整单规则取值对象 const orderRuleObj = item.mainProfitAllocation || {} // 整单规则取值对象
...@@ -1184,6 +1184,16 @@ export default { ...@@ -1184,6 +1184,16 @@ export default {
payTypeName: PAYTYPEOBJ[item.payType], payTypeName: PAYTYPEOBJ[item.payType],
paySuccessDate: utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss') paySuccessDate: utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss')
} }
// 按固定金额*购买数量特殊处理
if (shopTrafficMoneyCalculateType == 10) {
_obj.rule = `按固定金额${shopTrafficMoneyCalculateValue}元*${ele.number}`
}
if (orderRuleObj.shopTrafficMoneyCalculateType == 10) {
_obj.orderRule = `按固定金额${orderRuleObj.shopTrafficMoneyCalculateValue}元*${ele.number}`
}
if (setMealRuleObj.shopTrafficMoneyCalculateType == 10) {
_obj.setMealRule = `按固定金额${setMealRuleObj.shopTrafficMoneyCalculateValue}元*${ele.number}`
}
tableData.push(_obj) tableData.push(_obj)
}) })
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!