diff --git a/package.json b/package.json index ae34990..1882ac3 100644 --- a/package.json +++ b/package.json @@ -21,9 +21,11 @@ "echarts": "^5.5.1", "element-ui": "^2.15.6", "file-saver": "^2.0.5", + "html2canvas": "^1.4.1", "js-base64": "^2.5.1", "js-cookie": "^2.2.0", "js-md5": "^0.7.3", + "jspdf": "^2.5.2", "jszip": "^3.10.1", "mockjs": "^1.0.1-beta3", "moment": "^2.30.1", @@ -39,9 +41,11 @@ "vue-easy-print": "0.0.8", "vue-i18n": "^8.7.0", "vue-print-nb": "^1.7.5", + "vue-printjs": "^1.0.0", "vue-router": "^3.0.1", "vue-seamless-scroll": "^1.1.23", - "vuex": "^3.1.1" + "vuex": "^3.1.1", + "xlsx": "^0.18.5" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.1.1", diff --git a/src/api/common.js b/src/api/common.js index 1da6f98..ff9dd57 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -17,7 +17,7 @@ export const exportBlob = (url, params) => { export const exportBlob1 = (url, params) => { return request({ url: url, - params: params, + data: params, method: 'post', responseType: 'blob' }) diff --git a/src/api/device/device.js b/src/api/device/device.js index 15aa17b..a46963d 100644 --- a/src/api/device/device.js +++ b/src/api/device/device.js @@ -72,4 +72,21 @@ export const getLabList = (query) =>{ method:'get', params:query }) -} \ No newline at end of file +} + +// 获取设备维修列表 +export const getWorkOrderList = (query) =>{ + return request({ + url:"/api/lab-ops/work-order/find-list-by-device-id", + method:'get', + params:query + }) +} +// 获取维保列表 +export const getMaintenanceList = (query) =>{ + return request({ + url:"/api/lab-ops/maintenance/find-list-by-device-id", + method:'get', + params:query + }) +} diff --git a/src/api/operation/hand.js b/src/api/operation/hand.js index dc1c466..d1771a5 100644 --- a/src/api/operation/hand.js +++ b/src/api/operation/hand.js @@ -276,4 +276,33 @@ export const sendMess = (data) =>{ method:"post", data }) -} \ No newline at end of file +} + +// 查看流程 / +export const workOrderLog = (query) =>{ + return request({ + url:"/api/lab-ops/work-order-log/find-list-by-code", + method:'get', + params:query + }) +} + +// 紧急维修 客户确认维修效果 + +export const urgentRepairConfirm = (data) =>{ + return request({ + url:"/api/lab-ops/work-order/customer-emergency-repair-confirm", + method:"post", + data + }) +} +// 驳回 +export const urgentRepairReject = (data) =>{ + return request({ + url:"/api/lab-ops/work-order/customer-emergency-repair-reject", + method:"post", + data + }) +} + + diff --git a/src/api/supervisory.js b/src/api/supervisory.js new file mode 100644 index 0000000..3f928c9 --- /dev/null +++ b/src/api/supervisory.js @@ -0,0 +1,78 @@ +import request from "@/router/axios"; + +// 设备概况 +export const getEquipOverview= (params) => { + return request({ + url: '/api/lab-ops/large-screen/select-equip-overview', + method: 'get', + params: params + }) +} +// 巡检任务状态 统计图 +export const getMaintenanceTaskStatus= (params) => { + return request({ + url: '/api/lab-ops/large-screen/select-maintenance-task-status', + method: 'get', + params:params + }) +} + +// 维保数量统计 +export const getMaintenanceTaskCount= (params) => { + return request({ + url: '/api/lab-ops/large-screen/select-maintenance-task-count', + method: 'get', + params: params + }) +} + +// 维修数量统计 +export const getSelectEquipOverview= (params) => { + return request({ + url: '/api/lab-ops/large-screen/select-equip-overview', + method: 'get', + params: params + }) +} +// 平均故障修复时间 +export const averageFaultResponseTime= (params) => { + return request({ + url: '/api/lab-ops/large-screen/select-average-fault-repair-time', + method: 'get', + params: params + }) +} +// 故障设备TOP5 +export const Top5= (params) => { + return request({ + url: '/api/lab-ops/large-screen/select-fault-equip-top5', + method: 'get', + params: params + }) +} +// 故障设备TOP5 +export const countByMonth= (params) => { + return request({ + url: '/api/lab-ops/large-screen/select-equip-repair-count-by-month', + method: 'get', + params: params + }) +} +// 平均故障响应时间 +export const repairCountByMonth= (params) => { + return request({ + url: '/api/lab-ops/large-screen/select-average-fault-response-time', + method: 'get', + params: params + }) +} + +export const claimTask = (taskId) => { + return request({ + url: '/api/blade-flow/work/claim-task', + method: 'post', + params: { + taskId + } + }) +} diff --git a/src/assets/file/workTemplet.pdf b/src/assets/file/workTemplet.pdf new file mode 100644 index 0000000..8402a7c --- /dev/null +++ b/src/assets/file/workTemplet.pdf @@ -0,0 +1,37 @@ + 运营维护服务单 + + 客户名称 联系人 + + 联系电话 地址 +故障现象: + +是否在保修期 是 否 约定服务方式 上门 电话 + +故障产生原因: + + 所用维修材料 + +序号 名称 数量 单价 总价 + +1 + +2 + +3 + +4 合计 + + 保修期内因客户自 维修差旅费: 0元; 维修费总计: 0 +身 原 因 产 生故 障 收 费 + 元; + +保修期外收 维修差旅费: 元; 维修费总计: 元; + 费 + +故障排除方法和处理结果(详细描述): 客户签字 + 故障排除方法和处理结果(详细描述): 客户签字 + +维修工程师签名: 联系方式: + 日 +日期: 年 月 + diff --git a/src/assets/images/alarm_icon.png b/src/assets/images/alarm_icon.png new file mode 100644 index 0000000..23a548d Binary files /dev/null and b/src/assets/images/alarm_icon.png differ diff --git a/src/assets/images/alarm_icon_daping.png b/src/assets/images/alarm_icon_daping.png new file mode 100644 index 0000000..13ba8d6 Binary files /dev/null and b/src/assets/images/alarm_icon_daping.png differ diff --git a/src/assets/images/bg.png b/src/assets/images/bg.png new file mode 100644 index 0000000..ff71d63 Binary files /dev/null and b/src/assets/images/bg.png differ diff --git a/src/assets/images/esc.png b/src/assets/images/esc.png new file mode 100644 index 0000000..c9beb5e Binary files /dev/null and b/src/assets/images/esc.png differ diff --git a/src/assets/json/status.json b/src/assets/json/status.json index 74b7808..5d508ba 100644 --- a/src/assets/json/status.json +++ b/src/assets/json/status.json @@ -1,906 +1,1092 @@ { - "maintain": { - "1846419477876510721": [ - { - "name": "待提报", - "status": 4, - "color": "#409eff", - "type": "" - }, - { - "name": "待提报", - "status": 100, - "color": "#409eff", - "type": "" - }, - { - "name": "待提报", - "status": 200, - "color": "#409eff", - "type": "" - }, - { - "name": "待接单", - "status": 101, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待接单", - "status": 205, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待维修", - "status": 201, - "color": "#409eff", - "type": "" - }, - { - "name": "待维修", - "status": 401, - "color": "#409eff", - "type": "" - }, - { - "name": "待维修", - "status": 402, - "color": "#409eff", - "type": "" - }, - { - "name": "确认方案", - "status": 301, - "color": "#409eff", - "type": "" - }, - { - "name": "维修中", - "status": 103, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "待评价", - "status": 403, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待评价", - "status": 202, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待付款", - "status": 104, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 202, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 203, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 204, - "color": "#909399", - "type": "info" - }, - { - "name": "已驳回", - "status": 102, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 300, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 400, - "color": "#f56c6c", - "type": "danger" - } - ], - "1123598816738675201":[ - { - "name": "待提报", - "status": 100, - "color": "#409eff", - "type": "" - }, - { - "name": "待接单", - "status": 101, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待维修", - "status": 201, - "color": "#409eff", - "type": "" - }, - { - "name": "待维修", - "status": 401, - "color": "#409eff", - "type": "" - }, - { - "name": "待维修", - "status": 402, - "color": "#409eff", - "type": "" - }, - { - "name": "确认方案", - "status": 301, - "color": "#409eff", - "type": "" - }, - { - "name": "维修中", - "status": 103, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "待评价", - "status": 403, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待评价", - "status": 202, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待付款", - "status": 104, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 202, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 203, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 204, - "color": "#909399", - "type": "info" - }, - { - "name": "已驳回", - "status": 102, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 300, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 400, - "color": "#f56c6c", - "type": "danger" - } - ], - "1839536982874193922": [ - { - "name": "待提报", - "status": 100, - "color": "#409eff", - "type": "" - }, - { - "name": "待提报", - "status": 4, - "color": "#409eff", - "type": "" - }, - { - "name": "待提报", - "status": 200, - "color": "#409eff", - "type": "" - }, - { - "name": "待接单", - "status": 101, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待接单", - "status": 205, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待维修", - "status": 201, - "color": "#409eff", - "type": "" - }, - { - "name": "待维修", - "status": 401, - "color": "#409eff", - "type": "" - }, - { - "name": "待维修", - "status": 402, - "color": "#409eff", - "type": "" - }, - { - "name": "待维修", - "status": 301, - "color": "#409eff", - "type": "" - }, - { - "name": "维修中", - "status": 103, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "维修完成", - "status": 403, - "color": "#67c23a", - "type": "success" - }, - { - "name": "维修完成", - "status": 202, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待付款", - "status": 104, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 203, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 204, - "color": "#909399", - "type": "info" - }, - { - "name": "已驳回", - "status": 102, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 300, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 400, - "color": "#f56c6c", - "type": "danger" - } - ], - "1839537055389515777": [ - { - "name": "", - "status": 4, - "color": "#f56c6c", - "type": "" - }, - { - "name": "", - "status": 200, - "color": "#f56c6c", - "type": "" - }, - { - "name": "", - "status": 205, - "color": "#f56c6c", - "type": "" - }, - { - "name": "已驳回", - "status": 102, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 300, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 400, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "待审批", - "status": 402, - "color": "#409eff", - "type": "" - }, - { - "name": "已通过", - "status": 301, - "color": "#409eff", - "type": "" - }, - { - "name": "维修中", - "status": 103, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "维修完成", - "status": 403, - "color": "#67c23a", - "type": "success" - }, - { - "name": "维修完成", - "status": 202, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待付款", - "status": 104, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 203, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 204, - "color": "#909399", - "type": "info" - } - ], - "1839552581620793346": [ - { - "name": "", - "status": 200, - "color": "#f56c6c", - "type": "" - }, - { - "name": "", - "status": 205, - "color": "#f56c6c", - "type": "" - }, - { - "name": "待提报", - "status": 4, - "color": "#409eff", - "type": "" - }, - { - "name": "已驳回", - "status": 100, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 101, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 102, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 300, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 400, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "待确认", - "status": 201, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待提交", - "status": 401, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待审批", - "status": 402, - "color": "#409eff", - "type": "" - }, - { - "name": "待审批", - "status": 301, - "color": "#409eff", - "type": "" - }, - { - "name": "维修中", - "status": 103, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "已完成", - "status": 403, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 104, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 202, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 203, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 204, - "color": "#909399", - "type": "info" - } - ] - }, - "inspectionTask": { - "1846419477876510721": [ - { - "name": "待巡检", - "status": 0, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待巡检", - "status": 1, - "color": "#67c23a", - "type": "success" - }, - { - "name": "巡检中", - "status": 2, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "待确认", - "status": 3, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 4, - "color": "#909399", - "type": "info" - } - ], - "1123598816738675201":[ - { - "name": "待巡检", - "status": 0, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待巡检", - "status": 1, - "color": "#67c23a", - "type": "success" - }, - { - "name": "巡检中", - "status": 2, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "待确认", - "status": 3, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 4, - "color": "#909399", - "type": "info" - } - ], - "1839537055389515777": [ - { - "name": "待派单", - "status": 0, - "color": "#409eff", - "type": "" - }, - { - "name": "待巡检", - "status": 1, - "color": "#67c23a", - "type": "success" - }, - { - "name": "巡检中", - "status": 2, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "巡检中", - "status": 3, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "已完成", - "status": 4, - "color": "#909399", - "type": "info" - } - ], - "1839552581620793346": [ - { - "name": "待派单", - "status": 0, - "color": "#409eff", - "type": "" - }, - { - "name": "待接单", - "status": 1, - "color": "#67c23a", - "type": "success" - }, - { - "name": "巡检中", - "status": 2, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "待确认", - "status": 3, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 4, - "color": "#909399", - "type": "info" - } - ] - }, - "inspectionMaintenance": { - "1846419477876510721": [ - { - "name": "待提交", - "status": 1, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待审批", - "status": 2, - "color": "#409eff", - "type": "" - }, - { - "name": "待审批", - "status": 3, - "color": "#409eff", - "type": "" - }, - { - "name": "维修中", - "status": 4, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "待评价", - "status": 5, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待付款", - "status": 6, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 7, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 8, - "color": "#909399", - "type": "info" - } - ], - "1123598816738675201":[ - { - "name": "待提交", - "status": 1, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待审批", - "status": 2, - "color": "#409eff", - "type": "" - }, - { - "name": "待审批", - "status": 3, - "color": "#409eff", - "type": "" - }, - { - "name": "维修中", - "status": 4, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "待评价", - "status": 5, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待付款", - "status": 6, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 7, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 8, - "color": "#909399", - "type": "info" - } - ], - "1839536982874193922": [ - { - "name": "待提交", - "status": 1, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待审批", - "status": 2, - "color": "#409eff", - "type": "" - }, - { - "name": "待审批", - "status": 3, - "color": "#409eff", - "type": "" - }, - { - "name": "维修中", - "status": 4, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "待评价", - "status": 5, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待付款", - "status": 6, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 7, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 8, - "color": "#909399", - "type": "info" - } - ], - "1839537055389515777": [ - { - "name": "待提交", - "status": 1, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待审批", - "status": 2, - "color": "#409eff", - "type": "" - }, - { - "name": "待确认", - "status": 3, - "color": "#67c23a", - "type": "success" - }, - { - "name": "维修中", - "status": 4, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "维修完成", - "status": 5, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待付款", - "status": 6, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 7, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 8, - "color": "#909399", - "type": "info" - } - ], - "1839552581620793346": [ - { - "name": "待提交", - "status": 1, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待审批", - "status": 2, - "color": "#409eff", - "type": "" - }, - { - "name": "待审批", - "status": 3, - "color": "#409eff", - "type": "" - }, - { - "name": "维修中", - "status": 4, - "color": "#e6a23", - "type": "warning" - }, - { - "name": "维修完成", - "status": 5, - "color": "#67c23a", - "type": "success" - }, - { - "name": "待付款", - "status": 6, - "color": "#67c23a", - "type": "success" - }, - { - "name": "已完成", - "status": 7, - "color": "#909399", - "type": "info" - }, - { - "name": "已完成", - "status": 8, - "color": "#909399", - "type": "info" - } - ] - } - } \ No newline at end of file + "maintain": { + "1846419477876510721": [ + { + "name": "待提报", + "status": 4, + "color": "#409eff", + "type": "" + }, + { + "name": "待提报", + "status": 100, + "color": "#409eff", + "type": "" + }, + { + "name": "待提报", + "status": 200, + "color": "#409eff", + "type": "" + }, + { + "name": "待接单", + "status": 101, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待接单", + "status": 205, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待维修", + "status": 201, + "color": "#409eff", + "type": "" + }, + { + "name": "待维修", + "status": 401, + "color": "#409eff", + "type": "" + }, + { + "name": "待维修", + "status": 402, + "color": "#409eff", + "type": "" + }, + { + "name": "确认方案", + "status": 301, + "color": "#409eff", + "type": "" + }, + { + "name": "待确认", + "status": 405, + "color": "#409eff", + "type": "" + }, + { + "name": "待提交", + "status": 105, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 103, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修中", + "status": 404, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待评价", + "status": 403, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待评价", + "status": 406, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待评价", + "status": 202, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 104, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 202, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 203, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 204, + "color": "#909399", + "type": "info" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 300, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 400, + "color": "#f56c6c", + "type": "danger" + } + ], + "1123598816738675201": [ + { + "name": "待提报", + "status": 100, + "color": "#409eff", + "type": "" + }, + { + "name": "待接单", + "status": 101, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待维修", + "status": 201, + "color": "#409eff", + "type": "" + }, + { + "name": "待维修", + "status": 401, + "color": "#409eff", + "type": "" + }, + { + "name": "待维修", + "status": 402, + "color": "#409eff", + "type": "" + }, + { + "name": "确认方案", + "status": 301, + "color": "#409eff", + "type": "" + }, + { + "name": "待确认", + "status": 405, + "color": "#409eff", + "type": "" + }, + { + "name": "待提交", + "status": 105, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 103, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修中", + "status": 404, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待评价", + "status": 403, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待评价", + "status": 406, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待评价", + "status": 202, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 104, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 202, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 203, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 204, + "color": "#909399", + "type": "info" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 300, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 400, + "color": "#f56c6c", + "type": "danger" + } + ], + "1839536982874193922": [ + { + "name": "待提报", + "status": 100, + "color": "#409eff", + "type": "" + }, + { + "name": "待提报", + "status": 4, + "color": "#409eff", + "type": "" + }, + { + "name": "待提报", + "status": 200, + "color": "#409eff", + "type": "" + }, + { + "name": "待接单", + "status": 101, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待接单", + "status": 205, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待维修", + "status": 201, + "color": "#409eff", + "type": "" + }, + { + "name": "待维修", + "status": 401, + "color": "#409eff", + "type": "" + }, + { + "name": "待维修", + "status": 402, + "color": "#409eff", + "type": "" + }, + { + "name": "待维修", + "status": 301, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 103, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修中", + "status": 404, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修完成", + "status": 405, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修完成", + "status": 406, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修完成", + "status": 105, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修完成", + "status": 403, + "color": "#67c23a", + "type": "success" + }, + { + "name": "维修完成", + "status": 202, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 104, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 203, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 204, + "color": "#909399", + "type": "info" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 300, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 400, + "color": "#f56c6c", + "type": "danger" + } + ], + "1839537055389515777": [ + { + "name": "", + "status": 4, + "color": "#f56c6c", + "type": "" + }, + { + "name": "", + "status": 200, + "color": "#f56c6c", + "type": "" + }, + { + "name": "", + "status": 205, + "color": "#f56c6c", + "type": "" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 300, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 400, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "待审批", + "status": 402, + "color": "#409eff", + "type": "" + }, + { + "name": "已通过", + "status": 301, + "color": "#409eff", + "type": "" + }, + { + "name": "待确认", + "status": 201, + "color": "#e6a23", + "type": "#409eff" + }, + { + "name": "维修中", + "status": 103, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修中", + "status": 404, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修完成", + "status": 405, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修完成", + "status": 105, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修完成", + "status": 406, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修完成", + "status": 403, + "color": "#67c23a", + "type": "success" + }, + { + "name": "维修完成", + "status": 202, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 104, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 203, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 204, + "color": "#909399", + "type": "info" + } + ], + "1839552581620793346": [ + { + "name": "", + "status": 200, + "color": "#f56c6c", + "type": "" + }, + { + "name": "", + "status": 205, + "color": "#f56c6c", + "type": "" + }, + { + "name": "待提报", + "status": 4, + "color": "#409eff", + "type": "" + }, + { + "name": "已驳回", + "status": 100, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 101, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 300, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 400, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "待确认", + "status": 201, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待提交", + "status": 401, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待提交", + "status": 105, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待审批", + "status": 402, + "color": "#409eff", + "type": "" + }, + { + "name": "待审批", + "status": 301, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 103, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修中", + "status": 404, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待确认", + "status": 405, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "已完成", + "status": 406, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 403, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 104, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 202, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 203, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 204, + "color": "#909399", + "type": "info" + } + ] + }, + "inspectionTask": { + "1846419477876510721": [ + { + "name": "待巡检", + "status": 0, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待巡检", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "巡检中", + "status": 2, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待确认", + "status": 3, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 4, + "color": "#909399", + "type": "info" + } + ], + "1123598816738675201": [ + { + "name": "待巡检", + "status": 0, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待巡检", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "巡检中", + "status": 2, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待确认", + "status": 3, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 4, + "color": "#909399", + "type": "info" + } + ], + "1839537055389515777": [ + { + "name": "待派单", + "status": 0, + "color": "#409eff", + "type": "" + }, + { + "name": "待巡检", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "巡检中", + "status": 2, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "巡检中", + "status": 3, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "已完成", + "status": 4, + "color": "#909399", + "type": "info" + } + ], + "1839552581620793346": [ + { + "name": "待派单", + "status": 0, + "color": "#409eff", + "type": "" + }, + { + "name": "待接单", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "巡检中", + "status": 2, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待确认", + "status": 3, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 4, + "color": "#909399", + "type": "info" + } + ] + }, + "inspectionMaintenance": { + "1846419477876510721": [ + { + "name": "待提交", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待审批", + "status": 2, + "color": "#409eff", + "type": "" + }, + { + "name": "待审批", + "status": 3, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 4, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待评价", + "status": 5, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 6, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 7, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 8, + "color": "#909399", + "type": "info" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 101, + "color": "#f56c6c", + "type": "danger" + } + ], + "1123598816738675201": [ + { + "name": "待提交", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待审批", + "status": 2, + "color": "#409eff", + "type": "" + }, + { + "name": "待审批", + "status": 3, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 4, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待评价", + "status": 5, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 6, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 7, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 8, + "color": "#909399", + "type": "info" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 101, + "color": "#f56c6c", + "type": "danger" + } + ], + "1839536982874193922": [ + { + "name": "待提交", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待审批", + "status": 2, + "color": "#409eff", + "type": "" + }, + { + "name": "待审批", + "status": 3, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 4, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "待评价", + "status": 5, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 6, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 7, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 8, + "color": "#909399", + "type": "info" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 101, + "color": "#f56c6c", + "type": "danger" + } + ], + "1839537055389515777": [ + { + "name": "待提交", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待审批", + "status": 2, + "color": "#409eff", + "type": "" + }, + { + "name": "待确认", + "status": 3, + "color": "#67c23a", + "type": "success" + }, + { + "name": "维修中", + "status": 4, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修完成", + "status": 5, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 6, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 7, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 8, + "color": "#909399", + "type": "info" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 101, + "color": "#f56c6c", + "type": "danger" + } + ], + "1839552581620793346": [ + { + "name": "待提交", + "status": 1, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待审批", + "status": 2, + "color": "#409eff", + "type": "" + }, + { + "name": "待审批", + "status": 3, + "color": "#409eff", + "type": "" + }, + { + "name": "维修中", + "status": 4, + "color": "#e6a23", + "type": "warning" + }, + { + "name": "维修完成", + "status": 5, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待付款", + "status": 6, + "color": "#67c23a", + "type": "success" + }, + { + "name": "已完成", + "status": 7, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 8, + "color": "#909399", + "type": "info" + }, + { + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 101, + "color": "#f56c6c", + "type": "danger" + } + ] + } + } diff --git a/src/components/order/logDialog.vue b/src/components/order/logDialog.vue new file mode 100644 index 0000000..bc6f542 --- /dev/null +++ b/src/components/order/logDialog.vue @@ -0,0 +1,77 @@ + + diff --git a/src/components/order/workOrderDialog.vue b/src/components/order/workOrderDialog.vue new file mode 100644 index 0000000..a60b1a1 --- /dev/null +++ b/src/components/order/workOrderDialog.vue @@ -0,0 +1,215 @@ + + + diff --git a/src/router/views/index.js b/src/router/views/index.js index 383242e..07fbfb3 100644 --- a/src/router/views/index.js +++ b/src/router/views/index.js @@ -21,6 +21,14 @@ export default [{ }, component: () => import( /* webpackChunkName: "views" */ '@/views/wel/dashboard') + },{ + path: 'supervisory', + name: '监控大屏', + meta: { + i18n: 'supervisory' + }, + component: () => + import( /* webpackChunkName: "views" */ '@/views/largeScreen/supervisory') }] }, { path: '/test', diff --git a/src/store/getters.js b/src/store/getters.js index bf3331f..d735be3 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -26,5 +26,6 @@ const getters = { logsFlag: (state, getters) => getters.logsLen === 0, flowRoutes: state => state.dict.flowRoutes, messageTotal: state => state.dict.messageTotal, + dataType: state => state.user.dataType, } export default getters diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 68d8fd1..a206c39 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -54,6 +54,7 @@ const user = { menuAll: getStore({name: 'menuAll'}) || [], token: getStore({name: 'token'}) || '', refreshToken: getStore({name: 'refreshToken'}) || '', + dataType:null,//数据标识权限 }, actions: { //根据用户名登录 @@ -61,7 +62,6 @@ const user = { return new Promise((resolve, reject) => { loginByUsername(userInfo.tenantId, userInfo.deptId, userInfo.roleId, userInfo.username, encrypt(userInfo.password), userInfo.type, userInfo.key, userInfo.code).then(res => { const data = res.data; - console.log('data-------------------------->',data) if (data.error_description) { Message({ message: data.error_description, @@ -258,12 +258,24 @@ const user = { GetMenu({commit, dispatch}, topMenuId) { return new Promise(resolve => { getRoutes(topMenuId).then((res) => { + let data; - console.log('roure===========>',data) - console.log('local==============>',JSON.parse(localStorage.getItem('saber-userInfo'))) - if(JSON.parse(localStorage.getItem('saber-userInfo')).content.detail.status != 1){ + let userInfo = JSON.parse(localStorage.getItem('saber-userInfo')) + if(userInfo.content.detail.status != 1){ data = res.data.data.filter(item => item.path == '/workbench') }else{ + if (userInfo.content.role_id == "1123598816738675201" || userInfo.content.role_id == "1846419477876510721") { + commit('updateDatatype', 1) //客户 + } + if (userInfo.content.role_id == "1839536982874193922") { + commit('updateDatatype', 2) //客服 + } + if (userInfo.content.role_id == "1839537055389515777") { + commit('updateDatatype', 3) //维修负责人 + } + if (userInfo.content.role_id == "1839552581620793346") { + commit('updateDatatype', 4) //维修人员 + } data = res.data.data } let menu = deepClone(data); @@ -333,7 +345,6 @@ const user = { } state.userInfo = userInfo; } - console.log('state.userInfo==============>',state.userInfo) setStore({name: 'userInfo', content: state.userInfo}) }, SET_ROLES: (state, roles) => { @@ -362,6 +373,10 @@ const user = { state.permission[ele] = true; }); setStore({name: 'permission', content: state.permission}) + }, + updateDatatype(state, data) { + console.log(888888,data) + state.dataType = data } } diff --git a/src/styles/stylesheet.css b/src/styles/stylesheet.css new file mode 100644 index 0000000..3a57a45 --- /dev/null +++ b/src/styles/stylesheet.css @@ -0,0 +1,300 @@ +tr + {mso-height-source:auto; + mso-ruby-visibility:none;} +col + {mso-width-source:auto; + mso-ruby-visibility:none;} +br + {mso-data-placement:same-cell;} +ruby + {ruby-align:left;} +.style0 + {mso-number-format:General; + text-align:general; + vertical-align:middle; + white-space:nowrap; + mso-rotate:0; + mso-background-source:auto; + mso-pattern:auto; + color:black; + font-size:11.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:; + mso-generic-font-family:auto; + mso-font-charset:134; + border:none; + mso-protection:locked visible; + mso-style-name:; + mso-style-id:0;} +.font0 + {color:black; + font-size:11.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:; + mso-generic-font-family:auto; + mso-font-charset:134;} +.font6 + {color:black; + font-size:11.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:Wingdings; + mso-generic-font-family:auto; + mso-font-charset:2;} +.font8 + {color:black; + font-size:11.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:; + mso-generic-font-family:auto; + mso-font-charset:134;} +.font9 + {color:black; + font-size:11.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:; + mso-generic-font-family:auto; + mso-font-charset:134;} +.font10 + {color:black; + font-size:11.0pt; + font-weight:400; + font-style:normal; + text-decoration:underline; + text-underline-style:single; + font-family:; + mso-generic-font-family:auto; + mso-font-charset:134;} +.font11 + {color:white; + font-size:11.0pt; + font-weight:400; + font-style:normal; + text-decoration:underline; + text-underline-style:single; + font-family:; + mso-generic-font-family:auto; + mso-font-charset:134;} +td + {mso-style-parent:style0; + padding-top:1px; + padding-right:1px; + padding-left:1px; + mso-ignore:padding; + color:black; + font-size:11.0pt; + font-weight:400; + font-style:normal; + text-decoration:none; + font-family:; + mso-generic-font-family:auto; + mso-font-charset:134; + mso-number-format:General; + text-align:general; + vertical-align:middle; + border:none; + mso-background-source:auto; + mso-pattern:auto; + mso-protection:locked visible; + white-space:nowrap; + mso-rotate:0;} +.xl65 + {mso-style-parent:style0; + vertical-align:bottom;} +.xl66 + {mso-style-parent:style0; + text-align:center; + border:.5pt solid windowtext;} +.xl67 + {mso-style-parent:style0; + font-family:Wingdings; + mso-generic-font-family:auto; + mso-font-charset:2; + text-align:center; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl68 + {mso-style-parent:style0; + font-family:Wingdings; + mso-generic-font-family:auto; + mso-font-charset:2; + text-align:center; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl69 + {mso-style-parent:style0; + text-align:center; + border:.5pt solid windowtext; + white-space:normal;} +.xl70 + {mso-style-parent:style0; + text-align:center; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext; + white-space:normal;} +.xl71 + {mso-style-parent:style0; + font-family:"Wingdings 2", serif; + mso-font-charset:2; + text-align:center; + border:.5pt solid windowtext; + white-space:normal;} +.xl72 + {mso-style-parent:style0; + font-size:20.0pt; + text-align:center;} +.xl73 + {mso-style-parent:style0; + text-align:center;} +.xl74 + {mso-style-parent:style0; + text-align:center; + border-top:.5pt solid windowtext; + border-right:.5pt solid black; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl75 + {mso-style-parent:style0; + text-align:left; + vertical-align:top; + border:.5pt solid windowtext; + white-space:normal;} +.xl76 + {mso-style-parent:style0; + text-align:left; + vertical-align:top; + border:.5pt solid windowtext;} +.xl77 + {mso-style-parent:style0; + text-align:center; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none; + white-space:normal;} +.xl78 + {mso-style-parent:style0; + text-align:center; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none; + white-space:normal;} +.xl79 + {mso-style-parent:style0; + text-align:center; + vertical-align:top; + border:.5pt solid windowtext; + white-space:normal;} +.xl80 + {mso-style-parent:style0; + text-align:center; + vertical-align:top; + border:.5pt solid windowtext;} +.xl81 + {mso-style-parent:style0; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:none; + border-left:.5pt solid windowtext; + white-space:normal;} +.xl82 + {mso-style-parent:style0; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:none; + border-left:none;} +.xl83 + {mso-style-parent:style0; + text-align:left; + vertical-align:top; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:none; + border-left:none;} +.xl84 + {mso-style-parent:style0; + text-align:left; + vertical-align:top; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl85 + {mso-style-parent:style0; + text-align:left; + vertical-align:top; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl86 + {mso-style-parent:style0; + text-align:left; + vertical-align:top; + border-top:none; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl87 + {mso-style-parent:style0; + text-align:left; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:none; + border-left:.5pt solid windowtext; + white-space:normal;} +.xl88 + {mso-style-parent:style0; + text-align:left; + border-top:.5pt solid windowtext; + border-right:none; + border-bottom:none; + border-left:none;} +.xl89 + {mso-style-parent:style0; + text-align:left; + border-top:.5pt solid windowtext; + border-right:.5pt solid windowtext; + border-bottom:none; + border-left:none;} +.xl90 + {mso-style-parent:style0; + text-align:left; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:.5pt solid windowtext;} +.xl91 + {mso-style-parent:style0; + text-align:left; + border-top:none; + border-right:none; + border-bottom:.5pt solid windowtext; + border-left:none;} +.xl92 + {mso-style-parent:style0; + text-align:left; + border-top:none; + border-right:.5pt solid windowtext; + border-bottom:.5pt solid windowtext; + border-left:none;} diff --git a/src/util/htmlToPdf.js b/src/util/htmlToPdf.js index a5c7ca4..ea7bb53 100644 --- a/src/util/htmlToPdf.js +++ b/src/util/htmlToPdf.js @@ -34,4 +34,4 @@ export default{ ) } } -} \ No newline at end of file +} diff --git a/src/views/businessManagement/inspection/repair.vue b/src/views/businessManagement/inspection/repair.vue index c9ac41a..516e3dc 100644 --- a/src/views/businessManagement/inspection/repair.vue +++ b/src/views/businessManagement/inspection/repair.vue @@ -7,23 +7,7 @@ @@ -82,8 +84,13 @@ 编辑 提交 确认 - 评价 - 导出 + 评价 + + 确认 + 日志 + 报告 @@ -294,7 +301,7 @@ -
+
-
+
+ v-show="((rowStatus == 403 || rowStatus == 406 || isEvalute) && detailForm.approveResult1 == 1) || rowStatus == 104 || rowStatus == 203 || rowStatus == 202">
确定 - -
-
- -
-
-
    -
  • -
    -
    -
    - -
    -
    - 2024-12-13 16:40:46 -
    -
    -
    -
    -

    维修人员提交需求工单维修方案

    -
    -
    -
    -
    -
  • -
  • -
    -
    -
    - -
    -
    - 2024-12-13 16:38:46 -
    -
    -
    -
    -

    维修人员接单

    -
    -
    -
    -
    -
  • -
  • -
    -
    -
    - -
    -
    - 2024-12-13 16:38:46 -
    -
    -
    -
    -

    客服接单

    -
    -
    -
    -
    -
  • -
  • -
    -
    -
    - -
    -
    - 2024-12-13 16:39:43 -
    -
    -
    -
    -

    山东烁今实验室提报需求工单

    -
    -
    -
    -
    -
  • -
