|  |  |  | @ -747,6 +747,82 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           </div> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-collapse-item> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         <el-collapse-item title="参数设置" name="2" | 
			
		
	
		
			
				
					|  |  |  |  |                           style="font-size: 19px; | 
			
		
	
		
			
				
					|  |  |  |  |           margin-left: 25px; | 
			
		
	
		
			
				
					|  |  |  |  |           font-weight: bold;"> | 
			
		
	
		
			
				
					|  |  |  |  |           <div style="width: 96%;margin: 0 auto"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-row :gutter="20"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="流通计量层级标识:" prop="distributeLevelDi" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-select v-model="editQuery.distributeLevelDi" size="small" style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                            @change="distributeLevelDiChange" | 
			
		
	
		
			
				
					|  |  |  |  |                            clearable | 
			
		
	
		
			
				
					|  |  |  |  |                            placeholder="请选择流通计量层级标识"> | 
			
		
	
		
			
				
					|  |  |  |  |                   <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                     v-for="item in detailList" | 
			
		
	
		
			
				
					|  |  |  |  |                     :key="item.nameCode" | 
			
		
	
		
			
				
					|  |  |  |  |                     :value="item.nameCode" | 
			
		
	
		
			
				
					|  |  |  |  |                     :label="item.nameCode"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: left">{{ item.nameCode }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: right; color: #8492a6; font-size: 13px">{{ item.packLevel }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                   </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="使用计量层级标识:" prop="useLevelDi" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-select v-model="editQuery.useLevelDi" size="small" style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                            @change="useLevelDiChange" | 
			
		
	
		
			
				
					|  |  |  |  |                            clearable | 
			
		
	
		
			
				
					|  |  |  |  |                            placeholder="请选择流通计量层级标识"> | 
			
		
	
		
			
				
					|  |  |  |  |                   <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                     v-for="item in detailList" | 
			
		
	
		
			
				
					|  |  |  |  |                     :key="item.nameCode" | 
			
		
	
		
			
				
					|  |  |  |  |                     :value="item.nameCode" | 
			
		
	
		
			
				
					|  |  |  |  |                     :label="item.nameCode"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: left">{{ item.nameCode }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: right; color: #8492a6; font-size: 13px">{{ item.packLevel }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                   </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="流通计量层级单位:" prop="distributeLevelUnit" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-input style="width: 90%" size="small" placeholder="请输入流通计量层级单位" | 
			
		
	
		
			
				
					|  |  |  |  |                           disabled | 
			
		
	
		
			
				
					|  |  |  |  |                           v-model="editQuery.distributeLevelUnit" | 
			
		
	
		
			
				
					|  |  |  |  |                 ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="使用计量层级标识:" prop="useLevelUnit" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-input style="width: 90%" size="small" placeholder="请输入使用计量层级标识" | 
			
		
	
		
			
				
					|  |  |  |  |                           disabled | 
			
		
	
		
			
				
					|  |  |  |  |                           v-model.trim="editQuery.useLevelUnit" | 
			
		
	
		
			
				
					|  |  |  |  |                 ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="流通时含计量单元数量:" prop="distributeLevelCount" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-input style="width: 90%" size="small" placeholder="请输入流通时包含计量单元的数量" | 
			
		
	
		
			
				
					|  |  |  |  |                           v-model.trim="editQuery.distributeLevelCount" | 
			
		
	
		
			
				
					|  |  |  |  |                 ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="使用时含计量单元数量:" prop="useLeverCount" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-input style="width: 90%" size="small" placeholder="请输入使用时包含计量单元的数量" | 
			
		
	
		
			
				
					|  |  |  |  |                           v-model.trim="editQuery.useLeverCount" | 
			
		
	
		
			
				
					|  |  |  |  |                 ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           </el-row> | 
			
		
	
		
			
				
					|  |  |  |  |           </div> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-collapse-item> | 
			
		
	
		
			
				
					|  |  |  |  |       </el-collapse> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -843,7 +919,9 @@ import {getSupComapnys} from "@/api/purchase/supCompany"; | 
			
		
	
		
			
				
					|  |  |  |  | import {getHslbs} from "@/api/thrsys/thrHsfl"; | 
			
		
	
		
			
				
					|  |  |  |  | import {filterClassify} from "@/api/purchase/classifyCode" | 
			
		
	
		
			
				
					|  |  |  |  | import selectmedicalSuppliesDialog from "./selectmedicalSuppliesDialog" | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | import { | 
			
		
	
		
			
				
					|  |  |  |  |  calculateDistCount,calculateUseCount | 
			
		
	
		
			
				
					|  |  |  |  | } from '@/api/basic/product/drugUdiinfos' | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | export default { | 
			
		
	
		
			
				
					|  |  |  |  |   name: "productEdit", | 
			
		
	
	
		
			
				
					|  |  |  | @ -935,6 +1013,24 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |     this.classifySearch("") | 
			
		
	
		
			
				
					|  |  |  |  |   }, | 
			
		
	
		
			
				
					|  |  |  |  |   methods: { | 
			
		
	
		
			
				
					|  |  |  |  |     distributeLevelDiChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |       const matchingItem = this.detailList.find(item => item.nameCode == val); | 
			
		
	
		
			
				
					|  |  |  |  |       if (matchingItem) { | 
			
		
	
		
			
				
					|  |  |  |  |         this.editQuery.distributeLevelUnit = matchingItem.packUnit; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       calculateDistCount(matchingItem).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.editQuery.distributeLevelCount  =  res.data.distributeLevelCount | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     useLevelDiChange(val) { | 
			
		
	
		
			
				
					|  |  |  |  |       const matchingItem = this.detailList.find(item => item.nameCode == val); | 
			
		
	
		
			
				
					|  |  |  |  |       if (matchingItem) { | 
			
		
	
		
			
				
					|  |  |  |  |         this.editQuery.useLevelUnit = matchingItem.packUnit; | 
			
		
	
		
			
				
					|  |  |  |  |       } | 
			
		
	
		
			
				
					|  |  |  |  |       calculateUseCount(matchingItem).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |         this.editQuery.useLeverCount  =  res.data.useLeverCount | 
			
		
	
		
			
				
					|  |  |  |  |       }) | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     classifyChange() { | 
			
		
	
		
			
				
					|  |  |  |  |       this.classifyChange(this.editQuery.flbm) | 
			
		
	
		
			
				
					|  |  |  |  |       let item = this.classifyList.find(item => item.code == this.editQuery.flbm) | 
			
		
	
	
		
			
				
					|  |  |  | 
 |