From 46d143d1d6fe8f286399f4d027c9a86adf7cd7fc Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期三, 09 七月 2025 08:50:01 +0800 Subject: [PATCH] feat(inspection,maintenance): - 实现保养工单批量确认功能 - 在点检记录确认时增加时间限制,距离上次更新时间两小时内不允许确认 --- eims-ui-mobile/src/pages/maint/order-detail.vue | 14 ++++++++------ 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/eims-ui-mobile/src/pages/maint/order-detail.vue b/eims-ui-mobile/src/pages/maint/order-detail.vue index e9571df..6672463 100644 --- a/eims-ui-mobile/src/pages/maint/order-detail.vue +++ b/eims-ui-mobile/src/pages/maint/order-detail.vue @@ -17,7 +17,7 @@ safeAreaInsetTop > <template #right> - <text v-if="isOperatorOrRepair()" class="text-white">鎻愪氦</text> + <text v-if="isLineOrRepair()" class="text-white">鎻愪氦</text> <text v-else-if="isLeader()" class="text-white">楠岃瘉</text> </template> </wd-navbar> @@ -61,7 +61,6 @@ /> <wd-cell title="淇濆吇鍥剧墖" title-width="200rpx" prop="fileList"> <wd-upload - :auto-upload="false" :file-list="fileList" @change="handleFileChange" ></wd-upload> @@ -94,7 +93,7 @@ <wd-cell title="淇濆吇瀹屾垚(鎿嶄綔宸�)" title-width="200px" - v-if="order.status === '1' && isOperatorOrRepair()" + v-if="order.status === '1' && isLineOrRepair()" > <view style="text-align: right"> <wd-switch v-model="isFinish" /> @@ -110,7 +109,7 @@ import { reactive, onMounted } from 'vue' import { FormRules } from 'wot-design-uni/components/wd-form/types' import { useToast, useMessage } from 'wot-design-uni' -import { isLeader, isOperatorOrRepair } from '@/utils/RoleUtils' +import { isLeader, isLineOrRepair } from '@/utils/RoleUtils' const toast = useToast() const message = useMessage() @@ -133,6 +132,7 @@ endTime?: string maintDesc: string remark: string + picture: string } const order = reactive<MaintOrder>({ @@ -204,7 +204,9 @@ updateOrder(data, resolve) }, }) - .then(() => {}) + .then(() => { + goBack() + }) .catch((error) => { console.log(error) }) @@ -236,7 +238,7 @@ toast.warning('褰撳墠宸ュ崟瀹屾垚鐘舵�侊紝涓嶅彲鎿嶄綔') break } - } else if (isOperatorOrRepair()) { + } else if (isLineOrRepair()) { switch (order.status) { case '0': break -- Gitblit v1.9.3