From 17bc12d7414dedab9d8eb60794603e61e8cce01e Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Tue, 25 Oct 2022 17:20:35 +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