|
|
@ -105,16 +105,16 @@ export default { |
|
|
|
return { |
|
|
|
return { |
|
|
|
checkStatusValue: this.$route.query.reviewStatus, |
|
|
|
checkStatusValue: this.$route.query.reviewStatus, |
|
|
|
optionCheckStatus: [{ |
|
|
|
optionCheckStatus: [{ |
|
|
|
value: "1", |
|
|
|
value: 1, |
|
|
|
label: '审核中' |
|
|
|
label: '审核中', |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
value: "2", |
|
|
|
value: 2, |
|
|
|
label: '已审核' |
|
|
|
label: '已审核', |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
value: "3", |
|
|
|
value: 3, |
|
|
|
label: '未通过' |
|
|
|
label: '未通过', |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
value: "4", |
|
|
|
value: 4, |
|
|
|
label: ' ' |
|
|
|
label: ' ' |
|
|
|
}], |
|
|
|
}], |
|
|
|
defaultOperationTicketNo: "", |
|
|
|
defaultOperationTicketNo: "", |
|
|
@ -128,7 +128,12 @@ export default { |
|
|
|
column: [{ |
|
|
|
column: [{ |
|
|
|
label: '基本信息', |
|
|
|
label: '基本信息', |
|
|
|
prop: 'information', |
|
|
|
prop: 'information', |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: '操作项目', |
|
|
|
|
|
|
|
prop: 'operationItem', |
|
|
|
|
|
|
|
disabled: true, |
|
|
|
|
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -147,7 +152,6 @@ export default { |
|
|
|
dicUrl: "/api/equipmentledger/getKksList", |
|
|
|
dicUrl: "/api/equipmentledger/getKksList", |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
label: "kksEncoding", |
|
|
|
label: "kksEncoding", |
|
|
|
|
|
|
|
|
|
|
|
value: "kksEncoding", |
|
|
|
value: "kksEncoding", |
|
|
|
}, |
|
|
|
}, |
|
|
|
event: { |
|
|
|
event: { |
|
|
@ -216,6 +220,11 @@ export default { |
|
|
|
}], |
|
|
|
}], |
|
|
|
span: 8, |
|
|
|
span: 8, |
|
|
|
maxlength: 20, |
|
|
|
maxlength: 20, |
|
|
|
|
|
|
|
event: { |
|
|
|
|
|
|
|
change: (val) => { |
|
|
|
|
|
|
|
this.option.column[1].disabled = !val; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
label: "操作票类型", |
|
|
|
label: "操作票类型", |
|
|
@ -440,10 +449,7 @@ export default { |
|
|
|
span: 8, |
|
|
|
span: 8, |
|
|
|
maxlength: 20, |
|
|
|
maxlength: 20, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
@ -541,11 +547,12 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
created () { |
|
|
|
created () { |
|
|
|
this.type = this.option.column[0]; |
|
|
|
this.type = this.option.column[0]; |
|
|
|
this.option.column.push({ label: '操作项目', prop: 'operationItem' }); |
|
|
|
// this.option.column.push({ label: '操作项目', prop: 'operationItem' }); |
|
|
|
if(this.$route.query.frameMode == "add"){ |
|
|
|
if(this.$route.query.frameMode == "add"){ |
|
|
|
this.readonlyForm=false; |
|
|
|
this.readonlyForm=false; |
|
|
|
this.shouldShowButton=false; |
|
|
|
this.shouldShowButton=false; |
|
|
|
this.addUpdateShowButton=true; |
|
|
|
this.addUpdateShowButton=true; |
|
|
|
|
|
|
|
this.addUpdateShowButton=true; |
|
|
|
this.frame_class = null; |
|
|
|
this.frame_class = null; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
this.readonlyForm=false; |
|
|
|
this.readonlyForm=false; |
|
|
@ -602,6 +609,7 @@ export default { |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
|
|
|
|
this.tab1_form.reviewStatus="1" |
|
|
|
add(this.tab1_form).then(() => { |
|
|
|
add(this.tab1_form).then(() => { |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
path: "/smart/operationticket", |
|
|
|
path: "/smart/operationticket", |
|
|
@ -642,20 +650,13 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleChange (column) { |
|
|
|
handleChange (column) { |
|
|
|
this.type = column |
|
|
|
this.type = column |
|
|
|
if(this.$route.query.frameMode != "add"){ |
|
|
|
this.item_form.operationTicketNo = this.tab1_form.operationTicketNo; |
|
|
|
if (column.prop == 'operationItem') { |
|
|
|
|
|
|
|
this.item_onLoad(); |
|
|
|
this.item_onLoad(); |
|
|
|
|
|
|
|
if(this.type.prop==='operationItem'){ |
|
|
|
|
|
|
|
this.addUpdateShowButton=false; |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.addUpdateShowButton=true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(column.prop == 'operationItem'){ |
|
|
|
|
|
|
|
if(this.tab1_form.operationTicketNo ==="" || this.tab1_form.operationTicketNo ===null){ |
|
|
|
|
|
|
|
this.$message({ |
|
|
|
|
|
|
|
type: "error", |
|
|
|
|
|
|
|
message: "请返回基本信息填写“操作票编号”!!!" |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.item_form.operationTicketNo = this.tab1_form.operationTicketNo; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 操作项目 新增按钮处理 |
|
|
|
// 操作项目 新增按钮处理 |
|
|
@ -776,9 +777,9 @@ export default { |
|
|
|
headerClass(){ |
|
|
|
headerClass(){ |
|
|
|
return 'head-style' |
|
|
|
return 'head-style' |
|
|
|
}, |
|
|
|
}, |
|
|
|
item_onLoad(row, params = {}) { |
|
|
|
item_onLoad() { |
|
|
|
this.loading = true; |
|
|
|
this.loading = true; |
|
|
|
item_getListByItemId(this.item_data[0].operationTicketNo).then(res => { |
|
|
|
item_getListByItemId(this.tab1_form.operationTicketNo).then(res => { |
|
|
|
this.item_data = res.data.data; |
|
|
|
this.item_data = res.data.data; |
|
|
|
this.loading = false; |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}); |
|
|
@ -803,13 +804,27 @@ export default { |
|
|
|
.frame_class1 .el-input__icon { |
|
|
|
.frame_class1 .el-input__icon { |
|
|
|
display: none; |
|
|
|
display: none; |
|
|
|
} |
|
|
|
} |
|
|
|
.frame_class1 .el-input--prefix .el-input__inner { |
|
|
|
.frame_class1 .el-input--prefix { |
|
|
|
padding-left: 15px; |
|
|
|
padding-left: 15px; |
|
|
|
} |
|
|
|
} |
|
|
|
.container { |
|
|
|
.container { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: flex-end; /* 将子元素推到容器的末端 */ |
|
|
|
justify-content: flex-end; /* 将子元素推到容器的末端 */ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.frame_class1 textarea.el-textarea__inner { |
|
|
|
|
|
|
|
border: none; |
|
|
|
|
|
|
|
box-shadow: none; |
|
|
|
|
|
|
|
outline: none; |
|
|
|
|
|
|
|
pointer-events: none; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.frame_class1 input::placeholder { |
|
|
|
|
|
|
|
color: transparent; |
|
|
|
|
|
|
|
display: none; /* 默认隐藏 */ |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.frame_class1 textarea::placeholder { |
|
|
|
|
|
|
|
color: transparent; |
|
|
|
|
|
|
|
display: none; /* 默认隐藏 */ |
|
|
|
|
|
|
|
} |
|
|
|
.check_status_class { |
|
|
|
.check_status_class { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: flex-end; /* 将子元素推到容器的末端 */ |
|
|
|
justify-content: flex-end; /* 将子元素推到容器的末端 */ |
|
|
|