|
|
@ -18,7 +18,7 @@
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-form-item label="任务类型:" class="query-form-item">
|
|
|
|
<el-form-item label="任务类型:" class="query-form-item">
|
|
|
|
<el-select v-model="filterQuery.type" style="width: 90%" placeholder="请选择计划级别" clearable>
|
|
|
|
<el-select v-model="filterQuery.type" style="width: 90%" placeholder="请选择任务类型" clearable>
|
|
|
|
<el-option label="巡检" :value=1></el-option>
|
|
|
|
<el-option label="巡检" :value=1></el-option>
|
|
|
|
<el-option label="养护" :value=2></el-option>
|
|
|
|
<el-option label="养护" :value=2></el-option>
|
|
|
|
<el-option label="报修" :value=3></el-option>
|
|
|
|
<el-option label="报修" :value=3></el-option>
|
|
|
@ -66,7 +66,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
<el-divider style="margin: 15px"></el-divider>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" @current-change="handleDetail" highlight-current-row border>
|
|
|
|
<el-table v-loading="loading" :data="list" style="width: 100%" @current-change="handleDetail"
|
|
|
|
|
|
|
|
highlight-current-row border>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="序号" type="index"></el-table-column>
|
|
|
|
<el-table-column label="任务编号" prop="orderId"></el-table-column>
|
|
|
|
<el-table-column label="任务编号" prop="orderId"></el-table-column>
|
|
|
|
<el-table-column label="资产编码" prop="code"></el-table-column>
|
|
|
|
<el-table-column label="资产编码" prop="code"></el-table-column>
|
|
|
@ -87,9 +88,9 @@
|
|
|
|
<el-table-column label="操作">
|
|
|
|
<el-table-column label="操作">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native.stop="startOrder(scope.row,2)"
|
|
|
|
@click.native.stop="startOrder(scope.row,2)"
|
|
|
|
>编辑
|
|
|
|
>编辑
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -111,11 +112,11 @@
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
|
<pagination
|
|
|
|
<pagination
|
|
|
|
v-show="total>0"
|
|
|
|
v-show="total>0"
|
|
|
|
:total="total"
|
|
|
|
:total="total"
|
|
|
|
:limit.sync="filterQuery.limit"
|
|
|
|
:limit.sync="filterQuery.limit"
|
|
|
|
:page.sync="filterQuery.page"
|
|
|
|
:page.sync="filterQuery.page"
|
|
|
|
@pagination="getList"
|
|
|
|
@pagination="getList"
|
|
|
|
></pagination>
|
|
|
|
></pagination>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
@ -136,9 +137,8 @@
|
|
|
|
<!--</el-dialog>-->
|
|
|
|
<!--</el-dialog>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-card class="el-card">
|
|
|
|
<el-card class="el-card">
|
|
|
|
<el-table v-loading="loading" :data="delectList" style="width: 100%" border highlight-current-row>
|
|
|
|
<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="序号" type="index" width="60"></el-table-column>
|
|
|
|
<el-table-column label="巡检项目编码" prop="projectCode" width="300"></el-table-column>
|
|
|
|
<el-table-column label="巡检项目编码" prop="projectCode" width="300"></el-table-column>
|
|
|
|
<el-table-column label="项目内容" prop="projectContent" width="500"></el-table-column>
|
|
|
|
<el-table-column label="项目内容" prop="projectContent" width="500"></el-table-column>
|
|
|
@ -155,9 +155,9 @@
|
|
|
|
<el-table-column label="操作" width="100">
|
|
|
|
<el-table-column label="操作" width="100">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
size="small"
|
|
|
|
size="small"
|
|
|
|
@click.native.stop="datailSelect(scope.row)"
|
|
|
|
@click.native.stop="datailSelect(scope.row)"
|
|
|
|
>详情
|
|
|
|
>详情
|
|
|
|
</el-button
|
|
|
|
</el-button
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -168,39 +168,38 @@
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
title="巡检配置详情"
|
|
|
|
title="巡检配置详情"
|
|
|
|
:visible.sync="deviceProjectSelectVisible"
|
|
|
|
:visible.sync="deviceProjectSelectVisible"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
width="40%"
|
|
|
|
width="40%"
|
|
|
|
v-if="deviceProjectSelectVisible"
|
|
|
|
v-if="deviceProjectSelectVisible"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<DeviceInspectTakeDetail
|
|
|
|
<DeviceInspectTakeDetail
|
|
|
|
:detailQuery="detailQuery"
|
|
|
|
:detailQuery="detailQuery"
|
|
|
|
:closeDialog="closeDialog"
|
|
|
|
:closeDialog="closeDialog"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</DeviceInspectTakeDetail>
|
|
|
|
</DeviceInspectTakeDetail>
|
|
|
|
</el-dialog>
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
<el-dialog
|
|
|
|
:title="formMap[formName]"
|
|
|
|
:title="formMap[formName]"
|
|
|
|
:visible.sync="addTakeDetial"
|
|
|
|
:visible.sync="addTakeDetial"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-click-modal="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
:close-on-press-escape="false"
|
|
|
|
width="65%"
|
|
|
|
width="65%"
|
|
|
|
v-if="addTakeDetial"
|
|
|
|
v-if="addTakeDetial"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<deviceInspectTakeAdd
|
|
|
|
<deviceInspectTakeAdd
|
|
|
|
:inspectTake="deviceInspectTake"
|
|
|
|
:inspectTake="deviceInspectTake"
|
|
|
|
:type="type"
|
|
|
|
:type="type"
|
|
|
|
:formName="formName"
|
|
|
|
:formName="formName"
|
|
|
|
:closeDialog="closeDialogTake"
|
|
|
|
:closeDialog="closeDialogTake"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</deviceInspectTakeAdd>
|
|
|
|
</deviceInspectTakeAdd>
|
|
|
|
</el-dialog>
|
|
|
|
</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"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
@ -216,7 +215,7 @@ import {
|
|
|
|
} from "@/api/inventory/deviceInspectTake";
|
|
|
|
} from "@/api/inventory/deviceInspectTake";
|
|
|
|
import {previewImage, previewFile} from "@/api/purchase/supCompany";
|
|
|
|
import {previewImage, previewFile} 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 DeviceInspectTakeDetail from "@/views/inventory/DeviceInspectTakeDetail"
|
|
|
|
import DeviceInspectTakeDetail from "@/views/inventory/DeviceInspectTakeDetail"
|
|
|
|
import deviceInspectTakeAdd from "@/views/inventory/DeviceInspectTakeAdd"
|
|
|
|
import deviceInspectTakeAdd from "@/views/inventory/DeviceInspectTakeAdd"
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
@ -228,15 +227,15 @@ export default {
|
|
|
|
deptCode: this.$store.getters.locDeptCode,
|
|
|
|
deptCode: this.$store.getters.locDeptCode,
|
|
|
|
invCode: null,
|
|
|
|
invCode: null,
|
|
|
|
code: null,
|
|
|
|
code: null,
|
|
|
|
statusList: [0,1],//0草稿 1未分配
|
|
|
|
statusList: [0, 1],//0草稿 1未分配
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
imgViewerVisible:false,
|
|
|
|
imgViewerVisible: false,
|
|
|
|
imgList: [],
|
|
|
|
imgList: [],
|
|
|
|
BASE_URL: process.env.VUE_APP_BASE_API,
|
|
|
|
BASE_URL: process.env.VUE_APP_BASE_API,
|
|
|
|
type:null,
|
|
|
|
type: null,
|
|
|
|
delectList:[],
|
|
|
|
delectList: [],
|
|
|
|
list: [],
|
|
|
|
list: [],
|
|
|
|
total: 0,
|
|
|
|
total: 0,
|
|
|
|
deptList: [],
|
|
|
|
deptList: [],
|
|
|
@ -262,7 +261,7 @@ export default {
|
|
|
|
formMap: {
|
|
|
|
formMap: {
|
|
|
|
add: "新增设备巡检任务",
|
|
|
|
add: "新增设备巡检任务",
|
|
|
|
edit: "编辑设备巡检任务",
|
|
|
|
edit: "编辑设备巡检任务",
|
|
|
|
datail:"详情"
|
|
|
|
datail: "详情"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
deviceInspectTake: {
|
|
|
|
deviceInspectTake: {
|
|
|
|
id: null,
|
|
|
|
id: null,
|
|
|
@ -276,7 +275,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
deviceProjectSelectVisible: false,
|
|
|
|
deviceProjectSelectVisible: false,
|
|
|
|
detailQuery: null,
|
|
|
|
detailQuery: null,
|
|
|
|
addTakeDetial:false,
|
|
|
|
addTakeDetial: false,
|
|
|
|
showSearch: true,
|
|
|
|
showSearch: true,
|
|
|
|
actDateRange: [],
|
|
|
|
actDateRange: [],
|
|
|
|
endDateRange: [],
|
|
|
|
endDateRange: [],
|
|
|
@ -390,7 +389,7 @@ export default {
|
|
|
|
deptCode: this.$store.getters.locDeptCode,
|
|
|
|
deptCode: this.$store.getters.locDeptCode,
|
|
|
|
invCode: null,
|
|
|
|
invCode: null,
|
|
|
|
code: null,
|
|
|
|
code: null,
|
|
|
|
statusList: [0,1],
|
|
|
|
statusList: [0, 1],
|
|
|
|
page: 1,
|
|
|
|
page: 1,
|
|
|
|
limit: 20,
|
|
|
|
limit: 20,
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -445,8 +444,19 @@ export default {
|
|
|
|
this.total = 0;
|
|
|
|
this.total = 0;
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
addTake(){
|
|
|
|
addTake() {
|
|
|
|
this.formName="add"
|
|
|
|
this.formName = "add"
|
|
|
|
|
|
|
|
this.deviceInspectTake = {
|
|
|
|
|
|
|
|
id: null,
|
|
|
|
|
|
|
|
code: null,
|
|
|
|
|
|
|
|
status: 0,
|
|
|
|
|
|
|
|
deptCode: null,
|
|
|
|
|
|
|
|
invCode: null,
|
|
|
|
|
|
|
|
deviceName: null,
|
|
|
|
|
|
|
|
orderId: null,
|
|
|
|
|
|
|
|
endTime: '',
|
|
|
|
|
|
|
|
startTime: '',
|
|
|
|
|
|
|
|
};
|
|
|
|
this.addTakeDetial = true;
|
|
|
|
this.addTakeDetial = true;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
deptChange() {
|
|
|
|
deptChange() {
|
|
|
@ -469,19 +479,19 @@ export default {
|
|
|
|
getInvList() {
|
|
|
|
getInvList() {
|
|
|
|
let params = {deptCode: this.filterQuery.deptCode};
|
|
|
|
let params = {deptCode: this.filterQuery.deptCode};
|
|
|
|
findInvByUser(params)
|
|
|
|
findInvByUser(params)
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
this.invList = response.data || [];
|
|
|
|
this.invList = response.data || [];
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
startOrder(row,type) {
|
|
|
|
startOrder(row, type) {
|
|
|
|
this.formName="edit"
|
|
|
|
this.formName = "edit"
|
|
|
|
this.addTakeDetial = true;
|
|
|
|
this.addTakeDetial = true;
|
|
|
|
this.deviceInspectTake = row;
|
|
|
|
this.deviceInspectTake = row;
|
|
|
|
if(type == 3){
|
|
|
|
if (type == 3) {
|
|
|
|
this.formName="datail"
|
|
|
|
this.formName = "datail"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.type = type
|
|
|
|
this.type = type
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -506,8 +516,8 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
handleDetail(row){
|
|
|
|
handleDetail(row) {
|
|
|
|
this.selectDeviceInspecTakeDetail({taskOrderIdFk:row.orderId})
|
|
|
|
this.selectDeviceInspecTakeDetail({taskOrderIdFk: row.orderId})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
selectDeviceInspecTakeDetail(obj) {
|
|
|
|
selectDeviceInspecTakeDetail(obj) {
|
|
|
|
selectDeviceInspecTakeDetail(obj).then((res) => {
|
|
|
|
selectDeviceInspecTakeDetail(obj).then((res) => {
|
|
|
@ -527,12 +537,12 @@ export default {
|
|
|
|
closeDialog() {
|
|
|
|
closeDialog() {
|
|
|
|
this.deviceProjectSelectVisible = false;
|
|
|
|
this.deviceProjectSelectVisible = false;
|
|
|
|
},
|
|
|
|
},
|
|
|
|
closeDialogTake(){
|
|
|
|
closeDialogTake() {
|
|
|
|
this.addTakeDetial = false;
|
|
|
|
this.addTakeDetial = false;
|
|
|
|
this.getList()
|
|
|
|
this.getList()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
datailSelect(row){
|
|
|
|
datailSelect(row) {
|
|
|
|
this.detailQuery = row
|
|
|
|
this.detailQuery = row
|
|
|
|
this.deviceProjectSelectVisible = true
|
|
|
|
this.deviceProjectSelectVisible = true
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -567,7 +577,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
components: {deviceInspectTakeAuditModify,ElImageViewer,DeviceInspectTakeDetail,deviceInspectTakeAdd},
|
|
|
|
components: {deviceInspectTakeAuditModify, ElImageViewer, DeviceInspectTakeDetail, deviceInspectTakeAdd},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
document.body.ondrop = function (event) {
|
|
|
|
document.body.ondrop = function (event) {
|
|
|
|
event.preventDefault();
|
|
|
|
event.preventDefault();
|
|
|
|