|
|
|
@ -109,7 +109,7 @@
|
|
|
|
|
@click.native="rowChange(scope.$index,scope.row)"
|
|
|
|
|
>编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--:disabled=" scope.row.id != null"-->
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
@ -132,7 +132,7 @@
|
|
|
|
|
<el-form-item label="医保编码:" prop="ybbm">
|
|
|
|
|
<el-input style="width: 90%" size="small" placeholder="请输入医保编码"
|
|
|
|
|
v-model.trim="newProductData.ybbm"
|
|
|
|
|
v-debounce-input:500ms="getYbHcData"
|
|
|
|
|
v-debounce-input:500ms="getYbDrugData"
|
|
|
|
|
></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -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(() => {
|
|
|
|
|
})
|
|
|
|
|