|
|
@ -1,5 +1,22 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<basic-container> |
|
|
|
<basic-container> |
|
|
|
|
|
|
|
<el-row :span="24"> |
|
|
|
|
|
|
|
<div class="check_status_class"> |
|
|
|
|
|
|
|
<span > |
|
|
|
|
|
|
|
<el-col > |
|
|
|
|
|
|
|
审核状态: |
|
|
|
|
|
|
|
<el-select v-model="checkStatusValue"> |
|
|
|
|
|
|
|
<el-option |
|
|
|
|
|
|
|
v-for="item in optionCheckStatus" |
|
|
|
|
|
|
|
:key="item.value" |
|
|
|
|
|
|
|
:label="item.label" |
|
|
|
|
|
|
|
:value="item.value"> |
|
|
|
|
|
|
|
</el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
<avue-tabs :option="option" |
|
|
|
<avue-tabs :option="option" |
|
|
|
@change="handleChange"></avue-tabs> |
|
|
|
@change="handleChange"></avue-tabs> |
|
|
|
<span v-if="type.prop==='information'"> |
|
|
|
<span v-if="type.prop==='information'"> |
|
|
@ -77,6 +94,20 @@ export default { |
|
|
|
name: "operationticketDetail", |
|
|
|
name: "operationticketDetail", |
|
|
|
data () { |
|
|
|
data () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
|
|
|
|
checkStatusValue: this.$route.query.reviewStatus, |
|
|
|
|
|
|
|
optionCheckStatus: [{ |
|
|
|
|
|
|
|
value: "1", |
|
|
|
|
|
|
|
label: '审核中' |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
value: "2", |
|
|
|
|
|
|
|
label: '已审核' |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
value: "3", |
|
|
|
|
|
|
|
label: '未通过' |
|
|
|
|
|
|
|
}, { |
|
|
|
|
|
|
|
value: "4", |
|
|
|
|
|
|
|
label: ' ' |
|
|
|
|
|
|
|
}], |
|
|
|
frame_class: '', |
|
|
|
frame_class: '', |
|
|
|
type: {}, |
|
|
|
type: {}, |
|
|
|
shouldShowButton:{}, |
|
|
|
shouldShowButton:{}, |
|
|
@ -95,6 +126,7 @@ export default { |
|
|
|
tab1_option: { |
|
|
|
tab1_option: { |
|
|
|
submitBtn: false, |
|
|
|
submitBtn: false, |
|
|
|
emptyBtn: false, |
|
|
|
emptyBtn: false, |
|
|
|
|
|
|
|
isShowItem: false, |
|
|
|
group:[ |
|
|
|
group:[ |
|
|
|
{ |
|
|
|
{ |
|
|
|
column: [ |
|
|
|
column: [ |
|
|
@ -269,9 +301,42 @@ export default { |
|
|
|
prop: "securityMeasuresDisclosure", |
|
|
|
prop: "securityMeasuresDisclosure", |
|
|
|
type: "textarea", |
|
|
|
type: "textarea", |
|
|
|
span: 8, |
|
|
|
span: 8, |
|
|
|
row:true, |
|
|
|
|
|
|
|
maxlength: 1000, |
|
|
|
maxlength: 1000, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "作业后风险管控情况评价", |
|
|
|
|
|
|
|
prop: "riskControlEvaluation", |
|
|
|
|
|
|
|
type: "textarea", |
|
|
|
|
|
|
|
span: 8, |
|
|
|
|
|
|
|
display: this.$route.query.frameMode == "add"? false : true, |
|
|
|
|
|
|
|
maxlength: 1000, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "状态", |
|
|
|
|
|
|
|
prop: "sts", |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=operation_sts", |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
display: this.$route.query.frameMode == "add"? false : true, |
|
|
|
|
|
|
|
span: 8, |
|
|
|
|
|
|
|
maxlength: 20, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
label: "是否合格", |
|
|
|
|
|
|
|
display: this.$route.query.frameMode == "add"? false : true, |
|
|
|
|
|
|
|
type: "select", |
|
|
|
|
|
|
|
prop: "isQuakified", |
|
|
|
|
|
|
|
dicUrl: "/api/daf-system/dict/dictionary?code=is_qualified", |
|
|
|
|
|
|
|
span: 8, |
|
|
|
|
|
|
|
offset: 16, |
|
|
|
|
|
|
|
props: { |
|
|
|
|
|
|
|
label: "dictValue", |
|
|
|
|
|
|
|
value: "dictKey" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
] |
|
|
|
] |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
@ -359,6 +424,7 @@ export default { |
|
|
|
label: "操作票编号", |
|
|
|
label: "操作票编号", |
|
|
|
prop: "operationTicketNo", |
|
|
|
prop: "operationTicketNo", |
|
|
|
span: 20, |
|
|
|
span: 20, |
|
|
|
|
|
|
|
// disabled: true, |
|
|
|
rules: [{ |
|
|
|
rules: [{ |
|
|
|
required: true, |
|
|
|
required: true, |
|
|
|
message: "请输入操作票编号", |
|
|
|
message: "请输入操作票编号", |
|
|
@ -441,8 +507,8 @@ export default { |
|
|
|
this.frame_class = null; |
|
|
|
this.frame_class = null; |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
this.readonlyForm=false; |
|
|
|
this.readonlyForm=false; |
|
|
|
this.shouldShowButton=false; |
|
|
|
this.shouldShowButton=true; |
|
|
|
this.addUpdateShowButton=true; |
|
|
|
this.addUpdateShowButton=false; |
|
|
|
this.frame_class = 'frame_class1'; |
|
|
|
this.frame_class = 'frame_class1'; |
|
|
|
this.SearchDetail(); |
|
|
|
this.SearchDetail(); |
|
|
|
} |
|
|
|
} |
|
|
@ -469,7 +535,8 @@ export default { |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
this.tab1_form.checkStatus="1" |
|
|
|
this.tab1_form.reviewStatus="1" |
|
|
|
|
|
|
|
this.tab1_form.sts= "1" |
|
|
|
add(this.tab1_form).then(()=>{ |
|
|
|
add(this.tab1_form).then(()=>{ |
|
|
|
this.$router.push({ |
|
|
|
this.$router.push({ |
|
|
|
path: "/smart/operationticket", |
|
|
|
path: "/smart/operationticket", |
|
|
@ -533,15 +600,17 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleChange (column) { |
|
|
|
handleChange (column) { |
|
|
|
this.type = column |
|
|
|
this.type = column |
|
|
|
if (column.prop == 'operationItem') { |
|
|
|
if(this.$route.query.frameMode != "add"){ |
|
|
|
this.item_onLoad(); |
|
|
|
if (column.prop == 'operationItem') { |
|
|
|
|
|
|
|
this.item_onLoad(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 操作项目 新增按钮处理 |
|
|
|
// 操作项目 新增按钮处理 |
|
|
|
item_rowSave (form, done, loading) { |
|
|
|
item_rowSave (form, done, loading) { |
|
|
|
loading(); |
|
|
|
loading(); |
|
|
|
form.eqLedgerId = this.$route.query.id; |
|
|
|
form.id = this.$route.query.id; |
|
|
|
item_add(form).then(() => { |
|
|
|
item_add(form).then(() => { |
|
|
|
done(form); |
|
|
|
done(form); |
|
|
|
this.item_onLoad(this.page); |
|
|
|
this.item_onLoad(this.page); |
|
|
@ -554,7 +623,7 @@ export default { |
|
|
|
loading(); |
|
|
|
loading(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 文档清册 编辑按钮处理 |
|
|
|
// 操作项目 编辑按钮处理 |
|
|
|
item_rowUpdate (form, index, done, loading) { |
|
|
|
item_rowUpdate (form, index, done, loading) { |
|
|
|
console.log(form) |
|
|
|
console.log(form) |
|
|
|
item_update(form).then(() => { |
|
|
|
item_update(form).then(() => { |
|
|
@ -569,7 +638,7 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// 文档清册 删除按钮处理 |
|
|
|
// 操作项目 删除按钮处理 |
|
|
|
item_rowDel (form, index,done) { |
|
|
|
item_rowDel (form, index,done) { |
|
|
|
this.$confirm("确定将选择数据删除?", { |
|
|
|
this.$confirm("确定将选择数据删除?", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
confirmButtonText: "确定", |
|
|
@ -592,10 +661,10 @@ export default { |
|
|
|
console.log(res); |
|
|
|
console.log(res); |
|
|
|
this.tab1_form = res.data.data; |
|
|
|
this.tab1_form = res.data.data; |
|
|
|
}); |
|
|
|
}); |
|
|
|
getItemDetail(this.$route.query.id,this.tab1_form.operationTicketNo).then(res => { |
|
|
|
// getItemDetail(this.$route.query.id,this.tab1_form.operationTicketNo).then(res => { |
|
|
|
console.log(res); |
|
|
|
// console.log(res); |
|
|
|
this.item_data = res.data.data; |
|
|
|
// this.item_data = res.data.data; |
|
|
|
}); |
|
|
|
// }); |
|
|
|
}, |
|
|
|
}, |
|
|
|
auditing() { |
|
|
|
auditing() { |
|
|
|
this.$confirm("是否将数据审核?", "提示", { |
|
|
|
this.$confirm("是否将数据审核?", "提示", { |
|
|
@ -603,7 +672,7 @@ export default { |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
this.tab1_form.checkStatus="2" |
|
|
|
this.tab1_form.reviewStatus="2" |
|
|
|
this.submitRejectOrauditing(); |
|
|
|
this.submitRejectOrauditing(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -613,7 +682,7 @@ export default { |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
|
}).then(() => { |
|
|
|
}).then(() => { |
|
|
|
this.tab1_form.checkStatus="3" |
|
|
|
this.tab1_form.reviewStatus="3" |
|
|
|
this.submitRejectOrauditing(); |
|
|
|
this.submitRejectOrauditing(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -635,7 +704,7 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
del() { |
|
|
|
del() { |
|
|
|
this.$confirm("是否将选择数据审核?", { |
|
|
|
this.$confirm("是否将选择数据删除?", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
confirmButtonText: "确定", |
|
|
|
cancelButtonText: "取消", |
|
|
|
cancelButtonText: "取消", |
|
|
|
type: "warning" |
|
|
|
type: "warning" |
|
|
@ -694,4 +763,8 @@ export default { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
justify-content: flex-end; /* 将子元素推到容器的末端 */ |
|
|
|
justify-content: flex-end; /* 将子元素推到容器的末端 */ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.check_status_class { |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
justify-content: flex-end; /* 将子元素推到容器的末端 */ |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|