Browse Source

优化自助退号

lighter 1 year ago
parent
commit
ab2179ee8a

+ 4 - 0
src/components/appointment-management-branch/index.vue

@@ -1,4 +1,8 @@
 <template>
+  <van-notice-bar v-if="payMark === '0'"
+                  left-icon="warning-o"
+                  text="未就诊且不超过预约时间段的微信自助挂号,可自助办理退费。">
+  </van-notice-bar>
   <van-empty :image="empty" description="没有查询到有效数据" v-if="showEmpty"></van-empty>
   <div v-else :style="boxWrapper">
     <van-cell

+ 1 - 1
src/views/hospital-service/appointment/AppointmentConfirm.vue

@@ -91,7 +91,7 @@ const confirmAppointment = () => {
     })
     showConfirmDialog({
       title: '温馨提示',
-      message: '超过预约日期未就诊,不予退号、换号、转科,敬请谅解。',
+      message: '超过预约时间段未就诊,不予退号、换号、转科,敬请谅解。',
       confirmButtonText: '确认挂号',
       cancelButtonText: '取消挂号'
     }).then(() => {

+ 5 - 9
src/views/hospital-service/appointment/management/RefundAppointment.vue

@@ -19,17 +19,13 @@
     <van-cell title="就诊卡号" :value="mzyReq.patientId"></van-cell>
     <div style="height: 10px"></div>
     <van-button type="primary" block :disabled="disableRefundButton" @click="revokeMzyReq">退款退号</van-button>
-    <div style="font-size: 14px; color: orangered; padding: 4px 12px">
-      <p>小提示:</p>
-      <p style="font-weight: bold">仅支持不超过预约日期且尚未就诊的微信自助挂号。</p>
-    </div>
   </window-size>
 </template>
 
 <script>
 import {onMounted, ref} from 'vue'
 import {getMzyReqrecInfo, cancelReqrec} from '../../../../api/appointment.js'
-import {showConfirmDialog, showToast} from 'vant'
+import {showConfirmDialog, showDialog, showToast} from 'vant'
 import {useRouter} from "vue-router";
 import {getDateDiff} from "../../../../utils/date";
 
@@ -51,11 +47,11 @@ export default {
         message: '是否确认退号退费?'
       }).then(() => {
         cancelReqrec(mzyReq.value).then(() => {
-          showToast({
+          showDialog({
             message: '退号成功,您的资金已原路退回,请留意微信退款信息。',
-            position: 'top',
-          });
-          router.go(-1)
+          }).then(() => {
+            router.go(-1)
+          })
         })
       }).catch(() => {})
     }

+ 9 - 0
src/views/mine/MineHome.vue

@@ -48,6 +48,15 @@
         :to="filterPath('/prepaidRecord/', '/selectZyYjjPatient')"
       ></van-cell
     ></van-cell-group>
+
+    <van-cell-group title="管理">
+      <van-cell
+          icon="clock"
+          title="挂号管理"
+          is-link
+          to="/selectTargetPatient"
+      ></van-cell>
+    </van-cell-group>
   </window-size>
 </template>