Commit e587040a by chenwq

增值-精品升级-套餐

1 parent b76375f3
......@@ -559,7 +559,7 @@ export default {
},
{
value: 'shopTrafficMoney',
label: '分账金额/元',
label: '流量费/元',
level: 3,
enumId: 'shopTrafficMoney',
width: '110',
......@@ -714,7 +714,7 @@ export default {
width: '200'
},
{
label: '分账金额/元',
label: '流量费/元',
prop: 'shopTrafficMoney',
width: '110',
align: 'right'
......@@ -777,23 +777,23 @@ export default {
},
mounted() {
//修改字段名,增减字段都在这里操作就行
if (this.pageName != 'insurance') {
this.fieldList = this.fieldList.filter(item => !item.filter)
this.$nextTick(() => {
const _target = this.newTableParams.tableColumns?.find(item => item.label == '导流方利润')
if (_target) {
const _targetIdx = _target?.children?.findIndex(item => item.prop == 'setMealRule')
if (_targetIdx > -1) {
_target?.children?.splice(_targetIdx, 1)
}
}
})
}else{
const target = this.fieldList.find(item => item.value == 'shopTrafficMoney')
if(target) {
target.label = '流量费/元'
}
}
// if (this.pageName != 'insurance') {
// this.fieldList = this.fieldList.filter(item => !item.filter)
// this.$nextTick(() => {
// const _target = this.newTableParams.tableColumns?.find(item => item.label == '导流方利润')
// if (_target) {
// const _targetIdx = _target?.children?.findIndex(item => item.prop == 'setMealRule')
// if (_targetIdx > -1) {
// _target?.children?.splice(_targetIdx, 1)
// }
// }
// })
// }else{
// const target = this.fieldList.find(item => item.value == 'shopTrafficMoney')
// if(target) {
// target.label = '流量费/元'
// }
// }
let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate)
let endDate = utils.dateFormat(new Date())
......@@ -813,7 +813,7 @@ export default {
methods: {
objectSpanMethod({ row, column, rowIndex, columnIndex }) {
// column没有prop,只能用label判断
const mergeColNameList = ['序号', '主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', `${this.pageName=='insurance' ? '流量费' : '分账金额'}/元`, '分账类型', '操作']
const mergeColNameList = ['序号', '主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', `流量费/元`, '分账类型', '操作']
return {
rowspan: mergeColNameList.includes(column.label) ? row.rowspan : column.label == '套餐规则' ? row.setMealRowspan : 1,
colspan: 1
......@@ -836,7 +836,7 @@ export default {
for (let j = 0; j < tr.children.length; j++) {
const td = tr.children[j]
if (tr.children.length - 1 == j) {
console.log(tr.children[j], 11111)
// console.log(tr.children[j], 11111)
}
//#region
td.style.background = '#f4f4fc'
......@@ -911,7 +911,7 @@ export default {
}
},
setClass({ row, column, rowIndex, columnIndex }) {
const mergeColNameList = ['主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', `${this.pageName=='insurance' ? '流量费' : '分账金额'}/元`, '分账类型']
const mergeColNameList = ['主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', `流量费/元`, '分账类型']
if (columnIndex == 1) return 'add-right-border'
return (mergeColNameList.includes(column.label) && row.rowspan > 1) || (column.label == '套餐规则' && row.setMealRowspan > 1) ? 'add-border' : ''
},
......@@ -1164,7 +1164,7 @@ export default {
const _obj = {
...item,
tableNum: _idx + 1,
tableNum: _idx + (para.pageNum - 1) * para.pageSize + 1,
rowspan: 1,
setMealRowspan: eleIdx == 0 ? subOrderList.length : 0,
id,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!