Просмотр исходного кода

初诊不写病历和下诊断

liudan 3 месяцев назад
Родитель
Сommit
2020ff180f

+ 1 - 1
src/pages/myConsultRoom/page/graphic/graphic.vue

@@ -465,7 +465,7 @@ export default {
             var btncode = e.currentTarget.dataset.btncode;
             var index = e.currentTarget.dataset.index;
             Cache.set('patientData', this.dataList[index]);
-            if (btncode == 'S' || btncode == 'C') {
+            if (btncode == 'S') {
                 if (!this.ifOnline()) {
                     return;
                 }

+ 8 - 4
src/pages/myConsultRoom/page/treatment/treatment.vue

@@ -255,13 +255,13 @@
                 </view>
             </view>
             <view class="bottomView" v-if="moreBtn">
-                <view class="bottomIcon" @tap="addEmr">
+                <view class="bottomIcon" @tap="addEmr" v-if="showMedicalRecordAndDiagnosis">
                     <view class="iconview">
                         <image :src="imgDomain + '/images/icon/doctor/emr.png'" class="bottomimg"></image>
                     </view>
                     <view class="icontext">写病历</view>
                 </view>
-                <view class="bottomIcon" @tap="addDiag">
+                <view class="bottomIcon" @tap="addDiag" v-if="showMedicalRecordAndDiagnosis">
                     <view class="iconview">
                         <image :src="imgDomain + '/images/icon/doctor/diag.png'" class="bottomimg"></image>
                     </view>
@@ -489,6 +489,7 @@ export default {
             chats: '',
             scrollWithAnimation: false,
             visitRelatedInformation: '',
+            showMedicalRecordAndDiagnosis: true, // RevisitFlag为0时隐藏写病历和下诊断
             bodyStyle: '',
 
             // === 语音 ===
@@ -1349,12 +1350,15 @@ export default {
                 namespace: 'Y',
                 success: function (res) {
                     if (+res.errorCode === 0) {
+                        const revisitFlag = res.result && res.result.RevisitFlag;
                         this.setData({
-                            visitRelatedInformation: res.result
+                            visitRelatedInformation: res.result,
+                            showMedicalRecordAndDiagnosis: revisitFlag !== 0
                         });
                     } else {
                         this.setData({
-                            visitRelatedInformation: {}
+                            visitRelatedInformation: {},
+                            showMedicalRecordAndDiagnosis: true
                         });
                     }
                 }

+ 1 - 1
src/pages/tabBar/home/home.vue

@@ -589,7 +589,7 @@ export default {
             var btncode = e.currentTarget.dataset.btncode;
             var index = e.currentTarget.dataset.index;
             Cache.set('patientData', this.dataList[index]);
-            if (btncode == 'S' || btncode == 'C') {
+            if (btncode == 'S') {
                 if (!this.ifOnline()) {
                     return;
                 }