-
-
-
-
-
-
+ + + +
@@ -559,23 +482,26 @@ import moment from "moment"; import { dateFormat } from "../../util/date"; import requestSub from '../components/requestSub.vue' import requirement from '../components/requirement.vue' -import { servicePage,getList, getDetail, evaluateSign, addFile, saveData, customerConfirm, customerReject, customerRepairConfirm, customerRepairReject, serviceInvoice,getAllUser } from '@/api/operation/hand' +import { servicePage, getList, getDetail, evaluateSign, addFile, saveData, customerConfirm, customerReject, customerRepairConfirm, customerRepairReject, serviceInvoice, getAllUser, urgentRepairConfirm, urgentRepairReject } from '@/api/operation/hand' import { getDeviceList } from '@/api/device/device' import { getChildList } from '@/api/system/dictbiz' import statusData from "@/assets/json/status.json"; // 引入状态数据 +import logDialog from '../../components/order/logDialog.vue' import { color } from "echarts"; +import { exportBlob, exportBlob1 } from "@/api/common"; +import { downloadXls } from "@/util/util"; let action = "https://api.avuejs.com/imgupload"; export default { components: { requestSub, requirement, - vueEasyPrint + vueEasyPrint, + logDialog }, // directives: { print }, data() { return { - infoDialog: false, searchForm: { timeRange: [] }, @@ -636,7 +562,7 @@ export default { labelWidth: 120, prop: "requirementCode", overHidden: true, - search:true + search: true }, { label: "设备名称", @@ -838,7 +764,10 @@ export default { isFinish: '', role_id: '', isClear: false, - htmlTitle: '需求单报告' + htmlTitle: '运维服务单', + logOrderId: '',//获取id + infoDialog: false, + pdfDomShow: false }; }, @@ -861,14 +790,13 @@ export default { val = item } }) - return val + return val ? val : '' } } }, }, created() { - console.log('userInfo--------->', this.userInfo) - console.log('route---------->',this.$route) + this.searchForm.requirementCode = this.$route.query.requirementCode this.role_id = this.userInfo.role_id // 获取设备列表 @@ -878,12 +806,33 @@ export default { // 获取故障类型 getChildList(1, 100, '1846802246527463425').then(res => { this.typeList = res.data.data - console.log('typeList------->', this.typeList) }) // this.searchForm.timeRange = [moment().subtract(7, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')] }, mounted() { }, methods: { + // 批量导出报告 + allExportReport() { + if (this.selectionList.length == 0) { + this.$message.warning('请至少选择一条数据') + } else { + let tmp = this.selectionList.filter(item => { return (item.status == 202 || item.status == 203 || item.status == 204) }) + if (tmp.length != this.selectionList.length) { + this.$message.warning('请选择状态为已完成的数据') + } else { + console.log('批量导出报告', this.selectionList) + } + } + }, + // 打开流程弹框 + viewLog(row) { + this.infoDialog = true + this.logOrderId = row.requirementCode + }, + // 查看流程 关闭 + closeLog() { + this.infoDialog = false + }, // 点击签名 clickAssign() { this.assignVisible = true @@ -895,7 +844,7 @@ export default { // 客户选择是否维修完成 changeResult(val) { this.isFinish = val - if(val == 0){ + if (val == 0) { this.detailForm.approveRemark = '' } console.log(this.isFinish) @@ -1101,12 +1050,18 @@ export default { }) }, handleExport(row) { - getDetail({ id: row.id }).then(res => { - this.requireForm = res.data.data - setTimeout(() => { - this.getPdf() - }, 100) + // /report-service + let query = JSON.parse(JSON.stringify(row)) + exportBlob1(`/api/lab-ops/work-order/report-service`, query).then(res => { + downloadXls(res.data, "运维服务单.xlsx"); }) + // this.pdfDomShow = true + // getDetail({ id: row.id }).then(res => { + // this.requireForm = JSON.parse(JSON.stringify(res.data.data)) + // setTimeout(() => { + // this.getPdf() + // }, 100) + // }) }, // 评价并签字提交 handleConfirm() { @@ -1257,17 +1212,17 @@ export default { faultLocation: this.searchForm.faultLocation ? this.searchForm.faultLocation : '', //设备位置 faultType: this.searchForm.faultType ? this.searchForm.faultType : '', //故障类型 dataType: 1, - requirementCode:this.searchForm.requirementCode + requirementCode: this.searchForm.requirementCode } console.log('query--------->', query) - if(this.role_id == '1839536982874193922'){ - servicePage(query).then(res =>{ + if (this.role_id == '1839536982874193922') { + servicePage(query).then(res => { console.log('res------------->', res.data.data) this.data = res.data.data.records this.page.total = res.data.data.total this.loading = false }) - }else{ + } else { getList(query).then(res => { console.log('res------------->', res.data.data) this.data = res.data.data.records @@ -1275,7 +1230,37 @@ export default { this.loading = false }) } - + + }, + urgentRepair(row) { + let query = { + id: row.id, + repairType: row.repairType + } + this.$confirm('请确认当前工单是否维修完成?', '提示', { + confirmButtonText: '是', + cancelButtonText: '否', + type: 'warning' + }).then(() => { + console.log('是') + + urgentRepairConfirm(query).then(res => { + if (res.data.code == 200) { + this.$message.success('操作成功') + this.onLoad() + } + }) + + }).catch(() => { + + + urgentRepairReject(query).then(res => { + if (res.data.code == 200) { + this.$message.success('操作成功') + this.onLoad() + } + }) + }) }, }, }; diff --git a/src/views/workbench/index.vue b/src/views/workbench/index.vue index 1826ad1..cd6f8dd 100644 --- a/src/views/workbench/index.vue +++ b/src/views/workbench/index.vue @@ -2,7 +2,7 @@
+ v-show="role_id == '1123598816738675200' || role_id == '1123598816738675201' || role_id == '1846486905193041922'|| role_id == '1846419477876510721'">
账号审核中...
@@ -28,18 +28,18 @@
{{ item.num }}
- +
-
+
-
其他
+
监控大屏
- +
@@ -116,7 +116,7 @@
-
+
@@ -269,6 +269,11 @@
+ + + + Dialog Image +
@@ -406,7 +411,8 @@ export default { rateData: [], peopleXdata:[], peopleNum:[], - peoplePercent:[] + peoplePercent:[], + dialogImgVisible:false,//图片预览 } }, computed: { @@ -426,11 +432,10 @@ export default { }, }, mounted() { - console.log('userInfo=============>',this.userInfo) this.isShowMask = this.userInfo.detail.status == 1 ? false : true this.role_id = this.userInfo.role_id - if (this.role_id == '1123598816738675200' || this.role_id == '1123598816738675201' || this.role_id == '1846419477876510721') { + if (this.role_id == '1123598816738675200' || this.role_id == '1123598816738675201' || this.role_id =='1846486905193041922'|| this.role_id == '1846419477876510721') { // 实验室角色 nextTick(() => { if(!this.isShowMask){ @@ -482,6 +487,11 @@ export default { } }, methods: { + // 报警图片预览 + alarmFn(){ + console.log(44444444444) + this.dialogImgVisible = true + }, getPeopleNum(){ maintenancePersonnel({id:this.userInfo.user_id}).then(res =>{ console.log('res ==============>',res) @@ -498,7 +508,7 @@ export default { this.$router.push({ path:'/operation/hand', query:item - }) + }) }, getRequirement(){ getList({ @@ -650,6 +660,9 @@ export default { } }, + toPage(){ + this.$router.push("/wel/supervisory") + }, createBarEcharts() { var myChart = this.$echarts.init(document.getElementById('bar_echart')); var option = { @@ -1016,9 +1029,9 @@ export default { display: flex; align-items: center; justify-content: center; - + // flex-direction: column; - + .item_top { width: 100%; @@ -1035,7 +1048,7 @@ export default { background: linear-gradient( 90deg, #375DF9 0%, #6DB5FF 100%); box-shadow: 0px 5px 5px 0px #B6D8FF; - + .right_item{ display: flex; @@ -1089,7 +1102,7 @@ export default { background: linear-gradient( 90deg, #F3AC56 0%, #FFCA68 100%); box-shadow: 0px 10px 10px 0px #FEEED0; } - + } } } @@ -1203,7 +1216,7 @@ export default { background: #FFFFFF; border-radius: 10px; border: 1px solid #EBEEF5; - + .left_tit { font-weight: 550;