|
|
|
@ -5,8 +5,7 @@ |
|
|
|
|
<div class="check_status_class"> |
|
|
|
|
<span> |
|
|
|
|
<el-col > |
|
|
|
|
审核状态: |
|
|
|
|
<avue-input v-model="form" placeholder="" class="frame_class1" style = "width: 100px"></avue-input> |
|
|
|
|
{{getOptionCheckStatusLabel(tab1_form.approvalStatus)}} |
|
|
|
|
</el-col> |
|
|
|
|
</span> |
|
|
|
|
</div> |
|
|
|
@ -67,7 +66,7 @@ |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
original_form: {}, |
|
|
|
|
tab1_form: {}, |
|
|
|
|
tab1_option: { |
|
|
|
|
submitBtn: false, |
|
|
|
@ -115,7 +114,8 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
}, { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "KKS描述", |
|
|
|
|
prop: "kksDescription", |
|
|
|
|
type: 'textarea', |
|
|
|
@ -130,7 +130,8 @@ |
|
|
|
|
span: 8, |
|
|
|
|
maxlength: 400, |
|
|
|
|
disabled: true |
|
|
|
|
}, { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "场站", |
|
|
|
|
prop: "station", |
|
|
|
|
type: "select", |
|
|
|
@ -146,7 +147,8 @@ |
|
|
|
|
trigger: "blur" |
|
|
|
|
}], |
|
|
|
|
disabled: true |
|
|
|
|
}, { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "工单编号", |
|
|
|
|
prop: "workOrderNo", |
|
|
|
|
span: 8, |
|
|
|
@ -155,7 +157,8 @@ |
|
|
|
|
message: "请输入工单编号", |
|
|
|
|
trigger: "blur" |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "工单类型", |
|
|
|
|
prop: "workOrderType", |
|
|
|
|
type: "select", |
|
|
|
@ -170,7 +173,8 @@ |
|
|
|
|
message: "请输入工单类型", |
|
|
|
|
trigger: "blur" |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
label: "内容描述", |
|
|
|
|
prop: "description", |
|
|
|
|
type: 'textarea', |
|
|
|
@ -290,6 +294,7 @@ |
|
|
|
|
}, |
|
|
|
|
item_data: [], |
|
|
|
|
equipmentOptions: [], |
|
|
|
|
curr: null |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: { |
|
|
|
@ -312,8 +317,8 @@ |
|
|
|
|
this.shouldShowButton = false; |
|
|
|
|
this.addupdateShowButton = true; |
|
|
|
|
this.frame_class = null; |
|
|
|
|
this.searchDetail(); |
|
|
|
|
} else if (this.$route.query.frameMode == "search") { |
|
|
|
|
this.tab1_option.column[1].curr = 'curr'; |
|
|
|
|
this.tab1_option.column[1].disabled = false; |
|
|
|
|
this.tab1_option.column[2].disabled = false; |
|
|
|
|
this.readonlyForm = true; |
|
|
|
@ -341,6 +346,12 @@ |
|
|
|
|
this.updateToSearch(); |
|
|
|
|
}, |
|
|
|
|
updateToSearch() { |
|
|
|
|
if (this.$route.query.frameMode == "add") { |
|
|
|
|
// this.$refs.tab1_form.resetFields(); |
|
|
|
|
this.$router.push({path: "/smart/workorder"}); |
|
|
|
|
} else { |
|
|
|
|
this.tab1_form = this.original_form; |
|
|
|
|
} |
|
|
|
|
this.tab1_option.column[1].disabled = false; |
|
|
|
|
this.tab1_option.column[2].disabled = false; |
|
|
|
|
this.readonlyForm = true; |
|
|
|
@ -352,6 +363,26 @@ |
|
|
|
|
searchDetail() { |
|
|
|
|
getDetail(this.$route.query.id).then(res => { |
|
|
|
|
this.tab1_form = res.data.data; |
|
|
|
|
this.original_form = res.data.data; |
|
|
|
|
|
|
|
|
|
const charactersPerRow = 20; |
|
|
|
|
|
|
|
|
|
let descriptionLen = res.data.data.description.length; |
|
|
|
|
let descriptionLenRows = Math.ceil(descriptionLen / charactersPerRow); |
|
|
|
|
this.tab1_option.column[5].maxRows = descriptionLenRows; |
|
|
|
|
|
|
|
|
|
let maintenanceTaskTypeLen = res.data.data.maintenanceTaskType.length; |
|
|
|
|
let maintenanceTaskTypeLenRows = Math.ceil(maintenanceTaskTypeLen / charactersPerRow); |
|
|
|
|
this.tab1_option.column[9].maxRows = maintenanceTaskTypeLenRows; |
|
|
|
|
|
|
|
|
|
let processDescriptionLen = res.data.data.processDescription.length; |
|
|
|
|
let processDescriptionLenRows = Math.ceil(processDescriptionLen / charactersPerRow); |
|
|
|
|
this.tab1_option.column[14].maxRows = processDescriptionLenRows; |
|
|
|
|
|
|
|
|
|
let handlingResultLen = res.data.data.handlingResult.length; |
|
|
|
|
let handlingResultLenRows = Math.ceil(handlingResultLen / charactersPerRow); |
|
|
|
|
this.tab1_option.column[16].maxRows = handlingResultLenRows; |
|
|
|
|
|
|
|
|
|
switch (this.tab1_form.approvalStatus){ |
|
|
|
|
case 1: |
|
|
|
|
this.form = "审核中"; |
|
|
|
@ -467,7 +498,7 @@ |
|
|
|
|
this.frame_class = null; |
|
|
|
|
}, |
|
|
|
|
del() { |
|
|
|
|
this.$confirm("是否将选择数据审核?", { |
|
|
|
|
this.$confirm("是否删除?", { |
|
|
|
|
confirmButtonText: "确定", |
|
|
|
|
cancelButtonText: "取消", |
|
|
|
|
type: "warning" |
|
|
|
@ -532,6 +563,11 @@ |
|
|
|
|
pointer-events: none; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.frame_class1 textarea { |
|
|
|
|
overflow: hidden; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.check_status_class { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: flex-end; /* 将子元素推到容器的末端 */ |
|
|
|
|