|
|
@@ -57,13 +57,22 @@
|
|
|
<div v-if="patiensMsg.outpatientElectronicmedicalrecord.image1.length>0">
|
|
|
<div style="margin: 4px 0 8px;">报告上传:</div>
|
|
|
<el-image
|
|
|
- :preview-src-list="patiensMsg.outpatientElectronicmedicalrecord.image1"
|
|
|
+ :preview-src-list="patientMsgPreviewImages"
|
|
|
:src="item"
|
|
|
:key="index"
|
|
|
style="width:64px;height: 64px;margin-right: 10px;"
|
|
|
- alt
|
|
|
+ alt=""
|
|
|
v-for="(item,index) in patiensMsg.outpatientElectronicmedicalrecord.image1"
|
|
|
/>
|
|
|
+ <template v-for="item in [
|
|
|
+ {id: 'overallLeft', addition: '&leftHand=true'},
|
|
|
+ {id: 'overallRight', addition: '&rightHand=true'},
|
|
|
+ ]">
|
|
|
+ <PulseImage ref="pulseImage" style="margin-right: 10px; width: 64px; height: 64px;"
|
|
|
+ :key="item.id" :id="item.id" :addition="item.addition" :dataset="patiensMsg.pulseDiagnosisReportVo"
|
|
|
+ @update="updatePatientMsgPreviewImages"
|
|
|
+ />
|
|
|
+ </template>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- mr-t30 -->
|
|
|
@@ -1146,6 +1155,7 @@ import TongueAnalysis from "./components/tongue-analysis.vue";
|
|
|
import safeDrug from "./components/safeDrug.vue";
|
|
|
import medAdress from "./components/medAddress.vue";
|
|
|
import medAdressNew from "./components/medAddressNew.vue";
|
|
|
+import PulseImage from '@/components/PulseImage.vue';
|
|
|
import {
|
|
|
getPatiensBasisM,
|
|
|
refreshElectronicInfo,
|
|
|
@@ -1191,6 +1201,7 @@ import {CC_Dosage2Basis} from '@/utils/medicine';
|
|
|
export default {
|
|
|
mixins: [prescribing],
|
|
|
components: {
|
|
|
+ PulseImage,
|
|
|
Popup,
|
|
|
chineseMedicine,
|
|
|
medicineChinese,
|
|
|
@@ -1336,6 +1347,7 @@ export default {
|
|
|
}
|
|
|
],
|
|
|
patiensMsg: {}, // 患者信息
|
|
|
+ patientMsgPreviewImages: [], // 患者信息预览图片
|
|
|
dianosisMsg: [], // 诊断信息
|
|
|
|
|
|
ops: {
|
|
|
@@ -1401,20 +1413,31 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- async loadRecord() {
|
|
|
+ async loadRecord(tips = true) {
|
|
|
this.recordLoading = true;
|
|
|
try {
|
|
|
let data = await refreshElectronicInfo({
|
|
|
patientId: this.getPatiensInfo.pid
|
|
|
});
|
|
|
- if (data.outpatientElectronicmedicalrecord) data.outpatientElectronicmedicalrecord.image1 = formatPicture(data.outpatientElectronicmedicalrecord.image1);
|
|
|
+ if (data.outpatientElectronicmedicalrecord) {
|
|
|
+ data.outpatientElectronicmedicalrecord.image1 = formatPicture(data.outpatientElectronicmedicalrecord.image1);
|
|
|
+ this.patientMsgPreviewImages = [...data.outpatientElectronicmedicalrecord.image1];
|
|
|
+ }
|
|
|
this.patiensMsg = {...this.patiensMsg, ...data};
|
|
|
- this.$message.success('刷新成功');
|
|
|
+ if (tips) this.$message.success('刷新成功');
|
|
|
} catch (e) {
|
|
|
- this.$message.error(e.message);
|
|
|
+ if (tips) this.$message.error(e.message);
|
|
|
}
|
|
|
this.recordLoading = false;
|
|
|
},
|
|
|
+ updatePatientMsgPreviewImages(image) {
|
|
|
+ let refs = this.$refs.pulseImage;
|
|
|
+ if (!Array.isArray(refs)) refs = [refs];
|
|
|
+ this.patientMsgPreviewImages = [
|
|
|
+ ...this.patiensMsg.outpatientElectronicmedicalrecord.image1,
|
|
|
+ ...refs.map(ref => ref.thumbnail)
|
|
|
+ ].filter(Boolean);
|
|
|
+ },
|
|
|
// 处理路由参数
|
|
|
async _processRouteQuery() {
|
|
|
const query = this.$route.query || {};
|
|
|
@@ -3228,6 +3251,8 @@ export default {
|
|
|
this.patiensMsg = res.Data;
|
|
|
|
|
|
this.patiensMsg.outpatientElectronicmedicalrecord.image1 = formatPicture(this.patiensMsg.outpatientElectronicmedicalrecord.image1);
|
|
|
+ this.patientMsgPreviewImages = [...this.patiensMsg.outpatientElectronicmedicalrecord.image1];
|
|
|
+ await this.loadRecord(false);
|
|
|
// if (!this.patiensMsg.maindiagnosis.disid) {
|
|
|
// this.$message.warning("请先提交一条诊断信息");
|
|
|
// this.$router.replace({
|