|
|
@@ -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
|
|
|
});
|
|
|
}
|
|
|
}
|