|  |  | @ -37,7 +37,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="10"> |  |  |  |           <el-col :span="10"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item class="query-form-item" label="领用部门:"> |  |  |  |             <el-form-item class="query-form-item" label="领用部门:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select v-model="formData.fromDeptCode" placeholder="领用部门信息" |  |  |  |               <el-select v-model="formData.fromDeptCode" placeholder="领用部门信息" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          :disabled="detailList.length >0 " |  |  |  |                          :disabled="detailList.length >0 && this.paramValue == 0 " | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                          @change="deptChange" |  |  |  |                          @change="deptChange" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          style="width: 90%;" |  |  |  |                          style="width: 90%;" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          clearable> |  |  |  |                          clearable> | 
			
		
	
	
		
		
			
				
					|  |  | @ -56,7 +56,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="10"> |  |  |  |           <el-col :span="10"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item class="query-form-item" label="出库仓库:"> |  |  |  |             <el-form-item class="query-form-item" label="出库仓库:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select v-model="formData.fromInvCode" placeholder="出库仓库信息" |  |  |  |               <el-select v-model="formData.fromInvCode" placeholder="出库仓库信息" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          :disabled="detailList.length >0 " |  |  |  |                          :disabled="detailList.length >0 && this.paramValue == 0 " | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                          style="width: 90%" |  |  |  |                          style="width: 90%" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          clearable> |  |  |  |                          clearable> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-option |  |  |  |                 <el-option | 
			
		
	
	
		
		
			
				
					|  |  | @ -73,28 +73,10 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-row> |  |  |  |         </el-row> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-row> |  |  |  |         <el-row> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <!--          <el-col :span="10"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                       <el-form-item class="query-form-item" label="领用货位:"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-select v-model="formData.fromInvSpaceCode" placeholder="领用货位信息" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                    :disabled="detailList.length >0 " |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                    style="width: 90%;" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                    clearable> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                           <el-option |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             v-for="item in spaceList" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             :key="item.name" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             :label="item.name" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             :value="item.code"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             <span style="float: left">{{ item.name }}</span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             <span style="float: right; color: #8492a6; font-size: 13px">{{ item.parentName }}</span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                           </el-option> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         </el-select> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                       </el-form-item> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     </el-col>--> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-col :span="10"> |  |  |  |           <el-col :span="10"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-form-item class="query-form-item" label="领用人:"> |  |  |  |             <el-form-item class="query-form-item" label="领用人:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-select v-model="formData.receiveUser" placeholder="领用人信息" |  |  |  |               <el-select v-model="formData.receiveUser" placeholder="领用人信息" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          :disabled="detailList.length >0 " |  |  |  |                          :disabled="detailList.length >0 && this.paramValue == 0 " | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                          style="width: 90%" |  |  |  |                          style="width: 90%" | 
			
		
	
		
		
			
				
					
					|  |  |  |                          clearable> |  |  |  |                          clearable> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <el-option |  |  |  |                 <el-option | 
			
		
	
	
		
		
			
				
					|  |  | @ -134,7 +116,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-button> |  |  |  |             </el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-button |  |  |  |             <el-button | 
			
		
	
		
		
			
				
					
					|  |  |  |               type="primary" |  |  |  |               type="primary" | 
			
		
	
		
		
			
				
					
					|  |  |  |               :disabled="this.detailList.length > 0" |  |  |  |               :disabled="this.detailList.length > 0 && this.paramValue == 0 " | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |               @click.native="selectInvProduct()" |  |  |  |               @click.native="selectInvProduct()" | 
			
		
	
		
		
			
				
					
					|  |  |  |             >手动添加 |  |  |  |             >手动添加 | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-button> |  |  |  |             </el-button> | 
			
		
	
	
		
		
			
				
					|  |  | @ -152,40 +134,44 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                            show-overflow-tooltip |  |  |  |                            show-overflow-tooltip | 
			
		
	
		
		
			
				
					
					|  |  |  |           ></el-table-column> |  |  |  |           ></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column width="150" label="规格型号" prop="ggxh" show-overflow-tooltip></el-table-column> |  |  |  |           <el-table-column width="150" label="规格型号" prop="ggxh" show-overflow-tooltip></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column width="150" label="批次号" prop="batchNo"></el-table-column> |  |  |  |           <el-table-column width="120" label="批次号"> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <template slot-scope="scope"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               <el-input v-model="scope.row.batchNo" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         :disabled="scope.row.id != selectedIndex" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         ref='inputBatchNoRef' | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         placeholder="请输入批次号"></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               <!--@input="scope.row.batchNo =scope.row.batchNo.replace(/[\W]/g, '')"--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </template> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <el-table-column width="120" label="生产日期"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <template slot-scope="scope"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               <el-input v-model="scope.row.productionDate" auto-complete="off" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         oninput="if(value.length>6)value=value.slice(0,6)" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         :disabled="scope.row.id != selectedIndex" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         type="number" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               ></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </template> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <el-table-column width="120" label="失效日期"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <template slot-scope="scope"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               <el-input v-model="scope.row.expireDate" auto-complete="off" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         oninput="if(value.length>6)value=value.slice(0,6)" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         :disabled="scope.row.id != selectedIndex" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                         type="number" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               ></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </template> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column width="150" label="序列号" prop="serialNo"></el-table-column> |  |  |  |           <el-table-column width="150" label="序列号" prop="serialNo"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="生产日期(yyMMdd)" prop="productionDate"></el-table-column> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="失效日期(yyMMdd)" prop="expireDate" show-overflow-tooltip></el-table-column> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="注册/备案凭证号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column> |  |  |  |           <el-table-column label="注册/备案凭证号" prop="zczbhhzbapzbh" show-overflow-tooltip></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column> |  |  |  |           <el-table-column label="生产企业" prop="ylqxzcrbarmc" show-overflow-tooltip></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="供应商" prop="supName" show-overflow-tooltip></el-table-column> |  |  |  |           <el-table-column label="供应商" prop="supName" show-overflow-tooltip></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-table-column label="操作"> |  |  |  |           <el-table-column label="操作"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <template slot-scope="scope"> |  |  |  |             <template slot-scope="scope"> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <!--              <el-button |  |  |  |               <el-button type="text" size="small" @click.stop="true" @click.native="deleteOrderDetail(scope.$index, scope.row)">减一</el-button> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                               type="text" |  |  |  |               <el-button type="text" size="small" v-if="scope.row.id == selectedIndex && paramValue == 1" @click.stop="true" @click.native="updateOrderDetail(scope.row)">保存</el-button> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                               size="small" |  |  |  |               <el-button type="text" size="small" v-if="scope.row.id != selectedIndex && paramValue == 1" @click.stop="true" @click.native="uploadOrderDetail(scope.row)">编辑</el-button> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                               v-if="scope.row.serialNo === null" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                               @click.stop="true" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                               @click.native="editOrderDetail(scope.$index, scope.row)" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             >编辑 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             </el-button |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             > |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             <el-button |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                               type="text" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                               size="small" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                               @click.stop="true" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                               @click.native="updateOrderDetail(scope.row)" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             >保存 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             </el-button |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                             >--> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               <el-button |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 type="text" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 size="small" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 @click.stop="true" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 @click.native="deleteOrderDetail(scope.$index, scope.row)" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               >减一 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               </el-button |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               > |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             </template> |  |  |  |             </template> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-table-column> |  |  |  |           </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-table> |  |  |  |         </el-table> | 
			
		
	
	
		
		
			
				
					|  |  | @ -219,19 +205,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |               </el-option> |  |  |  |               </el-option> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </el-select> |  |  |  |             </el-select> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-form-item> |  |  |  |           </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <!--          <el-form-item class="query-form-item" prop="invSpaceCode"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                       <el-select v-model="filterQuery.invSpaceCode" placeholder="领用货位信息" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                  :disabled="true" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                                  clearable> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         <el-option |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                           v-for="item in spaceList" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                           :key="item.name" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                           :label="item.name" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                           :value="item.code"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                           <span style="float: left">{{ item.name }}</span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                         </el-option> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                       </el-select> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                     </el-form-item>--> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <el-form-item class="query-form-item" label="产品标识DI:"> |  |  |  |           <el-form-item class="query-form-item" label="产品标识DI:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <el-input v-model="filterQuery.nameCode" placeholder="产品标识DI" clearable></el-input> |  |  |  |             <el-input v-model="filterQuery.nameCode" placeholder="产品标识DI" clearable></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </el-form-item> |  |  |  |           </el-form-item> | 
			
		
	
	
		
		
			
				
					|  |  | @ -259,11 +232,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 :row-key="getRowKeys" |  |  |  |                 :row-key="getRowKeys" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 @selection-change="handleSelectionChange" |  |  |  |                 @selection-change="handleSelectionChange" | 
			
		
	
		
		
			
				
					
					|  |  |  |                 ref="multipleTable"> |  |  |  |                 ref="multipleTable"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-table-column |  |  |  |         <el-table-column type="selection" :reserve-selection="true" width="55"></el-table-column> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           type="selection" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           :reserve-selection="true" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           width="55"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </el-table-column> |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <el-table-column label="序号" type="index"></el-table-column> |  |  |  |         <el-table-column label="序号" type="index"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-table-column label="产品标识" prop="nameCode"></el-table-column> |  |  |  |         <el-table-column label="产品标识" prop="nameCode"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <el-table-column label="产品名称" prop="cpmctymc"></el-table-column> |  |  |  |         <el-table-column label="产品名称" prop="cpmctymc"></el-table-column> | 
			
		
	
	
		
		
			
				
					|  |  | @ -282,6 +251,57 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         @pagination="queryInvProducts" |  |  |  |         @pagination="queryInvProducts" | 
			
		
	
		
		
			
				
					
					|  |  |  |       ></pagination> |  |  |  |       ></pagination> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </el-dialog> |  |  |  |     </el-dialog> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     <el-dialog | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         title="耗材产品录入" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         :visible.sync="selectProductVisible" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         :close-on-click-modal="false" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         :close-on-press-escape="false" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         width="85%" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         v-if="selectProductVisible" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         :append-to-body='true' | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     > | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       <el-form :inline="true" :model="filterProductQuery" size="mini"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <el-row> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <el-form-item class="query-form-item" label="产品标识DI:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <el-input v-model="filterProductQuery.nameCode" placeholder="产品标识DI" clearable></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <el-form-item class="query-form-item" label="产品名称:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <el-input v-model="filterProductQuery.cpmctymc" placeholder="产品名称" clearable></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <el-form-item class="query-form-item" label="批次号:"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <el-input v-model="filterProductQuery.batchNo" placeholder="批次号" clearable></el-input> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <el-button-group> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               <el-button type="primary" icon="el-icon-refresh" @click="onProductReset">重置</el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               <el-button type="primary" icon="search" @click="queryProductsList">查询</el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               <el-button type="primary" icon="search" @click="combine">确定</el-button> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </el-button-group> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           </el-form-item> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         </el-row> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       </el-form> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       <el-table v-loading="loading" :data="udiProductList" style="width: 100%" highlight-current-row :row-key="getRowKeys" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 @selection-change="handleSelectionChange" ref="multipleTable"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <el-table-column type="selection" :reserve-selection="true" width="55"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         </el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <el-table-column label="序号" type="index"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <el-table-column label="产品标识" prop="nameCode"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <el-table-column label="产品名称" prop="cpmctymc"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <el-table-column label="规格型号" prop="ggxh"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <el-table-column label="批次号" prop="batchNo"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <el-table-column label="供应商" prop="supName" width="120"></el-table-column> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       </el-table> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       <pagination | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           v-show="udiProductTotal>0" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           :total="udiProductTotal" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           :limit.sync="filterProductQuery.limit" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           :page.sync="filterProductQuery.page" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           @pagination="queryProductsList" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       ></pagination> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     </el-dialog> | 
			
		
	
		
		
			
				
					
					|  |  |  |   </div> |  |  |  |   </div> | 
			
		
	
		
		
			
				
					
					|  |  |  | </template> |  |  |  | </template> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -296,7 +316,8 @@ import { | 
			
		
	
		
		
			
				
					
					|  |  |  |   updateDeviceReceiveOrderDetail, |  |  |  |   updateDeviceReceiveOrderDetail, | 
			
		
	
		
		
			
				
					
					|  |  |  |   getDeviceReceiveOrderDetailList, |  |  |  |   getDeviceReceiveOrderDetailList, | 
			
		
	
		
		
			
				
					
					|  |  |  |   deleteDeviceReceiveOrderDetail, |  |  |  |   deleteDeviceReceiveOrderDetail, | 
			
		
	
		
		
			
				
					
					|  |  |  |   checkCode |  |  |  |   checkCode, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   getConfig, selectProduct | 
			
		
	
		
		
			
				
					
					|  |  |  | } from "@/api/inventory/deviceReceiveOrder"; |  |  |  | } from "@/api/inventory/deviceReceiveOrder"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getInvMAProducts} from "@/api/inventory/invPorduct"; |  |  |  | import {getInvMAProducts} from "@/api/inventory/invPorduct"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {isBlank} from "@/utils/strUtil"; |  |  |  | import {isBlank} from "@/utils/strUtil"; | 
			
		
	
	
		
		
			
				
					|  |  | @ -327,7 +348,9 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         limit: 10 |  |  |  |         limit: 10 | 
			
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |       productList: [], |  |  |  |       productList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       udiProductList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       productTotal: 0, |  |  |  |       productTotal: 0, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       udiProductTotal: 0, | 
			
		
	
		
		
			
				
					
					|  |  |  |       deptList: [], |  |  |  |       deptList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       invList: [], |  |  |  |       invList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       spaceList: [], |  |  |  |       spaceList: [], | 
			
		
	
	
		
		
			
				
					|  |  | @ -342,15 +365,29 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         status: 0, |  |  |  |         status: 0, | 
			
		
	
		
		
			
				
					
					|  |  |  |         code: null, |  |  |  |         code: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       filterProductQuery:{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         nameCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         cpmctymc: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         batchNo: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         invCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         // cplb: "设备",    //todo 由后台或者前端加上,只查询设备 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         invSpaceCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         page: 1, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         limit: 10 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }, | 
			
		
	
		
		
			
				
					
					|  |  |  |       detailList: [], |  |  |  |       detailList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       paramValue:null, | 
			
		
	
		
		
			
				
					
					|  |  |  |       loading: false, |  |  |  |       loading: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       selectProductVisible:false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       scanText: "扫码录入:", |  |  |  |       scanText: "扫码录入:", | 
			
		
	
		
		
			
				
					
					|  |  |  |       currentIndex: -1, |  |  |  |       currentIndex: -1, | 
			
		
	
		
		
			
				
					
					|  |  |  |       selectInvProductVisible: false, |  |  |  |       selectInvProductVisible: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |       multiProduct: [], |  |  |  |       multiProduct: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       userList: [], |  |  |  |       userList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       productInvList: [], |  |  |  |       productInvList: [], | 
			
		
	
		
		
			
				
					
					|  |  |  |       productSpaceList: [] |  |  |  |       productSpaceList: [], | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       currentRow:{}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       selectedIndex:null | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   methods: { |  |  |  |   methods: { | 
			
		
	
	
		
		
			
				
					|  |  | @ -413,18 +450,23 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.fromInvSpaceCode = ""; |  |  |  |       this.formData.fromInvSpaceCode = ""; | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     selectInvProduct() { |  |  |  |     selectInvProduct() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       let message = this.verifyOrder(); |  |  |  |       if(this.paramValue == 0){ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       if (!isBlank(message)) { |  |  |  |         let message = this.verifyOrder(); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         this.$message.warning(message); |  |  |  |         if (!isBlank(message)) { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         return; |  |  |  |           this.$message.warning(message); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           return; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         //保存或更新设备领用仓库信息 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.saveOrder(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.onReset(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.selectInvProductVisible = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.filterQuery.invCode = this.formData.fromInvCode; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }else{ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         //保存或更新设备领用仓库信息 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.saveOrder(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.onProductReset(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.selectProductVisible = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       //保存或更新设备领用仓库信息 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.saveOrder(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.onReset(); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.selectInvProductVisible = true; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.filterQuery.invCode = this.formData.fromInvCode; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       // this.filterQuery.invSpaceCode = this.formData.fromInvSpaceCode; |  |  |  |       // this.filterQuery.invSpaceCode = this.formData.fromInvSpaceCode; | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     saveMAOrder() { |  |  |  |     saveMAOrder() { | 
			
		
	
	
		
		
			
				
					|  |  | @ -568,6 +610,14 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     uploadOrderDetail(val){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.currentRow = val; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.selectedIndex = val.id; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       console.log(this.selectedIndex) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     saveOrderDetail(val){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     getList() { |  |  |  |     getList() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       let params = {orderIdFk: this.formData.orderId}; |  |  |  |       let params = {orderIdFk: this.formData.orderId}; | 
			
		
	
	
		
		
			
				
					|  |  | @ -581,6 +631,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       updateDeviceReceiveOrderDetail(row).then((res) => { |  |  |  |       updateDeviceReceiveOrderDetail(row).then((res) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (res.code === 20000) { |  |  |  |         if (res.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.$message.success("保存成功!") |  |  |  |           this.$message.success("保存成功!") | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           this.selectedIndex = null | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.getList(); |  |  |  |           this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |       }) |  |  |  |       }) | 
			
		
	
	
		
		
			
				
					|  |  | @ -602,6 +653,19 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.multiProduct = []; |  |  |  |       this.multiProduct = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.queryInvProducts(); |  |  |  |       this.queryInvProducts(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     onProductReset() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.filterProductQuery = { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         nameCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         cpmctymc: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         batchNo: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         // cplb: "设备", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         invSpaceCode: null, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         page: 1, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         limit: 10 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.multiProduct = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       this.queryProductsList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     handleCurrentChange(val) { |  |  |  |     handleCurrentChange(val) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.filterQuery.page = val; |  |  |  |       this.filterQuery.page = val; | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.queryInvProducts(); |  |  |  |       this.queryInvProducts(); | 
			
		
	
	
		
		
			
				
					|  |  | @ -628,6 +692,22 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.productTotal = 0; |  |  |  |         this.productTotal = 0; | 
			
		
	
		
		
			
				
					
					|  |  |  |       }); |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     queryProductsList(){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       selectProduct(this.filterProductQuery).then((res) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         if (res.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           this.udiProductList = res.data.list || []; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           this.udiProductTotal = res.data.total || 0; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           this.$message.error(res.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           this.udiProductList = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           this.udiProductTotal = 0; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }).catch((error) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.$message.error(error.message); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.udiProductList = []; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.udiProductTotal = 0; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       }); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |     combine() { |  |  |  |     combine() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       if (this.multiProduct.length === 0) { |  |  |  |       if (this.multiProduct.length === 0) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         this.$message.error("请选择领用产品!"); |  |  |  |         this.$message.error("请选择领用产品!"); | 
			
		
	
	
		
		
			
				
					|  |  | @ -647,6 +727,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |         if (res.code === 20000) { |  |  |  |         if (res.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.$message.success("录入成功!"); |  |  |  |           this.$message.success("录入成功!"); | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.selectInvProductVisible = false; |  |  |  |           this.selectInvProductVisible = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           this.selectProductVisible = false; | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.getList(); |  |  |  |           this.getList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         } else { |  |  |  |         } else { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.$message.error(res.message); |  |  |  |           this.$message.error(res.message); | 
			
		
	
	
		
		
			
				
					|  |  | @ -666,6 +747,12 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   created() { |  |  |  |   created() { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     //查询配置项 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     getConfig().then((res) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       if(res.code == 20000 && !isBlank(res.data.paramValue)){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         this.paramValue =res.data.paramValue | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }) | 
			
		
	
		
		
			
				
					
					|  |  |  |     this.getDeptList(); |  |  |  |     this.getDeptList(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (!(isBlank(this.deviceReceiveOrder.orderId))) { |  |  |  |     if (!(isBlank(this.deviceReceiveOrder.orderId))) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.formData.orderId = this.deviceReceiveOrder.orderId; |  |  |  |       this.formData.orderId = this.deviceReceiveOrder.orderId; | 
			
		
	
	
		
		
			
				
					|  |  | 
 |