Browse Source

显示夜间门诊

lighter 2 years ago
parent
commit
d9b88e7cb3
1 changed files with 7 additions and 5 deletions
  1. 7 5
      src/views/hospital-service/appointment/SelectDoctorAndDate.vue

+ 7 - 5
src/views/hospital-service/appointment/SelectDoctorAndDate.vue

@@ -26,7 +26,7 @@
     <van-tag type="primary" plain style="margin-left: 5px">{{ data.dateSelected }}</van-tag>
     <van-tag type="primary" plain style="margin-left: 5px">{{ data.dateSelected }}</van-tag>
     <div style="height: 5px"></div>
     <div style="height: 5px"></div>
     <div v-for="(item, index) in data.doctorSources" :key="index">
     <div v-for="(item, index) in data.doctorSources" :key="index">
-      <van-cell center :title="item.doctorName + ' | ' + item.chargeType" is-link @click="toDoctorArangement(item)">
+      <van-cell center is-link @click="toDoctorArangement(item)">
         <template #icon>
         <template #icon>
           <van-image
           <van-image
             style="width: 44.11px; height: 60.36px"
             style="width: 44.11px; height: 60.36px"
@@ -35,6 +35,10 @@
             :src="'data:image/png;base64,' + item.portrait"
             :src="'data:image/png;base64,' + item.portrait"
           />&nbsp;
           />&nbsp;
         </template>
         </template>
+        <template #title>
+            <span>{{item.doctorName}} | {{item.chargeType}}</span>
+            <span v-if="item.isP4Request" style="color: red">(夜间)</span>
+        </template>
         <template #label>
         <template #label>
           <div :style="labelStyle" v-show="item.introduction">{{ item.introduction }}</div>
           <div :style="labelStyle" v-show="item.introduction">{{ item.introduction }}</div>
         </template>
         </template>
@@ -99,11 +103,9 @@ export default {
         date: data.dateSelected,
         date: data.dateSelected,
         deptCode: deptCode,
         deptCode: deptCode,
       }
       }
-      getDoctorSources(param)
-        .then((res) => {
+      getDoctorSources(param).then((res) => {
           data.doctorSources = res
           data.doctorSources = res
-        })
-        .catch(() => {
+        }).catch(() => {
           data.doctorSources = []
           data.doctorSources = []
           if (isFromMounted && index < 6) {
           if (isFromMounted && index < 6) {
             handleClickDate(++index, isFromMounted)
             handleClickDate(++index, isFromMounted)