巡检对象 工器具台账 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 {mapGetters} from "vuex";
import {getToken} from "@/util/auth";
import request from "@/router/axios";
export default {
name: "inspectionrouteDetail",
@ -35,6 +36,7 @@ export default {
addUpdateShowButton:{},
shouldShowButton:{},
readonlyForm:{},
objectAreaFlag:{},
frame_class: '',
form: {},
query: {},
@ -57,13 +59,7 @@ export default {
label: "对象名称",
prop: "objectName",
search:true,
type: "select",
span:8,
dicUrl: "/api/daf-system/dict/dictionary?code=obj_name",
props: {
label: "dictValue",
value: "dictKey"
},
rules: [{
required: true,
message: "请输入对象名称",
@ -75,6 +71,7 @@ export default {
prop: "station",
search:true,
type: "select",
disabled: true,
span:8,
dicUrl: "/api/daf-system/dict/dictionary?code=station",
props: {
@ -91,6 +88,37 @@ export default {
label: "对象类型",
prop: "objectType",
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: [{
required: true,
message: "请输入对象类型",
@ -129,6 +157,7 @@ export default {
label: "KKS编号",
prop: "kksNo",
search:true,
disabled: false,
span:8,
type: "select",
dicUrl: "/api/equipmentledger/getKksList",
@ -136,6 +165,22 @@ export default {
label: "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: [{
required: true,
message: "请输入KKS编号",
@ -147,6 +192,35 @@ export default {
prop: "cancelReason",
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: []
@ -172,6 +246,8 @@ export default {
this.addUpdateShowButton = false;
this.shouldShowButton=true;
this.frame_class = 'frame_class';
const station = this.findObject(this.option.column, "station");
station.disabled = false;
}else{
const objectNo = this.findObject(this.option.column, "objectNo");
objectNo.value = ' ';

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

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

Loading…
Cancel
Save