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