diff --git a/src/App.vue b/src/App.vue index 3b3a1c7..aec76a8 100644 --- a/src/App.vue +++ b/src/App.vue @@ -32,4 +32,20 @@ export default { font-size: 14px; border-radius: 15px; } +.appeal .el-button{ + padding: 7px 10px; + font-size: 14px; + border-radius: 15px; + width: 63px; +} +.el-button--text{ + padding: 5px 10px; +} +.el-loading-spinner { + top: 50%; + /* margin-top: -21px; */ + width: 90%; + text-align: center; + position: fixed; +} diff --git a/src/components/AliOSS/index.vue b/src/components/AliOSS/index.vue index f5f9df7..324f3f8 100644 --- a/src/components/AliOSS/index.vue +++ b/src/components/AliOSS/index.vue @@ -54,25 +54,29 @@ export default { console.log(fileList) fileList.forEach(item => { if (item.status === 'ready') { - const suffix = item.name.split('.')[1] + // const suffix = item.name.split('.')[1] + const suffix = item.name.substr(item.name.lastIndexOf('.')+1) const fileName = UUID.generate() + '.' + suffix item.name = fileName OSS(item.raw, fileName).then(res => { - this.$emit('input', res.url) - item.url = res.url + + this.$emit('input', 'http://storage.myntv.cn/'+res.name) + item.url = 'http://storage.myntv.cn/'+res.name item.status = 'success' const list = fileList.filter(item => item.status === 'success').map(item => item.url) + console.log(list); this.$emit('input', list) }) } }) } else { - const suffix = file.name.split('.')[0] + // const suffix = file.name.split('.')[0] + const suffix = item.name.substr(item.name.lastIndexOf('.')+1) const fileName = UUID.generate() + '.' + suffix file.name = fileName this.fileList = [file] OSS(file.raw, fileName).then(res => { - this.$emit('input', res.url) + this.$emit('input', 'http://storage.myntv.cn/'+res.name) }) } }, diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index a9cba01..4f2f359 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -1,8 +1,12 @@ diff --git a/src/views/convenience/detail.vue b/src/views/convenience/detail.vue index fa9eefc..074ae32 100644 --- a/src/views/convenience/detail.vue +++ b/src/views/convenience/detail.vue @@ -17,13 +17,13 @@ }} {{ isEventTypeChange ? "取消" : "编辑" }} + @click="cascader" + >{{ isEventTypeChange ? "取消" : "编辑" }} -
+
@@ -101,6 +102,14 @@ @click="handleChangeEventType" >编辑 --> + + 接单 要件齐备,开始办理 + >要件齐备,开始办理 发起审批 + >发起审批 转交任务 + >转交任务
@@ -175,18 +188,18 @@
--> -
- 申办人:{{ convenience && convenience.residentInformation.name }} -
-
- 受理人:{{ - convenience && convenience.currentResponsiblePerson.name - }} -
+
+ 申办人:{{ convenience && convenience.residentInformation.name }} +
+
+ 受理人:{{ + convenience && convenience.firstResponsiblePerson.name + }} +
总办理时长: {{ @@ -235,7 +248,7 @@ -->
任务状态:{{ convenience && convenience.statusList[0].status | statusFilter - }} + +

确定撤销审批吗?

+
+ 取消 + 确定 +
+ 撤回 +
+ 撤销转交超限审批 + >撤销转交审批
- 通过驳回 + 通过驳回
-
    + + +
    + 办事评价: + {{ convenience && convenience.evaluation | evaluationFilter }} +
    + 申诉
    + + + +
      +
    • + {{ + `${item.residentInformation.name}${ + item.approve + ? "已同意" + : item.approve === null + ? "审批中" + : "已驳回" + }` + }} +
    • +
    +
    - + > + 审批人:{{ getNames(item.to) }}

    - 被沟通人:{{ - item.name - }} + 被沟通人:{{ getNames(item.to) }} +

    -

    +

    {{ - item.substring(item.lastIndexOf("/") + 1) - }} - + @click="handleSetPreviewImg(attachment)" + > + + {{ + attachment.substring(attachment.lastIndexOf("/") + 1) + }} + - {{ item.substring(item.lastIndexOf("/") + 1) }} + {{ attachment.substring(attachment.lastIndexOf("/") + 1) }}

    @@ -738,7 +850,8 @@ 被转交人:{{ item.to[0].name }} + >被转交人:{{ item.to[0].name }}

    - 发起审批 + 发起审批 @@ -962,65 +1075,66 @@ import { communicationList, update, typeList -} from '@/api/convenience' -import { parseTime } from '@/utils' -import { staffList } from '@/api/staff' -import AliOss from '@/components/AliOSS/index.vue' +} from "@/api/convenience"; +import { parseTime } from "@/utils"; +import { staffList } from "@/api/staff"; +import AliOss from "@/components/AliOSS/index.vue"; export default { filters: { sponsorFilter(status) { const statusMap = { - SELF: '居民', - STAFF: '工作人员' - } - return statusMap[status] + SELF: "群众", + STAFF: "工作人员" + }; + return statusMap[status]; }, phaseFilter(status) { const statusMap = { - PENDING_ORDER: '待接单', - PREREQUISITES: '要件准备中', - PROCESSING: '办理中', - FINISH: '办结' - } - return statusMap[status] + PENDING_ORDER: "待接单", + PREREQUISITES: "要件准备中", + PROCESSING: "办理中", + FINISH: "办结" + }; + return statusMap[status]; }, statusFilter(status) { const statusMap = { - MINE: '待我处理', - FORWARDED: '已转交', - FORWARDED_APPLY: '转交超限审批中', - SUBMIT_APPLY: '已提交审批', - WAIT_APPLY: '待审核' - } - return statusMap[status] + MINE: "我处理", + FORWARDED: "已转交", + FORWARDED_APPLY: "转交超限审批中", + SUBMIT_APPLY: "已提交审批", + WAIT_APPLY: "待审核" + }; + return statusMap[status]; }, typeFilter(status) { const statusMap = { - 1: '建立工单', - 2: '撤销工单', - 3: '沟通', - 4: '调整工单类别', - 5: '接单', - 6: '要件齐备', - 7: '办结', - 8: '转交超限审批提交', - 9: '转交超限审批撤销', - 10: '转交超限审批', - 11: '发起审批', - 12: '撤销审批', - 13: '审批操作', - 14: '转交' - } - return statusMap[status] + 1: "建立工单", + 2: "撤销工单", + 3: "沟通", + 4: "调整工单类别", + 5: "接单", + 6: "要件齐备", + 7: "办结", + 8: "转交超限审批提交", + 9: "转交超限审批撤销", + 10: "转交超限审批", + 11: "发起审批", + 12: "撤销审批", + 13: "审批操作", + 14: "转交", + 16: "提示" + }; + return statusMap[status]; }, evaluationFilter(status) { const statusMap = { - 1: '不满意', - 2: '满意', - 3: '非常满意' - } - return statusMap[status] + 1: "不满意", + 2: "满意", + 3: "非常满意" + }; + return statusMap[status]; } // 1 不满意, 2 满意, 3 非常满意 }, @@ -1044,7 +1158,7 @@ export default { evaluation: undefined }, rules: { - ids: [{ required: true, message: '请选择操作对象', trigger: 'change' }] + ids: [{ required: true, message: "请选择操作对象", trigger: "change" }] // category: [{ required: true, message: '请选择栏目板块', trigger: 'change' }] }, updateType: undefined, @@ -1057,30 +1171,30 @@ export default { prerequisitesInterval: undefined, preMsec: 0, prerequisitesTime: { - hour: '--', - minute: '--', - second: '--' + hour: "--", + minute: "--", + second: "--" }, finishTimeInterval: undefined, finishMsec: 0, finishTime: { - hour: '--', - minute: '--', - second: '--' + hour: "--", + minute: "--", + second: "--" }, acceptanceInterval: undefined, acceptanceMsec: 0, acceptanceTime: { - hour: '--', - minute: '--', - second: '--' + hour: "--", + minute: "--", + second: "--" }, totalTimeInterval: undefined, totalMsec: 0, totalTime: { - hour: '--', - minute: '--', - second: '--' + hour: "--", + minute: "--", + second: "--" }, dialogPreviewImg: false, dialogImageUrl: undefined, @@ -1089,68 +1203,74 @@ export default { typeOptions: [], eventTypeId: undefined, applyDetail: false, - isEventTypeChange: false - } + isEventTypeChange: false, + cxPop: false + }; }, created() { - this.getInfo() - this.getStaffList() - this.getCommunicationList() - this.getTypeList() + this.getInfo(); + this.getStaffList(); + this.getCommunicationList(); + this.getTypeList(); }, methods: { getInfo() { info({ id: this.id }).then(res => { - this.convenience = res.d - const tempData = Object.assign({}, this.convenience) - const now = Date.parse(new Date()).toString() / 1000 - clearInterval(this.acceptanceInterval) - clearInterval(this.prerequisitesInterval) - clearInterval(this.finishTimeInterval) - clearInterval(this.totalTimeInterval) + this.convenience = res.d; + const tempData = Object.assign({}, this.convenience); + const now = Date.parse(new Date()).toString() / 1000; + // console.log(now); + clearInterval(this.acceptanceInterval); + clearInterval(this.prerequisitesInterval); + clearInterval(this.finishTimeInterval); + clearInterval(this.totalTimeInterval); switch (tempData.phase) { // 待接单 - case 'PENDING_ORDER': + case "PENDING_ORDER": if (tempData.acceptanceTime === null) { - this.acceptanceMsec = now - this.convenience.createDate - this.countdown(tempData.phase) + this.acceptanceMsec = now - this.convenience.createDate; + this.countdown(tempData.phase); } - break + break; // 要件准备 - case 'PREREQUISITES': + case "PREREQUISITES": if (tempData.prerequisitesTime === null) { - this.preMsec = now - this.convenience.createDate - this.acceptanceMsec = tempData.acceptanceTime - this.timeFormat('acceptanceTime', this.acceptanceMsec) - this.countdown(tempData.phase) + this.preMsec = + now - tempData.createDate - tempData.acceptanceTime; + this.acceptanceMsec = tempData.acceptanceTime; + this.timeFormat("acceptanceTime", this.acceptanceMsec); + this.countdown(tempData.phase); } - break + break; // 办理中 - case 'PROCESSING': + case "PROCESSING": if (tempData.finishTime === null) { this.finishMsec = - now - this.preMsec - this.convenience.createDate - this.acceptanceMsec = tempData.acceptanceTime - this.preMsec = tempData.prerequisitesTime - this.timeFormat('acceptanceTime', this.acceptanceMsec) - this.timeFormat('prerequisitesTime', this.preMsec) - this.countdown(tempData.phase) + now - + tempData.createDate - + tempData.acceptanceTime - + tempData.prerequisitesTime; + this.acceptanceMsec = tempData.acceptanceTime; + this.preMsec = tempData.prerequisitesTime; + this.timeFormat("acceptanceTime", this.acceptanceMsec); + this.timeFormat("prerequisitesTime", this.preMsec); + this.countdown(tempData.phase); } - break + break; // 办结 - case 'FINISH': + case "FINISH": // console.log(123); if (tempData.finishTime !== null) { - this.finishMsec = tempData.finishTime - this.acceptanceMsec = tempData.acceptanceTime - this.preMsec = tempData.prerequisitesTime - this.timeFormat('acceptanceTime', this.acceptanceMsec) - this.timeFormat('prerequisitesTime', this.preMsec) - this.timeFormat('finishTime', this.finishMsec) + this.finishMsec = tempData.finishTime; + this.acceptanceMsec = tempData.acceptanceTime; + this.preMsec = tempData.prerequisitesTime; + this.timeFormat("acceptanceTime", this.acceptanceMsec); + this.timeFormat("prerequisitesTime", this.preMsec); + this.timeFormat("finishTime", this.finishMsec); - this.countdown(tempData.phase) + this.countdown(tempData.phase); } - break + break; } // const now = Date.parse(new Date()).toString() / 1000; // switch (this.convenience.phase) { @@ -1186,74 +1306,75 @@ export default { // this.countdown(this.convenience.phase); // break; // } - }) + }); }, getTypeList() { typeList().then(res => { - this.typeOptions = [] + this.typeOptions = []; res.d.map(i => { - const children = [] + const children = []; i.eventTypesList.map(c => { const level2 = { label: c.eventName, value: c.id - } - children.push(level2) - }) + }; + children.push(level2); + }); const level1 = { label: i.eventName, children - } + }; - this.typeOptions.push(level1) - }) - }) + this.typeOptions.push(level1); + }); + }); }, countdown(phase) { - if (phase === 'PENDING_ORDER') { + if (phase === "PENDING_ORDER") { this.acceptanceInterval = setInterval(() => { - this.timeFormat('acceptanceTime', this.acceptanceMsec) - this.acceptanceMsec++ - }, 1000) + this.timeFormat("acceptanceTime", this.acceptanceMsec); + this.acceptanceMsec++; + }, 1000); // 当前阶段的时间加上 - this.totalMsec = this.acceptanceMsec + this.totalMsec = this.acceptanceMsec; this.totalTimeInterval = setInterval(() => { - this.timeFormat('totalTime', this.totalMsec) - this.totalMsec++ - }, 1000) - } else if (phase === 'PREREQUISITES') { + this.timeFormat("totalTime", this.totalMsec); + this.totalMsec++; + }, 1000); + } else if (phase === "PREREQUISITES") { this.prerequisitesInterval = setInterval(() => { - this.timeFormat('prerequisitesTime', this.preMsec) - this.preMsec++ - }, 1000) - this.totalMsec = this.convenience.acceptanceTime + this.preMsec + this.timeFormat("prerequisitesTime", this.preMsec); + this.preMsec++; + }, 1000); + this.totalMsec = this.convenience.acceptanceTime + this.preMsec; this.totalTimeInterval = setInterval(() => { - this.timeFormat('totalTime', this.totalMsec) - this.totalMsec++ - }, 1000) - } else if (phase === 'PROCESSING') { + this.timeFormat("totalTime", this.totalMsec); + this.totalMsec++; + }, 1000); + } else if (phase === "PROCESSING") { this.finishTimeInterval = setInterval(() => { // console.log(233); - this.timeFormat('finishTime', this.finishMsec) - this.finishMsec++ - }, 1000) + this.timeFormat("finishTime", this.finishMsec); + this.finishMsec++; + }, 1000); this.totalMsec = this.convenience.acceptanceTime + this.convenience.prerequisitesTime + - this.finishMsec + this.finishMsec; + console.log(this.totalMsec); this.totalTimeInterval = setInterval(() => { - this.timeFormat('totalTime', this.totalMsec) - this.totalMsec++ - }, 1000) - } else if (phase === 'FINISH') { + this.timeFormat("totalTime", this.totalMsec); + this.totalMsec++; + }, 1000); + } else if (phase === "FINISH") { // console.log(233); - this.finishMsec + this.finishMsec; this.totalMsec = this.convenience.acceptanceTime + this.convenience.prerequisitesTime + - this.convenience.finishTime - this.timeFormat('totalTime', this.totalMsec) + this.convenience.finishTime; + this.timeFormat("totalTime", this.totalMsec); // this.totalTimeInterval = setInterval(() => { // this.totalMsec++; // }, 1000); @@ -1369,16 +1490,16 @@ export default { timeFormat(obj, timeStamp) { this[obj].hour = Math.floor(timeStamp / 3600) < 9 - ? '0' + Math.floor(timeStamp / 3600) - : Math.floor(timeStamp / 3600) + ? "0" + Math.floor(timeStamp / 3600) + : Math.floor(timeStamp / 3600); this[obj].minute = Math.floor(((timeStamp % 86400) % 3600) / 60) < 9 - ? '0' + Math.floor(((timeStamp % 86400) % 3600) / 60) - : Math.floor(((timeStamp % 86400) % 3600) / 60) + ? "0" + Math.floor(((timeStamp % 86400) % 3600) / 60) + : Math.floor(((timeStamp % 86400) % 3600) / 60); this[obj].second = Math.floor(((timeStamp % 86400) % 3600) % 60) < 9 - ? '0' + Math.floor(((timeStamp % 86400) % 3600) % 60) - : Math.floor(((timeStamp % 86400) % 3600) % 60) + ? "0" + Math.floor(((timeStamp % 86400) % 3600) % 60) + : Math.floor(((timeStamp % 86400) % 3600) % 60); }, getCommunicationList() { communicationList({ id: this.id }).then(res => { @@ -1386,10 +1507,10 @@ export default { const obj = { label: item.name, value: item.id - } - this.communicationOptions.push(obj) - }) - }) + }; + this.communicationOptions.push(obj); + }); + }); }, getStaffList() { staffList().then(res => { @@ -1397,10 +1518,10 @@ export default { const obj = { label: item.name, value: item.id - } - this.staffOptions.push(obj) - }) - }) + }; + this.staffOptions.push(obj); + }); + }); }, resetPayload() { this.payload = { @@ -1411,36 +1532,37 @@ export default { attachmentList: undefined, approve: undefined, evaluation: undefined - } - this.spr = [] - this.bzjr = undefined + }; + this.spr = []; + this.bzjr = undefined; }, handleRevoke() { const payload = { id: this.id, version: this.convenience.version, type: 2 - } + }; update(payload).then(res => { // console.log(res); - this.$notify.success('撤销成功') - }) + this.$notify.success("撤销成功"); + }); }, handleContact() { + this.resetPayload(); this.$nextTick(() => { - this.$refs.contractForm.clearValidate() - }) - this.contactDialog = true - this.payload.type = 3 - this.payload.id = this.id - this.payload.version = this.convenience.version + this.$refs.contractForm.clearValidate(); + }); + this.contactDialog = true; + this.payload.type = 3; + this.payload.id = this.id; + this.payload.version = this.convenience.version; }, getNames(arr) { - const temp = [] + const temp = []; arr.map(item => { - temp.push(item.name) - }) - return temp.join(',') + temp.push(item.name); + }); + return temp.join(","); }, handlePreview() {}, handleRemove() {}, @@ -1461,27 +1583,27 @@ export default { update(this.payload).then(res => { // console.log(res); if (res.c === 200) { - this.$notify.success('提交成功') + this.$notify.success("提交成功"); } - this.getInfo() - this.contactDialog = false - }) + this.getInfo(); + this.contactDialog = false; + }); } - }) + }); }, handleApprove(approve) { - const applyType = this.convenience.applyType - this.updateType = applyType === 'FORWARDED' ? 10 : 13 - this.payload.id = this.convenience.id - this.payload.version = this.convenience.version - this.payload.type = this.updateType - this.payload.approve = approve + const applyType = this.convenience.applyType; + this.updateType = applyType === "FORWARDED" ? 10 : 13; + this.payload.id = this.convenience.id; + this.payload.version = this.convenience.version; + this.payload.type = this.updateType; + this.payload.approve = approve; if (approve) { // console.log(this.payload); - this.updateData() + this.updateData(); } else { - this.applyDialog = true + this.applyDialog = true; } // id: this.id, // version: undefined, @@ -1492,51 +1614,51 @@ export default { // evaluation: undefined }, handleApprovalReminder() { - this.dialogApprovalReminder = true + this.dialogApprovalReminder = true; }, handleConfirmApprovalReminder() { - this.dialogApprovalReminder = false - this.handleUpdate(11) + this.dialogApprovalReminder = false; + this.handleUpdate(11); }, handleUpdate(type) { // console.log(type); - this.resetPayload() - this.updateType = type - this.payload.id = this.convenience.id - this.payload.version = this.convenience.version - this.payload.type = type + this.resetPayload(); + this.updateType = type; + this.payload.id = this.convenience.id; + this.payload.version = this.convenience.version; + this.payload.type = type; switch (type) { case 6: // 要件齐备 - this.applyDialog = true - break + this.applyDialog = true; + break; case 7: // 办结 - this.applyDialog = true - break + this.applyDialog = true; + break; case 10: // 转交超限审批 // this.approve; - break + break; case 11: // 发起审批 - this.applyDialog = true - break + this.applyDialog = true; + break; - // case 12: - // // 撤销审批 - // break; + // case 12: + // // 撤销审批 + // break; case 13: // 审批操作 - this.applyDialog = true - break + this.applyDialog = true; + break; case 14: // console.log("handle14"); // 转交 const frequencys = this.convenience.records.filter( m => m.frequency !== null - ) + ); if ( frequencys.filter( item => @@ -1544,20 +1666,20 @@ export default { this.convenience.eventType.referralRestrictions ).length > 0 ) { - this.updateType = 8 - this.confirmDialog = true + this.updateType = 8; + this.confirmDialog = true; } else { - this.updateType = 14 - this.applyDialog = true + this.updateType = 14; + this.applyDialog = true; } - break + break; case 16: // 评价申诉 - this.applyDialog = true - break + this.applyDialog = true; + break; default: - this.updateData() - break + this.updateData(); + break; } }, handleEventTypeChange(val) { @@ -1568,9 +1690,9 @@ export default { type: 4, version: this.convenience.version, remark: val - } - this.updateType = 4 - this.updateData() + }; + this.updateType = 4; + this.updateData(); // this.dialogEventType = false; }, handleChange(val) { @@ -1582,48 +1704,59 @@ export default { // }) // console.log(this.payload); // console.log(this.payload.type); - this.updateData() - this.applyDialog = false + this.updateData(); + this.applyDialog = false; }, handleContinue() { setTimeout(() => { - this.confirmDialog = false - }, 100) - this.applyDialog = true + this.confirmDialog = false; + }, 100); + this.applyDialog = true; }, updateData() { // console.log(this.updateType); switch (this.updateType) { case 6: - break + break; case 8: - this.payload.ids.push(this.spr) - this.payload.ids.push(this.bzjr) - this.payload.type = 8 - break + this.payload.ids.push(this.spr); + this.payload.ids.push(this.bzjr); + this.payload.type = 8; + break; case 11: - this.payload.id = this.convenience.id - this.payload.version = this.convenience.version - this.payload.ids = this.spr - break + this.payload.id = this.convenience.id; + this.payload.version = this.convenience.version; + this.payload.ids = this.spr; + break; case 14: - this.payload.type = 14 - this.payload.ids.push(this.bzjr) - break + this.payload.type = 14; + this.payload.ids.push(this.bzjr); + break; } update(this.payload).then(res => { if (res.c === 200) { - this.$notify.success('操作成功') + this.$notify.success("操作成功"); if (this.updateType === 13) { - this.$router.push('/convenience/list') - return + this.$router.push("/convenience/list"); + return; } if (this.updateType === 4) { - this.isEventTypeChange = false + this.isEventTypeChange = false; } - this.getInfo() + if (this.updateType === 12) { + this.cxPop = false; + } + // if (this.updateType===12){ + // this.$notify.success('撤销成功') + // } + // if(this.updateType===10||this.updateType===13){ + // if(this.payload.approve){ + // this.$notify.success('审批通过') + // } + // } + this.getInfo(); } - }) + }); }, // handlePreviewAttachment(url) { // const fileType = url.substr(url.lastIndexOf(".") + 1); @@ -1635,15 +1768,15 @@ export default { // }, isAssetTypeAnImage(ext) { return ( - ['png', 'jpg', 'jpeg', 'bmp', 'gif'].indexOf(ext.toLowerCase()) !== -1 - ) + ["png", "jpg", "jpeg", "bmp", "gif"].indexOf(ext.toLowerCase()) !== -1 + ); }, handleSetPreviewImg(imgurl) { - this.dialogImageUrl = imgurl - this.dialogPreviewImg = true + this.dialogImageUrl = imgurl; + this.dialogPreviewImg = true; }, handleChangeEventType() { - this.dialogEventType = true + this.dialogEventType = true; }, eventTypeUpdate() { this.payload = { @@ -1651,17 +1784,26 @@ export default { type: 4, version: this.convenience.version, remark: this.eventTypeId - } - this.updateType = 4 - this.updateData() - this.dialogEventType = false + }; + this.updateType = 4; + this.updateData(); + this.dialogEventType = false; + }, + cascader() { + this.isEventTypeChange = !this.isEventTypeChange; + this.$nextTick(() => { + console.log(this.$refs.cascader) + const tempRef = this.$refs.cascader; + tempRef.$el.style.display='inline-block' + this.$refs.cascader.focusFirstNode() + }, 100); } }, beforeRouteLeave(to, from, next) { - clearInterval(this.acceptanceInterval) - clearInterval(this.prerequisitesInterval) - clearInterval(this.finishTimeInterval) - next() + clearInterval(this.acceptanceInterval); + clearInterval(this.prerequisitesInterval); + clearInterval(this.finishTimeInterval); + next(); } // timeFormat(timeStamp) { // const timeStr = `${ @@ -1679,7 +1821,7 @@ export default { // }`; // return timeStr; // } -} +}; diff --git a/src/views/convenience/img/icon_acceptance.png b/src/views/convenience/img/icon_acceptance.png index 0a8a0e6..5eabe7e 100644 Binary files a/src/views/convenience/img/icon_acceptance.png and b/src/views/convenience/img/icon_acceptance.png differ diff --git a/src/views/convenience/img/icon_finish.png b/src/views/convenience/img/icon_finish.png index 5ee0260..5bf54f6 100644 Binary files a/src/views/convenience/img/icon_finish.png and b/src/views/convenience/img/icon_finish.png differ diff --git a/src/views/convenience/img/icon_fujian_self.png b/src/views/convenience/img/icon_fujian_self.png new file mode 100644 index 0000000..7a781ed Binary files /dev/null and b/src/views/convenience/img/icon_fujian_self.png differ diff --git a/src/views/convenience/img/icon_jd.png b/src/views/convenience/img/icon_jd.png new file mode 100644 index 0000000..88a697a Binary files /dev/null and b/src/views/convenience/img/icon_jd.png differ diff --git a/src/views/convenience/img/icon_prepare.png b/src/views/convenience/img/icon_prepare.png index 9f27390..6120554 100644 Binary files a/src/views/convenience/img/icon_prepare.png and b/src/views/convenience/img/icon_prepare.png differ diff --git a/src/views/convenience/img/icon_yj.png b/src/views/convenience/img/icon_yj.png new file mode 100644 index 0000000..96e3888 Binary files /dev/null and b/src/views/convenience/img/icon_yj.png differ diff --git a/src/views/convenience/img/timeLine_self.png b/src/views/convenience/img/timeLine_self.png new file mode 100644 index 0000000..d8f5a41 Binary files /dev/null and b/src/views/convenience/img/timeLine_self.png differ diff --git a/src/views/convenience/img/timeLine_staff.png b/src/views/convenience/img/timeLine_staff.png new file mode 100644 index 0000000..fdbc172 Binary files /dev/null and b/src/views/convenience/img/timeLine_staff.png differ diff --git a/src/views/convenience/list.vue b/src/views/convenience/list.vue index 75f3d41..a447ca4 100644 --- a/src/views/convenience/list.vue +++ b/src/views/convenience/list.vue @@ -3,7 +3,7 @@
    直接建立工单
    工单列表
    @@ -31,7 +31,7 @@
    -
    +
    -
    城乡养老保险个人变更登记
    +
    {{ item.eventType.eventName }}
    {{ item.sponsor | sponsorFilter }}创建于{{ item.createDate | parseTime("{y}-{m}-{d} {h}:{i}:{s}") @@ -56,13 +56,16 @@

    流水号:{{ item.serialNumber }}

    阶段:{{ item.phase | phaseFilter }} - + {{ timers && timers[index].status === null ? "" - : timers&&timers[index].status - ? "已超时" - : "即将超时" + : timers && timers[index].status + ? "已超时" + : "即将超时" }}

    @@ -76,10 +79,12 @@

    -

    受理人:{{ item.currentResponsiblePerson.name }}

    +

    受理人:{{ item.firstResponsiblePerson.name }}

    -
    -

    +

    + +
    + {{ + (timers && timeFormat(timers[index].time)) || "00:00:00" + }} +
    + 接单 +
    +
    @@ -198,10 +219,10 @@ export default { filters: { sponsorFilter(status) { const statusMap = { - SELF: '居民', - STAFF: '工作人员' - } - return statusMap[status] + SELF: "群众", + STAFF: "工作人员" + }; + return statusMap[status]; }, phaseFilter(status) { const statusMap = { @@ -214,13 +235,13 @@ export default { }, statusFilter(status) { const statusMap = { - MINE: '待我处理', - FORWARDED: '已转交', - FORWARDED_APPLY: '转交超限审批中', - SUBMIT_APPLY: '提交申请', - WAIT_APPLY: '待审核' - } - return statusMap[status] + MINE: "我处理", + FORWARDED: "已转交", + FORWARDED_APPLY: "转交超限审批中", + SUBMIT_APPLY: "已提交审批", + WAIT_APPLY: "待审核" + }; + return statusMap[status]; }, typeFilter(status) { const statusMap = { @@ -302,12 +323,13 @@ export default { getList() { this.listLoading = true list(this.listQuery).then(res => { - this.list = res.d.records - this.listLoading = false - clearInterval(this.timersInterval) - const tempData = res.d.records - const now = Date.parse(new Date()).toString() / 1000 - const arr = [] + this.list = res.d.records; + this.listLoading = false; + clearInterval(this.timersInterval); + const tempData = res.d.records; + const now = Date.parse(new Date()).toString() / 1000; + // console.log(now); + const arr = []; tempData.map((item, index) => { let msec = [] let obj = {} @@ -324,7 +346,7 @@ export default { break case 'PREREQUISITES': // 要件准备 - msec = now - item.createDate - item.acceptanceTime + msec = now - item.createDate; obj = { time: msec, phase: item.phase, @@ -334,11 +356,7 @@ export default { break case 'PROCESSING': // 办理中 - msec = - now - - item.createDate - - item.acceptanceTime - - item.prerequisitesTime + msec = now - item.createDate; obj = { time: msec, phase: item.phase, diff --git a/src/views/dashboard/admin/components/PanelGroup.vue b/src/views/dashboard/admin/components/PanelGroup.vue index 43be3f6..f4c2ca9 100644 --- a/src/views/dashboard/admin/components/PanelGroup.vue +++ b/src/views/dashboard/admin/components/PanelGroup.vue @@ -1,396 +1,64 @@ diff --git a/src/views/workBook/list.vue b/src/views/workBook/list.vue index bd038e8..192f9cf 100644 --- a/src/views/workBook/list.vue +++ b/src/views/workBook/list.vue @@ -58,7 +58,7 @@