feat:工单标记完成

This commit is contained in:
2025-08-11 00:17:12 +08:00
parent 7cbe020438
commit 4f5a9dd873

View File

@@ -67,7 +67,7 @@
<button class="order-button-secondary" @click="viewWorkOrder">
查看工单
</button>
<button class="order-button-primary" @click="markCompleted">
<button v-if="!isMarkCompleted" class="order-button-primary" @click="markCompleted">
已完成
</button>
</view>
@@ -96,7 +96,8 @@ const contactPhone = ref("");
const isCallSuccess = ref(false); // 呼叫成功状态
const workOrderId = ref(0); // 工单ID
const workOrderTypeList = ref([])
const workOrderTypeListSelectData = ref([])
const workOrderTypeListSelectData = ref([])
const isMarkCompleted = ref(false)
const changeWorkOrderType = (index) => {
if (index < 0 || index >= workOrderTypeListSelectData.value.length) {
@@ -214,7 +215,8 @@ const markCompleted = () => {
title: '确认完成',
content: '确认标记此工单为已完成吗?',
success: (res) => {
if (res.confirm) {
if (res.confirm) {
isMarkCompleted.value = true
// 这里可以调用API标记工单完成
uni.showToast({
title: '工单已完成',