fix(DetailDrawer): 修复审批按钮显示逻辑和撤销提交条件
修复不同用户类型下审批按钮的显示逻辑,增加对状态为-1时的判断。同时修正撤销提交的条件,包含状态4的情况。
This commit is contained in:
parent
ed681da4b5
commit
5ad6da1d09
|
|
@ -162,10 +162,15 @@
|
|||
v-if="data?.status != 2 && !form.deleted && Session.get('userInfoLocal').userType == '02'">复审</el-button>
|
||||
|
||||
<el-button type="primary" @click="submit(0, false)"
|
||||
v-if="data?.status != 2 && !form.deleted && Session.get('userInfoLocal').userType != '02'">
|
||||
<text v-if="Session.get('userInfoLocal').userType == '00'">送审</text>
|
||||
v-if="data?.status != 2 && data?.status != -1 && !form.deleted && Session.get('userInfoLocal').userType != '02'">
|
||||
<text v-if="Session.get('userInfoLocal').userType == '01'">发布</text>
|
||||
</el-button>
|
||||
|
||||
<el-button type="primary" @click="doApprovalFn(0, false)"
|
||||
v-if="data?.status != 2 && data?.status == -1 && !form.deleted && Session.get('userInfoLocal').userType != '02'">
|
||||
<text v-if="Session.get('userInfoLocal').userType == '00'">送审</text>
|
||||
</el-button>
|
||||
|
||||
<el-button type="danger"
|
||||
v-if="Session.get('userInfoLocal').userType == '02' && (data?.status == 3 || data?.status == 4)"
|
||||
@click="doNewReturnFn(data)">退改</el-button>
|
||||
|
|
@ -685,7 +690,7 @@ async function doApprovalFn() {
|
|||
})
|
||||
.then(async () => {
|
||||
|
||||
let { code } = props.data.status == 3 ? await doNewRevoke({
|
||||
let { code } = props.data.status == 3 || props.data.status == 4 ? await doNewRevoke({
|
||||
id: props.data.id,
|
||||
}) : await doNewSubmit({
|
||||
id: props.data.id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue