|
@@ -22,7 +22,11 @@
|
|
|
<div class="pre-title mr-t10">
|
|
<div class="pre-title mr-t10">
|
|
|
<div class="flex-vertical-center-l title-container">
|
|
<div class="flex-vertical-center-l title-container">
|
|
|
<span></span>
|
|
<span></span>
|
|
|
- <div>中医电子病历</div>
|
|
|
|
|
|
|
+ <div style="display: flex;justify-content: space-between; align-items: center; width: 100%">
|
|
|
|
|
+ 中医电子病历
|
|
|
|
|
+ <el-button v-if="showRecordLoading" style="padding: 4px 8px; transform: translateY(2px)" size="mini" :loading="recordLoading" @click="loadRecord()">
|
|
|
|
|
+ {{ recordLoading ? '' : '刷新' }}</el-button>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="patiens-msg" v-if="patiensMsg.outpatientElectronicmedicalrecord">
|
|
<div class="patiens-msg" v-if="patiensMsg.outpatientElectronicmedicalrecord">
|
|
@@ -1144,6 +1148,7 @@ import medAdress from "./components/medAddress.vue";
|
|
|
import medAdressNew from "./components/medAddressNew.vue";
|
|
import medAdressNew from "./components/medAddressNew.vue";
|
|
|
import {
|
|
import {
|
|
|
getPatiensBasisM,
|
|
getPatiensBasisM,
|
|
|
|
|
+ refreshElectronicInfo,
|
|
|
getTongueAndFaceAnalysisRecords,
|
|
getTongueAndFaceAnalysisRecords,
|
|
|
addRecipe,
|
|
addRecipe,
|
|
|
getRecipeShowData,
|
|
getRecipeShowData,
|
|
@@ -1202,6 +1207,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ recordLoading: false, // 中医电子病历
|
|
|
tongueAndFaceLoading: false, // 舌面象加载
|
|
tongueAndFaceLoading: false, // 舌面象加载
|
|
|
tongueAndFaceAnalysis: null, // 舌面象数据
|
|
tongueAndFaceAnalysis: null, // 舌面象数据
|
|
|
showTongueAnalysis: false, // 舌象分析弹窗
|
|
showTongueAnalysis: false, // 舌象分析弹窗
|
|
@@ -1401,6 +1407,20 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ async loadRecord() {
|
|
|
|
|
+ this.recordLoading = true;
|
|
|
|
|
+ try {
|
|
|
|
|
+ let data = await refreshElectronicInfo({
|
|
|
|
|
+ patientId: this.getPatiensInfo.pid
|
|
|
|
|
+ });
|
|
|
|
|
+ if (data.outpatientElectronicmedicalrecord) data.outpatientElectronicmedicalrecord.image1 = formatPicture(data.outpatientElectronicmedicalrecord.image1);
|
|
|
|
|
+ this.patiensMsg = {...this.patiensMsg, ...data};
|
|
|
|
|
+ this.$message.success('刷新成功');
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ this.$message.error(e.message);
|
|
|
|
|
+ }
|
|
|
|
|
+ this.recordLoading = false;
|
|
|
|
|
+ },
|
|
|
// 处理路由参数
|
|
// 处理路由参数
|
|
|
async _processRouteQuery() {
|
|
async _processRouteQuery() {
|
|
|
const query = this.$route.query || {};
|
|
const query = this.$route.query || {};
|
|
@@ -4470,7 +4490,14 @@ export default {
|
|
|
: 0
|
|
: 0
|
|
|
).toFixed(2);
|
|
).toFixed(2);
|
|
|
},
|
|
},
|
|
|
- ...mapGetters(["getPatiensInfo", "getuserinfo", "getDrugInfo", "getIsSee", "getPreNo"])
|
|
|
|
|
|
|
+ ...mapGetters(["getPatiensInfo", "getuserinfo", "getDrugInfo", "getIsSee", "getPreNo"]),
|
|
|
|
|
+ showRecordLoading() {
|
|
|
|
|
+ try {
|
|
|
|
|
+ return !this.patiensMsg.outpatientElectronicmedicalrecord.image1.length
|
|
|
|
|
+ } catch (e) {
|
|
|
|
|
+ return true
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
},
|
|
},
|
|
|
filters: {
|
|
filters: {
|
|
|
ftsjj(value) {
|
|
ftsjj(value) {
|