This commit is contained in:
shijing 2025-11-21 16:51:25 +08:00
commit ade3cb8398
3 changed files with 8 additions and 3 deletions

View File

@ -68,7 +68,7 @@
<el-footer>
<el-button @click="$emit('closed')" style="margin-right: 4px">取消</el-button>
<ticketd_b
:workflow_key="'wf_booking'"
:workflow_key="'wf_mroombooking'"
:title="form.title+'-会议室预定'"
:t_id="form.id"
:ticket_="form.ticket_"

View File

@ -6,6 +6,9 @@
<span style="color:darkblue;margin-right: 4px;">({{ ticketDetail.sn }})</span>{{ ticketDetail.title
}}
</el-descriptions-item>
<el-descriptions-item label="提交人:">
{{ ticketDetail.create_by_name }}
</el-descriptions-item>
<el-descriptions-item label="当前:">
<el-tag type="info" effect="plain">{{ ticketDetail.state_.name }}</el-tag>
<el-tag :type="actStateEnum[ticketDetail.act_state]?.type" effect="plain">

View File

@ -50,15 +50,17 @@ onMounted(async () => {
const ticketId = ref(null);
const actionShow = ref(false);
const init = async () => {
actionShow.value = false;
transitions.value = [];
if (props.ticket_ && props.ticket_.id) {
ticketId.value = props.ticket_.id;
const isParticipant =
(props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) ||
(props.ticket_.participant_type === 2 && props.ticket_.participant.includes(currentUser.value))
if (isParticipant) {
actionShow.value = true;
transitions.value = await API.wf.ticket.ticketTransitions.req(ticketId.value);
}
ticketId.value = props.ticket_.id;
transitions.value = await API.wf.ticket.ticketTransitions.req(ticketId.value);
}else if (props.workflow_key !=null && props.workflow_key != undefined) {
let res = await API.wf.workflow.initkey.req(props.workflow_key);
actionShow.value = true