|
|
@@ -10,9 +10,11 @@
|
|
|
@back="goBack"
|
|
|
>
|
|
|
<a-descriptions :title="'任务名称: '+task.taskName" :column="3" :bordered="false">
|
|
|
- <a-descriptions-item label="状态"><a-tag :color="task.taskStateColor">{{task.taskStateText}}</a-tag></a-descriptions-item>
|
|
|
- <a-descriptions-item label="开始时间">{{task.taskStartTime}}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="结束时间">{{task.taskEndTime}}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="状态">
|
|
|
+ <a-tag :color="task.taskStateColor">{{ task.taskStateText }}</a-tag>
|
|
|
+ </a-descriptions-item>
|
|
|
+ <a-descriptions-item label="开始时间">{{ task.taskStartTime }}</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="结束时间">{{ task.taskEndTime }}</a-descriptions-item>
|
|
|
<!-- <a-descriptions-item label="描述"><span v-html="task.description"></span></a-descriptions-item>-->
|
|
|
</a-descriptions>
|
|
|
<a-divider style="margin: 6px;"/>
|
|
|
@@ -67,21 +69,31 @@
|
|
|
|
|
|
<!-- 操作按钮区域 -->
|
|
|
<div class="table-operator">
|
|
|
- <a-button type="primary" v-has="'task:check:list:excel'" icon="download" @click="handleExportXls('客户列表')">导出</a-button>
|
|
|
- <a-button type="primary" v-has="'task:check:list:transfer'" @click="handleOpen">转派<a-icon type="right" /></a-button>
|
|
|
+ <a-button type="primary" v-has="'task:check:list:excel'" icon="download" @click="handleExportXls('客户列表')">
|
|
|
+ 导出
|
|
|
+ </a-button>
|
|
|
+ <a-button type="primary" v-has="'task:check:list:transfer'" @click="handleOpen">转派
|
|
|
+ <a-icon type="right"/>
|
|
|
+ </a-button>
|
|
|
<!-- 高级查询区域 -->
|
|
|
<a-dropdown v-if="selectedRowKeys.length > 0">
|
|
|
<a-menu slot="overlay">
|
|
|
- <a-menu-item key="1" @click="batchDel" v-has="'task:check:list:delete'"><a-icon type="delete"/>删除</a-menu-item>
|
|
|
+ <a-menu-item key="1" @click="batchDel" v-has="'task:check:list:delete'">
|
|
|
+ <a-icon type="delete"/>
|
|
|
+ 删除
|
|
|
+ </a-menu-item>
|
|
|
</a-menu>
|
|
|
- <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
|
|
|
+ <a-button style="margin-left: 8px"> 批量操作
|
|
|
+ <a-icon type="down"/>
|
|
|
+ </a-button>
|
|
|
</a-dropdown>
|
|
|
</div>
|
|
|
|
|
|
<!-- table区域-begin -->
|
|
|
<div>
|
|
|
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
|
|
- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
|
|
|
+ <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a
|
|
|
+ style="font-weight: 600">{{ selectedRowKeys.length }}</a>项
|
|
|
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
|
|
|
</div>
|
|
|
|
|
|
@@ -112,7 +124,7 @@
|
|
|
<!-- <a @click="showUpload(record)">上传</a>-->
|
|
|
<!-- <a-divider type="vertical"/>-->
|
|
|
<!-- </span>-->
|
|
|
- <span v-has="'task:check:list:improve'" v-if="record.checkState == 1 || record.checkState == 0 " >
|
|
|
+ <span v-has="'task:check:list:improve'" v-if="record.checkState == 1 || record.checkState == 0 ">
|
|
|
<a @click="showImprove(record)">完善上传</a>
|
|
|
<a-divider type="vertical"/>
|
|
|
</span>
|
|
|
@@ -124,32 +136,35 @@
|
|
|
|
|
|
<span v-has="'task:check:list:check'" v-if="record.checkState === 2 || record.checkState === 3">
|
|
|
<a @click="showCheckCheck(record)">稽核</a>
|
|
|
- <a-divider type="vertical" />
|
|
|
+ <a-divider type="vertical"/>
|
|
|
</span>
|
|
|
|
|
|
<span v-has="'task:check:list:history'" v-if="record.checkState === 4">
|
|
|
<a @click="showImproveGZ(record)">整改</a>
|
|
|
- <a-divider type="vertical" />
|
|
|
+ <a-divider type="vertical"/>
|
|
|
</span>
|
|
|
<span v-has="'task:check:list:selectData'" v-if="record.checkState === 5">
|
|
|
<a @click="selectData(record)">查看数据</a>
|
|
|
- <a-divider type="vertical" />
|
|
|
+ <a-divider type="vertical"/>
|
|
|
</span>
|
|
|
- <span v-has="'truck:check:list:out'" >
|
|
|
+ <span v-has="'truck:check:list:out'">
|
|
|
<a @click="transferOut(record)">回退转派</a>
|
|
|
- <a-divider type="vertical" />
|
|
|
+ <a-divider type="vertical"/>
|
|
|
</span>
|
|
|
<span v-has="'task:check:list:selectDataDown'">
|
|
|
<a @click="getFileUrls(record)">下载资料</a>
|
|
|
- <a-divider type="vertical" />
|
|
|
+ <a-divider type="vertical"/>
|
|
|
</span>
|
|
|
- <span v-has="'task:check:list:notice'" v-if="record.checkState != 2 && record.checkState != 3 && record.checkState != 5">
|
|
|
+ <span v-has="'task:check:list:notice'"
|
|
|
+ v-if="record.checkState != 2 && record.checkState != 3 && record.checkState != 5">
|
|
|
<a @click="noticeDeal(record)">催办</a>
|
|
|
- <a-divider type="vertical" />
|
|
|
+ <a-divider type="vertical"/>
|
|
|
</span>
|
|
|
|
|
|
- <a-dropdown>
|
|
|
- <a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
|
|
|
+ <a-dropdown v-has="'task:check:list:more'">
|
|
|
+ <a class="ant-dropdown-link">更多
|
|
|
+ <a-icon type="down"/>
|
|
|
+ </a>
|
|
|
<a-menu slot="overlay">
|
|
|
|
|
|
<a-menu-item v-has="'task:check:list:delete'">
|
|
|
@@ -161,16 +176,16 @@
|
|
|
</a-dropdown>
|
|
|
</template>
|
|
|
<template v-slot:customerNo="text, record">
|
|
|
- <a @click="showByCustomerNo(record)">{{text}}</a>
|
|
|
+ <a @click="showByCustomerNo(record)">{{ text }}</a>
|
|
|
</template>
|
|
|
<template v-slot:customerName="text, record">
|
|
|
- <a @click="showCheckDetail(record)">{{text}}</a>
|
|
|
+ <a @click="showCheckDetail(record)">{{ text }}</a>
|
|
|
</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 }}
|
|
|
+ {{ (ipagination.current - 1) * ipagination.pageSize + Number(index) + 1 }}
|
|
|
</template>
|
|
|
|
|
|
</a-table>
|
|
|
@@ -182,12 +197,12 @@
|
|
|
</div>
|
|
|
</a-col>
|
|
|
<a-col :md="rightColMd" :sm="24" v-if="this.rightcolval == 1">
|
|
|
- <a-card :bordered="false">
|
|
|
+ <a-card :bordered="false">
|
|
|
<div style="text-align: right;">
|
|
|
- <a-icon type="close-circle" @click="hideUserList" />
|
|
|
+ <a-icon type="close-circle" @click="hideUserList"/>
|
|
|
</div>
|
|
|
- <div style='margin-top: 30px;font-size: 25px' >请选择转派给哪位员工:</div>
|
|
|
- <div style='margin-top:65px' ></div>
|
|
|
+ <div style='margin-top: 30px;font-size: 25px'>请选择转派给哪位员工:</div>
|
|
|
+ <div style='margin-top:65px'></div>
|
|
|
<!-- 查询区域 -->
|
|
|
<div class="table-page-search-wrapper">
|
|
|
<a-form layout="inline">
|
|
|
@@ -207,8 +222,8 @@
|
|
|
<a-col :md="9" :sm="24">
|
|
|
<a-button type="primary" @click="searchQuery2" icon="search" style="margin-left: 21px">查询</a-button>
|
|
|
<a-button type="primary" @click="searchReset2" icon="reload" style="margin-left: 8px">重置</a-button>
|
|
|
- <a-button type="danger" @click="transfer" style="margin-left: 8px">转派</a-button>
|
|
|
-<!-- <a-button type="danger" @click="transfer" style="margin-left: 8px">转派</a-button>-->
|
|
|
+ <a-button type="danger" @click="transfer" style="margin-left: 8px">转派</a-button>
|
|
|
+ <!-- <a-button type="danger" @click="transfer" style="margin-left: 8px">转派</a-button>-->
|
|
|
|
|
|
</a-col>
|
|
|
</span>
|
|
|
@@ -223,7 +238,8 @@
|
|
|
<div>
|
|
|
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
|
|
|
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{
|
|
|
- selectedRowKeys2.length }}</a>项
|
|
|
+ selectedRowKeys2.length
|
|
|
+ }}</a>项
|
|
|
<a style="margin-left: 24px" @click="onClearSelected2">清空</a>
|
|
|
</div>
|
|
|
<a-table
|
|
|
@@ -251,19 +267,19 @@
|
|
|
<a-button key="back" @click="handleCancel">
|
|
|
返回
|
|
|
</a-button>
|
|
|
-<!-- <a-button key="submit" type="primary" :loading="loading" @click="handleOk">-->
|
|
|
-<!-- 确认-->
|
|
|
-<!-- </a-button>-->
|
|
|
- <a-button type="danger" @click="transfer" style="margin-left: 8px">转派</a-button>
|
|
|
+ <!-- <a-button key="submit" type="primary" :loading="loading" @click="handleOk">-->
|
|
|
+ <!-- 确认-->
|
|
|
+ <!-- </a-button>-->
|
|
|
+ <a-button type="danger" @click="transfer" style="margin-left: 8px">转派</a-button>
|
|
|
</template>
|
|
|
|
|
|
- <div> 请选择部门
|
|
|
- <a-select style="width: 220px" v-model="orgCode">
|
|
|
- <a-select-option v-for="item in statusList" :key="statusList.orgCode" :value="item.orgCode">
|
|
|
- {{ item.departName }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
- </div>
|
|
|
+ <div> 请选择部门
|
|
|
+ <a-select style="width: 220px" v-model="orgCode">
|
|
|
+ <a-select-option v-for="item in statusList" :key="statusList.orgCode" :value="item.orgCode">
|
|
|
+ {{ item.departName }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </div>
|
|
|
|
|
|
</a-modal>
|
|
|
</div>
|
|
|
@@ -276,15 +292,16 @@
|
|
|
|
|
|
<script>
|
|
|
|
|
|
-import { postAction, getAction, httpAction, deleteAction } from '@api/manage'
|
|
|
+import {postAction, getAction, httpAction, deleteAction} from '@api/manage'
|
|
|
import '@/assets/less/TableExpand.less'
|
|
|
-import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
+import {JeecgListMixin} from '@/mixins/JeecgListMixin'
|
|
|
import JSZip from 'jszip'
|
|
|
import FileSaver from 'file-saver'
|
|
|
import RoleModal from '@views/system/modules/RoleModal.vue'
|
|
|
import SelectUserModal from '@views/system/modules/SelectUserModal.vue'
|
|
|
import UserModal from '@views/system/modules/UserModal.vue'
|
|
|
-import { filterObj } from '@/utils/util'
|
|
|
+import {filterObj} from '@/utils/util'
|
|
|
+
|
|
|
const statusMap1 = {
|
|
|
1: {
|
|
|
color: 'green',
|
|
|
@@ -297,13 +314,13 @@ const statusMap1 = {
|
|
|
}
|
|
|
export default {
|
|
|
name: 'TaskCheckList',
|
|
|
- components: { UserModal, SelectUserModal, RoleModal },
|
|
|
- mixins:[JeecgListMixin],
|
|
|
- inject:['closeCurrent'],
|
|
|
- data () {
|
|
|
+ components: {UserModal, SelectUserModal, RoleModal},
|
|
|
+ mixins: [JeecgListMixin],
|
|
|
+ inject: ['closeCurrent'],
|
|
|
+ data() {
|
|
|
let _self = this;
|
|
|
return {
|
|
|
- statusList:[],
|
|
|
+ statusList: [],
|
|
|
loading: false,
|
|
|
visible: false,
|
|
|
dataSource1: [],
|
|
|
@@ -321,18 +338,16 @@ export default {
|
|
|
total: 0
|
|
|
},
|
|
|
queryParam2: {},
|
|
|
- rightcolval:0,
|
|
|
+ rightcolval: 0,
|
|
|
selectedRowKeys1: [],
|
|
|
selectedRowKeys2: [],
|
|
|
- queryParam:{
|
|
|
- },
|
|
|
- fileInfoList:[
|
|
|
- ],
|
|
|
- dataListSelections:'',
|
|
|
+ queryParam: {},
|
|
|
+ fileInfoList: [],
|
|
|
+ dataListSelections: '',
|
|
|
description: '稽核详情页面',
|
|
|
currentTab: 'all',
|
|
|
currentCheckState: null,
|
|
|
- task:{
|
|
|
+ task: {
|
|
|
id: '',
|
|
|
taskName: '',
|
|
|
taskStartTime: '',
|
|
|
@@ -349,12 +364,12 @@ export default {
|
|
|
tabChecked: '待整改(0)',
|
|
|
tabPassed: '稽核通过(0)',
|
|
|
count: 0,
|
|
|
- noUpCount:0,
|
|
|
+ noUpCount: 0,
|
|
|
undoCount: 0,
|
|
|
uncheckCount: 0,
|
|
|
checkedCount: 0,
|
|
|
passedCount: 0,
|
|
|
- orgCode:"",
|
|
|
+ orgCode: "",
|
|
|
columns2: [{
|
|
|
title: '用户账号',
|
|
|
align: 'center',
|
|
|
@@ -372,10 +387,10 @@ export default {
|
|
|
{
|
|
|
title: '#',
|
|
|
dataIndex: '',
|
|
|
- key:'rowIndex',
|
|
|
- width:60,
|
|
|
- align:"center",
|
|
|
- scopedSlots: { customRender: 'rowIndex' }
|
|
|
+ key: 'rowIndex',
|
|
|
+ width: 60,
|
|
|
+ align: "center",
|
|
|
+ scopedSlots: {customRender: 'rowIndex'}
|
|
|
},
|
|
|
// {
|
|
|
// title:'客户名称',
|
|
|
@@ -385,8 +400,8 @@ export default {
|
|
|
// scopedSlots: { customRender: 'customerName' }
|
|
|
// },
|
|
|
{
|
|
|
- title:'客户编号',
|
|
|
- align:"center",
|
|
|
+ title: '客户编号',
|
|
|
+ align: "center",
|
|
|
sorter: true,
|
|
|
dataIndex: 'customerNo',
|
|
|
scopedSlots: {customRender: 'customerNo'}
|
|
|
@@ -397,33 +412,33 @@ export default {
|
|
|
// dataIndex: 'smsNumber'
|
|
|
// },
|
|
|
{
|
|
|
- title:'用户编号',
|
|
|
- align:"center",
|
|
|
+ title: '用户编号',
|
|
|
+ align: "center",
|
|
|
dataIndex: 'userNo'
|
|
|
},
|
|
|
{
|
|
|
- title:'入网时间',
|
|
|
- align:"center",
|
|
|
+ title: '入网时间',
|
|
|
+ align: "center",
|
|
|
sorter: true,
|
|
|
dataIndex: 'networkAccessTime'
|
|
|
},
|
|
|
{
|
|
|
- title:'员工姓名',
|
|
|
- align:"center",
|
|
|
+ title: '员工姓名',
|
|
|
+ align: "center",
|
|
|
dataIndex: 'staffName'
|
|
|
},
|
|
|
{
|
|
|
- title:'员工编号',
|
|
|
- align:"center",
|
|
|
+ title: '员工编号',
|
|
|
+ align: "center",
|
|
|
sorter: true,
|
|
|
dataIndex: 'staffNo'
|
|
|
},
|
|
|
{
|
|
|
- title:'稽核进度',
|
|
|
- align:"center",
|
|
|
+ title: '稽核进度',
|
|
|
+ align: "center",
|
|
|
sorter: true,
|
|
|
dataIndex: 'checkState',
|
|
|
- scopedSlots: { customRender: 'checkState' }
|
|
|
+ scopedSlots: {customRender: 'checkState'}
|
|
|
},
|
|
|
{
|
|
|
title: '员工二级部门',
|
|
|
@@ -448,11 +463,11 @@ export default {
|
|
|
{
|
|
|
title: '操作',
|
|
|
dataIndex: 'action',
|
|
|
- align:"center",
|
|
|
- scopedSlots: { customRender: 'action' }
|
|
|
+ align: "center",
|
|
|
+ scopedSlots: {customRender: 'action'}
|
|
|
}
|
|
|
],
|
|
|
- isorter:{
|
|
|
+ isorter: {
|
|
|
column: 'checkState',
|
|
|
order: 'asc',
|
|
|
},
|
|
|
@@ -466,7 +481,7 @@ export default {
|
|
|
notice: "/smsCheck/customerInfo/notice",
|
|
|
editCheck: "/smsCheck/customerInfo/edit/check/state",
|
|
|
dataDelete: "/smsCheck/customerData/clear",
|
|
|
- deleteBatch:"/smsCheck/customerInfo/deleteByIds",
|
|
|
+ deleteBatch: "/smsCheck/customerInfo/deleteByIds",
|
|
|
exportXlsUrl: "smsCheck/customerInfo/exportXls",
|
|
|
list2: '/sys/user/userRoleList',
|
|
|
},
|
|
|
@@ -516,21 +531,21 @@ export default {
|
|
|
methods: {
|
|
|
transferOut(record) {
|
|
|
let url = '/smsCheck/customerData/transferOut';
|
|
|
- let dataOut=[]
|
|
|
+ let dataOut = []
|
|
|
dataOut.push(record.id)
|
|
|
let params = {
|
|
|
- ids:dataOut,
|
|
|
+ ids: dataOut,
|
|
|
}
|
|
|
|
|
|
postAction(url, params).then(res => {
|
|
|
if (res.success) {
|
|
|
this.$message.success('转派成功!')
|
|
|
this.visible = false;
|
|
|
- this.rightcolval=0;
|
|
|
- this.selectedRowKeys1=[];
|
|
|
+ this.rightcolval = 0;
|
|
|
+ this.selectedRowKeys1 = [];
|
|
|
this.searchReset()
|
|
|
return
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
this.$message.error(res.message)
|
|
|
}
|
|
|
})
|
|
|
@@ -543,12 +558,12 @@ export default {
|
|
|
let params = {
|
|
|
workNo: selectionRows[0].workNo
|
|
|
}
|
|
|
- this.statusList=[]
|
|
|
- this.orgCode=''
|
|
|
+ this.statusList = []
|
|
|
+ this.orgCode = ''
|
|
|
getAction(url, params).then(res => {
|
|
|
if (res.success) {
|
|
|
|
|
|
- this.statusList=res.result
|
|
|
+ this.statusList = res.result
|
|
|
//this.visible = true;
|
|
|
return
|
|
|
}
|
|
|
@@ -577,7 +592,7 @@ export default {
|
|
|
this.ipagination2 = pagination
|
|
|
this.loadData2()
|
|
|
},
|
|
|
- hideUserList(){
|
|
|
+ hideUserList() {
|
|
|
//this.rightcolval = 0
|
|
|
this.selectedRowKeys1 = []
|
|
|
},
|
|
|
@@ -597,18 +612,18 @@ export default {
|
|
|
getQueryField2() {
|
|
|
//TODO 字段权限控制
|
|
|
var str = 'id,'
|
|
|
- this.columns2.forEach(function(value) {
|
|
|
+ this.columns2.forEach(function (value) {
|
|
|
str += ',' + value.dataIndex
|
|
|
})
|
|
|
return str
|
|
|
},
|
|
|
- transfer(){
|
|
|
- if (this.selectedRowKeys2.length===0){
|
|
|
+ transfer() {
|
|
|
+ if (this.selectedRowKeys2.length === 0) {
|
|
|
this.$message.warn('未选择转派人!')
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if (this.selectedRowKeys.length===0){
|
|
|
+ if (this.selectedRowKeys.length === 0) {
|
|
|
this.$message.warn('未选择需转派的数据!')
|
|
|
return
|
|
|
}
|
|
|
@@ -618,8 +633,8 @@ export default {
|
|
|
// }
|
|
|
let url = '/smsCheck/customerData/transfer';
|
|
|
let params = {
|
|
|
- userId : this.selectedRowKeys2[0],
|
|
|
- ids:this.selectedRowKeys,
|
|
|
+ userId: this.selectedRowKeys2[0],
|
|
|
+ ids: this.selectedRowKeys,
|
|
|
orgCode: this.orgCode
|
|
|
}
|
|
|
|
|
|
@@ -627,8 +642,8 @@ export default {
|
|
|
if (res.success) {
|
|
|
this.$message.success('转派成功!')
|
|
|
this.visible = false;
|
|
|
- this.rightcolval=0;
|
|
|
- this.selectedRowKeys1=[];
|
|
|
+ this.rightcolval = 0;
|
|
|
+ this.selectedRowKeys1 = [];
|
|
|
this.searchReset()
|
|
|
return
|
|
|
}
|
|
|
@@ -663,7 +678,7 @@ export default {
|
|
|
},
|
|
|
handleOpen(record) {
|
|
|
|
|
|
- if (this.selectedRowKeys.length===0){
|
|
|
+ if (this.selectedRowKeys.length === 0) {
|
|
|
this.$message.warn('未选择需转派的数据!')
|
|
|
return
|
|
|
}
|
|
|
@@ -688,8 +703,8 @@ export default {
|
|
|
if (res.success) {
|
|
|
that.fileInfoList = res.result
|
|
|
this.$message.success('开始下载请等待...')
|
|
|
- this.filesToRar(this.fileInfoList, '客户:'+data.customerNo+'资料下载');
|
|
|
- }else {
|
|
|
+ this.filesToRar(this.fileInfoList, '客户:' + data.customerNo + '资料下载');
|
|
|
+ } else {
|
|
|
this.$message.warn('无上传资料,若有疑问请联系管理员')
|
|
|
return
|
|
|
}
|
|
|
@@ -702,32 +717,36 @@ export default {
|
|
|
let cache = {};
|
|
|
let promises = [];
|
|
|
_this.title = '正在加载压缩文件';
|
|
|
- // const loading = this.$loading({lock: true,text: '正在加载压缩文件',spinner: 'el-icon-loading',background: 'rgba(0, 0, 0, 0.7)'});
|
|
|
+ // const loading = this.$loading({lock: true,text: '正在加载压缩文件',spinner: 'el-icon-loading',background: 'rgba(0, 0, 0, 0.7)'});
|
|
|
for (let item of arrImages) {
|
|
|
for (let url of item.fileStaticUrl) {
|
|
|
|
|
|
- console.log("item",item)
|
|
|
+ console.log("item", item)
|
|
|
// 下载文件, 并存成ArrayBuffer对象
|
|
|
const promise = this.getImgArrayBuffer(url.fileStaticUrl).then(data => {
|
|
|
var testZip = zip.folder(item.fileId);
|
|
|
// 获取文件名
|
|
|
const file_name = url.fileName
|
|
|
// 逐个添加文件
|
|
|
- testZip.file(file_name, data, { binary: true })
|
|
|
+ testZip.file(file_name, data, {binary: true})
|
|
|
//testZip.file(file_name,item.fileId)
|
|
|
- cache[file_name] = data})
|
|
|
- promises.push(promise);
|
|
|
+ cache[file_name] = data
|
|
|
+ })
|
|
|
+ promises.push(promise);
|
|
|
}
|
|
|
}
|
|
|
Promise.all(promises)
|
|
|
// 生成二进制流
|
|
|
- .then(() => {zip.generateAsync({ type: "blob" })
|
|
|
- .then(content => {_this.title = '正在压缩';
|
|
|
- // 利用file-saver保存文件 自定义文件名
|
|
|
- FileSaver.saveAs(content, filename);
|
|
|
- _this.title = '压缩完成';}
|
|
|
- );
|
|
|
- }).catch(res=>{
|
|
|
+ .then(() => {
|
|
|
+ zip.generateAsync({type: "blob"})
|
|
|
+ .then(content => {
|
|
|
+ _this.title = '正在压缩';
|
|
|
+ // 利用file-saver保存文件 自定义文件名
|
|
|
+ FileSaver.saveAs(content, filename);
|
|
|
+ _this.title = '压缩完成';
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }).catch(res => {
|
|
|
_this.$message.error('文件压缩失败');
|
|
|
});
|
|
|
},
|
|
|
@@ -742,7 +761,8 @@ export default {
|
|
|
resolve(this.response);
|
|
|
} else {
|
|
|
reject(this.status);
|
|
|
- }};
|
|
|
+ }
|
|
|
+ };
|
|
|
xmlhttp.send();
|
|
|
});
|
|
|
},
|
|
|
@@ -757,11 +777,11 @@ export default {
|
|
|
// },
|
|
|
// 上传客户资料
|
|
|
showImprove(record) {
|
|
|
- this.queryStatusById(record,'sc');
|
|
|
+ this.queryStatusById(record, 'sc');
|
|
|
},
|
|
|
// 整改
|
|
|
showImproveGZ(record) {
|
|
|
- this.queryStatusById(record,'zg');
|
|
|
+ this.queryStatusById(record, 'zg');
|
|
|
},
|
|
|
// 历史
|
|
|
selectData(record) {
|
|
|
@@ -769,7 +789,7 @@ export default {
|
|
|
},
|
|
|
// 显示上传页面
|
|
|
showUpload(record) {
|
|
|
- this.$router.push({ path: '/sms/check/data/upload' ,query:{id:record.id}});
|
|
|
+ this.$router.push({path: '/sms/check/data/upload', query: {id: record.id}});
|
|
|
},
|
|
|
// 显示上传页面
|
|
|
handSubmit(record) {
|
|
|
@@ -801,24 +821,24 @@ export default {
|
|
|
},
|
|
|
// 显示列表页面
|
|
|
showCheckCheck(record) {
|
|
|
- this.$router.push({ path: '/sms/check/task/check/check', query: { id: record.id}});
|
|
|
+ this.$router.push({path: '/sms/check/task/check/check', query: {id: record.id}});
|
|
|
},
|
|
|
- showByCustomerNo(record){
|
|
|
- if (record.checkState==0 ){
|
|
|
+ showByCustomerNo(record) {
|
|
|
+ if (record.checkState == 0) {
|
|
|
this.$message.warning('当前状态为未处理,不可查看!');
|
|
|
- }else if ( record.checkState==1 ){
|
|
|
+ } else if (record.checkState == 1) {
|
|
|
this.$message.warning('当前状态为未完善,不可查看!');
|
|
|
- }else {
|
|
|
+ } else {
|
|
|
this.$router.push({path: '/sms/check/TaskUploadDataSelect', query: {id: record.id}});
|
|
|
}
|
|
|
},
|
|
|
// 显示稽核详情页面
|
|
|
showCheckDetail(record) {
|
|
|
- this.$router.push({ path: '/sms/check/task/check/detail', query:{id:record.id}});
|
|
|
+ this.$router.push({path: '/sms/check/task/check/detail', query: {id: record.id}});
|
|
|
},
|
|
|
// 显示稽核历史页面
|
|
|
showCheckLog(record) {
|
|
|
- this.$router.push({ path: '/sms/check/task/check/log',query:{id:record.id}});
|
|
|
+ this.$router.push({path: '/sms/check/task/check/log', query: {id: record.id}});
|
|
|
},
|
|
|
// 构建任务信息
|
|
|
buildTaskInfo(record) {
|
|
|
@@ -828,15 +848,15 @@ export default {
|
|
|
taskInfo.uncheckCount = this.uncheckCount;
|
|
|
taskInfo.checkedCount = this.checkedCount;
|
|
|
taskInfo.passedCount = this.passedCount;
|
|
|
- return {
|
|
|
+ return {
|
|
|
task: this.task,
|
|
|
info: record
|
|
|
}
|
|
|
},
|
|
|
- handleCancel () {
|
|
|
+ handleCancel() {
|
|
|
this.visible = false;
|
|
|
},
|
|
|
- detail (record) {
|
|
|
+ detail(record) {
|
|
|
this.model = Object.assign({}, record);
|
|
|
this.visible = true;
|
|
|
},
|
|
|
@@ -853,7 +873,7 @@ export default {
|
|
|
this.tabChange('all');
|
|
|
this.loadTabNumber(this.queryParam.taskId);
|
|
|
},
|
|
|
- tabChange (key) {
|
|
|
+ tabChange(key) {
|
|
|
// 稽核状态(0:未处理;1:未完善;2:待稽核;3:待整改;4:已整改;5:稽核通过;)
|
|
|
if (key === 'all') {
|
|
|
this.currentCheckState = null;
|
|
|
@@ -882,14 +902,14 @@ export default {
|
|
|
}
|
|
|
this.loadData(1);
|
|
|
},
|
|
|
- loadTabNumber (taskId) {
|
|
|
+ loadTabNumber(taskId) {
|
|
|
let url = this.url.count;
|
|
|
let params = {
|
|
|
id: taskId
|
|
|
}
|
|
|
let that = this;
|
|
|
getAction(url, params).then(res => {
|
|
|
- let { result } = res;
|
|
|
+ let {result} = res;
|
|
|
if (result) {
|
|
|
that.count = result.count;
|
|
|
that.undoCount = result.undoCount;
|
|
|
@@ -897,32 +917,32 @@ export default {
|
|
|
that.checkedCount = result.checkedCount;
|
|
|
that.passedCount = result.passedCount;
|
|
|
that.noUpCount = result.noUpCount;
|
|
|
- that.tabAll= '全部(' + result.count + ')';
|
|
|
- that.noUp= '未处理(' + result.noUpCount + ')';
|
|
|
- that.tabUndo= '未完善(' + result.undoCount + ')';
|
|
|
- that.tabUncheck= '待稽核(' + result.uncheckCount + ')';
|
|
|
- that.tabChecked= '待整改(' + result.checkedCount + ')';
|
|
|
- that.tabPassed= '稽核通过(' + result.passedCount + ')';
|
|
|
+ that.tabAll = '全部(' + result.count + ')';
|
|
|
+ that.noUp = '未处理(' + result.noUpCount + ')';
|
|
|
+ that.tabUndo = '未完善(' + result.undoCount + ')';
|
|
|
+ that.tabUncheck = '待稽核(' + result.uncheckCount + ')';
|
|
|
+ that.tabChecked = '待整改(' + result.checkedCount + ')';
|
|
|
+ that.tabPassed = '稽核通过(' + result.passedCount + ')';
|
|
|
|
|
|
}
|
|
|
}).finally(() => {
|
|
|
|
|
|
})
|
|
|
},
|
|
|
- noticeDeal (record) {
|
|
|
+ noticeDeal(record) {
|
|
|
let url = this.url.notice;
|
|
|
let params = {
|
|
|
customerName: record.customerName,
|
|
|
smsNumber: record.smsNumber,
|
|
|
staffNo: record.staffNo,
|
|
|
userNo: record.userNo,
|
|
|
- customerNo:record.customerNo,
|
|
|
- taskId:record.taskId,
|
|
|
+ customerNo: record.customerNo,
|
|
|
+ taskId: record.taskId,
|
|
|
}
|
|
|
|
|
|
let that = this;
|
|
|
postAction(url, params).then(res => {
|
|
|
- let { result } = res;
|
|
|
+ let {result} = res;
|
|
|
if (res.success) {
|
|
|
that.$message.info('已通知客户经理,进行材料补充!');
|
|
|
}
|
|
|
@@ -931,7 +951,7 @@ export default {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
- queryTaskById (id) {
|
|
|
+ queryTaskById(id) {
|
|
|
let url = this.url.queryTask;
|
|
|
let params = {
|
|
|
id: id
|
|
|
@@ -947,20 +967,24 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- queryStatusById (record,info) {
|
|
|
+ queryStatusById(record, info) {
|
|
|
let url = this.url.queryStatusById;
|
|
|
let params = {
|
|
|
id: this.task.id
|
|
|
}
|
|
|
getAction(url, params).then(res => {
|
|
|
if (!res.success) {
|
|
|
+ /* this.$warning({
|
|
|
+ title: '提示',
|
|
|
+ content: res.message,
|
|
|
+ })*/
|
|
|
this.$message.warning(res.message, 3);
|
|
|
return
|
|
|
- }else {
|
|
|
- if (info=='zg'){
|
|
|
+ } else {
|
|
|
+ if (info == 'zg') {
|
|
|
this.$router.push({path: '/sms/check/TaskUploadDataZG', query: {id: record.id}});
|
|
|
}
|
|
|
- if (info=='sc'){
|
|
|
+ if (info == 'sc') {
|
|
|
this.$router.push({path: '/sms/check/TaskUploadData', query: {id: record.id}});
|
|
|
}
|
|
|
}
|