add
This commit is contained in:
parent
0b8b32f039
commit
d2de213211
@ -18,6 +18,8 @@
|
||||
{{ formData.current_check_user }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item label="抄送人" label-align="left" align="left" label-class-name="my-label">
|
||||
{{ showFlow() }}
|
||||
{{ showDel() }}
|
||||
{{ formData.copy_user }}
|
||||
</el-descriptions-item>
|
||||
</el-descriptions>
|
||||
@ -39,20 +41,25 @@
|
||||
</el-descriptions-item>
|
||||
|
||||
|
||||
<div v-if="formData?.current_check_user_ids?.includes(String(userInfo.id)) && formData.check_status != 3">
|
||||
<el-descriptions-item label="操作" label-align="left" align="left">
|
||||
<el-form-item label="意见">
|
||||
<div>
|
||||
<el-descriptions-item label="操作" label-align="left" align="left"
|
||||
v-if="formData?.current_check_user_ids?.includes(String(userInfo.id)) && formData.check_status != 3 || formData?.check_status == 0 && formData.create_user == userInfo.id">
|
||||
<el-form-item label="意见"
|
||||
v-if="formData?.current_check_user_ids?.includes(String(userInfo.id)) && formData.check_status != 3 || formData?.check_status == 0 && formData.create_user == userInfo.id">
|
||||
<el-input v-model="remark" clearable placeholder="请输入" type="textarea" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="审批">
|
||||
<el-button type="primary" @click="checkFn(1)">
|
||||
<el-button type="primary" @click="checkFn(1)"
|
||||
v-if="formData?.current_check_user_ids?.includes(String(userInfo.id)) && formData.check_status != 3">
|
||||
通过
|
||||
</el-button>
|
||||
<el-button @click="checkFn(2)">
|
||||
<el-button @click="checkFn(2)"
|
||||
v-if="formData?.current_check_user_ids?.includes(String(userInfo.id)) && formData.check_status != 3">
|
||||
拒绝
|
||||
</el-button>
|
||||
<el-button @click="revokeFn"
|
||||
v-if="(formData?.check_status == 0 && formData.create_user == userInfo.id) && (formData.check_status != 3)">
|
||||
v-if="formData?.check_status == 0 && formData.create_user == userInfo.id">
|
||||
撤销
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
@ -116,6 +123,15 @@ const formData = reactive({
|
||||
]
|
||||
})
|
||||
|
||||
// 展示审批操作
|
||||
const showFlow = () => {
|
||||
return Boolean(formData?.current_check_user_ids?.includes(String(userInfo.id)) && formData.check_status != 3)
|
||||
}
|
||||
// 撤回
|
||||
const showDel = () => {
|
||||
return Boolean(formData?.check_status == 0 && formData.create_user == userInfo.id)
|
||||
}
|
||||
|
||||
|
||||
// 获取详情
|
||||
const setFormData = async (data: Record<any, any>) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user