Commit c488188b by zhangquan

修改数字化延保字段

1 parent abd54b65
...@@ -776,6 +776,7 @@ export default { ...@@ -776,6 +776,7 @@ export default {
} }
}, },
mounted() { mounted() {
//修改字段名,增减字段都在这里操作就行
if (this.pageName != 'insurance') { if (this.pageName != 'insurance') {
this.fieldList = this.fieldList.filter(item => !item.filter) this.fieldList = this.fieldList.filter(item => !item.filter)
this.$nextTick(() => { this.$nextTick(() => {
...@@ -787,6 +788,11 @@ export default { ...@@ -787,6 +788,11 @@ export default {
} }
} }
}) })
}else{
const target = this.fieldList.find(item => item.value == 'shopTrafficMoney')
if(target) {
target.label = '流量费/元'
}
} }
let openInfo = JSON.parse(localStorage.getItem('openInfo')) let openInfo = JSON.parse(localStorage.getItem('openInfo'))
let startDate = utils.dateFormat(openInfo.openDate) let startDate = utils.dateFormat(openInfo.openDate)
...@@ -807,7 +813,7 @@ export default { ...@@ -807,7 +813,7 @@ export default {
methods: { methods: {
objectSpanMethod({ row, column, rowIndex, columnIndex }) { objectSpanMethod({ row, column, rowIndex, columnIndex }) {
// column没有prop,只能用label判断 // column没有prop,只能用label判断
const mergeColNameList = ['序号', '主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', '分账金额/元', '分账类型', '操作'] const mergeColNameList = ['序号', '主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', `${this.pageName=='insurance' ? '流量费' : '分账金额'}/元`, '分账类型', '操作']
return { return {
rowspan: mergeColNameList.includes(column.label) ? row.rowspan : column.label == '套餐规则' ? row.setMealRowspan : 1, rowspan: mergeColNameList.includes(column.label) ? row.rowspan : column.label == '套餐规则' ? row.setMealRowspan : 1,
colspan: 1 colspan: 1
...@@ -905,7 +911,7 @@ export default { ...@@ -905,7 +911,7 @@ export default {
} }
}, },
setClass({ row, column, rowIndex, columnIndex }) { setClass({ row, column, rowIndex, columnIndex }) {
const mergeColNameList = ['主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', '分账金额/元', '分账类型'] const mergeColNameList = ['主订单编号', '交易参考号', '客户姓名', '转化员姓名', '销售顾问', '支付方式', '支付时间', '分账对象', '二级流量方', '整单规则', `${this.pageName=='insurance' ? '流量费' : '分账金额'}/元`, '分账类型']
if (columnIndex == 1) return 'add-right-border' if (columnIndex == 1) return 'add-right-border'
return (mergeColNameList.includes(column.label) && row.rowspan > 1) || (column.label == '套餐规则' && row.setMealRowspan > 1) ? 'add-border' : '' return (mergeColNameList.includes(column.label) && row.rowspan > 1) || (column.label == '套餐规则' && row.setMealRowspan > 1) ? 'add-border' : ''
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!