|  |  | @ -132,7 +132,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-form-item label="医保编码:" prop="ybbm"> |  |  |  |               <el-form-item label="医保编码:" prop="ybbm"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-input style="width: 90%" size="small" placeholder="请输入医保编码" |  |  |  |                 <el-input style="width: 90%" size="small" placeholder="请输入医保编码" | 
			
		
	
		
		
			
				
					
					|  |  |  |                           v-model.trim="newProductData.ybbm" |  |  |  |                           v-model.trim="newProductData.ybbm" | 
			
		
	
		
		
			
				
					
					|  |  |  |                           v-debounce-input:500ms="getYbHcData" |  |  |  |                           v-debounce-input:500ms="getYbDrugData" | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 ></el-input> |  |  |  |                 ></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |               </el-form-item> |  |  |  |               </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-col> |  |  |  |             </el-col> | 
			
		
	
	
		
		
			
				
					|  |  | @ -547,7 +547,7 @@ import { | 
			
		
	
		
		
			
				
					
					|  |  |  | } from '@/api/basic/product/drugUdiinfos' |  |  |  | } from '@/api/basic/product/drugUdiinfos' | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import { |  |  |  | import { | 
			
		
	
		
		
			
				
					
					|  |  |  |   getYbHcflDetail, removeRl, thirdSysDetail |  |  |  |   getYbDrugDetail, removeRl, thirdSysDetail | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | } from '@/api/basic/product/udiRelevance' |  |  |  | } from '@/api/basic/product/udiRelevance' | 
			
		
	
		
		
			
				
					
					|  |  |  | import {filterClassify} from '@/api/purchase/classifyCode' |  |  |  | import {filterClassify} from '@/api/purchase/classifyCode' | 
			
		
	
		
		
			
				
					
					|  |  |  | import {filterByUuid} from '@/api/basic/product/udiInfo' |  |  |  | import {filterByUuid} from '@/api/basic/product/udiInfo' | 
			
		
	
	
		
		
			
				
					|  |  | @ -590,7 +590,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |   components: {selectChargesProjectDialog, chooseHouseDrug}, |  |  |  |   components: {selectChargesProjectDialog, chooseHouseDrug}, | 
			
		
	
		
		
			
				
					
					|  |  |  |   data() { |  |  |  |   data() { | 
			
		
	
		
		
			
				
					
					|  |  |  |     return { |  |  |  |     return { | 
			
		
	
		
		
			
				
					
					|  |  |  |       ybHcflDetail: {}, |  |  |  |       ybDrugDetail: {}, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       productData: {}, |  |  |  |       productData: {}, | 
			
		
	
		
		
			
				
					
					|  |  |  |       newProductData: { |  |  |  |       newProductData: { | 
			
		
	
		
		
			
				
					
					|  |  |  |         cpmctymc: null, |  |  |  |         cpmctymc: null, | 
			
		
	
	
		
		
			
				
					|  |  | @ -697,24 +697,43 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.classifyList = [] |  |  |  |           this.classifyList = [] | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     getYbHcData() { |  |  |  |     getYbDrugData() { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       let query = { |  |  |  |       let query = { | 
			
		
	
		
		
			
				
					
					|  |  |  |         specificationCode: this.newProductData.ybbm |  |  |  |         goodsCode: this.newProductData.ybbm | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       getYbHcflDetail(query).then((response) => { |  |  |  |       getYbDrugDetail(query).then((response) => { | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         if (response.code == 20000) { |  |  |  |         if (response.code == 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.ybHcflDetail = response.data |  |  |  |           this.ybDrugDetail = response.data | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.newProductData.catalogname1 = this.ybHcflDetail.catalogname1 |  |  |  |           //对照关系 | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.newProductData.catalogname2 = this.ybHcflDetail.catalogname2 |  |  |  |           this.newProductData.prepnSpec  = this.ybDrugDetail.realityMedicinemodel | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.newProductData.catalogname3 = this.ybHcflDetail.catalogname3 |  |  |  |           this.newProductData.zczbhhzbapzbh  = this.ybDrugDetail.approvalCode | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.newProductData.matrial = this.ybHcflDetail.matrial |  |  |  |           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() |  |  |  |           this.$forceUpdate() | 
			
		
	
		
		
			
				
					
					|  |  |  |         } else { |  |  |  |         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.newProductData.catalogname1 = '' |  |  |  |           // this.$forceUpdate() | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           this.newProductData.catalogname2 = '' |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.newProductData.catalogname3 = '' |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.newProductData.matrial = '' |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.$forceUpdate() |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |       }).catch(() => { |  |  |  |       }).catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |       }) |  |  |  |       }) | 
			
		
	
	
		
		
			
				
					|  |  | 
 |