|
|
@@ -20,87 +20,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
-<!-- <!– 查询区域 –>-->
|
|
|
-<!-- <div class="table-page-search-wrapper">-->
|
|
|
-<!-- <a-form layout="inline" @keyup.enter.native="searchQuery">-->
|
|
|
-<!-- <a-row :gutter="24">-->
|
|
|
-<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">-->
|
|
|
-<!-- <a-form-item label="任务名称">-->
|
|
|
-<!-- <j-input placeholder="请输入任务名称" v-model="queryParam.taskName"></j-input>-->
|
|
|
-<!-- </a-form-item>-->
|
|
|
-<!-- </a-col>-->
|
|
|
-<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">-->
|
|
|
-<!-- <a-form-item label="任务状态">-->
|
|
|
-<!-- <j-dict-select-tag placeholder="请选择任务状态" v-model="queryParam.taskState" dictCode="sms_check_task_state"/>-->
|
|
|
-<!-- </a-form-item>-->
|
|
|
-<!-- </a-col>-->
|
|
|
-<!-- <template v-if="toggleSearchStatus">-->
|
|
|
-<!-- <a-col :xl="10" :lg="11" :md="12" :sm="24">-->
|
|
|
-<!-- <a-form-item label="开始时间">-->
|
|
|
-<!-- <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" class="query-group-cust" v-model="queryParam.taskStartTime_begin"></j-date>-->
|
|
|
-<!-- <span class="query-group-split-cust"></span>-->
|
|
|
-<!-- <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" class="query-group-cust" v-model="queryParam.taskStartTime_end"></j-date>-->
|
|
|
-<!-- </a-form-item>-->
|
|
|
-<!-- </a-col>-->
|
|
|
-<!-- <a-col :xl="10" :lg="11" :md="12" :sm="24">-->
|
|
|
-<!-- <a-form-item label="结束时间">-->
|
|
|
-<!-- <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择开始时间" class="query-group-cust" v-model="queryParam.taskEndTime_begin"></j-date>-->
|
|
|
-<!-- <span class="query-group-split-cust"></span>-->
|
|
|
-<!-- <j-date :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" placeholder="请选择结束时间" class="query-group-cust" v-model="queryParam.taskEndTime_end"></j-date>-->
|
|
|
-<!-- </a-form-item>-->
|
|
|
-<!-- </a-col>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">-->
|
|
|
-<!-- <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">-->
|
|
|
-<!-- <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>-->
|
|
|
-<!-- <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>-->
|
|
|
-<!-- <a @click="handleToggleSearch" style="margin-left: 8px">-->
|
|
|
-<!-- {{ toggleSearchStatus ? '收起' : '展开' }}-->
|
|
|
-<!-- <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>-->
|
|
|
-<!-- </a>-->
|
|
|
-<!-- </span>-->
|
|
|
-<!-- </a-col>-->
|
|
|
-<!-- </a-row>-->
|
|
|
-<!-- </a-form>-->
|
|
|
-<!-- </div>-->
|
|
|
-
|
|
|
-<!-- <!– 操作按钮区域 –>-->
|
|
|
-<!-- <div class="table-operator">-->
|
|
|
-<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>-->
|
|
|
-<!-- <a-button type="primary" icon="download" @click="handleExportXls('稽核任务')">导出</a-button>-->
|
|
|
-<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
|
|
|
-<!-- <a-button type="primary" icon="import">导入</a-button>-->
|
|
|
-<!-- </a-upload>-->
|
|
|
-<!-- <!– 高级查询区域 –>-->
|
|
|
-<!-- <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>-->
|
|
|
-<!-- <a-dropdown v-if="selectedRowKeys.length > 0">-->
|
|
|
-<!-- <a-menu slot="overlay">-->
|
|
|
-<!-- <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>-->
|
|
|
-<!-- </a-menu>-->
|
|
|
-<!-- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>-->
|
|
|
-<!-- </a-dropdown>-->
|
|
|
-<!-- </div>-->
|
|
|
- <!-- 查询区域-END -->
|
|
|
- <!--筛选条件-->
|
|
|
+ <!-- 查询区域 -->
|
|
|
<a-col :span="19">
|
|
|
- <a-form layout="inline">
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-form-item label="任务状态">
|
|
|
- <j-dict-select-tag placeholder="请选择任务状态" v-model="queryParam.taskState" dictCode="sms_check_task_state"/>
|
|
|
- </a-form-item>
|
|
|
- <a-col :xl="16" :lg="7" :md="8" :sm="24">
|
|
|
- <a-form-item label="稽核工作日期范围">
|
|
|
- <a-range-picker @change="handleChange" v-model:value="taskDate"/>
|
|
|
- <a-radio-group @change="changeReportDate()" style="padding-left: 10px" v-model:value="latestDate" button-style="solid">
|
|
|
- <a-radio-button value="7">最近7天</a-radio-button>
|
|
|
- <a-radio-button value="30">最近30天</a-radio-button>
|
|
|
- <a-radio-button value="180">最近180天</a-radio-button>
|
|
|
- </a-radio-group>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
+ <div class="table-page-search-wrapper">
|
|
|
+ <a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="客户编号">
|
|
|
+ <j-input placeholder="请输入客户编号" v-model:value="customerNo"></j-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="客户名称">
|
|
|
+ <j-input placeholder="客户名称" v-model:value="customerName" ></j-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="任务名称">
|
|
|
+ <j-input placeholder="任务名称" v-model:value="taskName" ></j-input>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <template v-if="toggleSearchStatus">
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="任务状态">
|
|
|
+ <j-dict-select-tag placeholder="请选择任务状态" v-model:value="taskState" dictCode="sms_check_task_state" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <a-form-item label="稽核类型">
|
|
|
+ <j-dict-select-tag placeholder="请选择稽核类型" v-model:value="taskType" dictCode="sms_check_task_type" />
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :xl="10" :lg="11" :md="12" :sm="24">
|
|
|
+ <a-form-item label="开始时间">
|
|
|
+ <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择开始时间" class="query-group-cust" v-model:value="startDate"></j-date>
|
|
|
+
|
|
|
+ </a-form-item>
|
|
|
+ <a-form-item label="结束时间">
|
|
|
+ <j-date :show-time="true" date-format="YYYY-MM-DD" placeholder="请选择结束时间" class="query-group-cust" v-model:value="endDate"></j-date>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </template>
|
|
|
+ <a-col :xl="6" :lg="7" :md="8" :sm="24">
|
|
|
+ <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"></span>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
+ </div>
|
|
|
</a-col>
|
|
|
+ <!-- 操作按钮区域 -->
|
|
|
+ <div class="table-operator">
|
|
|
+ <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
|
|
+ <a-button type="primary" icon="download" @click="handleExportXls('稽核统计')">导出</a-button>
|
|
|
+ <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
|
|
|
+ <a-button type="primary" icon="import">导入</a-button>
|
|
|
+ </a-upload>
|
|
|
+ <!-- 高级查询区域 -->
|
|
|
+ <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
|
|
|
+ <a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
+ <a-menu slot="overlay">
|
|
|
+ <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
|
|
|
+ </a-menu>
|
|
|
+ <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
|
|
|
+ </a-dropdown>
|
|
|
+
|
|
|
+ <a-button type="primary" @click="searchQuery()" icon="search" >查询</a-button>
|
|
|
+ <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
|
+ <a @click="handleToggleSearch" style="margin-left: 8px">
|
|
|
+ {{ toggleSearchStatus ? '收起' : '展开' }}
|
|
|
+ <a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
|
|
+ </a>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <!-- 查询区域-END -->
|
|
|
|
|
|
<a-col :span="5" style="padding-top: 10px">
|
|
|
<a-card>
|
|
|
@@ -113,7 +106,6 @@
|
|
|
style="margin-right: 10px"
|
|
|
>
|
|
|
<template #prefix>
|
|
|
- <arrow-up-outlined/>
|
|
|
</template>
|
|
|
</a-statistic>
|
|
|
</a-card>
|
|
|
@@ -130,7 +122,7 @@
|
|
|
style="margin-right: 50px"
|
|
|
>
|
|
|
<template #prefix>
|
|
|
- <arrow-up-outlined/>
|
|
|
+
|
|
|
</template>
|
|
|
</a-statistic>
|
|
|
</a-card>
|
|
|
@@ -147,7 +139,7 @@
|
|
|
style="margin-right: 50px"
|
|
|
>
|
|
|
<template #prefix>
|
|
|
- <arrow-up-outlined/>
|
|
|
+
|
|
|
</template>
|
|
|
</a-statistic>
|
|
|
</a-card>
|
|
|
@@ -163,7 +155,7 @@
|
|
|
style="margin-right: 50px"
|
|
|
>
|
|
|
<template #prefix>
|
|
|
- <arrow-up-outlined/>
|
|
|
+
|
|
|
</template>
|
|
|
</a-statistic>
|
|
|
</a-card>
|
|
|
@@ -179,7 +171,7 @@
|
|
|
style="margin-right: 50px"
|
|
|
>
|
|
|
<template #prefix>
|
|
|
- <arrow-up-outlined/>
|
|
|
+
|
|
|
</template>
|
|
|
</a-statistic>
|
|
|
</a-card>
|
|
|
@@ -237,10 +229,11 @@
|
|
|
</span>
|
|
|
|
|
|
<span v-has="'task:check:list:notice'" v-if="record.checkState != 2 && record.checkState != 3 && record.checkState != 5">
|
|
|
- <a @click="noticeDeal(record)">催办</a>
|
|
|
+ <a @click="showCheckList(record)">详情</a>
|
|
|
<a-divider type="vertical" />
|
|
|
</span>
|
|
|
|
|
|
+
|
|
|
<a-dropdown>
|
|
|
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
|
|
|
<a-menu slot="overlay">
|
|
|
@@ -262,9 +255,9 @@
|
|
|
<template v-slot:customerName="text, record">
|
|
|
<a @click="showCheckDetail(record)">{{text}}</a>
|
|
|
</template>
|
|
|
- <template v-slot:checkState="status">
|
|
|
- <a-badge :status="status | statusTypeFilter" :text="status | statusFilter"/>
|
|
|
- </template>
|
|
|
+ <!-- <template v-slot:checkState="status">-->
|
|
|
+ <!-- <a-badge :status="status | statusTypeFilter" :text="status | statusFilter"/>-->
|
|
|
+ <!-- </template>-->
|
|
|
<template v-slot:rowIndex="text,records,index">
|
|
|
{{ (ipagination.current - 1) * ipagination.pageSize + Number(index)+1 }}
|
|
|
</template>
|
|
|
@@ -295,7 +288,12 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
description: '稽核工作日志管理页面',
|
|
|
- taskDate: '',
|
|
|
+ startDate: '',
|
|
|
+ endDate:'',
|
|
|
+ superFieldList:[],
|
|
|
+ taskDate:'',
|
|
|
+ customerNo:'',
|
|
|
+ customerName:'',
|
|
|
url: {
|
|
|
"statusRefuse": "/smsCheck/customerInfo/status/refuse",
|
|
|
"taskList": "/smsCheck/task/list",
|
|
|
@@ -314,7 +312,8 @@ export default {
|
|
|
notice: "/smsCheck/customerInfo/notice",
|
|
|
editCheck: "/smsCheck/customerInfo/edit/check/state",
|
|
|
dataDelete: "/smsCheck/customerData/clear",
|
|
|
- exportXlsUrl: "smsCheck/customerInfo/exportXls",
|
|
|
+ exportXlsUrl: "/smsCheck/statistics/exportXls",
|
|
|
+ importExcelUrl:""
|
|
|
},
|
|
|
columns: [
|
|
|
{
|
|
|
@@ -412,13 +411,14 @@ export default {
|
|
|
statusAuditPieData: [],
|
|
|
canvas: {},
|
|
|
taskId:'',
|
|
|
-
|
|
|
+ taskName:'',
|
|
|
+ taskState:'',
|
|
|
+ taskType:''
|
|
|
}
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
|
|
|
-
|
|
|
const waterMarkText = '北区稽核平台';
|
|
|
this.canvas = document.createElement('canvas');
|
|
|
const ctx = this.canvas.getContext('2d');
|
|
|
@@ -430,33 +430,73 @@ export default {
|
|
|
ctx.translate(50, 50);
|
|
|
ctx.rotate(-Math.PI / 4);
|
|
|
ctx.fillText(waterMarkText, 0, 0);
|
|
|
- this.statisticsCount(this.taskId);
|
|
|
//初始化日期 默认最近180天
|
|
|
- this.taskDate = [this.getRecentDay(parseInt(this.latestDate)), this.getRecentDay(0)]
|
|
|
-
|
|
|
+ //this.taskDate = [this.getRecentDay(parseInt(this.latestDate)), this.getRecentDay(0)]
|
|
|
//稽核任务列表(树)
|
|
|
this.taskList();
|
|
|
-
|
|
|
- this.abnormalCreateTime(this.taskId);
|
|
|
this.queryParam.taskState = this.$route.query.state;
|
|
|
|
|
|
- this.selectList();
|
|
|
+ this.searchQuery();
|
|
|
|
|
|
- this.loadData(null,queryParam);
|
|
|
- //this.getSuperFieldList();
|
|
|
+ // this.getSuperFieldList();
|
|
|
|
|
|
},
|
|
|
- computed: {},
|
|
|
|
|
|
+ computed: {
|
|
|
+ importExcelUrl: function(){
|
|
|
+ return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
|
|
|
+ },
|
|
|
+ },
|
|
|
methods: {
|
|
|
|
|
|
+
|
|
|
+ searchReset(){
|
|
|
+ this.taskType='',
|
|
|
+ this.customerName='',
|
|
|
+ this.startDate='',
|
|
|
+ this.endDate='',
|
|
|
+ this.taskName='',
|
|
|
+ this.customerNo=''
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
+ searchQuery(){
|
|
|
+ //直接加载urT. ist接口数据
|
|
|
+ let queryParam = {
|
|
|
+ "customerName":this.customerName,
|
|
|
+ "startDate": this.startDate,
|
|
|
+ "endDate": this.endDate,
|
|
|
+ "infoId":this.taskId,
|
|
|
+ "taskName":this.taskName,
|
|
|
+ "customerNo":this.customerNo,
|
|
|
+ "taskType":this.taskType
|
|
|
+ }
|
|
|
+ this.statisticsCount(queryParam);
|
|
|
+ this.selectList();
|
|
|
+ },
|
|
|
+
|
|
|
+ getSuperFieldList(){
|
|
|
+ let fieldList=[];
|
|
|
+ fieldList.push({type:'string',value:'taskName',text:'任务名称',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'taskState',text:'任务状态',dictCode:'sms_check_task_state'})
|
|
|
+ fieldList.push({type:'datetime',value:'taskStartTime',text:'任务开始时间'})
|
|
|
+ fieldList.push({type:'datetime',value:'taskEndTime',text:'任务结束时间'})
|
|
|
+ fieldList.push({type:'string',value:'description',text:'描述',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'fileUrl',text:'文件路径',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'customerCount',text:'客户总数',dictCode:''})
|
|
|
+ fieldList.push({type:'string',value:'checkCount',text:'稽核数',dictCode:''})
|
|
|
+ this.superFieldList = fieldList
|
|
|
+ },
|
|
|
selectList(){
|
|
|
- let taskDate = this.taskDate;
|
|
|
//直接加载urT. ist接口数据
|
|
|
let queryParam = {
|
|
|
- "startDate": taskDate[0],
|
|
|
- "endDate": taskDate[1],
|
|
|
- "infoId":this.taskId
|
|
|
+ "customerName":this.customerName,
|
|
|
+ "startDate": this.startDate,
|
|
|
+ "endDate": this.endDate,
|
|
|
+ "infoId":this.taskId,
|
|
|
+ "taskName":this.taskName,
|
|
|
+ "customerNo":this.customerNo,
|
|
|
+ "taskType":this.taskType
|
|
|
}
|
|
|
|
|
|
this.loadData(null,queryParam);
|
|
|
@@ -517,14 +557,7 @@ export default {
|
|
|
|
|
|
},
|
|
|
|
|
|
- statisticsCount(infoId) {
|
|
|
-
|
|
|
- let taskDate = this.taskDate;
|
|
|
- let queryParam = {
|
|
|
- "startDate": taskDate[0],
|
|
|
- "endDate": taskDate[1],
|
|
|
- "infoId": infoId
|
|
|
- }
|
|
|
+ statisticsCount(queryParam) {
|
|
|
getAction(this.url.statisticsCount, queryParam).then(res => {
|
|
|
if (res.success) {
|
|
|
this.lineNum = res.result["lineNum"] ;
|
|
|
@@ -536,7 +569,6 @@ export default {
|
|
|
}).finally(() => {
|
|
|
|
|
|
})
|
|
|
- this.selectList();
|
|
|
},
|
|
|
|
|
|
//树点击事件
|
|
|
@@ -544,10 +576,17 @@ export default {
|
|
|
if (id && id.length > 0) {
|
|
|
if (id == "all") {
|
|
|
this.taskId = null;
|
|
|
- //更新列表
|
|
|
- this.selectList();
|
|
|
//更新豆腐块
|
|
|
- this.statisticsCount(this.taskId);
|
|
|
+ let queryParam = {
|
|
|
+ "customerName":this.customerName,
|
|
|
+ "startDate": this.startDate,
|
|
|
+ "endDate": this.endDate,
|
|
|
+ "infoId":this.taskId,
|
|
|
+ "taskName":this.taskName,
|
|
|
+ "customerNo":this.customerNo,
|
|
|
+ "taskType":this.taskType
|
|
|
+ };
|
|
|
+ this.statisticsCount(queryParam);
|
|
|
return;
|
|
|
}
|
|
|
let split = id[0].split("key-");
|
|
|
@@ -557,7 +596,16 @@ export default {
|
|
|
//更新列表
|
|
|
this.selectList();
|
|
|
//更新豆腐块
|
|
|
- this.statisticsCount(this.taskId);
|
|
|
+ let queryParam = {
|
|
|
+ "customerName":this.customerName,
|
|
|
+ "startDate": this.startDate,
|
|
|
+ "endDate": this.endDate,
|
|
|
+ "infoId":this.taskId,
|
|
|
+ "taskName":this.taskName,
|
|
|
+ "customerNo":this.customerNo,
|
|
|
+ "taskType":this.taskType
|
|
|
+ };
|
|
|
+ this.statisticsCount(queryParam);
|
|
|
}
|
|
|
}
|
|
|
},
|