|  |  |  | @ -144,106 +144,105 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             </el-table-column> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-table> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <template> | 
			
		
	
		
			
				
					|  |  |  |  |             <p class="form-title2">流通时采用的计量单位设置</p> | 
			
		
	
		
			
				
					|  |  |  |  |           </template> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-row :gutter="20"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="计量单位:" prop="distributeLevel" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-select v-model="newProductData.distributeLevel" size="small" style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                            @change="distributeLevelDiChange" | 
			
		
	
		
			
				
					|  |  |  |  |                            placeholder="请选择计量单位" | 
			
		
	
		
			
				
					|  |  |  |  |                 > | 
			
		
	
		
			
				
					|  |  |  |  |                   <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                     v-for="item in levelUnitList" | 
			
		
	
		
			
				
					|  |  |  |  |                     :key="item.packLevel" | 
			
		
	
		
			
				
					|  |  |  |  |                     :value="item.packLevel" | 
			
		
	
		
			
				
					|  |  |  |  |                     :label="item.packUnit" | 
			
		
	
		
			
				
					|  |  |  |  |                   > | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: left">层级:{{ item.packLevel }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                   </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <template>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <p class="form-title2">流通时采用的计量单位设置</p>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </template>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <el-row :gutter="20">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <el-col :span="11" class="el-col">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              <el-form-item label="计量单位:" prop="distributeLevel" label-width="160px">--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="允许采集的最大层级:" prop="distributeMaxLevel" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-select v-model="newProductData.distributeMaxLevel" size="small" style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                            placeholder="请选择允许采集的最大层级" | 
			
		
	
		
			
				
					|  |  |  |  |                 > | 
			
		
	
		
			
				
					|  |  |  |  |                   <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                     v-for="item in levelUnitList" | 
			
		
	
		
			
				
					|  |  |  |  |                     :key="item.packLevel" | 
			
		
	
		
			
				
					|  |  |  |  |                     :value="item.packLevel" | 
			
		
	
		
			
				
					|  |  |  |  |                     :label="item.packLevel" | 
			
		
	
		
			
				
					|  |  |  |  |                   > | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: left">层级:{{ item.packLevel }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                   </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-row> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-divider></el-divider> | 
			
		
	
		
			
				
					|  |  |  |  |           <template> | 
			
		
	
		
			
				
					|  |  |  |  |             <p class="form-title2">使用时采用的计量单位设置</p> | 
			
		
	
		
			
				
					|  |  |  |  |           </template> | 
			
		
	
		
			
				
					|  |  |  |  |           <el-row :gutter="20"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="计量单位:" prop="useLevel" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                <el-select v-model="newProductData.distributeLevel" size="small" style="width: 90%"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                           @change="distributeLevelDiChange"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                           placeholder="请选择计量单位"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  <el-option--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    v-for="item in levelUnitList"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :key="item.packLevel"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :value="item.packLevel"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :label="item.packUnit"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    <span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    <span style="float: left">层级:{{ item.packLevel }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  </el-option>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                </el-select>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-select v-model="newProductData.useLevel" size="small" style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                            clearable | 
			
		
	
		
			
				
					|  |  |  |  |                            @change="useLevelDiChange" | 
			
		
	
		
			
				
					|  |  |  |  |                            placeholder="请选择计量单位" | 
			
		
	
		
			
				
					|  |  |  |  |                 > | 
			
		
	
		
			
				
					|  |  |  |  |                   <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                     v-for="item in levelUnitList" | 
			
		
	
		
			
				
					|  |  |  |  |                     :key="item.packLevel" | 
			
		
	
		
			
				
					|  |  |  |  |                     :value="item.packLevel" | 
			
		
	
		
			
				
					|  |  |  |  |                     :label="item.packUnit" | 
			
		
	
		
			
				
					|  |  |  |  |                   > | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: left">层级:{{ item.packLevel }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                   </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <el-col :span="11" class="el-col">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              <el-form-item label="允许采集的最大层级:" prop="distributeMaxLevel" label-width="160px">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                <el-select v-model="newProductData.distributeMaxLevel" size="small" style="width: 90%"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                           placeholder="请选择允许采集的最大层级"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  <el-option--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    v-for="item in levelUnitList"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :key="item.packLevel"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :value="item.packLevel"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :label="item.packLevel"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    <span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    <span style="float: left">层级:{{ item.packLevel }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  </el-option>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                </el-select>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </el-row>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <el-divider></el-divider>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <template>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <p class="form-title2">使用时采用的计量单位设置</p>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </template>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <el-row :gutter="20">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <el-col :span="11" class="el-col">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              <el-form-item label="计量单位:" prop="useLevel" label-width="160px">--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="允许采集的最大层级:" prop="useMaxLevel" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-select v-model="newProductData.useMaxLevel" size="small" style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                            clearable | 
			
		
	
		
			
				
					|  |  |  |  |                            placeholder="请选择允许采集的最大层级" | 
			
		
	
		
			
				
					|  |  |  |  |                 > | 
			
		
	
		
			
				
					|  |  |  |  |                   <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                     v-for="item in levelUnitList" | 
			
		
	
		
			
				
					|  |  |  |  |                     :key="item.packLevel" | 
			
		
	
		
			
				
					|  |  |  |  |                     :value="item.packLevel" | 
			
		
	
		
			
				
					|  |  |  |  |                     :label="item.packLevel" | 
			
		
	
		
			
				
					|  |  |  |  |                   > | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                     <span style="float: left">层级:{{ item.packLevel }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                   </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-row> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                <el-select v-model="newProductData.useLevel" size="small" style="width: 90%"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                           clearable--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                           @change="useLevelDiChange"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                           placeholder="请选择计量单位"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  <el-option--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    v-for="item in levelUnitList"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :key="item.packLevel"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :value="item.packLevel"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :label="item.packUnit"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    <span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    <span style="float: left">层级:{{ item.packLevel }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  </el-option>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                </el-select>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |           <el-row :gutter="20"> | 
			
		
	
		
			
				
					|  |  |  |  |             <el-col :span="11" class="el-col"> | 
			
		
	
		
			
				
					|  |  |  |  |               <el-form-item label="拆包后可用时长(小时):" prop="unpackUseTime" label-width="160px"> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <el-col :span="11" class="el-col">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              <el-form-item label="允许采集的最大层级:" prop="useMaxLevel" label-width="160px">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                <el-select v-model="newProductData.useMaxLevel" size="small" style="width: 90%"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                           clearable--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                           placeholder="请选择允许采集的最大层级"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  <el-option--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    v-for="item in levelUnitList"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :key="item.packLevel"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :value="item.packLevel"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    :label="item.packLevel"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    <span style="float: right; color: #8492a6; font-size: 13px">单位:{{ item.packUnit }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                    <span style="float: left">层级:{{ item.packLevel }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                  </el-option>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                </el-select>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </el-row>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          <el-row :gutter="20">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            <el-col :span="11" class="el-col">--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              <el-form-item label="拆包后可用时长(小时):" prop="unpackUseTime" label-width="160px">--> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-input v-model="newProductData.unpackUseTime" size="small" style="width: 90%" | 
			
		
	
		
			
				
					|  |  |  |  |                           clearable | 
			
		
	
		
			
				
					|  |  |  |  |                           placeholder="请输入拆包后可用时长(小时)" | 
			
		
	
		
			
				
					|  |  |  |  |                 > | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-input> | 
			
		
	
		
			
				
					|  |  |  |  |               </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |           </el-row> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                <el-input v-model="newProductData.unpackUseTime" size="small" style="width: 90%"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                          clearable--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                          placeholder="请输入拆包后可用时长(小时)"--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                >--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--                </el-input>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--              </el-form-item>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--            </el-col>--> | 
			
		
	
		
			
				
					|  |  |  |  | <!--          </el-row>--> | 
			
		
	
		
			
				
					|  |  |  |  |         </el-collapse-item> | 
			
		
	
		
			
				
					|  |  |  |  |         <el-collapse-item name="2"> | 
			
		
	
		
			
				
					|  |  |  |  |           <template slot="title"> | 
			
		
	
	
		
			
				
					|  |  |  | @ -925,16 +924,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                   return | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |               } | 
			
		
	
		
			
				
					|  |  |  |  |               const isLevel1 = this.detailList.some(item => item.packLevel === 1) | 
			
		
	
		
			
				
					|  |  |  |  |               if (!isLevel1) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error('药品层级缺少一级标识!') | 
			
		
	
		
			
				
					|  |  |  |  |               } | 
			
		
	
		
			
				
					|  |  |  |  |               // const isLevel1 = this.detailList.some(item => item.packLevel === 1) | 
			
		
	
		
			
				
					|  |  |  |  |               // if (!isLevel1) { | 
			
		
	
		
			
				
					|  |  |  |  |               //   this.$message.error('药品层级缺少一级标识!') | 
			
		
	
		
			
				
					|  |  |  |  |               // } | 
			
		
	
		
			
				
					|  |  |  |  |               this.newProductData.drugLevelLists = this.detailList | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             this.saveLoading = true | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             addDrug(this.newProductData).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |             this.newProductData.relId = this.newProductData.rlId | 
			
		
	
		
			
				
					|  |  |  |  |             updatetDrug(this.newProductData).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |               this.saveLoading = false | 
			
		
	
		
			
				
					|  |  |  |  |               if (res.code == 20000) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.success('添加成功') | 
			
		
	
	
		
			
				
					|  |  |  | 
 |