巡检对象 工器具台账 bug对应

main
weitingdong 11 months ago
parent 1c9ac75b05
commit 371d63e218
  1. 88
      src/views/inspection/inspectionobjectDetail.vue
  2. 1
      src/views/leger/toolinventoryrecordDetail.vue
  3. 5
      src/views/smart/workpermitDetail.vue

@ -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 = ' ';

@ -674,6 +674,7 @@ export default {
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).then(() => {
this.tab1_form.checkStatus="1"
update(this.tab1_form).then(() => { update(this.tab1_form).then(() => {
this.$router.push({ this.$router.push({
path: "/leger/toolinventoryrecord", path: "/leger/toolinventoryrecord",

@ -592,6 +592,7 @@
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}).then(() => { }).then(() => {
this.tab1_form.checkStatus="1"
update(this.tab1_form).then(() => { update(this.tab1_form).then(() => {
this.$router.push({ this.$router.push({
path: "/smart/workpermit", path: "/smart/workpermit",
@ -629,7 +630,7 @@
this.readonlyForm=true; this.readonlyForm=true;
this.shouldShowButton=true; this.shouldShowButton=true;
this.addUpdateShowButton=false; this.addUpdateShowButton=false;
this.UpdateShowButton=false; this.UpdateShowButton=true;
this.frame_class = 'frame_class1'; this.frame_class = 'frame_class1';
}, },
handleChange (column) { handleChange (column) {
@ -637,6 +638,8 @@
if (column.prop == 'attachment') { if (column.prop == 'attachment') {
this.UpdateShowButton=false; this.UpdateShowButton=false;
this.attachment_onLoad(); this.attachment_onLoad();
}if (column.prop == 'information'){
this.UpdateShowButton=true;
} }
this.attachment_form.ticketCode = this.tab1_form.workTicketNo; this.attachment_form.ticketCode = this.tab1_form.workTicketNo;
}, },

Loading…
Cancel
Save