From ce489fee730459541ce9247f3e95b6790d01a9b1 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期五, 26 十二月 2025 10:15:27 +0800
Subject: [PATCH] feat: init
---
apps/bStandardMiniApp/src/subpackages/appointmentManage/appointmentManageDetail/InnerPage.vue | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 54 insertions(+), 6 deletions(-)
diff --git a/apps/bStandardMiniApp/src/subpackages/appointmentManage/appointmentManageDetail/InnerPage.vue b/apps/bStandardMiniApp/src/subpackages/appointmentManage/appointmentManageDetail/InnerPage.vue
index 24fff87..a8432c0 100644
--- a/apps/bStandardMiniApp/src/subpackages/appointmentManage/appointmentManageDetail/InnerPage.vue
+++ b/apps/bStandardMiniApp/src/subpackages/appointmentManage/appointmentManageDetail/InnerPage.vue
@@ -1,13 +1,31 @@
<template>
<!-- <LoadingLayout :loading="isLoading" :error="isError" :loadError="refetch"> -->
<ContentScrollView hasPaddingTop>
- <MineServiceDetailView :addressDetail="detail?.addressDetail" />
+ <MineServiceDetailView
+ :contactName="detail?.name"
+ :contactPhoneNumber="detail?.contactPhoneNumber"
+ :addressDetail="detail?.addressDetail"
+ :serviceName="detail?.serviceName"
+ :price="detail?.serviceFee"
+ :specName="detail?.specName"
+ :specNumber="detail?.specNumber"
+ :imgUrl="detail?.serviceFile"
+ statusText="棰勭害鐘舵��"
+ :beginTime="detail?.beginTime"
+ :endTime="detail?.endTime"
+ :supplierEnterpriseName="detail?.supplierEnterpriseName"
+ :remark="detail?.remark"
+ >
+ <template #status>
+ {{ EnumStandardOrderAppointmentStatusText[detail?.appointmentStatus] }}
+ </template>
+ </MineServiceDetailView>
</ContentScrollView>
- <PageFooter>
- <PageFooterBtn type="primary" class="business-card-btn" @click="goCancel"
+ <PageFooter v-if="detail?.appointmentStatus === EnumStandardOrderAppointmentStatus.WaitSure">
+ <PageFooterBtn class="business-card-btn" @click="cancelStandardOrderAppointment"
>鍙栨秷棰勭害</PageFooterBtn
>
- <PageFooterBtn type="primary" class="business-card-btn" @click="goConfirm"
+ <PageFooterBtn type="primary" class="business-card-btn" @click="handleSubmit"
>纭棰勭害</PageFooterBtn
>
</PageFooter>
@@ -17,7 +35,14 @@
<script setup lang="ts">
import { MineServiceDetailView } from '@12333/components';
import Taro from '@tarojs/taro';
+import {
+ EnumStandardOrderAppointmentStatus,
+ EnumStandardOrderAppointmentStatusText,
+} from '@12333/constants';
import { useStandardOrder } from '@12333/hooks';
+import { Message } from '@12333/utils';
+import { goBack } from '@/utils';
+import * as standardOrderServices from '@12333/services/apiV2/standardOrder';
defineOptions({
name: 'InnerPage',
@@ -30,9 +55,32 @@
id: id,
});
-function goCancel() {}
+async function cancelStandardOrderAppointment() {
+ try {
+ await Message.confirm({ message: '纭瑕佸彇娑堥绾﹀悧锛�' });
+ let params: API.CancelStandardOrderAppointmentCommand = {
+ id: id,
+ };
+ let res = await standardOrderServices.cancelStandardOrderAppointment(params);
+ if (res) {
+ Message.success('鎿嶄綔鎴愬姛');
+ goBack();
+ }
+ } catch (error) {}
+}
-function goConfirm() {}
+async function handleSubmit() {
+ try {
+ let params: API.SureStandardOrderAppointmentCommand = {
+ id: id,
+ };
+ let res = await standardOrderServices.sureStandardOrderAppointment(params);
+ if (res) {
+ Message.success('鎿嶄綔鎴愬姛');
+ goBack();
+ }
+ } catch (error) {}
+}
</script>
<style lang="scss">
--
Gitblit v1.10.0