diff --git a/src/views/finance/component/addCallbacks.vue b/src/views/finance/component/addCallbacks.vue
index eeb87f8..2096acc 100644
--- a/src/views/finance/component/addCallbacks.vue
+++ b/src/views/finance/component/addCallbacks.vue
@@ -100,6 +100,7 @@
:active-value="1"
:inactive-value="0"
active-text="规范"
+ style="width: 300px;"
inactive-text="不规范"
>
diff --git a/src/views/finance/scheduleList.vue b/src/views/finance/scheduleList.vue
index 7a4d158..ff1a7fe 100644
--- a/src/views/finance/scheduleList.vue
+++ b/src/views/finance/scheduleList.vue
@@ -222,6 +222,35 @@ export default {
},
data() {
return {
+ ways: [
+ {
+ id: 1,
+ value: "上门"
+ },
+ {
+ id: 2,
+ value: "电话"
+ }
+ ],
+ satisfys: [
+ {
+ id: 1,
+ value: "非常满意"
+ },
+ {
+ id: 2,
+ value: "满意"
+ },
+ {
+ id: 3,
+ value: "一般"
+ },
+ {
+ id: 4,
+ value: "不满意"
+ }
+ ],
+
pickedYear: new Date(),
pickedMonth:new Date(),
selectedRow:{},
@@ -264,6 +293,115 @@ export default {
label:'状态',
width:120
},
+ {
+ label: '回访',
+ width: 200,
+ customFn: row => (
+
+
+
+
+ 已回访
+
+
+ { row.schedule_list_callback?.reduce((pre, cur) => pre + (this.$moment().valueOf() >= this.$moment(cur.visit_time).valueOf() ? 1 : 0),0) ?? 0 }
+
+
+
+ {
+ return h('span',row.is_standard ? '是' : '否')
+ }
+ },
+ {
+ key: 'way',
+ title: '回访方式',
+ width: 180,
+ render: (h, { row }) => {
+ return h('span',this.ways.find(i => i.id === row.way)?.value)
+ }
+ },
+ {
+ key: 'satisfy',
+ title: '满意度',
+ width: 140,
+ render: (h, { row }) => {
+ return h('span',this.satisfys.find(i => i.id === row.satisfy)?.value)
+ }
+ }
+ ]}
+ data={row.schedule_list_callback?.filter(i => this.$moment().valueOf() >= this.$moment(i.visit_time))}>
+
+
+
+
+
+
+ 未回访
+
+
+ { row.schedule_list_callback?.reduce((pre, cur) => pre + (this.$moment().valueOf() < this.$moment(cur.visit_time).valueOf() ? 1 : 0),0) ?? 0 }
+
+
+
+ {
+ return h('span',row.is_standard ? '是' : '否')
+ }
+ },
+ {
+ key: 'way',
+ title: '回访方式',
+ width: 180,
+ render: (h, { row }) => {
+ return h('span',this.ways.find(i => i.id === row.way)?.value)
+ }
+ },
+ {
+ key: 'satisfy',
+ title: '满意度',
+ width: 140,
+ render: (h, { row }) => {
+ return h('span',this.satisfys.find(i => i.id === row.satisfy)?.value)
+ }
+ }
+ ]}
+ data={row.schedule_list_callback?.filter(i => this.$moment().valueOf() < this.$moment(i.visit_time))}>
+
+
+
+ )
+ },
{
label:'计划时间',
width:200,