From c819024e241b9f7c54cc3786373ad0d2998f2190 Mon Sep 17 00:00:00 2001 From: 马宇豪 <978517621@qq.com> Date: 星期五, 05 五月 2023 08:55:46 +0800 Subject: [PATCH] 修改 --- src/views/specialWorkManage/workFlow/approveRule/components/approveLevelDialog.vue | 29 ++++++++++++++++++++++++----- 1 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/views/specialWorkManage/workFlow/approveRule/components/approveLevelDialog.vue b/src/views/specialWorkManage/workFlow/approveRule/components/approveLevelDialog.vue index abddea6..ad440aa 100644 --- a/src/views/specialWorkManage/workFlow/approveRule/components/approveLevelDialog.vue +++ b/src/views/specialWorkManage/workFlow/approveRule/components/approveLevelDialog.vue @@ -14,10 +14,17 @@ </el-select> </el-form-item> </el-col> + <el-col :span="24" v-if="approveLevelForm.type === 2"> + <el-form-item label="审批类型" prop="auditType"> + <el-select v-model="approveLevelForm.auditType" placeholder="请选择审批类型" class="input-add"> + <el-option v-for="item in auditTypeList" :key="item.id" :value="item.id" :label="item.name"></el-option> + </el-select> + </el-form-item> + </el-col> <el-col :span="24"> <el-form-item label="审批人" prop="unitList"> - <el-select v-model="approveLevelForm.unitList" multiple placeholder="请选择审批人" class="input-add"> - <el-option v-for="item in userList" :key="item.id" :value="item.id" :label="item.realname"></el-option> + <el-select v-model="approveLevelForm.unitList" multiple placeholder="请选择审批人" class="input-add" clearable filterable> + <el-option v-for="item in userList" :key="item.id" :value="item.id" :label="item.realname + '(' + item.username.toString().replace(/^(\d{3})\d{4}(\d{4})$/,'$1****$2') + ')'"></el-option> </el-select> </el-form-item> </el-col> @@ -46,7 +53,7 @@ <el-table-column property="itemName" label="审批项名称" show-overflow-tooltip> </el-table-column> <el-table-column property="type" label="审批项类型" show-overflow-tooltip> <template slot-scope="scope"> - <div v-for="item in typeList"> + <div v-for="item in approveTypeList"> <div v-if="scope.row.type === item.id"> <span>{{item.name}}</span> </div> @@ -110,6 +117,7 @@ stepName: null, stepSerial: null, type: null, + auditType: null, continueTime: null, continueTimeUnit: null, unitList: [], @@ -118,6 +126,7 @@ approveLevelFormRule: { stepName: [{ required: true, message: '请填写层次名称', trigger: 'blur' }], type: [{ required: true, message: '请选择审批层级', trigger: 'change' }], + auditType: [{ required: true, message: '请选择审批类型', trigger: 'change' }], unitList: [{ required: true, message: '请选择审批人', trigger: 'change' }], continueTime: [{ required: true, message: '请填写有效时间', trigger: 'blur' }] }, @@ -132,6 +141,15 @@ { id: 1, name: '单人' }, { id: 2, name: '多人' }, { id: 3, name: '分析人' } + ], + auditTypeList: [ + { id: 1, name: '单审' }, + { id: 2, name: '会审' }, + ], + approveTypeList: [ + { id: 1, name: '数值' }, + { id: 2, name: '选项' }, + { id: 3, name: '填空' } ], workLevelList: [], actionList: [], @@ -156,6 +174,7 @@ stepName: null, stepSerial: null, type: null, + auditType: null, continueTime: null, continueTimeUnit: null, unitList: [], @@ -220,7 +239,7 @@ } else { this.$message({ type: 'warning', - message: res.data.msg + message: res.data.message }); } }, @@ -232,7 +251,7 @@ } else { this.$message({ type: 'warning', - message: res.data.msg + message: res.data.message }); } }, -- Gitblit v1.9.2