|
|
@@ -42,8 +42,23 @@
|
|
|
:sortable="item.sortable"
|
|
|
:width="item.width">
|
|
|
<template #default="{ row }">
|
|
|
- <span v-if="item.prop === 'custStatus'">
|
|
|
- {{ row.custStatus == 10 ? '正常' : '异常' }}
|
|
|
+ <span v-if="item.prop === 'estTransPrice'">
|
|
|
+ {{ formatPrice(row.estTransPrice) }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.prop === 'approStatus'">
|
|
|
+ {{ selectDictLabel(approStatusOptions, row.approStatus) }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.prop === 'nboStatus'">
|
|
|
+ {{ selectDictLabel(nboStatusOptions, row.nboStatus) }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.prop === 'nboPhase'">
|
|
|
+ {{ selectDictLabel(nboPhaseOptions, row.nboPhase) }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.prop === 'finalFollowTime'">
|
|
|
+ {{ parseTime(row.finalFollowTime, '{y}-{m}-{d} {h}:{i}') }}
|
|
|
+ </span>
|
|
|
+ <span v-else-if="item.prop === 'nextFollowTime'">
|
|
|
+ {{ parseTime(row.nextFollowTime, '{y}-{m}-{d} {h}:{i}') }}
|
|
|
</span>
|
|
|
<span v-else>{{ row[item.prop] }}</span>
|
|
|
</template>
|
|
|
@@ -131,7 +146,7 @@
|
|
|
{
|
|
|
label: '项目金额',
|
|
|
width: 'auto',
|
|
|
- prop: 'nboBudget',
|
|
|
+ prop: 'estTransPrice',
|
|
|
},
|
|
|
{
|
|
|
label: '最后跟进时间',
|
|
|
@@ -149,6 +164,10 @@
|
|
|
layout: 'total, sizes, prev, pager, next, jumper',
|
|
|
total: 0,
|
|
|
selectRows: [],
|
|
|
+ nboTypeOptions: [],
|
|
|
+ nboPhaseOptions: [],
|
|
|
+ nboStatusOptions: [],
|
|
|
+ approStatusOptions: [],
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -157,14 +176,28 @@
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.fetchData()
|
|
|
+ this.getDicts('proj_nbo_type').then((response) => {
|
|
|
+ this.nboTypeOptions = response.data.values || []
|
|
|
+ })
|
|
|
+ this.getDicts('proj_nbo_phase').then((response) => {
|
|
|
+ this.nboPhaseOptions = response.data.values || []
|
|
|
+ })
|
|
|
+ this.getDicts('proj_nbo_status').then((response) => {
|
|
|
+ this.nboStatusOptions = response.data.values || []
|
|
|
+ })
|
|
|
+ this.getDicts('proj_appro_status').then((response) => {
|
|
|
+ this.approStatusOptions = response.data.values || []
|
|
|
+ })
|
|
|
+ // this.fetchData()
|
|
|
},
|
|
|
methods: {
|
|
|
open() {
|
|
|
this.innerVisible = true
|
|
|
+ this.fetchData()
|
|
|
},
|
|
|
close() {
|
|
|
this.selectRows = []
|
|
|
+ this.$refs.businessTable.clearSelection()
|
|
|
},
|
|
|
save() {
|
|
|
this.innerVisible = false
|