|
|
@@ -97,7 +97,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div class="bottom">
|
|
|
- <MedicineAccord @length="medicineLength = $event"></MedicineAccord>
|
|
|
+ <MedicineAccord :isPurposeType="isPurposeType" @length="medicineLength = $event"></MedicineAccord>
|
|
|
</div>
|
|
|
<div class="topForm flex-vertical-center-l">
|
|
|
<div class="item flex-vertical-center-l">
|
|
|
@@ -336,17 +336,17 @@ export default {
|
|
|
mounted() {
|
|
|
if (this.$route.query.pid) {
|
|
|
this.getAccordDetail().then(() => {
|
|
|
- if (this.isPurposeType) this.getHospitalCategory().then(() => this.getHospitalDepartment());
|
|
|
+ if (this.isPurposeType) this.getHospitalCategory()
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
async getHospitalCategory() {
|
|
|
this.hospitalCategory = await getHospitalCategory();
|
|
|
+ await this.getHospitalDepartment();
|
|
|
},
|
|
|
async getHospitalDepartment() {
|
|
|
this.hospitalDepartment = await getHospitalDepartment({hospital: this.form.sectCategory || ''});
|
|
|
-
|
|
|
if (!this.hospitalDepartment.find(item => item.id === this.form.sectDept)) this.form.sectDept = '';
|
|
|
},
|
|
|
// 保存按钮点击
|
|
|
@@ -461,6 +461,7 @@ export default {
|
|
|
dose: Number(item1.dose),
|
|
|
drugname: item1.name,
|
|
|
drugid: item1.medid,
|
|
|
+ matid: item1.matid, // 知识库id
|
|
|
origin: item1.originname,
|
|
|
seqn: item1.id,
|
|
|
specification: item1.spec,
|
|
|
@@ -497,6 +498,7 @@ export default {
|
|
|
inventory: item1.instock || item1.inventory, // 库存
|
|
|
key: "",
|
|
|
search_i: index1,
|
|
|
+ matid: item1.matid, // 药品id
|
|
|
medid: item1.drugid || item1.medid, // 药品id
|
|
|
originname: item1.origin || item1.originname // 产地名称
|
|
|
};
|
|
|
@@ -701,6 +703,11 @@ export default {
|
|
|
symptomname: tcmdParams.syndrometypes,
|
|
|
treatment: tcmdParams.treatment
|
|
|
};
|
|
|
+ if (this.isPurposeType) {
|
|
|
+ params.prescriptionDetailVos = params.prescriptionDetailVos.map(item => (item.drugid = null, item));
|
|
|
+ params.pharmacyid = null;
|
|
|
+ params.drugtype = null;
|
|
|
+ }
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: "正在提交",
|