From d7862b2890b68743ec9c4fc05800bb23ec9b412e Mon Sep 17 00:00:00 2001 From: zhuguifei <zhuguifei@zhuguifeideiMac.local> Date: 星期日, 27 四月 2025 16:05:02 +0800 Subject: [PATCH] 完成新增报修单 --- eims-ui-mobile/src/pages/inspect/insp-record.vue | 52 ++++++++++++++++++++++++++++++++++------------------ 1 files changed, 34 insertions(+), 18 deletions(-) diff --git a/eims-ui-mobile/src/pages/inspect/insp-record.vue b/eims-ui-mobile/src/pages/inspect/insp-record.vue index f0b128d..7b64703 100644 --- a/eims-ui-mobile/src/pages/inspect/insp-record.vue +++ b/eims-ui-mobile/src/pages/inspect/insp-record.vue @@ -1,25 +1,31 @@ <route lang="json5"> { + layout: 'default', + needLogin: true, style: { navigationBarTitleText: '鐐规璁板綍', - navigationStyle: 'custom', - navigationBarBackgroundColor: '#4D80F0', + 'app-plus': { + titleNView: { + buttons: [ + { + text: '鎻愪氦', + fontSize: '14px', + color: '#FFFFFF', + }, + { + text: '', + fontSize: '24px', + color: '#FFFFFF', + }, + ], + }, + }, }, } </route> <template> <z-paging ref="paging" v-model="dataList" @query="queryList" show-refresher-update-time> <template #top> - <wd-navbar - title="鐐规璁板綍" - left-arrow - @click-left="goBack" - right-text="鎻愪氦" - @click-right="handleClickRight" - custom-style="background: #4D80F0;" - safeAreaInsetTop - ></wd-navbar> - <wd-card type="rectangle"> <template #title> <view class="flex justify-between"> @@ -34,7 +40,7 @@ </view> </view> </template> - <view class="flex h-[100rpx]" items-center> + <view class="flex h-[140rpx]" items-center> <image class="slot-img text-center" src="/static/images/camera.png" /> <view class="flex-1"> <view class="text-color-gray text-xs mt-1 flex"> @@ -52,13 +58,16 @@ <view class="text-color-gray text-xs mt-2 flex"> <text>鐘舵�侊細</text> <template v-if="dataCount > 0 && dataCount === checkCount"> - <wd-icon class="icon-color-success" name="check-outline" size="40rpx"></wd-icon> + <wd-icon class="icon-color-success" name="check-outline" size="34rpx"></wd-icon> <text class="ml-1">宸插畬鎴�</text> </template> <template v-else> <wd-icon class="icon-color-base" name="detection" size="40rpx"></wd-icon> <text class="ml-1">杩涜涓�</text> </template> + </view> + <view class="text-color-gray text-xs mt-2 flex"> + 鍒涘缓鏃堕棿: {{inspSt.createTime}} </view> </view> </view> @@ -151,6 +160,7 @@ equName: string assetNo: string planTimeStr?: string + createTime?: string status: string inspUser: number | string specialNote: string @@ -169,6 +179,7 @@ equName: '', assetNo: '', planTimeStr: '', + createTime: '', status: '', inspUser: '', specialNote: '', @@ -189,7 +200,7 @@ getInspStRecordList(params) .then((res: any) => { // 璇峰嬁鍦ㄧ綉缁滆姹傚洖璋冧腑缁檇ataList璧嬪�硷紒锛佸彧闇�瑕佽皟鐢╟omplete灏卞彲浠ヤ簡 - paging.value.complete(res.rows) + paging.value.completeByTotal(res.rows, res.total) }) .catch((res) => { // 濡傛灉璇锋眰澶辫触鍐檖aging.value.complete(false)锛屼細鑷姩灞曠ず閿欒椤甸潰 @@ -206,9 +217,11 @@ const goBack = () => { uni.navigateBack() } -function handleClickRight() { - handleConfirm() -} +onNavigationBarButtonTap((e) => { + if (e.index === 0) { + handleConfirm() + } +}) const toggleCollapse = () => { isAllExpanded.value = !isAllExpanded.value @@ -242,6 +255,7 @@ updateInspRecordBatch(params) .then((res: any) => { updateInspSt(resolve) + toast.success("鎿嶄綔鎴愬姛") }) .catch((res) => { console.error(res) @@ -282,6 +296,7 @@ inspSt.equName = options.equName inspSt.assetNo = options.assetNo inspSt.planTimeStr = options.planTimeStr + inspSt.createTime = options.createTime inspSt.specialNote = options?.specialNote inspSt.inspUser = userStore?.userInfo?.userId }) @@ -330,5 +345,6 @@ :deep(.wd-navbar__title) { color: white; font-weight: 0; + font-size: 32rpx; } </style> -- Gitblit v1.9.3