Commit b8ec38da by zhangquan

bug修复

1 parent 7b8f821e
......@@ -1124,7 +1124,7 @@ export default {
converterApi(para).then(res => {
res.list = res && res.list ? res.list : []
let tableData = []
const TYPELIST = ['--', '毛利', '收入', '固定']
const TYPELIST = { 0: '--', 1: '毛利', 2: '收入', 3: '固定', 8: '(收入-自定义其他费用)', 9: '(收入-其他费用)' }
res.list.forEach(item => {
const packageOrderList = item.packageOrderList || []
const orderRuleObj = item.mainProfitAllocation || {} // 整单规则取值对象
......@@ -1157,9 +1157,9 @@ export default {
realityShopMerchantName: orderRuleObj.shopMerchantName,
shopTrafficMoney: orderRuleObj.shopTrafficMoney,
goodsCost: _goodsCost,
rule: `${ruleType}${!shopTrafficMoneyCalculateType ? '' : shopTrafficMoneyCalculateValue}${!shopTrafficMoneyCalculateType ? '' : '%'}`,
orderRule: `${orderRuleType}${!orderRuleObj.shopTrafficMoneyCalculateType ? '' : orderRuleObj.shopTrafficMoneyCalculateValue}${!orderRuleObj.shopTrafficMoneyCalculateType ? '' : '%'}`,
setMealRule: `${setMealRuleType}${!setMealRuleObj.shopTrafficMoneyCalculateType ? '' : setMealRuleObj.shopTrafficMoneyCalculateValue}${!setMealRuleObj.shopTrafficMoneyCalculateType ? '' : '%'}`,
rule: `${ruleType}${!shopTrafficMoneyCalculateType ? '' : shopTrafficMoneyCalculateValue}${!shopTrafficMoneyCalculateType ? '' : shopTrafficMoneyCalculateType == 3 ? '元' : '%'}`,
orderRule: `${orderRuleType}${!orderRuleObj.shopTrafficMoneyCalculateType ? '' : orderRuleObj.shopTrafficMoneyCalculateValue}${!orderRuleObj.shopTrafficMoneyCalculateType ? '' : orderRuleObj.shopTrafficMoneyCalculateType == 3 ? '元' : '%'}`,
setMealRule: `${setMealRuleType}${!setMealRuleObj.shopTrafficMoneyCalculateType ? '' : setMealRuleObj.shopTrafficMoneyCalculateValue}${!setMealRuleObj.shopTrafficMoneyCalculateType ? '' : setMealRuleObj.shopTrafficMoneyCalculateType == 3 ? '元' : '%'}`,
divisionTypeName: item.divisionType == 1 ? '线下对账' : '线上分账',
payTypeName: PAYTYPEOBJ[item.payType],
paySuccessDate: utils.dateFormat(item.paySuccessDate, 'YYYY-MM-DD HH:mm:ss')
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!