fix:我的工单中添加撤回

This commit is contained in:
shijing 2025-07-01 15:09:59 +08:00
parent 1d234fefe5
commit ae1964ec92
1 changed files with 5 additions and 11 deletions

View File

@ -87,19 +87,13 @@
关闭
</el-button> -->
<!--如果state_.retreat/state_.type==1处于草稿状态 -->
<!-- <el-button
v-if="
scope.row.state_.enable_retreat &&
userId === scope.row.create_by &&
scope.row.state_.type !== 1
"
<el-button
v-if="scope.row.state_.enable_retreat &&userId === scope.row.create_by"
type="danger"
@click="handleClose(scope, '1')"
size="small"
link
>
撤回
</el-button> -->
>撤回</el-button>
</template>
</el-table-column>
</scTable>
@ -210,12 +204,12 @@ export default {
})
.then(async () => {
if (that.handleTitle === "撤回工单") {
res = that.$API.wf.ticket.ticketRetreat.req(
res = await that.$API.wf.ticket.ticketRetreat.req(
that.ticketId,
that.handleForm
);
} else {
res = that.$API.wf.ticket.ticketClose.req(
res = await that.$API.wf.ticket.ticketClose.req(
that.ticketId,
that.handleForm
);