|
|
|
@ -114,18 +114,21 @@
|
|
|
|
|
<el-table-column label="供应商" width="100" prop="supName"/>
|
|
|
|
|
<el-table-column label="UDI码" width="150" prop="udi"/>
|
|
|
|
|
<el-table-column label="注册/备案号" width="150" prop="zczbhhzbapzbh"/>
|
|
|
|
|
<el-table-column label="操作" width="160" fixed="right">
|
|
|
|
|
<el-table-column label="操作" width="200" fixed="right">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<!-- <el-button type="text" @click="openItem(scope.row)"-->
|
|
|
|
|
<!-- >开始巡检-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
|
|
|
|
|
<el-button type="text" @click="startCheck(scope.row)"
|
|
|
|
|
<el-button type="text" @click="startCheck(scope.row)" v-if="!scope.row.finishFlag"
|
|
|
|
|
>开始巡检
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button type="text" @click="startCheck(scope.row)" v-if="scope.row.finishFlag"
|
|
|
|
|
>巡检详情
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button :disabled="!(scope.row.finishFlag&&scope.row.exceptionCount>0&&!scope.row.repairId)" type="text"
|
|
|
|
|
<el-button :disabled="!(scope.row.finishFlag && scope.row.exceptionCount>0&&!scope.row.repairId)" type="text"
|
|
|
|
|
@click="createRepair(scope.row)"
|
|
|
|
|
>维修
|
|
|
|
|
</el-button>
|
|
|
|
@ -294,12 +297,27 @@
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
|
|
|
|
|
<el-descriptions-item label="维修部门" :span="3">
|
|
|
|
|
<el-form-item label=" " prop="repairDeptCode" style="margin-bottom: 10px">
|
|
|
|
|
<deptSelect :value.sync="repairRow.repairDeptCode" :maintenance="true" placeholder="请选择报修部门" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="维修人姓名" :span="3">
|
|
|
|
|
<el-form-item label=" " prop="repairUserName" style="margin-bottom: 10px">
|
|
|
|
|
<el-input v-model.trim="repairRow.repairUserName" placeholder="请输入维修人姓名"/>
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="repairRow.repairUserName"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="(item, index) in userlist"
|
|
|
|
|
:key="index"
|
|
|
|
|
:label="item.employeeName"
|
|
|
|
|
:value="item.employeeName"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="维修人电话" :span="3">
|
|
|
|
|
<el-descriptions-item label="维修人电话" :span="3">
|
|
|
|
|
<el-form-item label=" " prop="repairUserPhone" style="margin-bottom: 10px">
|
|
|
|
|
<el-input v-model.trim="repairRow.repairUserPhone" placeholder="请输入维修人电话"/>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -351,6 +369,7 @@ import {deviceCheckDetailPage, deviceCheckDetailRepair} from "@/api/dev/deviceCh
|
|
|
|
|
import {deviceCheckDetailItemFinish, deviceCheckDetailItemPage} from "@/api/dev/deviceCheckDetailItemApi";
|
|
|
|
|
import {copyProperties, getLoading} from "@/utils";
|
|
|
|
|
import deptDeviceCheckDetail from "@/views/dev/deptDeviceCheckDetail";
|
|
|
|
|
import {filterListByDeptCode} from "@/api/system/deptUser";
|
|
|
|
|
|
|
|
|
|
let query = {
|
|
|
|
|
page: 1,
|
|
|
|
@ -380,6 +399,7 @@ let repairData = {
|
|
|
|
|
innerFlag: true,
|
|
|
|
|
repairUserName: null,
|
|
|
|
|
repairUserPhone: null,
|
|
|
|
|
repairDeptCode: null,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
@ -393,6 +413,7 @@ export default {
|
|
|
|
|
clickRow: null,
|
|
|
|
|
showSearch: true,
|
|
|
|
|
loading: false,
|
|
|
|
|
userlist:[],
|
|
|
|
|
total: .0,
|
|
|
|
|
list: [],
|
|
|
|
|
query: {...query},
|
|
|
|
@ -431,6 +452,11 @@ export default {
|
|
|
|
|
message: "维修人电话不能为空",
|
|
|
|
|
trigger: ["change", "blur"]
|
|
|
|
|
}],
|
|
|
|
|
repairDeptCode: [{
|
|
|
|
|
required: true,
|
|
|
|
|
message: "维修部门不能为空",
|
|
|
|
|
trigger: ["change", "blur"]
|
|
|
|
|
}],
|
|
|
|
|
description: [{required: true, message: "问题描述不能为空", trigger: ["change", "blur"]}],
|
|
|
|
|
diagnosisInfo: [{required: true, message: "诊断信息不能为空", trigger: ["change", "blur"]}],
|
|
|
|
|
},
|
|
|
|
@ -444,6 +470,15 @@ export default {
|
|
|
|
|
created() {
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
'repairRow.repairDeptCode': {
|
|
|
|
|
handler (newV, oldV) {
|
|
|
|
|
this.getUerList()
|
|
|
|
|
},
|
|
|
|
|
// deep: true,
|
|
|
|
|
// immediate: true,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
commitRepair() {
|
|
|
|
|
this.$refs.repairForm.validate(b => {
|
|
|
|
@ -581,6 +616,23 @@ export default {
|
|
|
|
|
this.total = 0
|
|
|
|
|
this.loading = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
getUerList() {
|
|
|
|
|
if (this.repairRow.repairDeptCode != null){
|
|
|
|
|
let userQuery = {
|
|
|
|
|
deptCode: this.repairRow.repairDeptCode,
|
|
|
|
|
}
|
|
|
|
|
filterListByDeptCode(userQuery).then((response) => {
|
|
|
|
|
// this.loading = false;
|
|
|
|
|
this.userlist = response.data.list || [];
|
|
|
|
|
// this.userTotal = response.data.total;
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
// this.loading = false;
|
|
|
|
|
this.userlist = [];
|
|
|
|
|
// this.userTotal = 0;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|