提交 13d56659 authored 作者: matian's avatar matian

bug修复

上级 f954161d
...@@ -52,6 +52,8 @@ ...@@ -52,6 +52,8 @@
v-on="$listeners" v-on="$listeners"
style="height: 100%" style="height: 100%"
ref="table" ref="table"
hright="250"
max-height="750"
> >
<template v-for="item in currentColumns"> <template v-for="item in currentColumns">
<el-table-column v-bind="item" :key="item.prop" v-if="visible(item)"> <el-table-column v-bind="item" :key="item.prop" v-if="visible(item)">
...@@ -322,6 +324,7 @@ export default { ...@@ -322,6 +324,7 @@ export default {
this.$message.success('保存成功') this.$message.success('保存成功')
this.columnsOptionsVisible = false this.columnsOptionsVisible = false
this.customColumns = this.editableColumns this.customColumns = this.editableColumns
window.localStorage.setItem('customColumns', this.customColumns)
}) })
}, },
// 获取用户设置的列表项 // 获取用户设置的列表项
......
...@@ -243,6 +243,7 @@ export default { ...@@ -243,6 +243,7 @@ export default {
} }
}, },
created() { created() {
window.localStorage.getItem('customColumns')
getCondition().then(res => { getCondition().then(res => {
this.conditionList = res.data this.conditionList = res.data
}) })
......
...@@ -65,6 +65,8 @@ export default { ...@@ -65,6 +65,8 @@ export default {
) )
} }
} }
} else if (this.dealList.service_fee_rules_type === '' || this.dealList.service_fee_rules_type === '0') {
return this.dealList.service_charge_ratio
} }
} }
} }
......
...@@ -57,21 +57,51 @@ ...@@ -57,21 +57,51 @@
</tr> </tr>
<tr> <tr>
<th>首款首次缴费时间</th> <th>首款首次缴费时间</th>
<td colspan="2">{{ dealList.first_first_time }}</td> <td colspan="2">{{ firstFirstTime }}</td>
<th>首款末次缴费时间</th> <th>首款末次缴费时间</th>
<td colspan="2">{{ dealList.first_last_time }}</td> <td colspan="2">{{ firstLastTime }}</td>
</tr> </tr>
<tr> <tr>
<th>尾款首次缴费时间</th> <th>尾款首次缴费时间</th>
<td colspan="2">{{ dealList.final_first_time }}</td> <td colspan="2">{{ finalFirstTime }}</td>
<th>尾款末次缴费时间</th> <th>尾款末次缴费时间</th>
<td colspan="2">{{ dealList.final_last_time }}</td> <td colspan="2">{{ finalLastTime }}</td>
</tr> </tr>
</table> </table>
</template> </template>
<script> <script>
export default { export default {
computed: {
finalLastTime() {
if (this.dealList.final_last_time === '1970-01-01') {
return '-'
} else {
return this.dealList.final_last_time
}
},
finalFirstTime() {
if (this.dealList.final_first_time === '1970-01-01') {
return '-'
} else {
return this.dealList.final_first_time
}
},
firstLastTime() {
if (this.dealList.first_last_time === '1970-01-01') {
return '-'
} else {
return this.dealList.first_last_time
}
},
firstFirstTime() {
if (this.dealList.first_first_time === '1970-01-01') {
return '-'
} else {
return this.dealList.first_first_time
}
}
},
props: { props: {
dealList: { dealList: {
type: Object, type: Object,
......
...@@ -51,10 +51,10 @@ export default { ...@@ -51,10 +51,10 @@ export default {
this.dealList.secondary_service_fee_rules_type === '1' || this.dealList.secondary_service_fee_rules_type === '1' ||
this.dealList.secondary_service_fee_rules_type === '3' this.dealList.secondary_service_fee_rules_type === '3'
) { ) {
if (this.dealList.secondary_service_charge_ratio) { if (!this.dealList.secondary_service_charge_ratio) {
return this.dealList.secondary_service_charge_ratio + '%'
} else {
return 0 + '%' return 0 + '%'
} else {
return this.dealList.secondary_service_charge_ratio + '%'
} }
} else { } else {
if (this.dealList.secondary_service_charge_ratio) { if (this.dealList.secondary_service_charge_ratio) {
...@@ -67,6 +67,11 @@ export default { ...@@ -67,6 +67,11 @@ export default {
100.0 + 100.0 +
'%' '%'
) )
} else if (
this.dealList.secondary_service_fee_rules_type === '' ||
this.dealList.secondary_service_fee_rules_type === '0'
) {
return this.dealList.secondary_service_charge_ratio
} }
} }
} }
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<app-card title="渠道信息"> <app-card title="渠道信息">
<Channel :dealList="dealList" /> <Channel :dealList="dealList" />
</app-card> </app-card>
<app-card title="二级渠道信息"> <app-card title="二级渠道信息" v-show="this.dealList.secondary_channel_id !== ''">
<second-channel :dealList="dealList" /> <second-channel :dealList="dealList" />
</app-card> </app-card>
<app-card title="支付待确认记录"> <app-card title="支付待确认记录">
...@@ -116,6 +116,7 @@ export default { ...@@ -116,6 +116,7 @@ export default {
payDetail(params) payDetail(params)
.then(res => { .then(res => {
this.dealList = res.data.list[0] this.dealList = res.data.list[0]
console.log(this.dealList, '----')
}) })
.catch(error => { .catch(error => {
this.$message.error(error.message) this.$message.error(error.message)
......
...@@ -324,6 +324,8 @@ export default { ...@@ -324,6 +324,8 @@ export default {
) )
} }
} }
} else if (row.service_fee_rules_type === '' || row.service_fee_rules_type === '0') {
return row.service_charge_ratio
} }
} }
}, },
...@@ -379,6 +381,7 @@ export default { ...@@ -379,6 +381,7 @@ export default {
} }
}, },
created() { created() {
window.localStorage.getItem('customColumns')
console.log(11111) console.log(11111)
this.fetchCondition() // 获取过滤条件 this.fetchCondition() // 获取过滤条件
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论