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 }}元
-
+
| 总计: |
{{ totalPrice == '' ? totalPrice : totalPrice.toFixed(2) }} 元 |
@@ -403,7 +407,7 @@
-
+
主管审批
@@ -439,13 +443,13 @@
-
-
-
{{repairForm.status == 101 ? '主管' : repairForm.status == 102 ? '客户' : ''}}审批结果
+
+
{{repairForm.status == 300 ? '主管' : repairForm.status == 102 ? '客户' : ''}}审批结果
@@ -478,7 +482,7 @@
v-model="repairForm.approveRemark">
-
+
+
签名
-
+
@@ -850,6 +854,7 @@ export default {
mounted() {
this.role_id = this.userInfo.role_id
console.log('role_id---------->', this.role_id)
+ this.getDeviceList()
getRepairPeople({ isRepair: this.role_id == '1839537055389515777' ? true : false }).then(res => {
this.repairPersonList = res.data.data
})
@@ -874,6 +879,11 @@ export default {
}
},
methods: {
+ getDeviceList(){
+ getDeviceList({current:1,size:100}).then(res =>{
+ this.deviceList = res.data.data.records
+ })
+ },
sortChange(val){
console.log('val============>',val)
},
@@ -967,7 +977,6 @@ export default {
this.totalPrice = res.data.data.totalPrice == -1 ? res.data.data.materials.reduce((sum, item) => sum + item.materialPrice, 0) : res.data.data.totalPrice
this.discount = res.data.data.discount == -1 ? '' : res.data.data.discount
this.discountPrice = res.data.data.discountPrice == -1 ? '' : res.data.data.discountPrice
- this.$refs['repairForm'].resetFields()
})
},
// 关闭弹窗
@@ -1040,7 +1049,7 @@ export default {
this.dialogType = 'repair'
this.repairForm.errorVideo = res.data.data.videoAttaches.length > 0 ? res.data.data.videoAttaches[0].link : ''
this.repairForm.errorImg = res.data.data.picAttaches.map(item => { return { name: item.originalName, url: item.link } })
- this.repairForm.isNeedMaterial = (this.repairForm.status == 1 || this.repairForm.status == 2 || this.repairForm.status == 3) && this.repairForm.isNeedMaterial == -1 ? '' : this.repairForm.isNeedMaterial
+ this.repairForm.isNeedMaterial = (this.repairForm.status == 201 || this.repairForm.status == 401 || this.repairForm.status == 402) && this.repairForm.isNeedMaterial == -1 ? '' : this.repairForm.isNeedMaterial
if (this.repairForm.isNeedMaterial != '') {
this.tableData = []
this.repairForm.materials.map(item => {
@@ -1437,7 +1446,7 @@ export default {
handleRepairConfirm() {
this.$refs.repairForm.validate(valid => {
if (valid) {
- if (this.repairForm.status == 2 || this.repairForm.status == 101) {
+ if (this.repairForm.status == 401 || this.repairForm.status == 300) {
if (this.repairForm.isNeedMaterial == '1') {
if (this.tableData.length == 0) {
this.$message.error('请至少填写一条维修材料信息')
@@ -1461,7 +1470,7 @@ export default {
faultCause: this.repairForm.faultCause,
processMethod: this.repairForm.processMethod,
isNeedMaterial: this.repairForm.isNeedMaterial,
- status: 4,
+ deviceId:this.repairForm.deviceId,
materials: data
}
console.log('query---------->', query)
@@ -1481,9 +1490,7 @@ export default {
faultCause: this.repairForm.faultCause,
processMethod: this.repairForm.processMethod,
isNeedMaterial: this.repairForm.isNeedMaterial,
- status: 4
}
- console.log('query------------->',query)
editData(query).then(res => {
if (res.data.code == 200) {
this.$message.success("提交成功")
@@ -1492,7 +1499,7 @@ export default {
}
})
}
- }else if(this.repairForm.status == 3 || this.repairForm.status == 102){
+ }else if(this.repairForm.status == 402 || this.repairForm.status == 102){
let query = {
id:this.repairForm.id,
approvePerson:this.userInfo.user_id,
@@ -1550,9 +1557,9 @@ export default {
handleEdit(row) {
getDetail({ id: row.id }).then(res => {
this.addForm = res.data.data
- this.addForm.maintenanceTeam = (res.data.data.status == 0 || res.data.data.status == 8) ? '' : res.data.data.maintenanceTeam
- this.addForm.dispatchTime = (res.data.data.status == 0 || res.data.data.status == 8) ? '' : res.data.data.dispatchTime
- this.addForm.planCompleteTime = (res.data.data.status == 0 || res.data.data.status == 8) ? '' : res.data.data.planCompleteTime
+ this.addForm.maintenanceTeam = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.maintenanceTeam
+ this.addForm.dispatchTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.dispatchTime
+ this.addForm.planCompleteTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.planCompleteTime
this.addForm.repairPerson = this.role_id == '1839536982874193922' ? '' : res.data.data.repairPerson
this.addForm = {
...this.addForm,
@@ -1565,9 +1572,9 @@ export default {
reciveOrder(row){
getDetail({id:row.id}).then(res =>{
this.addForm = res.data.data
- this.addForm.maintenanceTeam = (res.data.data.status == 0 || res.data.data.status == 8) ? '' : res.data.data.maintenanceTeam
- this.addForm.dispatchTime = (res.data.data.status == 0 || res.data.data.status == 8) ? '' : res.data.data.dispatchTime
- this.addForm.planCompleteTime = (res.data.data.status == 0 || res.data.data.status == 8) ? '' : res.data.data.planCompleteTime
+ this.addForm.maintenanceTeam = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.maintenanceTeam
+ this.addForm.dispatchTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.dispatchTime
+ this.addForm.planCompleteTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.planCompleteTime
this.addForm.repairPerson = this.role_id == '1839536982874193922' ? '' : res.data.data.repairPerson
this.addForm = {
...this.addForm,
@@ -1581,9 +1588,9 @@ export default {
takeOrders(row){
getDetail({id:row.id}).then(res =>{
this.addForm = res.data.data
- this.addForm.maintenanceTeam = (res.data.data.status == 0 || res.data.data.status == 8) ? '' : res.data.data.maintenanceTeam
- this.addForm.dispatchTime = (res.data.data.status == 0 || res.data.data.status == 8) ? '' : res.data.data.dispatchTime
- this.addForm.planCompleteTime = (res.data.data.status == 0 || res.data.data.status == 8) ? '' : res.data.data.planCompleteTime
+ this.addForm.maintenanceTeam = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.maintenanceTeam
+ this.addForm.dispatchTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.dispatchTime
+ this.addForm.planCompleteTime = (res.data.data.status == 101 || res.data.data.status == 203) ? '' : res.data.data.planCompleteTime
this.addForm.repairPerson = this.role_id == '1839536982874193922' ? '' : res.data.data.repairPerson
this.addForm = {
...this.addForm,
@@ -1669,7 +1676,7 @@ export default {
dispatchTime: this.addForm.dispatchTime,
planCompleteTime: this.addForm.planCompleteTime,
repairPerson: this.role_id == '1839536982874193922' ? this.addForm.repairPerson : null,
- status: this.role_id == '1839536982874193922' ? 2 : this.role_id == '1839537055389515777' ? 2 : this.role_id == '1839552581620793346' ? 3 : '',
+ // status: this.role_id == '1839536982874193922' ? 2 : this.role_id == '1839537055389515777' ? 2 : this.role_id == '1839552581620793346' ? 3 : '',
remark: this.addForm.remark,
customerOpinion: this.addForm.customerOpinion
}
@@ -1759,11 +1766,11 @@ export default {
let query = {
current: this.page.currentPage, //页数
size: this.page.pageSize, //条数
- startTime: this.searchForm.timeRange.length != 0 ? this.searchForm.timeRange[0].toString() + ' 00:00:00' : '', //开始时间
- endTime: this.searchForm.timeRange.length != 0 ? this.searchForm.timeRange[1].toString() + ' 23:59:59' : '', //结束时间
+ startTime: this.searchForm.timeRange && this.searchForm.timeRange.length != 0 ? this.searchForm.timeRange[0].toString() + ' 00:00:00' : '', //开始时间
+ endTime: this.searchForm.timeRange && this.searchForm.timeRange.length != 0 ? this.searchForm.timeRange[1].toString() + ' 23:59:59' : '', //结束时间
faultType: this.searchForm.faultType ? this.searchForm.faultType : '', //故障类型
reportUnitName: this.searchForm.reportUnitName ? this.searchForm.reportUnitName : '',
- dataType: this.role_id == '1839536982874193922' || this.role_id == '1839600115013713921' ? 2 : this.role_id == '1839537055389515777' ? 3 : this.role_id == '1839552581620793346' ? 4 : ''
+ // dataType: this.role_id == '1839536982874193922' || this.role_id == '1839600115013713921' ? 2 : this.role_id == '1839537055389515777' ? 3 : this.role_id == '1839552581620793346' ? 4 : ''
}
getList(query).then(res => {
this.data = res.data.data.records
diff --git a/src/views/components/requestSub.vue b/src/views/components/requestSub.vue
index ef04a08..75ca8dc 100644
--- a/src/views/components/requestSub.vue
+++ b/src/views/components/requestSub.vue
@@ -44,6 +44,11 @@
@blur="(event) => { changeDescribe(event, index) }">
+
+ changeLab(val,index)">
+
+
+
item.id == this.form.deviceName).position
- // this.addForm[0].form.faultType = this.deviceList.find(item => item.id == this.form.deviceName).type
- // this.addForm[0].form.faultDescribe = this.form.faultDescribe
- // this.addForm[0].form.picAttaches = this.form.picAttaches
- // this.addForm[0].form.videoAttaches = this.form.videoAttaches
- // this.addForm[0].formOption.column.find(item => item.prop == 'errorVideo').value = this.form.videoAttaches[0].link
- // this.addForm[0].formOption.column.find(item => item.prop == 'imgUrl').value = this.form.picAttaches.map(item => item.link)
this.addForm = [
{
form: {
@@ -136,6 +132,15 @@ export default {
submitBtn: false,
menuPosition: 'right',
column: [
+ {
+ label: "关联实验室",
+ labelWidth: 120,
+ span: 24,
+ prop: "informant",
+ type: "select",
+ formslot: true,
+ display:this.userInfo.role_id == '1839536982874193922' ? true : false
+ },
{
label: "故障现象描述",
labelWidth: 120,
@@ -225,7 +230,6 @@ export default {
]
}
} else {
- console.log('2222222222222222222222222')
this.addForm = [
{
form: {
@@ -243,6 +247,15 @@ export default {
submitBtn: false,
menuPosition: 'right',
column: [
+ {
+ label: "关联实验室",
+ labelWidth: 120,
+ span: 24,
+ prop: "informant",
+ type: "select",
+ formslot: true,
+ display:this.userInfo.role_id == '1839536982874193922' ? true : false
+ },
{
label: "故障现象描述",
labelWidth: 120,
@@ -325,35 +338,19 @@ export default {
},
]
}
- // getDeviceList({ current: 1, size: 100 }).then(res => {
- // this.deviceList = res.data.data.records
- // getChildList(1, 100, '1846802246527463425').then(res => {
- // this.typeList = res.data.data
- // })
- // getChildList(1, 100, '1846792623628001282').then(res => {
- // this.treeOptions = res.data.data
-
- // console.log('addForm------------>', this.addForm)
-
- // })
-
- // })
+ console.log('addForm------------->',this.addForm)
+ this.$forceUpdate()
+
+ },
+ computed: {
+ ...mapGetters(["userInfo", "permission", "systemTime"]),
},
watch: {
form(newVal, oldVal) {
- console.log('newVal---------------------')
let arr = JSON.parse(JSON.stringify(this.addForm))
if ((this.title == '编辑' && JSON.stringify(this.form) != '{}') || JSON.stringify(this.form) != '{}') {
this.editId = this.form.id
for (let key in this.form) {
- // this.addForm[0].form.deviceName = this.form.deviceName
- // this.addForm[0].form.faultPosition.node = this.deviceList.find(item => item.id == this.form.deviceName).position
- // this.addForm[0].form.faultType = this.deviceList.find(item => item.id == this.form.deviceName).type
- // this.addForm[0].form.faultDescribe = this.form.faultDescribe
- // this.addForm[0].form.picAttaches = this.form.picAttaches
- // this.addForm[0].form.videoAttaches = this.form.videoAttaches
- // this.addForm[0].formOption.column.find(item => item.prop == 'errorVideo').value = this.form.videoAttaches[0].link
- // this.addForm[0].formOption.column.find(item => item.prop == 'imgUrl').value = this.form.picAttaches.map(item => item.link)
this.addForm = [
{
form: {
@@ -372,6 +369,15 @@ export default {
submitBtn: false,
menuPosition: 'right',
column: [
+ {
+ label: "关联实验室",
+ labelWidth: 120,
+ span: 24,
+ prop: "informant",
+ type: "select",
+ formslot: true,
+ display:this.userInfo.role_id == '1839536982874193922' ? true : false
+ },
{
label: "故障现象描述",
labelWidth: 120,
@@ -472,6 +478,15 @@ export default {
submitBtn: false,
menuPosition: 'right',
column: [
+ {
+ label: "关联实验室",
+ labelWidth: 120,
+ span: 24,
+ prop: "informant",
+ type: "select",
+ formslot: true,
+ display:this.userInfo.role_id == '1839536982874193922' ? true : false
+ },
{
label: "故障现象描述",
labelWidth: 120,
@@ -557,6 +572,61 @@ export default {
},
methods: {
+ getLabData(){
+ getAllUser().then(res =>{
+ console.log()
+ this.labData = res.data.data
+ })
+ // this.labData = [
+ // {
+ // id: "1859474667806449666",
+ // createUser: "-1",
+ // createDept: "-1",
+ // createTime: "2024-11-21 13:51:23",
+ // updateUser: "1123598821738675201",
+ // updateTime: "2024-12-05 15:35:54",
+ // status: 1,
+ // isDeleted: 0,
+ // tenantId: "000000",
+ // code: "",
+ // userType: 1,
+ // account: "17852327323",
+ // name: "靳娜",
+ // realName: "靳娜",
+ // avatar: "",
+ // email: "",
+ // phone: "17852327323",
+ // birthday: "",
+ // sex: -1,
+ // roleId: "1846419477876510721",
+ // deptId: "1862052949173280770",
+ // deptName: "山东烁今实验室",
+ // postId: "1839605322925801474",
+ // address: "山东省青岛市崂山区仙霞岭路33号",
+ // addressLon: "120.48031277706768",
+ // addressLat: "36.11160956229114",
+ // isMaintenanceClient: -1,
+ // tenantName: "管理组",
+ // userTypeName: "WEB",
+ // roleName: "实验室管理员",
+ // postName: "领导",
+ // sexName: "性别",
+ // userExt: ""
+ // }
+ // ]
+ },
+ // 切换实验室
+ changeLab(val,index){
+ console.log('val----------->',val)
+ console.log('index----------->',index)
+ this.addForm[index].form = {
+ ...this.addForm[index].form,
+ informant:val,
+ informantPhone:this.labData.find(item => item.id == val).phone,
+ reportUnit:this.labData.find(item => item.id == val).deptId,
+ createDept:this.labData.find(item => item.id == val).createDept,
+ }
+ },
// 选择设备
changeDevice(value, row) {
console.log('value---------->', value)
@@ -745,7 +815,6 @@ export default {
handleAdd() {
let count = 0
this.addForm.forEach((formItem, index) => {
- console.log('form------------>', this.$refs[`form${index}`])
this.$refs[`form${index}`][0].validate((valid) => {
if (valid) {
console.log(`表单项${index}验证通过`);
@@ -770,6 +839,15 @@ export default {
submitBtn: false,
menuPosition: 'right',
column: [
+ {
+ label: "关联实验室",
+ labelWidth: 120,
+ span: 24,
+ prop: "informant",
+ type: "select",
+ formslot: true,
+ display:this.userInfo.role_id == '1839536982874193922' ? true : false
+ },
{
label: "故障现象描述",
labelWidth: 120,
@@ -856,26 +934,6 @@ export default {
}
});
});
- // let emptyPos = this.addForm.find((item) => item.form.faultPosition == "");
- // let emptyDevice = this.addForm.find((item) => item.form.deviceName == "");
- // let emptyType = this.addForm.find((item) => item.form.faultType == "");
- // let emptyDes = this.addForm.find((item) => item.form.faultDescribe == "");
- // let emptyVideo = this.addForm.find((item) => item.form.errorVideo == "");
- // let emptyImg = this.addForm.find(
- // (item) => item.form.picAttaches.length == 0
- // );
- // if (
- // emptyPos ||
- // emptyDevice ||
- // emptyType ||
- // emptyDes ||
- // emptyVideo ||
- // emptyImg
- // ) {
- // this.$message.error("需求填报时各内容均不可为空,请填写完全");
- // } else {
-
- // }
},
// 点击取消按钮
handleCancel() {
@@ -989,34 +1047,66 @@ export default {
console.log(`表单项${index}验证通过`);
// 执行提交操作
} else {
-
console.log(`表单项${index}验证失败`);
- if (this.addForm[index].form.faultDescribe != '') {
- count++
- this.$refs[`form${index}`][0].clearValidate()
- if(count == this.addForm.length){
- let data = []
- this.addForm.map(item => {
- data.push({
- faultLocation: item.form.faultPosition.node,
- deviceName: item.form.deviceName,
- faultType: item.form.faultType,
- videoAttaches: item.form.videoAttaches,
- picAttaches: item.form.picAttaches,
- faultDescribe: item.form.faultDescribe,
+ if(this.userInfo.role_id == '1839536982874193922'){
+ //客服角色
+ if (this.addForm[index].form.faultDescribe != '' && this.addForm[index].form.informant != ''){
+ count++
+ this.$refs[`form${index}`][0].clearValidate()
+ if(count == this.addForm.length){
+ let data = []
+ this.addForm.map(item => {
+ data.push({
+ faultLocation: item.form.faultPosition.node,
+ deviceName: item.form.deviceName,
+ faultType: item.form.faultType,
+ videoAttaches: item.form.videoAttaches,
+ picAttaches: item.form.picAttaches,
+ faultDescribe: item.form.faultDescribe,
+ createDept:item.form.createDept,
+ informant:item.form.informant,
+ informantPhone:item.form.informantPhone,
+ reportUnit:item.form.reportUnit,
+ })
})
- })
- console.log('data============>', data)
- saveDraft(data).then(res => {
- if (res.data.code == 200) {
- this.$message.success('保存成功')
- this.$emit('close')
- }
- })
- this.$emit('close')
+ console.log('data============>', data)
+ serviceDraft(data).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('保存成功')
+ this.$emit('close')
+ }
+ })
+ this.$emit('close')
+ }
+ }
+ }else{
+ if (this.addForm[index].form.faultDescribe != '') {
+ count++
+ this.$refs[`form${index}`][0].clearValidate()
+ if(count == this.addForm.length){
+ let data = []
+ this.addForm.map(item => {
+ data.push({
+ faultLocation: item.form.faultPosition.node,
+ deviceName: item.form.deviceName,
+ faultType: item.form.faultType,
+ videoAttaches: item.form.videoAttaches,
+ picAttaches: item.form.picAttaches,
+ faultDescribe: item.form.faultDescribe,
+ })
+ })
+ console.log('data============>', data)
+ saveDraft(data).then(res => {
+ if (res.data.code == 200) {
+ this.$message.success('保存成功')
+ this.$emit('close')
+ }
+ })
+ this.$emit('close')
+ }
+
+
}
-
-
}
}
});
@@ -1026,126 +1116,93 @@ export default {
},
// 点击确定按钮
handleConfirm(index) {
- // let emptyPos = this.addForm.find((item) => item.form.faultPosition == "");
- // let emptyDevice = this.addForm.find((item) => item.form.deviceName == "");
- // let emptyType = this.addForm.find((item) => item.form.faultType == "");
- // let emptyDes = this.addForm.find((item) => item.form.faultDescribe == "");
- // let emptyVideo = this.addForm.find((item) => item.form.errorVideo == "");
- // let emptyImg = this.addForm.find(
- // (item) => item.form.picAttaches.length == 0
- // );
- // if (
- // emptyPos ||
- // emptyDevice ||
- // emptyType ||
- // emptyDes ||
- // emptyVideo ||
- // emptyImg
- // ) {
- // console.log('emptyPos----------->',emptyPos)
- // console.log('emptyDevice----------->',emptyDevice)
- // console.log('emptyType----------->',emptyType)
- // console.log('emptyDes----------->',emptyDes)
- // console.log('emptyVideo----------->',emptyVideo)
- // console.log('emptyImg----------->',emptyImg)
- // this.$message.error("需求填报时各内容均不可为空,请填写完全");
- // } else {
- // console.log('addForm---------->', this.addForm)
- // let data = []
- // this.addForm.map(item => {
- // data.push({
- // id: this.editId ? this.editId : null,
- // faultLocation: item.form.faultPosition.node,
- // deviceName: item.form.deviceName,
- // faultType: item.form.faultType,
- // videoAttaches: item.form.videoAttaches,
- // picAttaches: item.form.picAttaches,
- // faultDescribe: item.form.faultDescribe,
- // submitType: 1
- // })
- // })
- // console.log('data============>', data)
- // // if (this.title == '需求填报') {
- // console.log('11111111111111111')
- // saveData(data).then(res => {
- // console.log('res------------------->', res)
- // if (res.data.code == 200) {
- // this.$message.success('新增成功')
- // this.$emit('close')
- // }
- // })
- // // } else if (this.title == '编辑') {
- // // let query = {
- // // id: this.editId ? this.editId : null,
- // // faultLocation: this.addForm[0].form.faultPosition.node,
- // // deviceName: this.addForm[0].form.deviceName,
- // // faultType: this.addForm[0].form.faultType,
- // // videoAttaches: this.addForm[0].form.videoAttaches,
- // // picAttaches: this.addForm[0].form.picAttaches,
- // // faultDescribe: this.addForm[0].form.faultDescribe,
- // // submitType: 1
- // // }
- // // console.log('22222222222222222222222')
- // // editData(query).then(res => {
- // // console.log('res------------------->', res)
- // // if (res.data.code == 200) {
- // // this.$message.success('新增成功')
- // // this.$emit('close')
- // // }
- // // })
- // // }
-
- // }
-
- // this.$refs.item[index].validate((valid, done,msg) => {
- // console.log('valid ------------->',valid)
- // })
let count = 0
this.addForm.forEach((formItem, index) => {
- console.log('form------------>', this.$refs[`form${index}`])
this.$refs[`form${index}`][0].validate((valid) => {
if (valid) {
console.log(`表单项${index}验证通过`);
// 执行提交操作
} else {
-
console.log(`表单项${index}验证失败`);
- if (this.addForm[index].form.faultDescribe != '') {
- count++
- this.$refs[`form${index}`][0].clearValidate()
- if(count == this.addForm.length){
- let data = []
- this.addForm.map(item => {
- data.push({
- id: this.editId ? this.editId : null,
- faultLocation: item.form.faultPosition,
- deviceName: item.form.deviceName,
- faultType: item.form.faultType,
- videoAttaches: item.form.videoAttaches,
- picAttaches: item.form.picAttaches,
- faultDescribe: item.form.faultDescribe,
- submitType: 1
+ if(this.userInfo.role_id == '1839536982874193922'){
+ //客服角色
+ if (this.addForm[index].form.faultDescribe != '' && this.addForm[index].form.informant != '') {
+ count++
+ this.$refs[`form${index}`][0].clearValidate()
+ if(count == this.addForm.length){
+ let data = []
+ this.addForm.map(item => {
+ data.push({
+ id: this.editId ? this.editId : null,
+ faultLocation: item.form.faultPosition,
+ deviceName: item.form.deviceName,
+ faultType: item.form.faultType,
+ videoAttaches: item.form.videoAttaches,
+ picAttaches: item.form.picAttaches,
+ faultDescribe: item.form.faultDescribe,
+ submitType: 1,
+ createDept:item.form.createDept,
+ informant:item.form.informant,
+ informantPhone:item.form.informantPhone,
+ reportUnit:item.form.reportUnit,
+ })
})
- })
- console.log('data---------->',data)
- if(data.videoAttaches && data.picAttaches && data.videoAttaches.length + data.picAttaches.length > 3){
- this.$message.error('故障视频与故障图片最多可上传3个')
- }else if (data.videoAttaches && !data.picAttaches && data.videoAttaches.length > 3){
- this.$message.error('故障视频与故障图片最多可上传3个')
- }else if (!data.videoAttaches && data.picAttaches && data.picAttaches.length > 3){
- this.$message.error('故障视频与故障图片最多可上传3个')
- }else{
- saveData(data).then(res => {
- console.log('res------------------->', res)
- if (res.data.code == 200) {
- this.$message.success('新增成功')
- this.$emit('close')
- }
+ if(data.videoAttaches && data.picAttaches && data.videoAttaches.length + data.picAttaches.length > 3){
+ this.$message.error('故障视频与故障图片最多可上传3个')
+ }else if (data.videoAttaches && !data.picAttaches && data.videoAttaches.length > 3){
+ this.$message.error('故障视频与故障图片最多可上传3个')
+ }else if (!data.videoAttaches && data.picAttaches && data.picAttaches.length > 3){
+ this.$message.error('故障视频与故障图片最多可上传3个')
+ }else{
+ console.log('data===========>',data)
+ serviceSave(data).then(res =>{
+ console.log('res------------------->', res)
+ if (res.data.code == 200) {
+ this.$message.success('新增成功')
+ this.$emit('close')
+ }
+ })
+ }
+ }
+ }
+ }else{
+ if (this.addForm[index].form.faultDescribe != '') {
+ count++
+ this.$refs[`form${index}`][0].clearValidate()
+ if(count == this.addForm.length){
+ let data = []
+ this.addForm.map(item => {
+ data.push({
+ id: this.editId ? this.editId : null,
+ faultLocation: item.form.faultPosition,
+ deviceName: item.form.deviceName,
+ faultType: item.form.faultType,
+ videoAttaches: item.form.videoAttaches,
+ picAttaches: item.form.picAttaches,
+ faultDescribe: item.form.faultDescribe,
+ submitType: 1
+ })
})
+ console.log('data---------->',data)
+ if(data.videoAttaches && data.picAttaches && data.videoAttaches.length + data.picAttaches.length > 3){
+ this.$message.error('故障视频与故障图片最多可上传3个')
+ }else if (data.videoAttaches && !data.picAttaches && data.videoAttaches.length > 3){
+ this.$message.error('故障视频与故障图片最多可上传3个')
+ }else if (!data.videoAttaches && data.picAttaches && data.picAttaches.length > 3){
+ this.$message.error('故障视频与故障图片最多可上传3个')
+ }else{
+ saveData(data).then(res => {
+ console.log('res------------------->', res)
+ if (res.data.code == 200) {
+ this.$message.success('新增成功')
+ this.$emit('close')
+ }
+ })
+ }
}
+
+
}
-
-
}
}
});
diff --git a/src/views/device/deviceSystem.vue b/src/views/device/deviceSystem.vue
index c51fdf1..4c4a0e1 100644
--- a/src/views/device/deviceSystem.vue
+++ b/src/views/device/deviceSystem.vue
@@ -120,7 +120,7 @@
:disabled="viewType == 'view'">
- 是否在保
+ 是否在保
@@ -227,7 +227,7 @@
import printJS from 'print-js'
import { mapGetters } from "vuex";
import requestSub from '../components/requestSub.vue'
-import { getDeviceList, addDevice, getDetail, editDevice, deleteDevice, qrcode, importFile } from '@/api/device/device'
+import { getDeviceList, addDevice, getDetail, editDevice, deleteDevice, qrcode, importFile,getLabList } from '@/api/device/device'
import { getChildList } from '@/api/system/dictbiz'
import { getDeepData } from '@/api/labManagement/inspectionManagement'
import SelectTree from '../../components/selectTree/tree'
@@ -408,7 +408,7 @@ export default {
lazyLoad(node, resolve) {
const { level, value } = node;
if (level == 0) {
- getDeepData({ parentId: 0 }).then(res => {
+ getLabList().then(res => {
let firstNode = []
res.data.data.map(item => {
firstNode.push({
@@ -797,24 +797,26 @@ export default {
floorId: this.addForm.lab[1], //楼层id
roomId: this.addForm.lab[2], //房间id
brand:this.addForm.brand,//品牌
+ isWarran:this.addForm.isWarran
}
- if (this.viewType == 'add') {
- addDevice(query).then(res => {
- if (res.data.code == 200) {
- this.$message.success('新增成功!')
- this.dialogVisible = false
- this.onLoad()
- }
- })
- } else if (this.viewType == 'edit') {
- editDevice(query).then(res => {
- if (res.data.code == 200) {
- this.$message.success('修改成功!')
- this.dialogVisible = false
- this.onLoad()
- }
- })
- }
+ console.log('query----------------->',query)
+ // if (this.viewType == 'add') {
+ // addDevice(query).then(res => {
+ // if (res.data.code == 200) {
+ // this.$message.success('新增成功!')
+ // this.dialogVisible = false
+ // this.onLoad()
+ // }
+ // })
+ // } else if (this.viewType == 'edit') {
+ // editDevice(query).then(res => {
+ // if (res.data.code == 200) {
+ // this.$message.success('修改成功!')
+ // this.dialogVisible = false
+ // this.onLoad()
+ // }
+ // })
+ // }
}
})
},
diff --git a/src/views/operation/hand.vue b/src/views/operation/hand.vue
index 54fb01a..3bccd57 100644
--- a/src/views/operation/hand.vue
+++ b/src/views/operation/hand.vue
@@ -9,6 +9,9 @@
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期">
+
@@ -265,7 +267,7 @@
-
+
-
+
-
+
-
+
+
+ v-show="((rowStatus == 403 || isEvalute ) && detailForm.approveResult1 == 1) || rowStatus == 104 || rowStatus == 203">
+ v-show="((rowStatus == 6 || isEvalute) && detailForm.approveResult1 == 1) || rowStatus == 104 || rowStatus == 203">
+ v-show="nameImg == '' && rowStatus != 104 && rowStatus != 203 && rowStatus != 9">
-
+
', this.typeList)
})
- this.searchForm.timeRange = [moment().subtract(7, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')]
+ // this.searchForm.timeRange = [moment().subtract(7, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')]
},
mounted() { },
methods: {
@@ -884,6 +895,9 @@ export default {
// 客户选择是否维修完成
changeResult(val) {
this.isFinish = val
+ if(val == 0){
+ this.detailForm.approveRemark = ''
+ }
console.log(this.isFinish)
},
// 开具发票
@@ -1210,7 +1224,7 @@ export default {
},
searchReset(params, done) {
this.searchForm = {
- timeRange: [moment().subtract(7, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')],
+ // timeRange: [moment().subtract(7, 'days').format('YYYY-MM-DD'), moment().format('YYYY-MM-DD')],
faultLocation: '',
faultType: ''
}
@@ -1246,12 +1260,22 @@ export default {
requirementCode:this.searchForm.requirementCode
}
console.log('query--------->', query)
- getList(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
- })
+ 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{
+ getList(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
+ })
+ }
+
},
},
};
diff --git a/src/views/system/user.vue b/src/views/system/user.vue
index 7f87d49..baab2d7 100644
--- a/src/views/system/user.vue
+++ b/src/views/system/user.vue
@@ -131,6 +131,10 @@
slot="userTypeName">
{{row.userTypeName}}
+
+ {{row.isMaintenanceClient == 0 ? '维修客户' : row.isMaintenanceClient == 1 ? '维保客户' : ''}}
+
-
![]()
+
-
+
@@ -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 @@
-
+