This commit is contained in:
shijing 2025-10-27 11:19:35 +08:00
commit c098ee8bc5
4 changed files with 11 additions and 19 deletions

View File

@ -127,8 +127,8 @@
z-index: 1;
background-color: white;
}
.footer_fixed {
position: fixed;
.footer_sticky {
position: sticky;
bottom: 0;
left: 0;
right: 0;

View File

@ -55,7 +55,7 @@
<view>{{totalCount}}小时</view> -->
</view>
</scroll-view>
<view class="footer_fixed">
<view class="footer_sticky">
<ticketd_b :workflow_key="'booking'" :title="form.title + '-会议室预定'" :t_id="form.id" :ticket_="form.ticket_"
@success="()=>{uni.navigateBack()} " :submit_b_func="submit_b_func" ref="ticketd_b_start"></ticketd_b>
</view>

View File

@ -4,9 +4,10 @@
<uni-tag :text="actStateEnum[ticket_?.act_state]?.text" :circle="true" size="small"
:type="actStateEnum[ticket_?.act_state]?.type" :inverted="true" style="font-weight: 460;"></uni-tag>
<span style="margin-left: 12rpx" @click="handleDetail">{{ticket_?.state_.name}}</span>
<button v-if="ticket_?.state_.enable_retreat && isOwn" type="warn" size="mini" plain="true"
@click="handleRetreat">撤回</button>
<span style="margin-left: 12rpx;color:blue" @click="handleDetail">更多信息</span>
<span style="margin-left: 12rpx;color:blue" @click="handleDetail">更多</span>
</uni-forms-item>
<uni-forms-item label="操作" v-if="ticket_?.state_.enable_retreat && isOwn">
<button type="warn" size="mini" @click="handleRetreat" style="margin-left:0px">撤回</button>
</uni-forms-item>
<uni-forms-item label="可处理人" v-if="ticket_.participant_">
<span v-if="

View File

@ -36,25 +36,16 @@ const props = defineProps({
const workflow = ref(null);
const transitions = ref([]);
onMounted(async () => {
await getUser()
await init()
await getUser()
setTimeout(()=>{init()}, 500)
})
watch(
() => props.ticket_,
async (newVal) => {
if (newVal && Object.keys(newVal).length > 0) {
await init()
}
},
{ immediate: false }
)
const actionShow = ref(false);
const suggestion = ref("")
const isOwn = ref(false)
const init = async () => {
transitions.value = [];
actionShow.value = false;
if (props.ticket_ != null && props.ticket_ != undefined) {
if (props.ticket_ && Object.keys(props.ticket_).length > 0) {
isOwn.value = props.ticket_.create_by === currentUser.value;
const isParticipant =
(props.ticket_.participant_type === 1 && props.ticket_.participant === currentUser.value) ||
@ -63,7 +54,7 @@ const init = async () => {
actionShow.value = true;
transitions.value = await API.getTransition(props.ticket_.id);
}
}else if (props.workflow_key !=null && props.workflow_key != undefined) {
}else if (props.workflow_key) {
let res = await API.workflowInitkey(props.workflow_key);
actionShow.value = true
transitions.value = res.transitions;