From 89ec68eec9ebe8e8e9ff67a8e8f65214b2f96cde Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期五, 26 十二月 2025 13:44:42 +0800
Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp

---
 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