|
@@ -50,16 +50,17 @@
|
|
|
<span>辅助检查:</span>
|
|
<span>辅助检查:</span>
|
|
|
{{patiensMsg.outpatientElectronicmedicalrecord.supplementaryexamination}}
|
|
{{patiensMsg.outpatientElectronicmedicalrecord.supplementaryexamination}}
|
|
|
</p>
|
|
</p>
|
|
|
- <p v-if="patiensMsg.outpatientElectronicmedicalrecord.image1.length>0">
|
|
|
|
|
|
|
+ <div v-if="patiensMsg.outpatientElectronicmedicalrecord.image1.length>0">
|
|
|
|
|
+ <div style="margin: 4px 0 8px;">报告上传:</div>
|
|
|
<el-image
|
|
<el-image
|
|
|
- :preview-src-list="[item]"
|
|
|
|
|
|
|
+ :preview-src-list="patiensMsg.outpatientElectronicmedicalrecord.image1"
|
|
|
:src="item"
|
|
:src="item"
|
|
|
:key="index"
|
|
:key="index"
|
|
|
style="width:64px;height: 64px;margin-right: 10px;"
|
|
style="width:64px;height: 64px;margin-right: 10px;"
|
|
|
alt
|
|
alt
|
|
|
v-for="(item,index) in patiensMsg.outpatientElectronicmedicalrecord.image1"
|
|
v-for="(item,index) in patiensMsg.outpatientElectronicmedicalrecord.image1"
|
|
|
/>
|
|
/>
|
|
|
- </p>
|
|
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- mr-t30 -->
|
|
<!-- mr-t30 -->
|
|
|
<div class="pre-title" v-if="false">
|
|
<div class="pre-title" v-if="false">
|
|
@@ -313,6 +314,8 @@
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 右侧按钮 -->
|
|
<!-- 右侧按钮 -->
|
|
|
<div class="flex-vertical-center-r flex-wrap">
|
|
<div class="flex-vertical-center-r flex-wrap">
|
|
|
|
|
+ <el-button size="mini" @click="openUnifyPrescPrec" type="primary">统建处方</el-button>
|
|
|
|
|
+ <el-button size="mini" :loading="tongueAndFaceLoading" :disabled="!tongueAndFaceAnalysis" @click="openTongueAndFaceAnalysis" type="primary">舌象分析</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
size="mini"
|
|
size="mini"
|
|
|
type="primary"
|
|
type="primary"
|
|
@@ -1055,6 +1058,34 @@
|
|
|
</div>
|
|
</div>
|
|
|
</Popup>
|
|
</Popup>
|
|
|
|
|
|
|
|
|
|
+ <!-- 查询统建处方 页面768 -->
|
|
|
|
|
+ <Popup
|
|
|
|
|
+ :showDialog="showUnifyPresc"
|
|
|
|
|
+ @cancle="showUnifyPresc=false"
|
|
|
|
|
+ title="查询统建处方"
|
|
|
|
|
+ :showBtns="false"
|
|
|
|
|
+ width="700px"
|
|
|
|
|
+ distanceTop="5vh"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div slot="body">
|
|
|
|
|
+ <UnifyPrescription></UnifyPrescription>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Popup>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 查询舌象分析 页面768 -->
|
|
|
|
|
+ <Popup
|
|
|
|
|
+ :showDialog="showTongueAnalysis"
|
|
|
|
|
+ @cancle="showTongueAnalysis=false"
|
|
|
|
|
+ title="分析详情"
|
|
|
|
|
+ :showBtns="false"
|
|
|
|
|
+ width="700px"
|
|
|
|
|
+ distanceTop="5vh"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div slot="body">
|
|
|
|
|
+ <TongueAnalysis :dataset="tongueAndFaceAnalysis"></TongueAnalysis>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </Popup>
|
|
|
|
|
+
|
|
|
<!-- 安全合理用药弹窗 -->
|
|
<!-- 安全合理用药弹窗 -->
|
|
|
<!-- 查询协定方 方剂 页面768 -->
|
|
<!-- 查询协定方 方剂 页面768 -->
|
|
|
<Popup
|
|
<Popup
|
|
@@ -1106,11 +1137,14 @@ import submitRecipe from "./components/submitRecipe.vue";
|
|
|
import TCMDiagnosis from "../../components/TCMDiagnosis.vue";
|
|
import TCMDiagnosis from "../../components/TCMDiagnosis.vue";
|
|
|
import doctorCase from "./components/doctorCase.vue";
|
|
import doctorCase from "./components/doctorCase.vue";
|
|
|
import prescription from "./components/prescription.vue";
|
|
import prescription from "./components/prescription.vue";
|
|
|
|
|
+import UnifyPrescription from "./components/prescription-unify.vue";
|
|
|
|
|
+import TongueAnalysis from "./components/tongue-analysis.vue";
|
|
|
import safeDrug from "./components/safeDrug.vue";
|
|
import safeDrug from "./components/safeDrug.vue";
|
|
|
import medAdress from "./components/medAddress.vue";
|
|
import medAdress from "./components/medAddress.vue";
|
|
|
import medAdressNew from "./components/medAddressNew.vue";
|
|
import medAdressNew from "./components/medAddressNew.vue";
|
|
|
import {
|
|
import {
|
|
|
getPatiensBasisM,
|
|
getPatiensBasisM,
|
|
|
|
|
+ getTongueAndFaceAnalysis,
|
|
|
addRecipe,
|
|
addRecipe,
|
|
|
getRecipeShowData,
|
|
getRecipeShowData,
|
|
|
getRecipeDataByid,
|
|
getRecipeDataByid,
|
|
@@ -1146,6 +1180,8 @@ import { getExperinceDetail } from "@/api/business.js";
|
|
|
import { setTimeout } from "timers";
|
|
import { setTimeout } from "timers";
|
|
|
import prescribing from "../../utils/minix/prescribing";
|
|
import prescribing from "../../utils/minix/prescribing";
|
|
|
|
|
|
|
|
|
|
+import {formatPicture} from "@/utils/picture";
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [prescribing],
|
|
mixins: [prescribing],
|
|
|
components: {
|
|
components: {
|
|
@@ -1156,6 +1192,8 @@ export default {
|
|
|
TCMDiagnosis,
|
|
TCMDiagnosis,
|
|
|
submitRecipe,
|
|
submitRecipe,
|
|
|
prescription,
|
|
prescription,
|
|
|
|
|
+ UnifyPrescription,
|
|
|
|
|
+ TongueAnalysis,
|
|
|
doctorCase,
|
|
doctorCase,
|
|
|
safeDrug,
|
|
safeDrug,
|
|
|
medAdress,
|
|
medAdress,
|
|
@@ -1163,6 +1201,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ tongueAndFaceLoading: false, // 舌面象加载
|
|
|
|
|
+ tongueAndFaceAnalysis: null, // 舌面象数据
|
|
|
|
|
+ showTongueAnalysis: false, // 舌象分析弹窗
|
|
|
|
|
+
|
|
|
showPriview: false, // 展示预览数据
|
|
showPriview: false, // 展示预览数据
|
|
|
showDialog: false, // 方剂详情
|
|
showDialog: false, // 方剂详情
|
|
|
showDrug: false, // 药品详情
|
|
showDrug: false, // 药品详情
|
|
@@ -1325,6 +1367,7 @@ export default {
|
|
|
|
|
|
|
|
if (this.getPatiensInfo.pid) {
|
|
if (this.getPatiensInfo.pid) {
|
|
|
this.getPatiensBasisM();
|
|
this.getPatiensBasisM();
|
|
|
|
|
+ this.getPatientBasisTongueAndFaceAnalysis();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -2515,6 +2558,7 @@ export default {
|
|
|
this.showAgree = false;
|
|
this.showAgree = false;
|
|
|
this.showExpr = false;
|
|
this.showExpr = false;
|
|
|
this.showPresc = false;
|
|
this.showPresc = false;
|
|
|
|
|
+ this.showUnifyPresc = false;
|
|
|
|
|
|
|
|
data1.getPharmacyID();
|
|
data1.getPharmacyID();
|
|
|
},
|
|
},
|
|
@@ -3112,20 +3156,7 @@ export default {
|
|
|
: [];
|
|
: [];
|
|
|
this.patiensMsg = res.Data;
|
|
this.patiensMsg = res.Data;
|
|
|
|
|
|
|
|
- if (this.patiensMsg.outpatientElectronicmedicalrecord.image1) {
|
|
|
|
|
- let img1 = res.Data.outpatientElectronicmedicalrecord.image1.split(
|
|
|
|
|
- ","
|
|
|
|
|
- );
|
|
|
|
|
- let arr = [];
|
|
|
|
|
- img1.forEach(item => {
|
|
|
|
|
- item = process.env.VUE_APP_UPLOAD + "file/" + item;
|
|
|
|
|
-
|
|
|
|
|
- arr.push(item);
|
|
|
|
|
- });
|
|
|
|
|
- res.Data.outpatientElectronicmedicalrecord.image1 = arr;
|
|
|
|
|
- } else {
|
|
|
|
|
- this.patiensMsg.outpatientElectronicmedicalrecord.image1 = [];
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.patiensMsg.outpatientElectronicmedicalrecord.image1 = formatPicture(this.patiensMsg.outpatientElectronicmedicalrecord.image1);
|
|
|
// if (!this.patiensMsg.maindiagnosis.disid) {
|
|
// if (!this.patiensMsg.maindiagnosis.disid) {
|
|
|
// this.$message.warning("请先提交一条诊断信息");
|
|
// this.$message.warning("请先提交一条诊断信息");
|
|
|
// this.$router.replace({
|
|
// this.$router.replace({
|
|
@@ -3140,6 +3171,22 @@ export default {
|
|
|
// }
|
|
// }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ async openTongueAndFaceAnalysis() {
|
|
|
|
|
+ if (!this.tongueAndFaceAnalysis) await this.getPatientBasisTongueAndFaceAnalysis()
|
|
|
|
|
+ if (this.tongueAndFaceAnalysis) this.showTongueAnalysis = true;
|
|
|
|
|
+ },
|
|
|
|
|
+ // 获取病人 舌面象数据
|
|
|
|
|
+ async getPatientBasisTongueAndFaceAnalysis() {
|
|
|
|
|
+ this.tongueAndFaceLoading = true;
|
|
|
|
|
+ try {
|
|
|
|
|
+ let res = await getTongueAndFaceAnalysis({
|
|
|
|
|
+ recordsId: this.getPatiensInfo ? this.getPatiensInfo.pid : ""
|
|
|
|
|
+ // recordsId: '8ed63872-6d1f-4fe6-b170-4d36e677a744',
|
|
|
|
|
+ });
|
|
|
|
|
+ this.tongueAndFaceAnalysis = res.Data && (res.Data.tongueAnalysis.结果 || res.Data.faceAnalysis.结果) ? res.Data : null;
|
|
|
|
|
+ } catch (e) {}
|
|
|
|
|
+ this.tongueAndFaceLoading = false;
|
|
|
|
|
+ },
|
|
|
// 获取处方预览数据
|
|
// 获取处方预览数据
|
|
|
async _getRecipePriview(zhongyao, zhongchengyao, technology) {
|
|
async _getRecipePriview(zhongyao, zhongchengyao, technology) {
|
|
|
const loading = this.$loading({
|
|
const loading = this.$loading({
|
|
@@ -4078,6 +4125,7 @@ export default {
|
|
|
this.showTestCase = false;
|
|
this.showTestCase = false;
|
|
|
this.showDialog = false;
|
|
this.showDialog = false;
|
|
|
this.showPresc = false;
|
|
this.showPresc = false;
|
|
|
|
|
+ this.showUnifyPresc = false;
|
|
|
loading.close();
|
|
loading.close();
|
|
|
}
|
|
}
|
|
|
} else if (this.container_i == 2) {
|
|
} else if (this.container_i == 2) {
|