|
@@ -48,13 +48,11 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="6" :xl="6">
|
|
|
<el-form-item label="" label-width="0">
|
|
|
- <el-button type="primary" @click="handleQuery" :loading="state.loading">
|
|
|
- <SvgIcon name="ele-Search" class="mr5" />查询
|
|
|
- </el-button>
|
|
|
- <el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
|
|
|
- <SvgIcon name="ele-Refresh" class="mr5" />重置
|
|
|
- </el-button>
|
|
|
- <el-button @click="drawer = true" class="default-button"> <SvgIcon name="ele-Search" class="mr5" />更多查询</el-button>
|
|
|
+ <el-button type="primary" @click="handleQuery" :loading="state.loading"> <SvgIcon name="ele-Search" class="mr5" />查询 </el-button>
|
|
|
+ <el-button @click="resetQuery(ruleFormRef)" class="default-button" :loading="state.loading">
|
|
|
+ <SvgIcon name="ele-Refresh" class="mr5" />重置
|
|
|
+ </el-button>
|
|
|
+ <el-button @click="drawer = true" class="default-button"> <SvgIcon name="ele-Search" class="mr5" />更多查询</el-button>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
@@ -143,19 +141,16 @@
|
|
|
import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
import { FormInstance } from 'element-plus';
|
|
|
import { formatDate } from '@/utils/formatTime';
|
|
|
-import { useRouter } from 'vue-router';
|
|
|
import { visitList, visitSearchBaseData } from '@/api/business/visit';
|
|
|
import { defaultTimeStartEnd, shortcuts } from '@/utils/constants';
|
|
|
-import Other from "@/utils/other";
|
|
|
+import Other from '@/utils/other';
|
|
|
|
|
|
// 引入组件
|
|
|
const VisitDetailCom = defineAsyncComponent(() => import('@/views/business/visit/component/Visit-detail.vue')); // 回访
|
|
|
const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
|
|
|
|
|
|
// 定义变量内容
|
|
|
-const router = useRouter(); // 路由
|
|
|
const proTableRef = ref<RefType>(); // 表格ref
|
|
|
-const searchCol = ref(true); // 展开/收起
|
|
|
const fastSearch = ref('all'); // tab位置
|
|
|
const fastSearchChange = (val: string) => {
|
|
|
fastSearch.value = val;
|
|
@@ -172,10 +167,6 @@ const fastSearchChange = (val: string) => {
|
|
|
}
|
|
|
handleQuery();
|
|
|
};
|
|
|
-// 展开/收起
|
|
|
-const closeSearch = () => {
|
|
|
- searchCol.value = !searchCol.value;
|
|
|
-};
|
|
|
// 表格配置项
|
|
|
const columns = ref<any[]>([
|
|
|
{ prop: 'order.no', label: '工单编码', minWidth: 140 },
|
|
@@ -184,7 +175,7 @@ const columns = ref<any[]>([
|
|
|
{ prop: 'order.sourceChannel', label: '来源渠道', minWidth: 100 },
|
|
|
{ prop: 'visitStateText', label: '回访状态', minWidth: 100 },
|
|
|
{ prop: 'visitTypeText', label: '回访方式', minWidth: 100 },
|
|
|
- {prop: 'isEffectiveAiVisitText', label: '有效智能回访', minWidth: 110 },
|
|
|
+ { prop: 'isEffectiveAiVisitText', label: '有效智能回访', minWidth: 110 },
|
|
|
{ prop: 'order.acceptType', label: '受理类型', minWidth: 100 },
|
|
|
{ prop: 'order.hotspotName', label: '热点分类', minWidth: 150 },
|
|
|
{ prop: 'order.acceptorName', label: '受理人', minWidth: 120 },
|
|
@@ -248,11 +239,11 @@ const state = reactive<any>({
|
|
|
IsCountersign: null, // 是否会签
|
|
|
FiledType: null, // 归档类型
|
|
|
IsProvince: null,
|
|
|
- employeeName:null,
|
|
|
- crTime:[],
|
|
|
- StartTime:null,
|
|
|
- EndTime:null,
|
|
|
- IsEffectiveAiVisit:null,
|
|
|
+ employeeName: null,
|
|
|
+ crTime: [],
|
|
|
+ StartTime: null,
|
|
|
+ EndTime: null,
|
|
|
+ IsEffectiveAiVisit: null,
|
|
|
},
|
|
|
tableData: [], //表单
|
|
|
loading: false, // 加载
|
|
@@ -284,10 +275,10 @@ const handleQuery = () => {
|
|
|
const requestParams = ref({});
|
|
|
const queryList = () => {
|
|
|
state.loading = true;
|
|
|
- requestParams.value = Other.deepClone(state.queryParams);
|
|
|
- requestParams.value.StartTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[0];
|
|
|
- requestParams.value.EndTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
|
|
|
- Reflect.deleteProperty(requestParams.value, 'crTime');
|
|
|
+ requestParams.value = Other.deepClone(state.queryParams);
|
|
|
+ requestParams.value.StartTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[0];
|
|
|
+ requestParams.value.EndTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
|
|
|
+ Reflect.deleteProperty(requestParams.value, 'crTime');
|
|
|
visitList(requestParams.value)
|
|
|
.then((res: any) => {
|
|
|
state.tableData = res.result?.items ?? [];
|