|
|
@ -27,6 +27,7 @@ |
|
|
|
import {getList, getDetail, add, update, remove, takeEffect, lapse} from "@/api/inspection/inspectionobject"; |
|
|
|
import {getList, getDetail, add, update, remove, takeEffect, lapse} from "@/api/inspection/inspectionobject"; |
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
import {mapGetters} from "vuex"; |
|
|
|
import {getToken} from "@/util/auth"; |
|
|
|
import {getToken} from "@/util/auth"; |
|
|
|
|
|
|
|
import request from "@/router/axios"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: "inspectionrouteDetail", |
|
|
|
name: "inspectionrouteDetail", |
|
|
@ -35,6 +36,7 @@ export default { |
|
|
|
addUpdateShowButton:{}, |
|
|
|
addUpdateShowButton:{}, |
|
|
|
shouldShowButton:{}, |
|
|
|
shouldShowButton:{}, |
|
|
|
readonlyForm:{}, |
|
|
|
readonlyForm:{}, |
|
|
|
|
|
|
|
objectAreaFlag:{}, |
|
|
|
frame_class: '', |
|
|
|
frame_class: '', |
|
|
|
form: {}, |
|
|
|
form: {}, |
|
|
|
query: {}, |
|
|
|
query: {}, |
|
|
@ -57,13 +59,7 @@ export default { |
|
|
|
label: "对象名称", |
|
|
|
label: "对象名称", |
|
|
|
prop: "objectName", |
|
|
|
prop: "objectName", |
|
|
|
search:true, |
|
|
|
search:true, |
|
|
|
type: "select", |
|
|
|
|
|
|
|
span:8, |
|
|
|
span:8, |
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=obj_name", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
rules: [{ |
|
|
|
rules: [{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入对象名称", |
|
|
|
message: "请输入对象名称", |
|
|
@ -75,6 +71,7 @@ export default { |
|
|
|
prop: "station", |
|
|
|
prop: "station", |
|
|
|
search:true, |
|
|
|
search:true, |
|
|
|
type: "select", |
|
|
|
type: "select", |
|
|
|
|
|
|
|
disabled: true, |
|
|
|
span:8, |
|
|
|
span:8, |
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=station", |
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=station", |
|
|
|
props: { |
|
|
|
props: { |
|
|
@ -91,6 +88,37 @@ export default { |
|
|
|
label: "对象类型", |
|
|
|
label: "对象类型", |
|
|
|
prop: "objectType", |
|
|
|
prop: "objectType", |
|
|
|
span:8, |
|
|
|
span:8, |
|
|
|
|
|
|
|
value:" ", |
|
|
|
|
|
|
|
event: { |
|
|
|
|
|
|
|
change: (val) => { |
|
|
|
|
|
|
|
if (!val) return |
|
|
|
|
|
|
|
if (val) { |
|
|
|
|
|
|
|
if (val=="工器具"){ |
|
|
|
|
|
|
|
const toolsCodeId = this.findObject(this.option.column, "toolsCodeId"); |
|
|
|
|
|
|
|
toolsCodeId.display = true; |
|
|
|
|
|
|
|
const kksNo = this.findObject(this.option.column, "kksNo"); |
|
|
|
|
|
|
|
this.form.kksNo=' '; |
|
|
|
|
|
|
|
kksNo.disabled = true; |
|
|
|
|
|
|
|
if(["view"].includes(this.$route.query.frameMode)) { |
|
|
|
|
|
|
|
kksNo.disabled = false; |
|
|
|
|
|
|
|
const objectNo = this.findObject(this.option.column, "objectNo"); |
|
|
|
|
|
|
|
objectNo.disabled = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
const toolsCodeId = this.findObject(this.option.column, "toolsCodeId"); |
|
|
|
|
|
|
|
this.form.toolsCodeId=' '; |
|
|
|
|
|
|
|
toolsCodeId.display = false; |
|
|
|
|
|
|
|
const kksNo = this.findObject(this.option.column, "kksNo"); |
|
|
|
|
|
|
|
kksNo.disabled = false; |
|
|
|
|
|
|
|
if(["view"].includes(this.$route.query.frameMode)) { |
|
|
|
|
|
|
|
kksNo.disabled = false; |
|
|
|
|
|
|
|
const objectNo = this.findObject(this.option.column, "objectNo"); |
|
|
|
|
|
|
|
objectNo.disabled = false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
rules: [{ |
|
|
|
rules: [{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入对象类型", |
|
|
|
message: "请输入对象类型", |
|
|
@ -129,6 +157,7 @@ export default { |
|
|
|
label: "KKS编号", |
|
|
|
label: "KKS编号", |
|
|
|
prop: "kksNo", |
|
|
|
prop: "kksNo", |
|
|
|
search:true, |
|
|
|
search:true, |
|
|
|
|
|
|
|
disabled: false, |
|
|
|
span:8, |
|
|
|
span:8, |
|
|
|
type: "select", |
|
|
|
type: "select", |
|
|
|
dicUrl: "/api/equipmentledger/getKksList", |
|
|
|
dicUrl: "/api/equipmentledger/getKksList", |
|
|
@ -136,6 +165,22 @@ export default { |
|
|
|
label: "kksEncoding", |
|
|
|
label: "kksEncoding", |
|
|
|
value: "kksEncoding", |
|
|
|
value: "kksEncoding", |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
event: { |
|
|
|
|
|
|
|
change: (val) => { |
|
|
|
|
|
|
|
if (!val) return |
|
|
|
|
|
|
|
if (val) { |
|
|
|
|
|
|
|
request({ |
|
|
|
|
|
|
|
url: '/api/equipmentledger/getDetailList', |
|
|
|
|
|
|
|
method: 'get', |
|
|
|
|
|
|
|
params: { |
|
|
|
|
|
|
|
KksNo: val |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}).then((res) => { |
|
|
|
|
|
|
|
this.form.station = res.data.data.station; |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
rules: [{ |
|
|
|
rules: [{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入KKS编号", |
|
|
|
message: "请输入KKS编号", |
|
|
@ -147,6 +192,35 @@ export default { |
|
|
|
prop: "cancelReason", |
|
|
|
prop: "cancelReason", |
|
|
|
span: 8, |
|
|
|
span: 8, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "工器具编码", |
|
|
|
|
|
|
|
prop: "toolsCodeId", |
|
|
|
|
|
|
|
display: false, |
|
|
|
|
|
|
|
search:true, |
|
|
|
|
|
|
|
span:8, |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/leger/toolinventoryrecord/getToolsCodeIdList", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "toolsCodeId", |
|
|
|
|
|
|
|
value: "toolsCodeId", |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
event: { |
|
|
|
|
|
|
|
change: (val) => { |
|
|
|
|
|
|
|
if (!val) return |
|
|
|
|
|
|
|
if (val) { |
|
|
|
|
|
|
|
request({ |
|
|
|
|
|
|
|
url: '/api/leger/toolinventoryrecord/getDetailList', |
|
|
|
|
|
|
|
method: 'get', |
|
|
|
|
|
|
|
params: { |
|
|
|
|
|
|
|
toolsCodeId: val |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}).then((res) => { |
|
|
|
|
|
|
|
this.form.station = res.data.data.stations; |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
data: [] |
|
|
|
data: [] |
|
|
@ -172,6 +246,8 @@ export default { |
|
|
|
this.addUpdateShowButton = false; |
|
|
|
this.addUpdateShowButton = false; |
|
|
|
this.shouldShowButton=true; |
|
|
|
this.shouldShowButton=true; |
|
|
|
this.frame_class = 'frame_class'; |
|
|
|
this.frame_class = 'frame_class'; |
|
|
|
|
|
|
|
const station = this.findObject(this.option.column, "station"); |
|
|
|
|
|
|
|
station.disabled = false; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
const objectNo = this.findObject(this.option.column, "objectNo"); |
|
|
|
const objectNo = this.findObject(this.option.column, "objectNo"); |
|
|
|
objectNo.value = ' '; |
|
|
|
objectNo.value = ' '; |
|
|
|