From fe48637b8197e55cb2b454f79d29dab88bd5f7dd Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期三, 28 九月 2022 16:03:47 +0800
Subject: [PATCH] 'xiugai'

---
 src/views/specialWorkManage/workFlow/approveRule/components/approveLevelDialog.vue |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/views/specialWorkManage/workFlow/approveRule/components/approveLevelDialog.vue b/src/views/specialWorkManage/workFlow/approveRule/components/approveLevelDialog.vue
index f817e86..2ad318d 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" clearable filterable>
-                            <el-option v-for="item in userList" :key="item.id" :value="item.id" :label="item.realname"></el-option>
+                            <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>
@@ -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,10 @@
                 { id: 1, name: '单人' },
                 { id: 2, name: '多人' },
                 { id: 3, name: '分析人' }
+            ],
+            auditTypeList: [
+                { id: 0, name: '单审' },
+                { id: 1, name: '会审' },
             ],
             approveTypeList: [
                 { id: 1, name: '数值' },
@@ -161,6 +174,7 @@
                     stepName: null,
                     stepSerial: null,
                     type: null,
+                    auditType: null,
                     continueTime: null,
                     continueTimeUnit: null,
                     unitList: [],

--
Gitblit v1.9.2