diff --git a/src/api/basic/product/udiRelevance.js b/src/api/basic/product/udiRelevance.js index ceef097f..13727978 100644 --- a/src/api/basic/product/udiRelevance.js +++ b/src/api/basic/product/udiRelevance.js @@ -226,4 +226,12 @@ export function getYbHcflDetail(query) { }); } +export function getYbDrugDetail(query) { + return axios({ + url: "/udi/udirel/ybDrugDetail", + method: "post", + data: query + }); +} + diff --git a/src/views/basic/product/drug/drugAdd.vue b/src/views/basic/product/drug/drugAdd.vue index d228e800..4697be11 100644 --- a/src/views/basic/product/drug/drugAdd.vue +++ b/src/views/basic/product/drug/drugAdd.vue @@ -109,7 +109,7 @@ @click.native="rowChange(scope.$index,scope.row)" >编辑 - + @@ -547,7 +547,7 @@ import { } from '@/api/basic/product/drugUdiinfos' import { - getYbHcflDetail, removeRl, thirdSysDetail + getYbDrugDetail, removeRl, thirdSysDetail } from '@/api/basic/product/udiRelevance' import {filterClassify} from '@/api/purchase/classifyCode' import {filterByUuid} from '@/api/basic/product/udiInfo' @@ -590,7 +590,7 @@ export default { components: {selectChargesProjectDialog, chooseHouseDrug}, data() { return { - ybHcflDetail: {}, + ybDrugDetail: {}, productData: {}, newProductData: { cpmctymc: null, @@ -697,24 +697,43 @@ export default { this.classifyList = [] }) }, - getYbHcData() { + getYbDrugData() { let query = { - specificationCode: this.newProductData.ybbm + goodsCode: this.newProductData.ybbm } - getYbHcflDetail(query).then((response) => { + getYbDrugDetail(query).then((response) => { if (response.code == 20000) { - this.ybHcflDetail = response.data - this.newProductData.catalogname1 = this.ybHcflDetail.catalogname1 - this.newProductData.catalogname2 = this.ybHcflDetail.catalogname2 - this.newProductData.catalogname3 = this.ybHcflDetail.catalogname3 - this.newProductData.matrial = this.ybHcflDetail.matrial + this.ybDrugDetail = response.data + //对照关系 + this.newProductData.prepnSpec = this.ybDrugDetail.realityMedicinemodel + this.newProductData.zczbhhzbapzbh = this.ybDrugDetail.approvalCode + this.newProductData.cpmctymc = this.ybDrugDetail.registeredProductName + this.newProductData.spmc = this.ybDrugDetail.registeredProductName + this.newProductData.bzgg = this.ybDrugDetail.registeredOutlook + this.newProductData.matrial = this.ybDrugDetail.materialName + this.newProductData.packMatrial = this.ybDrugDetail.materialName + this.newProductData.packUnit = this.ybDrugDetail.unit + this.newProductData.bhxjsl = this.ybDrugDetail.factor + this.newProductData.manufactory = this.ybDrugDetail.listingHolder + this.newProductData.prepnUnit = this.ybDrugDetail.minUnit + + if (this.ybDrugDetail.productInsuranceType != "" && this.ybDrugDetail.productInsuranceType != null){ + if ("甲" == this.ybDrugDetail.productInsuranceType) { + this.newProductData.medicareType = 1 + } else if ("乙" == this.ybDrugDetail.productInsuranceType) { + this.newProductData.medicareType = 2 + } else if ("丙" == this.ybDrugDetail.productInsuranceType) { + this.newProductData.medicareType = 3 + } else { + this.newProductData.medicareType = null + } + console.log( this.newProductData.medicareType) + + } + this.$forceUpdate() } else { - this.newProductData.catalogname1 = '' - this.newProductData.catalogname2 = '' - this.newProductData.catalogname3 = '' - this.newProductData.matrial = '' - this.$forceUpdate() + // this.$forceUpdate() } }).catch(() => { })