|
@@ -314,6 +314,7 @@
|
|
|
<!-- 右侧按钮 -->
|
|
<!-- 右侧按钮 -->
|
|
|
<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" @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"
|
|
@@ -1070,6 +1071,20 @@
|
|
|
</div>
|
|
</div>
|
|
|
</Popup>
|
|
</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
|
|
@@ -1122,11 +1137,13 @@ 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 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,
|
|
@@ -1173,6 +1190,7 @@ export default {
|
|
|
submitRecipe,
|
|
submitRecipe,
|
|
|
prescription,
|
|
prescription,
|
|
|
UnifyPrescription,
|
|
UnifyPrescription,
|
|
|
|
|
+ TongueAnalysis,
|
|
|
doctorCase,
|
|
doctorCase,
|
|
|
safeDrug,
|
|
safeDrug,
|
|
|
medAdress,
|
|
medAdress,
|
|
@@ -1180,6 +1198,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, // 药品详情
|
|
@@ -1342,6 +1364,7 @@ export default {
|
|
|
|
|
|
|
|
if (this.getPatiensInfo.pid) {
|
|
if (this.getPatiensInfo.pid) {
|
|
|
this.getPatiensBasisM();
|
|
this.getPatiensBasisM();
|
|
|
|
|
+ this.getPatientBasisTongueAndFaceAnalysis();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
@@ -3158,6 +3181,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({
|