rev: 修改任务类型

This commit is contained in:
2023-04-04 10:36:58 +08:00
parent a657c83600
commit 70a26fc2c5
9 changed files with 31 additions and 23 deletions

View File

@@ -274,13 +274,13 @@ export default {
},
// 提交前的验证
[CRUD.HOOK.afterValidateCU]() {
if (this.form.parent_class_id !== null && this.form.parent_class_id === this.form.class_id) {
this.$message({
message: '顶级类目不能为空',
type: 'warning'
})
return false
}
// if (this.form.parent_class_id !== null && this.form.parent_class_id === this.form.class_id) {
// this.$message({
// message: '顶级类目不能为空',
// type: 'warning'
// })
// return false
// }
if (this.form.isTop === '1') {
this.form.parent_class_id = 0
}

View File

@@ -133,7 +133,7 @@
<el-table-column v-if="true" prop="task_id" label="任务标识" min-width="150" show-overflow-tooltip />
<el-table-column v-if="true" prop="material_id" label="物料标识" min-width="150" show-overflow-tooltip />
<el-table-column prop="task_code" label="任务编码" min-width="100" show-overflow-tooltip />
<el-table-column v-if="false" prop="task_type" label="任务类型" />
<el-table-column prop="class_name" label="任务类型" min-width="100"/>
<el-table-column prop="acs_task_type" label="acs任务类型" min-width="120" show-overflow-tooltip>
<template slot-scope="scope">
{{ dict.label.SCH_TASK_TYPE_DTL[scope.row.acs_task_type] }}