Your Name
2022-09-28 fe48637b8197e55cb2b454f79d29dab88bd5f7dd
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>
@@ -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: 0, name: '单审' },
                { id: 1, 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
                });
            }
        },