Commit b90d8143 by 杨北旺

添加分账收入显示

1 parent 73a43cd4
......@@ -17,7 +17,7 @@ export const fetchConfig = function(isEnv = true) {
// Object.assign(request, { timeout })
// return Promise.resolve(cfg)
// }
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.dev.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get(' https://oss-config.test.glsx.com.cn/mock/618f5cc91072f92988f05a26/services/config')
//return window.fetch('https://', {}).then(res => res.json())
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' })
}
......
......@@ -919,8 +919,10 @@ export default {
}
converterApi(para).then(res => {
this.tableData = res.list.map((item, index) => {
const TYPELIST = ['--','毛利','收入','固定']
// let ruleType = item.shopProfitType == 1 ? '毛利' : '收入'
let ruleType = item.shopTrafficMoneyCalculateType == 1 ? '毛利' : '收入'
// let ruleType = item.shopTrafficMoneyCalculateType == 1 ? '毛利' : '收入'
let ruleType = TYPELIST[item.shopTrafficMoneyCalculateType]
item.rule = `${ruleType}${item.shopTrafficMoneyCalculateValue}%`
item.divisionTypeName = item.divisionType == 1 ? '线下对账' : '线上分账'
item.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!