diff --git a/src/api/device/device.js b/src/api/device/device.js index 76972af..15aa17b 100644 --- a/src/api/device/device.js +++ b/src/api/device/device.js @@ -63,4 +63,13 @@ export const importFile = (params) =>{ query:params, responseType: 'blob' }) +} + +// 获取实验室列表 +export const getLabList = (query) =>{ + return request({ + url:"/api/blade-system/dept/assLimsTree", + method:'get', + params:query + }) } \ No newline at end of file diff --git a/src/api/operation/hand.js b/src/api/operation/hand.js index 166796a..992bd81 100644 --- a/src/api/operation/hand.js +++ b/src/api/operation/hand.js @@ -221,4 +221,41 @@ export const serviceInvoice = (data) =>{ method:'post', data }) -} \ No newline at end of file +} + + +// 客服提交需求单 +export const serviceSave = (data) =>{ + return request({ + url:'/api/lab-ops/work-order/service-save', + method:'post', + data + }) +} + +// 客服提交工单保存为草稿 +export const serviceDraft = (data) =>{ + return request({ + url:'/api/lab-ops/work-order/service-draft', + method:'post', + data + }) +} + +// 客服查询需求单 +export const servicePage = (query) =>{ + return request({ + url:'/api/lab-ops/work-order/service-page', + method:'get', + params:query + }) +} + +// 获取客服角色下所有实验室账号 +export const getAllUser = (query) =>{ + return request({ + url:"/api/blade-system/user/getLimsUsers", + method:'get', + params:query + }) +} diff --git a/src/api/workbench/workbench.js b/src/api/workbench/workbench.js index 6ad9053..bcdb414 100644 --- a/src/api/workbench/workbench.js +++ b/src/api/workbench/workbench.js @@ -78,4 +78,12 @@ export const faultRatio = (query) =>{ method:'get', params:query }) +} + +export const maintenancePersonnel = (query) =>{ + return request({ + url:'/api/workBenches/maintenancePersonnel', + method:'get', + params:query + }) } \ No newline at end of file diff --git a/src/assets/json/status.json b/src/assets/json/status.json index 1b1d6e5..74b7808 100644 --- a/src/assets/json/status.json +++ b/src/assets/json/status.json @@ -3,321 +3,431 @@ "1846419477876510721": [ { "name": "待提报", - "status": -1, + "status": 4, + "color": "#409eff", + "type": "" + }, + { + "name": "待提报", + "status": 100, + "color": "#409eff", + "type": "" + }, + { + "name": "待提报", + "status": 200, "color": "#409eff", "type": "" }, { "name": "待接单", - "status": 0, + "status": 101, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待接单", + "status": 205, "color": "#67c23a", "type": "success" }, { "name": "待维修", - "status": 1, + "status": 201, "color": "#409eff", "type": "" }, { "name": "待维修", - "status": 2, + "status": 401, "color": "#409eff", "type": "" }, { "name": "待维修", - "status": 3, + "status": 402, "color": "#409eff", "type": "" }, { "name": "确认方案", - "status": 4, + "status": 301, "color": "#409eff", "type": "" }, { "name": "维修中", - "status": 5, + "status": 103, "color": "#e6a23", "type": "warning" }, { "name": "待评价", - "status": 6, + "status": 403, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待评价", + "status": 202, "color": "#67c23a", "type": "success" }, { "name": "待付款", - "status": 7, + "status": 104, "color": "#67c23a", "type": "success" }, { "name": "已完成", - "status": 8, + "status": 202, "color": "#909399", "type": "info" }, { "name": "已完成", - "status": 9, + "status": 203, "color": "#909399", "type": "info" }, { - "name": "待维修", - "status": 100, - "color": "#409eff", - "type": "" + "name": "已完成", + "status": 204, + "color": "#909399", + "type": "info" }, { - "name": "维修中", - "status": 101, - "color": "#e6a23", - "type": "warning" + "name": "已驳回", + "status": 102, + "color": "#f56c6c", + "type": "danger" }, { "name": "已驳回", - "status": 102, + "status": 300, "color": "#f56c6c", "type": "danger" }, { - "name": "待评价", - "status": 20, - "color": "#67c23a", - "type": "success" + "name": "已驳回", + "status": 400, + "color": "#f56c6c", + "type": "danger" } ], - "1123598816738675201": [ + "1123598816738675201":[ { "name": "待提报", - "status": -1, + "status": 100, "color": "#409eff", "type": "" }, { "name": "待接单", - "status": 0, + "status": 101, "color": "#67c23a", "type": "success" }, { "name": "待维修", - "status": 1, + "status": 201, "color": "#409eff", "type": "" }, { "name": "待维修", - "status": 2, + "status": 401, "color": "#409eff", "type": "" }, { "name": "待维修", - "status": 3, + "status": 402, "color": "#409eff", "type": "" }, { "name": "确认方案", - "status": 4, + "status": 301, "color": "#409eff", "type": "" }, { "name": "维修中", - "status": 5, + "status": 103, "color": "#e6a23", "type": "warning" }, { "name": "待评价", - "status": 6, + "status": 403, + "color": "#67c23a", + "type": "success" + }, + { + "name": "待评价", + "status": 202, "color": "#67c23a", "type": "success" }, { "name": "待付款", - "status": 7, + "status": 104, "color": "#67c23a", "type": "success" }, { "name": "已完成", - "status": 8, + "status": 202, + "color": "#909399", + "type": "info" + }, + { + "name": "已完成", + "status": 203, "color": "#909399", "type": "info" }, { "name": "已完成", - "status": 9, + "status": 204, "color": "#909399", "type": "info" }, { "name": "已驳回", - "status": 100, + "status": 102, "color": "#f56c6c", "type": "danger" }, { "name": "已驳回", - "status": 101, + "status": 300, "color": "#f56c6c", "type": "danger" }, { "name": "已驳回", - "status": 102, + "status": 400, "color": "#f56c6c", "type": "danger" + } + ], + "1839536982874193922": [ + { + "name": "待提报", + "status": 100, + "color": "#409eff", + "type": "" }, { - "name": "维修完成", - "status": 20, + "name": "待提报", + "status": 4, + "color": "#409eff", + "type": "" + }, + { + "name": "待提报", + "status": 200, + "color": "#409eff", + "type": "" + }, + { + "name": "待接单", + "status": 101, "color": "#67c23a", "type": "success" - } - ], - "1839536982874193922": [ + }, { "name": "待接单", - "status": 0, + "status": 205, "color": "#67c23a", "type": "success" }, { "name": "待维修", - "status": 1, + "status": 201, "color": "#409eff", "type": "" }, { "name": "待维修", - "status": 2, + "status": 401, "color": "#409eff", "type": "" }, { "name": "待维修", - "status": 3, + "status": 402, "color": "#409eff", "type": "" }, { "name": "待维修", - "status": 4, + "status": 301, "color": "#409eff", "type": "" }, { "name": "维修中", - "status": 5, + "status": 103, "color": "#e6a23", "type": "warning" }, { "name": "维修完成", - "status": 6, + "status": 403, + "color": "#67c23a", + "type": "success" + }, + { + "name": "维修完成", + "status": 202, "color": "#67c23a", "type": "success" }, { "name": "待付款", - "status": 7, + "status": 104, "color": "#67c23a", "type": "success" }, { "name": "已完成", - "status": 8, + "status": 203, "color": "#909399", "type": "info" }, { "name": "已完成", - "status": 9, + "status": 204, "color": "#909399", "type": "info" }, { "name": "已驳回", - "status": 100, + "status": 102, "color": "#f56c6c", "type": "danger" }, { "name": "已驳回", - "status": 101, + "status": 300, "color": "#f56c6c", "type": "danger" }, { "name": "已驳回", - "status": 102, + "status": 400, "color": "#f56c6c", "type": "danger" - }, - { - "name": "维修完成", - "status": 20, - "color": "#67c23a", - "type": "success" } ], "1839537055389515777": [ + { + "name": "", + "status": 4, + "color": "#f56c6c", + "type": "" + }, + { + "name": "", + "status": 200, + "color": "#f56c6c", + "type": "" + }, + { + "name": "", + "status": 205, + "color": "#f56c6c", + "type": "" + }, { "name": "已驳回", - "status": 2, + "status": 102, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 300, + "color": "#f56c6c", + "type": "danger" + }, + { + "name": "已驳回", + "status": 400, "color": "#f56c6c", "type": "danger" }, { "name": "待审批", - "status": 3, + "status": 402, "color": "#409eff", "type": "" }, { "name": "已通过", - "status": 4, + "status": 301, "color": "#409eff", "type": "" }, { "name": "维修中", - "status": 5, + "status": 103, "color": "#e6a23", "type": "warning" }, { "name": "维修完成", - "status": 6, + "status": 403, + "color": "#67c23a", + "type": "success" + }, + { + "name": "维修完成", + "status": 202, "color": "#67c23a", "type": "success" }, { "name": "待付款", - "status": 7, + "status": 104, "color": "#67c23a", "type": "success" }, { "name": "已完成", - "status": 8, + "status": 203, "color": "#909399", "type": "info" }, { "name": "已完成", - "status": 9, + "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": "已驳回", @@ -338,90 +448,76 @@ "type": "danger" }, { - "name": "维修完成", - "status": 20, - "color": "#67c23a", - "type": "success" - } - ], - "1839552581620793346": [ + "name": "已驳回", + "status": 300, + "color": "#f56c6c", + "type": "danger" + }, { "name": "已驳回", - "status": 0, + "status": 400, "color": "#f56c6c", "type": "danger" }, { "name": "待确认", - "status": 1, + "status": 201, "color": "#67c23a", "type": "success" }, { "name": "待提交", - "status": 2, + "status": 401, "color": "#67c23a", "type": "success" }, { "name": "待审批", - "status": 3, + "status": 402, "color": "#409eff", "type": "" }, { "name": "待审批", - "status": 4, + "status": 301, "color": "#409eff", "type": "" }, { "name": "维修中", - "status": 5, + "status": 103, "color": "#e6a23", "type": "warning" }, { "name": "已完成", - "status": 6, + "status": 403, "color": "#909399", "type": "info" }, { "name": "已完成", - "status": 7, + "status": 104, "color": "#909399", "type": "info" }, { "name": "已完成", - "status": 8, + "status": 202, "color": "#909399", "type": "info" }, { "name": "已完成", - "status": 9, + "status": 203, "color": "#909399", "type": "info" }, { - "name": "已驳回", - "status": 100, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 101, - "color": "#f56c6c", - "type": "danger" - }, - { - "name": "已驳回", - "status": 102, - "color": "#f56c6c", - "type": "danger" + "name": "已完成", + "status": 204, + "color": "#909399", + "type": "info" } ] }, diff --git a/src/views/businessManagement/ordinary.vue b/src/views/businessManagement/ordinary.vue index fb75cd8..3e358a5 100644 --- a/src/views/businessManagement/ordinary.vue +++ b/src/views/businessManagement/ordinary.vue @@ -29,14 +29,14 @@ @@ -186,13 +186,13 @@ -
+
驳回详情
- + - + @@ -278,32 +278,35 @@
-
+
维修详情
- + + + + + v-show="role_id != '1839600115013713921' && (repairForm.status != 103 && repairForm.status != 301) && dialogType != 'view'"> @@ -373,7 +376,8 @@ + v-if="(repairForm.isNeedMaterial == 1 && (repairForm.status == 402 || repairForm.status == 301 || repairForm.status == 403 || repairForm.status == 103 || repairForm.status == 202 || repairForm.status == 104 || repairForm.status == 203 || repairForm.status == 204 || repairForm.status == 102)) && dialogType != 'repair'"> + @@ -386,7 +390,7 @@ {{ scope.row.price }}元 - +
- +
@@ -83,7 +83,7 @@
-->
- +
@@ -95,7 +95,7 @@
{{ item.requirementCode }}
-
{{ status }}
+
{{ getStatus('maintain', role_id, item.status).name}}
{{ item.faultDescribe }}
@@ -105,7 +105,7 @@
-->
- +
@@ -228,14 +228,15 @@
-
{{ (role_id == '1839536982874193922'||role_id == '1867020647911350274') ? '各单位提报统计' : '各班组提报统计' }}
-
选择时间: +
{{ (role_id == '1839536982874193922'||role_id == '1867020647911350274') ? '各单位提报统计' : '各维修人员数据统计' }}
+
选择时间: + end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="changestaticTime" size="mini">
-
+
+
@@ -243,7 +244,7 @@
选择时间: + end-placeholder="结束日期" format="yyyy-MM-dd" value-format="yyyy-MM-dd" @change="changeFaultTime" size="mini"> ',item) this.$router.push({ @@ -727,16 +757,17 @@ export default { data: this.xData, }, grid: { - top: '20%', + top: '22%', left: '5%', right: '5%', - bottom: '15%' + bottom: '10%' }, yAxis: {}, series: [ { name: '数量', type: 'bar', + barWidth:this.numData == 1 ? 50 : null, data: this.numData, itemStyle: { color: '#2478f2' @@ -752,6 +783,65 @@ export default { //4.使用刚指定的配置项和数据显示图表。 myChart.setOption(option); }, + creatpeopleEcharts() { + var myChart = this.$echarts.init(document.getElementById('peopleCharts')); + var option = { + tooltip: { + trigger: 'axis', + transitionDuration: 0,//防止页面抖动 + }, + legend: { //图例组件 + data: ['维修数量','好评率'], + }, + xAxis: { + type: 'category', + data: this.peopleXdata, + axisPointer: { + type: 'shadow' + } + }, + grid: { + top: '22%', + left: '5%', + right: '5%', + bottom: '10%' + }, + yAxis: [ + { + type: 'value', + name: '维修数量', + }, + { + type: 'value', + name: '好评率', + min: 0, + max: 100, + } + ], + series: [ + { + name: '维修数量', + type: 'bar', + barWidth:this.numData == 1 ? 50 : null, + data: this.peopleNum, + itemStyle: { + color: '#2478f2' + }, + }, + { + name: '好评率', + type: 'line', + yAxisIndex: 1, + data: this.peoplePercent, + itemStyle: { + color: '#2478f2' + }, + }, + ] + }; + //4.使用刚指定的配置项和数据显示图表。 + myChart.setOption(option); + }, createProblemEcharts() { var myChart = this.$echarts.init(document.getElementById('problem_charts')); var option = { @@ -1012,7 +1102,7 @@ export default { overflow: hidden; ::v-deep .el-empty__image{ - width: 55px !important; + width: 45px !important; } ::v-deep .el-empty__description{ @@ -1094,7 +1184,7 @@ export default { width: 25%; height: 100%; background: #FFFFFF; - border-radius: 4px; + border-radius: 10px; border: 1px solid #EBEEF5; @@ -1225,7 +1315,7 @@ export default { width: 74%; height: 100%; background: #FFFFFF; - border-radius: 4px; + border-radius: 10px; border: 1px solid #EBEEF5; .right_tit { @@ -1313,14 +1403,13 @@ export default { } .left_box { - width: 40%; - height: 95%; + width: 35%; + height: 100%; float: left; .map_box { width: 100%; height: 69%; - background: gray; } .bench_box { @@ -1332,9 +1421,9 @@ export default { align-items: center; .bench_tit { - width: 95%; + width: 100%; display: flex; - margin: 10px 0 20px; + margin: 20px 0 20px; .bench_num { padding: 5px; @@ -1350,8 +1439,8 @@ export default { } .bench_con { - width: 95%; - height: 65%; + width: 100%; + height: 73%; display: flex; align-items: center; justify-content: space-between; @@ -1360,7 +1449,7 @@ export default { width: 25%; height: 100%; border-radius: 10px; - background: #efefef91; + background: #fff; display: flex; flex-direction: column; align-items: center; @@ -1371,8 +1460,8 @@ export default { } .right_box { - width: 59%; - height: 95%; + width: 64%; + height: 100%; float: left; margin-left: 1%; display: flex; @@ -1382,21 +1471,20 @@ export default { .right_top { width: 100%; - height: 30%; + height: 25%; display: flex; flex-direction: column; .top_tit { font-size: 20px; font-weight: 550; - margin: 20px auto; width: 95%; + margin-bottom: 10px; } .top_con { - width: 95%; + width: 100%; height: 80%; - background: #efefef; margin: 0 auto; display: flex; align-items: center; @@ -1404,8 +1492,8 @@ export default { border-radius: 10px; .top_container { - width: 96%; - height: 85%; + width: 100%; + height: 100%; background: #fff; border-radius: 10px; @@ -1440,7 +1528,7 @@ export default { .right_bottom { width: 100%; - height: 69%; + height: 75%; display: flex; flex-direction: column; @@ -1448,23 +1536,22 @@ export default { font-size: 20px; font-weight: 550; margin: 20px auto; - width: 95%; + width: 100%; } .bottom_con { - width: 95%; + width: 100%; height: 88%; - background: #efefef; border-radius: 10px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; - justify-content: space-around; + justify-content: space-between; .static_box { - width: 96%; - height: 46%; + width: 100%; + height: 48%; border-radius: 10px; background: #fff; display: flex; diff --git a/src/views/workbench/map.vue b/src/views/workbench/map.vue index c954a3f..896a876 100644 --- a/src/views/workbench/map.vue +++ b/src/views/workbench/map.vue @@ -1,5 +1,7 @@