|
@@ -9,13 +9,13 @@
|
|
|
<div class="value">
|
|
<div class="value">
|
|
|
<el-popover placement="bottom" width="180" trigger="focus" :close-delay="100">
|
|
<el-popover placement="bottom" width="180" trigger="focus" :close-delay="100">
|
|
|
<el-input
|
|
<el-input
|
|
|
- :class="{invalid: name && (!zy_dise_id || invalid_dis)}"
|
|
|
|
|
|
|
+ :class="{invalid: name && (!diseaseCode || invalid_disease)}"
|
|
|
:size="size"
|
|
:size="size"
|
|
|
slot="reference"
|
|
slot="reference"
|
|
|
:placeholder="key1?key1:'中医病名'"
|
|
:placeholder="key1?key1:'中医病名'"
|
|
|
v-model="key1"
|
|
v-model="key1"
|
|
|
ref="zybm"
|
|
ref="zybm"
|
|
|
- @input="getNamemedData(key1)"
|
|
|
|
|
|
|
+ @input="getDiseaseList(key1)"
|
|
|
@keydown.enter.native="handleEnter('bm')"
|
|
@keydown.enter.native="handleEnter('bm')"
|
|
|
>
|
|
>
|
|
|
<div slot="suffix" class="suffix">
|
|
<div slot="suffix" class="suffix">
|
|
@@ -25,13 +25,13 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
<ul class="option-list">
|
|
<ul class="option-list">
|
|
|
<li
|
|
<li
|
|
|
- v-for="(item,index) in cDiseaseNameL"
|
|
|
|
|
- :key="index"
|
|
|
|
|
|
|
+ v-for="item in diseaseList"
|
|
|
|
|
+ :key="item.$uid"
|
|
|
:class="{
|
|
:class="{
|
|
|
- active: zy_dise_id === item.disid
|
|
|
|
|
|
|
+ active: diseaseCode === item.$code
|
|
|
}"
|
|
}"
|
|
|
@click="handleBm(item)"
|
|
@click="handleBm(item)"
|
|
|
- >{{ item.disname }}</li>
|
|
|
|
|
|
|
+ >{{ item.$name }}</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</el-popover>
|
|
</el-popover>
|
|
|
</div>
|
|
</div>
|
|
@@ -50,7 +50,7 @@
|
|
|
:placeholder="key2?key2:'中医证型'"
|
|
:placeholder="key2?key2:'中医证型'"
|
|
|
v-model="key2"
|
|
v-model="key2"
|
|
|
ref="zhengxing"
|
|
ref="zhengxing"
|
|
|
- @input="getCardType(key2)"
|
|
|
|
|
|
|
+ @input="getSymptomList(key2)"
|
|
|
@keydown.enter.native="handleEnter('zx')"
|
|
@keydown.enter.native="handleEnter('zx')"
|
|
|
>
|
|
>
|
|
|
<div slot="suffix" class="suffix">
|
|
<div slot="suffix" class="suffix">
|
|
@@ -60,14 +60,14 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
<ul class="option-list">
|
|
<ul class="option-list">
|
|
|
<li
|
|
<li
|
|
|
- v-for="(item,index) in cCardTypeL"
|
|
|
|
|
- :key="index"
|
|
|
|
|
|
|
+ v-for="item in symptomList"
|
|
|
|
|
+ :key="item.$uid"
|
|
|
:class="{
|
|
:class="{
|
|
|
- active: zhengxingid === item.symid,
|
|
|
|
|
|
|
+ active: zhengxingid === item.$code,
|
|
|
matched: item.isMatched
|
|
matched: item.isMatched
|
|
|
}"
|
|
}"
|
|
|
@click="handleZx(item)"
|
|
@click="handleZx(item)"
|
|
|
- >{{ item.symname }}</li>
|
|
|
|
|
|
|
+ >{{ item.$name }}</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</el-popover>
|
|
</el-popover>
|
|
|
</div>
|
|
</div>
|
|
@@ -82,11 +82,11 @@
|
|
|
<el-popover placement="bottom" width="180" trigger="focus" :close-delay="100" v-model="popoverZF">
|
|
<el-popover placement="bottom" width="180" trigger="focus" :close-delay="100" v-model="popoverZF">
|
|
|
<el-input
|
|
<el-input
|
|
|
:size="size" :class="{invalid: therapy && invalid_therapy}"
|
|
:size="size" :class="{invalid: therapy && invalid_therapy}"
|
|
|
- slot="reference"
|
|
|
|
|
|
|
+ slot="reference" :readonly="therapySearchDisabled"
|
|
|
:placeholder="key3?key3:'中医治法'"
|
|
:placeholder="key3?key3:'中医治法'"
|
|
|
v-model="key3"
|
|
v-model="key3"
|
|
|
ref="zhifa"
|
|
ref="zhifa"
|
|
|
- @input="getTherapy(key3)"
|
|
|
|
|
|
|
+ @input="getTherapyList(key3)"
|
|
|
@keydown.enter.native="handleEnter('zf')"
|
|
@keydown.enter.native="handleEnter('zf')"
|
|
|
>
|
|
>
|
|
|
<div slot="suffix" class="suffix">
|
|
<div slot="suffix" class="suffix">
|
|
@@ -96,14 +96,13 @@
|
|
|
</el-input>
|
|
</el-input>
|
|
|
<ul class="option-list">
|
|
<ul class="option-list">
|
|
|
<li
|
|
<li
|
|
|
- v-for="(item,index) in therapyList"
|
|
|
|
|
- :key="index"
|
|
|
|
|
|
|
+ v-for="item in therapyList"
|
|
|
|
|
+ :key="item.$uid"
|
|
|
:class="{
|
|
:class="{
|
|
|
- active: therapy === item.therapy
|
|
|
|
|
|
|
+ active: therapy === item.$name
|
|
|
}"
|
|
}"
|
|
|
@click="handleZf(item)"
|
|
@click="handleZf(item)"
|
|
|
- >{{ item.therapy }}
|
|
|
|
|
- </li>
|
|
|
|
|
|
|
+ >{{ item.$name }}</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
</el-popover>
|
|
</el-popover>
|
|
|
</div>
|
|
</div>
|
|
@@ -111,22 +110,11 @@
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
-import {
|
|
|
|
|
- getCDiseaseName,
|
|
|
|
|
- getXDiseaseName,
|
|
|
|
|
- getCCardType,
|
|
|
|
|
- getCTherapy,
|
|
|
|
|
-} from "@/api/knowledge.js";
|
|
|
|
|
|
|
+import {getDiseaseListMethod, getSymptomListMethod, getTherapyListMethod} from '@/request/api';
|
|
|
import {addDiagnosisData2} from '@/api/diagnosis.js';
|
|
import {addDiagnosisData2} from '@/api/diagnosis.js';
|
|
|
import { addRecipeFrom } from "@/api/dataAnalysis.js";
|
|
import { addRecipeFrom } from "@/api/dataAnalysis.js";
|
|
|
import { mapGetters } from "vuex";
|
|
import { mapGetters } from "vuex";
|
|
|
-
|
|
|
|
|
-/**
|
|
|
|
|
- * 搜索类型,1为拼音码,2为五笔码,搜索中文时可传空
|
|
|
|
|
- * @param value
|
|
|
|
|
- * @return {'1'|''}
|
|
|
|
|
- */
|
|
|
|
|
-const isPY = (value) => value && /^[A-Za-z]+$/g.test(value) ? '1' : '';
|
|
|
|
|
|
|
+import {findArray} from '@/tool';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
props: {
|
|
props: {
|
|
@@ -151,7 +139,8 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- invalid_dis: false,
|
|
|
|
|
|
|
+ therapySearchDisabled: false,
|
|
|
|
|
+ invalid_disease: false,
|
|
|
invalid_symptom: false,
|
|
invalid_symptom: false,
|
|
|
invalid_therapy: false,
|
|
invalid_therapy: false,
|
|
|
|
|
|
|
@@ -159,6 +148,7 @@ export default {
|
|
|
|
|
|
|
|
name: "", // 病名
|
|
name: "", // 病名
|
|
|
zy_dise_id: "", // 病名id
|
|
zy_dise_id: "", // 病名id
|
|
|
|
|
+ diseaseCode: '', // 病名code
|
|
|
|
|
|
|
|
syndrome: "", // 证型
|
|
syndrome: "", // 证型
|
|
|
zhengxingid: "", // 证型id
|
|
zhengxingid: "", // 证型id
|
|
@@ -166,8 +156,8 @@ export default {
|
|
|
therapy: "", // 治法
|
|
therapy: "", // 治法
|
|
|
therapyCode: '', // 治法
|
|
therapyCode: '', // 治法
|
|
|
|
|
|
|
|
- cDiseaseNameL: [], // 病名列表
|
|
|
|
|
- cCardTypeL: [], // 证型列表
|
|
|
|
|
|
|
+ diseaseList: [], // 病名列表
|
|
|
|
|
+ symptomList: [], // 证型列表
|
|
|
therapyList: [], //治法列表
|
|
therapyList: [], //治法列表
|
|
|
|
|
|
|
|
isInit: false, // 是否根据传入的数据初始化过
|
|
isInit: false, // 是否根据传入的数据初始化过
|
|
@@ -180,16 +170,17 @@ export default {
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- this.getNamemedData();
|
|
|
|
|
- this.getCardType();
|
|
|
|
|
- this.getTherapy();
|
|
|
|
|
|
|
+ this.getDiseaseList();
|
|
|
|
|
+ this.getSymptomList();
|
|
|
|
|
+ this.getTherapyList();
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
|
key1: {
|
|
key1: {
|
|
|
handler: function() {
|
|
handler: function() {
|
|
|
if (this.key1 == "") {
|
|
if (this.key1 == "") {
|
|
|
- this.invalid_dis = false;
|
|
|
|
|
|
|
+ this.invalid_disease = false;
|
|
|
this.zy_dise_id = "";
|
|
this.zy_dise_id = "";
|
|
|
|
|
+ this.diseaseCode = '';
|
|
|
this.name = "";
|
|
this.name = "";
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -200,7 +191,7 @@ export default {
|
|
|
this.invalid_symptom = false;
|
|
this.invalid_symptom = false;
|
|
|
this.syndrome = "";
|
|
this.syndrome = "";
|
|
|
this.zhengxingid = "";
|
|
this.zhengxingid = "";
|
|
|
- }
|
|
|
|
|
|
|
+ } else if (this.therapySearchDisabled) this.getTherapiesBySymptom();
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
key3: {
|
|
key3: {
|
|
@@ -222,6 +213,7 @@ export default {
|
|
|
// 中医诊断
|
|
// 中医诊断
|
|
|
this.name = this.patiensMsg.maindiagnosis.namemedicine || "";
|
|
this.name = this.patiensMsg.maindiagnosis.namemedicine || "";
|
|
|
this.zy_dise_id = this.patiensMsg.maindiagnosis.disid || "";
|
|
this.zy_dise_id = this.patiensMsg.maindiagnosis.disid || "";
|
|
|
|
|
+ this.diseaseCode = this.patiensMsg.maindiagnosis.disCode || '';
|
|
|
// 证形
|
|
// 证形
|
|
|
this.syndrome = this.patiensMsg.maindiagnosis.syndrometypes || "";
|
|
this.syndrome = this.patiensMsg.maindiagnosis.syndrometypes || "";
|
|
|
this.zhengxingid = this.patiensMsg.maindiagnosis.symptomid || "";
|
|
this.zhengxingid = this.patiensMsg.maindiagnosis.symptomid || "";
|
|
@@ -231,9 +223,9 @@ export default {
|
|
|
this.key1 = this.name || "";
|
|
this.key1 = this.name || "";
|
|
|
this.key2 = this.syndrome || "";
|
|
this.key2 = this.syndrome || "";
|
|
|
this.key3 = this.therapy || '';
|
|
this.key3 = this.therapy || '';
|
|
|
- if (this.key1) this.getNamemedData(this.key1);
|
|
|
|
|
- if (this.key2) this.getCardType(this.key2);
|
|
|
|
|
- if (this.key3) this.getTherapy(this.key3);
|
|
|
|
|
|
|
+ if (this.key1) this.getDiseaseList(this.key1);
|
|
|
|
|
+ if (this.key2) this.getSymptomList(this.key2);
|
|
|
|
|
+ if (this.key3) this.getTherapyList(this.key3);
|
|
|
this.isInit = true;
|
|
this.isInit = true;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -247,17 +239,19 @@ export default {
|
|
|
* @param {'bm'|'zx'|'zf'} type
|
|
* @param {'bm'|'zx'|'zf'} type
|
|
|
*/
|
|
*/
|
|
|
handleEnter(type) {
|
|
handleEnter(type) {
|
|
|
- if (type === 'bm' && this.cDiseaseNameL.length) this.handleBm(this.cDiseaseNameL[0]);
|
|
|
|
|
- else if (type === 'zx' && this.cCardTypeL.length) this.handleZx(this.cCardTypeL[0]);
|
|
|
|
|
|
|
+ if (type === 'bm' && this.diseaseList.length) this.handleBm(this.diseaseList[0]);
|
|
|
|
|
+ else if (type === 'zx' && this.symptomList.length) this.handleZx(this.symptomList[0]);
|
|
|
else if (type === 'zf' && this.therapyList.length) this.handleZf(this.therapyList[0]);
|
|
else if (type === 'zf' && this.therapyList.length) this.handleZf(this.therapyList[0]);
|
|
|
},
|
|
},
|
|
|
// 获取中医诊断信息
|
|
// 获取中医诊断信息
|
|
|
getDiamsg() {
|
|
getDiamsg() {
|
|
|
this.saveDiagnosisData();
|
|
this.saveDiagnosisData();
|
|
|
return {
|
|
return {
|
|
|
|
|
+ disCode: this.diseaseCode,
|
|
|
|
|
+ symptomCode: this.zhengxingid,
|
|
|
|
|
+ therapyCode: this.therapyCode,
|
|
|
disid: this.zy_dise_id,
|
|
disid: this.zy_dise_id,
|
|
|
symptomid: this.zhengxingid,
|
|
symptomid: this.zhengxingid,
|
|
|
- therapyCode: this.therapyCode,
|
|
|
|
|
treatment: this.therapy
|
|
treatment: this.therapy
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
@@ -272,7 +266,9 @@ export default {
|
|
|
// 病名及id
|
|
// 病名及id
|
|
|
namemedicine: this.name,
|
|
namemedicine: this.name,
|
|
|
disid: this.zy_dise_id,
|
|
disid: this.zy_dise_id,
|
|
|
|
|
+ disCode: this.diseaseCode,
|
|
|
// 证型及id
|
|
// 证型及id
|
|
|
|
|
+ symptomCode: this.zhengxingid,
|
|
|
symptomid: this.zhengxingid,
|
|
symptomid: this.zhengxingid,
|
|
|
syndrometypes: this.syndrome,
|
|
syndrometypes: this.syndrome,
|
|
|
// 治法
|
|
// 治法
|
|
@@ -291,54 +287,52 @@ export default {
|
|
|
this.key1 = this.name || "";
|
|
this.key1 = this.name || "";
|
|
|
this.key2 = this.syndrome || "";
|
|
this.key2 = this.syndrome || "";
|
|
|
this.key3 = this.therapy || '';
|
|
this.key3 = this.therapy || '';
|
|
|
- if (this.key1) this.getNamemedData(this.key1);
|
|
|
|
|
- if (this.key2) this.getCardType(this.key2);
|
|
|
|
|
- if (this.key3) this.getTherapy(this.key3);
|
|
|
|
|
|
|
+ if (this.key1) this.getDiseaseList(this.key1);
|
|
|
|
|
+ if (this.key2) this.getSymptomList(this.key2);
|
|
|
|
|
+ if (this.key3) this.getTherapyList(this.key3);
|
|
|
|
|
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
},
|
|
},
|
|
|
// 病名选中
|
|
// 病名选中
|
|
|
- handleBm(item) {
|
|
|
|
|
- this.invalid_dis = false
|
|
|
|
|
|
|
+ async handleBm(item) {
|
|
|
|
|
+ this.invalid_disease = false;
|
|
|
this.zy_dise_id = item.disid;
|
|
this.zy_dise_id = item.disid;
|
|
|
- this.name = item.disname;
|
|
|
|
|
- this.key1 = item.disname;
|
|
|
|
|
|
|
+ this.diseaseCode = item.$code;
|
|
|
|
|
+ this.name = item.$name;
|
|
|
|
|
+ this.key1 = item.$name;
|
|
|
this.$refs.zybm.blur();
|
|
this.$refs.zybm.blur();
|
|
|
|
|
|
|
|
this.clearZx();
|
|
this.clearZx();
|
|
|
|
|
|
|
|
if (this.name === "") return;
|
|
if (this.name === "") return;
|
|
|
- // this.getCCardType(this.zy_dise_id);
|
|
|
|
|
- this.getCardType();
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.$refs.zhengxing.focus();
|
|
|
|
|
- }, 0);
|
|
|
|
|
|
|
+ this.$refs.zhengxing.focus();
|
|
|
|
|
+ await this.getSymptomList();
|
|
|
},
|
|
},
|
|
|
// 清空病名
|
|
// 清空病名
|
|
|
clearBm() {
|
|
clearBm() {
|
|
|
this.name = "";
|
|
this.name = "";
|
|
|
this.zy_dise_id = "";
|
|
this.zy_dise_id = "";
|
|
|
|
|
+ this.diseaseCode = '';
|
|
|
this.key1 = "";
|
|
this.key1 = "";
|
|
|
this.clearZx();
|
|
this.clearZx();
|
|
|
},
|
|
},
|
|
|
// 证型选中\
|
|
// 证型选中\
|
|
|
- handleZx(item) {
|
|
|
|
|
- this.invalid_dis = false
|
|
|
|
|
- this.syndrome = item.symname;
|
|
|
|
|
- this.key2 = item.symname;
|
|
|
|
|
- this.zhengxingid = item.symid;
|
|
|
|
|
|
|
+ async handleZx(item) {
|
|
|
|
|
+ this.invalid_disease = false;
|
|
|
|
|
+ this.syndrome = item.$name;
|
|
|
|
|
+ this.key2 = item.$name;
|
|
|
|
|
+ this.zhengxingid = item.$code;
|
|
|
this.$refs.zhengxing.blur();
|
|
this.$refs.zhengxing.blur();
|
|
|
|
|
|
|
|
this.clearZf();
|
|
this.clearZf();
|
|
|
- this.getTherapy();
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.$refs.zhifa.focus();
|
|
|
|
|
- }, 0);
|
|
|
|
|
|
|
+ this.$refs.zhifa.focus();
|
|
|
|
|
+ await this.getTherapiesBySymptom();
|
|
|
|
|
+ await this.getTherapyList();
|
|
|
},
|
|
},
|
|
|
handleZf(item) {
|
|
handleZf(item) {
|
|
|
this.invalid_therapy = false;
|
|
this.invalid_therapy = false;
|
|
|
- this.therapy = item.therapy;
|
|
|
|
|
- this.therapyCode = item.therapyCode;
|
|
|
|
|
|
|
+ this.therapy = item.$name;
|
|
|
|
|
+ this.therapyCode = item.$code;
|
|
|
this.key3 = this.therapy;
|
|
this.key3 = this.therapy;
|
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
|
this.$refs.zhifa.blur();
|
|
this.$refs.zhifa.blur();
|
|
@@ -359,40 +353,42 @@ export default {
|
|
|
this.key3 = '';
|
|
this.key3 = '';
|
|
|
},
|
|
},
|
|
|
//获取病名数据
|
|
//获取病名数据
|
|
|
- async getNamemedData(keyword = '') {
|
|
|
|
|
- const res = await getCDiseaseName({
|
|
|
|
|
- pageid: 1,
|
|
|
|
|
- pagesize: 9999,
|
|
|
|
|
- keyword,
|
|
|
|
|
- serchtype: isPY(keyword),
|
|
|
|
|
- }).catch(() => ({code: -1}));
|
|
|
|
|
- this.cDiseaseNameL = res.code === 0 ? res.data.diseases : [];
|
|
|
|
|
|
|
+ async getDiseaseList(keyword = '') {
|
|
|
|
|
+ const {total, list} = await getDiseaseListMethod(1, 9999, {keyword});
|
|
|
|
|
+ this.diseaseList = list;
|
|
|
},
|
|
},
|
|
|
// 获取证型数据
|
|
// 获取证型数据
|
|
|
- async getCardType(keyword = '') {
|
|
|
|
|
- const res = await getCCardType({
|
|
|
|
|
- pageid: 1,
|
|
|
|
|
- pagesize: 9999,
|
|
|
|
|
|
|
+ async getSymptomList(keyword = '') {
|
|
|
|
|
+ const {total, list} = await getSymptomListMethod(1, 9999, {
|
|
|
keyword,
|
|
keyword,
|
|
|
- serchtype: isPY(keyword),
|
|
|
|
|
- disid: this.zy_dise_id
|
|
|
|
|
- }).catch(() => ({code: -1}));
|
|
|
|
|
- this.cCardTypeL = res.code === 0 ? res.data.sysptoms : [];
|
|
|
|
|
|
|
+ disid: this.zy_dise_id,
|
|
|
|
|
+ disCode: this.diseaseCode,
|
|
|
|
|
+ })
|
|
|
|
|
+ this.symptomList = list;
|
|
|
|
|
+ await this.getTherapiesBySymptom();
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 获取治法
|
|
* 获取治法
|
|
|
* @param keyword
|
|
* @param keyword
|
|
|
* @return {Promise<void>}
|
|
* @return {Promise<void>}
|
|
|
*/
|
|
*/
|
|
|
- async getTherapy(keyword) {
|
|
|
|
|
- const res = await getCTherapy({
|
|
|
|
|
- pageid: 1,
|
|
|
|
|
- pagesize: 9999,
|
|
|
|
|
- serchtype: isPY(keyword),
|
|
|
|
|
- name: keyword,
|
|
|
|
|
|
|
+ async getTherapyList(keyword) {
|
|
|
|
|
+ if (this.therapySearchDisabled) return;
|
|
|
|
|
+ const {total, list} = await getTherapyListMethod(1, 9999, {
|
|
|
|
|
+ keyword,
|
|
|
symid: this.zhengxingid,
|
|
symid: this.zhengxingid,
|
|
|
- }).catch(() => ({code: -1}));
|
|
|
|
|
- this.therapyList = res.code === 0 ? res.data : [];
|
|
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ if (error.isAxiosError && error.message === `Request failed with status code 404`) {
|
|
|
|
|
+ this.therapySearchDisabled = true;
|
|
|
|
|
+ this.getTherapiesBySymptom();
|
|
|
|
|
+ }
|
|
|
|
|
+ throw error;
|
|
|
|
|
+ });
|
|
|
|
|
+ this.therapyList = list;
|
|
|
|
|
+ },
|
|
|
|
|
+ async getTherapiesBySymptom() {
|
|
|
|
|
+ const option = findArray(this.symptomList, ['$code', this.zhengxingid]);
|
|
|
|
|
+ if (option) this.therapyList = option.therapies;
|
|
|
},
|
|
},
|
|
|
// 新增处方来源统计
|
|
// 新增处方来源统计
|
|
|
async addRecipeFrom() {
|
|
async addRecipeFrom() {
|
|
@@ -406,7 +402,9 @@ export default {
|
|
|
let params = {
|
|
let params = {
|
|
|
mainDiagnosis: {
|
|
mainDiagnosis: {
|
|
|
disid: this.zy_dise_id,
|
|
disid: this.zy_dise_id,
|
|
|
|
|
+ disCode: this.diseaseCode,
|
|
|
symptomid: this.zhengxingid,
|
|
symptomid: this.zhengxingid,
|
|
|
|
|
+ symptomCode: this.zhengxingid,
|
|
|
therapyCode: this.therapyCode,
|
|
therapyCode: this.therapyCode,
|
|
|
treatment: this.therapy,
|
|
treatment: this.therapy,
|
|
|
maindiagnosis: "0",
|
|
maindiagnosis: "0",
|
|
@@ -422,11 +420,11 @@ export default {
|
|
|
if (!this.zy_dise_id) throw {message: `当前疾病编码与医保不匹配,请更换中医病名等诊断信息!`};
|
|
if (!this.zy_dise_id) throw {message: `当前疾病编码与医保不匹配,请更换中医病名等诊断信息!`};
|
|
|
let {mainDiagnosis} = await addDiagnosisData2(params);
|
|
let {mainDiagnosis} = await addDiagnosisData2(params);
|
|
|
|
|
|
|
|
- this.invalid_dis = !mainDiagnosis.disid;
|
|
|
|
|
|
|
+ this.invalid_disease = !mainDiagnosis.disCode;
|
|
|
this.invalid_symptom = !mainDiagnosis.symptomid;
|
|
this.invalid_symptom = !mainDiagnosis.symptomid;
|
|
|
this.invalid_therapy = !mainDiagnosis.therapyCode;
|
|
this.invalid_therapy = !mainDiagnosis.therapyCode;
|
|
|
const tips = [
|
|
const tips = [
|
|
|
- this.invalid_dis ? `${this.title}病名` : '',
|
|
|
|
|
|
|
+ this.invalid_disease ? `${this.title}病名` : '',
|
|
|
this.invalid_symptom ? `证型` : '',
|
|
this.invalid_symptom ? `证型` : '',
|
|
|
this.invalid_therapy ? `治法` : '',
|
|
this.invalid_therapy ? `治法` : '',
|
|
|
].filter(Boolean).join(',');
|
|
].filter(Boolean).join(',');
|