|
|
@ -99,7 +99,7 @@
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" highlight-current-row
|
|
|
|
border>
|
|
|
|
border @current-change="handleDetail">
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="设备报修记录号" prop="orderId" show-overflow-tooltip width="140"></el-table-column>
|
|
|
|
<el-table-column label="设备报修记录号" prop="orderId" show-overflow-tooltip width="140"></el-table-column>
|
|
|
|
<el-table-column label="部门" prop="deptName" show-overflow-tooltip width="120"></el-table-column>
|
|
|
|
<el-table-column label="部门" prop="deptName" show-overflow-tooltip width="120"></el-table-column>
|
|
|
@ -111,15 +111,29 @@
|
|
|
|
<!--<el-table-column label="创建日期" prop="createTime"></el-table-column>-->
|
|
|
|
<!--<el-table-column label="创建日期" prop="createTime"></el-table-column>-->
|
|
|
|
<el-table-column label="创建人" prop="createUserName" show-overflow-tooltip width="120"></el-table-column>
|
|
|
|
<el-table-column label="创建人" prop="createUserName" show-overflow-tooltip width="120"></el-table-column>
|
|
|
|
<el-table-column label="审核人" prop="auditUserName" show-overflow-tooltip width="120"></el-table-column>
|
|
|
|
<el-table-column label="审核人" prop="auditUserName" show-overflow-tooltip width="120"></el-table-column>
|
|
|
|
<el-table-column label="维修人" prop="repName" show-overflow-tooltip width="120"></el-table-column>
|
|
|
|
<el-table-column label="维修类型" prop="repairType" show-overflow-tooltip width="120">
|
|
|
|
<el-table-column label="开始时间" prop="repariStartTime" show-overflow-tooltip width="140"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="结束时间" prop="repariEndTime" show-overflow-tooltip width="140"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="维修说明" prop="repariRemark" show-overflow-tooltip width="180"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="维修图片" prop="repariImage" show-overflow-tooltip width="250">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<div style="color: #1890ff;" @click="showImgViewer(scope.row.repariImage)">{{ scope.row.repariImage }}</div>
|
|
|
|
<el-tag >
|
|
|
|
|
|
|
|
{{ repairType[scope.row.repairType] }}
|
|
|
|
|
|
|
|
</el-tag>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="紧急程度" prop="urgencyType" show-overflow-tooltip width="120">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-tag>
|
|
|
|
|
|
|
|
{{ urgencyType[scope.row.urgencyType] }}
|
|
|
|
|
|
|
|
</el-tag>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<!--<el-table-column label="维修人" prop="repName" show-overflow-tooltip width="120"></el-table-column>-->
|
|
|
|
|
|
|
|
<!--<el-table-column label="开始时间" prop="repariStartTime" show-overflow-tooltip width="140"></el-table-column>-->
|
|
|
|
|
|
|
|
<!--<el-table-column label="结束时间" prop="repariEndTime" show-overflow-tooltip width="140"></el-table-column>-->
|
|
|
|
|
|
|
|
<!--<el-table-column label="维修说明" prop="repariRemark" show-overflow-tooltip width="180"></el-table-column>-->
|
|
|
|
|
|
|
|
<!--<el-table-column label="维修图片" prop="repariImage" show-overflow-tooltip width="250">-->
|
|
|
|
|
|
|
|
<!-- <template slot-scope="scope">-->
|
|
|
|
|
|
|
|
<!-- <div style="color: #1890ff;" @click="showImgViewer(scope.row.repariImage)">{{ scope.row.repariImage }}</div>-->
|
|
|
|
|
|
|
|
<!-- </template>-->
|
|
|
|
|
|
|
|
<!--</el-table-column>-->
|
|
|
|
<!--<el-table-column label="审核日期" prop="auditTime"></el-table-column>-->
|
|
|
|
<!--<el-table-column label="审核日期" prop="auditTime"></el-table-column>-->
|
|
|
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
|
|
|
<el-table-column label="状态" prop="status" show-overflow-tooltip width="120">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -147,6 +161,8 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
<pagination
|
|
|
|
v-show="total>0"
|
|
|
|
v-show="total>0"
|
|
|
|
:total="total"
|
|
|
|
:total="total"
|
|
|
@ -156,6 +172,25 @@
|
|
|
|
></pagination>
|
|
|
|
></pagination>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="delectList" style="width: 100%" border highlight-current-row>
|
|
|
|
|
|
|
|
<el-table-column label="序号" type="index" width="60"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="项目内容" prop="content" width="300"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="备注" prop="remark" show-overflow-tooltip="true"></el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="操作" width="100">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
|
|
size="small"
|
|
|
|
|
|
|
|
@click.native.stop="datailSelect(scope.row)"
|
|
|
|
|
|
|
|
>详情
|
|
|
|
|
|
|
|
</el-button
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
title="详情"
|
|
|
|
title="详情"
|
|
|
|
:visible.sync="formVisible"
|
|
|
|
:visible.sync="formVisible"
|
|
|
@ -170,6 +205,20 @@
|
|
|
|
></DeviceRepairOrderDetails>
|
|
|
|
></DeviceRepairOrderDetails>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
|
|
|
title="报修配置详情"
|
|
|
|
|
|
|
|
:visible.sync="deviceProjectSelectVisible"
|
|
|
|
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
|
|
|
|
width="40%"
|
|
|
|
|
|
|
|
v-if="deviceProjectSelectVisible"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<DeviceInspectPlanProjectSet
|
|
|
|
|
|
|
|
:detailQuery="detailQuery"
|
|
|
|
|
|
|
|
:closeDialog="detailCloseDialogc"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</DeviceInspectPlanProjectSet>
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
|
|
|
|
<el-image-viewer v-if="imgViewerVisible" style="z-index:9999" :on-close="closeImgViewer" :url-list="imgList"/>
|
|
|
|
|
|
|
|
|
|
|
@ -184,6 +233,9 @@ import {warehouseUserList} from "@/api/system/invWarehouse";
|
|
|
|
import {previewImage} from "@/api/purchase/supCompany";
|
|
|
|
import {previewImage} from "@/api/purchase/supCompany";
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
|
|
|
import ElImageViewer from "element-ui/packages/image/src/image-viewer";
|
|
|
|
import DeviceRepairOrderDetails from "@/views/inventory/DeviceRepairOrderDetails";
|
|
|
|
import DeviceRepairOrderDetails from "@/views/inventory/DeviceRepairOrderDetails";
|
|
|
|
|
|
|
|
import {filterByorderIdFk} from "@/api/inventory/deviceRepairOrderDetail";
|
|
|
|
|
|
|
|
import DeviceInspectPlanProjectSet from "@/views/inventory/DeviceInspectProjectSelect";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -204,6 +256,9 @@ export default {
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
deptList: [],
|
|
|
|
deptList: [],
|
|
|
|
|
|
|
|
delectList:[],
|
|
|
|
|
|
|
|
deviceProjectSelectVisible:false,
|
|
|
|
|
|
|
|
detailQuery:{},
|
|
|
|
invList: [],
|
|
|
|
invList: [],
|
|
|
|
loading: false,
|
|
|
|
loading: false,
|
|
|
|
formVisible: false,
|
|
|
|
formVisible: false,
|
|
|
@ -216,6 +271,15 @@ export default {
|
|
|
|
4: "维修中",
|
|
|
|
4: "维修中",
|
|
|
|
5: "已处理"
|
|
|
|
5: "已处理"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
repairType:{
|
|
|
|
|
|
|
|
1:"自行维修",
|
|
|
|
|
|
|
|
2:"外部维修"
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
urgencyType:{
|
|
|
|
|
|
|
|
1:"正常",
|
|
|
|
|
|
|
|
2:"较急",
|
|
|
|
|
|
|
|
3:"特急"
|
|
|
|
|
|
|
|
},
|
|
|
|
formName: null,
|
|
|
|
formName: null,
|
|
|
|
showSearch: true,
|
|
|
|
showSearch: true,
|
|
|
|
userList: [],
|
|
|
|
userList: [],
|
|
|
@ -243,6 +307,37 @@ export default {
|
|
|
|
this.filterQuery.page = 1;
|
|
|
|
this.filterQuery.page = 1;
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
datailSelect(row){
|
|
|
|
|
|
|
|
this.detailQuery = row
|
|
|
|
|
|
|
|
this.deviceProjectSelectVisible = true
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
detailCloseDialogc() {
|
|
|
|
|
|
|
|
this.formVisible = false;
|
|
|
|
|
|
|
|
this.deviceProjectSelectVisible = false
|
|
|
|
|
|
|
|
this.selectDeviceInspectPlanDelect({orderIdFk:this.orderIds})
|
|
|
|
|
|
|
|
this.getList()
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleDetail(row){
|
|
|
|
|
|
|
|
this.selectDeviceInspectPlanDelect({orderIdFk:row.orderId})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
selectDeviceInspectPlanDelect(obj) {
|
|
|
|
|
|
|
|
filterByorderIdFk(obj).then((res) => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
|
|
|
this.delectList = res.data || [];
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.$message.error(res.message);
|
|
|
|
|
|
|
|
this.delectList = [];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
|
|
|
|
this.$message.error(error.message);
|
|
|
|
|
|
|
|
this.delectList = [];
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
getRepairList(this.filterQuery).then((res) => {
|
|
|
|
getRepairList(this.filterQuery).then((res) => {
|
|
|
@ -357,7 +452,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {DeviceRepairOrderDetails, ElImageViewer},
|
|
|
|
components: {DeviceRepairOrderDetails, ElImageViewer,DeviceInspectPlanProjectSet},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
document.body.ondrop = function (event) {
|
|
|
|
document.body.ondrop = function (event) {
|
|
|
|
event.preventDefault();
|
|
|
|
event.preventDefault();
|
|
|
|