|  |  |  | @ -73,26 +73,28 @@ | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-col :span="2"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <div class="ao-text"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <span>当前仓库:</span> | 
			
		
	
		
			
				
					|  |  |  |  |                         <span>当前分库:</span> | 
			
		
	
		
			
				
					|  |  |  |  |                     </div> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-col :span="8"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item prop="locStorageCode"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-select v-model="formData.locStorageCode" placeholder="当前仓库信息" @change="locCHange" | 
			
		
	
		
			
				
					|  |  |  |  |                                    :disabled="corpOrderIdDisabled"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item prop="invWarehouseCode"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息" | 
			
		
	
		
			
				
					|  |  |  |  |                                    :disabled="corpOrderIdDisabled" @change="findSubStorageMethod"   filterable> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                                 v-for="item in storageList" | 
			
		
	
		
			
				
					|  |  |  |  |                                 v-for="item in subInvList" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :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.warehouseName }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                             </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                         </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |                     </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             </el-row> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <el-row :gutter="20"> | 
			
		
	
	
		
			
				
					|  |  |  | @ -132,37 +134,17 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item class="query-form-item" prop="fromCorp" | 
			
		
	
		
			
				
					|  |  |  |  |                                   v-if="curAction.corpType ==1" | 
			
		
	
		
			
				
					|  |  |  |  |                     > | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-select | 
			
		
	
		
			
				
					|  |  |  |  |                             v-model="formData.fromCorp" | 
			
		
	
		
			
				
					|  |  |  |  |                             filterable | 
			
		
	
		
			
				
					|  |  |  |  |                             remote | 
			
		
	
		
			
				
					|  |  |  |  |                             clearable="true" | 
			
		
	
		
			
				
					|  |  |  |  |                             reserve-keyword | 
			
		
	
		
			
				
					|  |  |  |  |                             placeholder="请输入仓库信息" | 
			
		
	
		
			
				
					|  |  |  |  |                             :remote-method="findStorageMethod" | 
			
		
	
		
			
				
					|  |  |  |  |                             :loading="loading" :disabled="corpOrderIdDisabled" | 
			
		
	
		
			
				
					|  |  |  |  |                             @change="storageChange" | 
			
		
	
		
			
				
					|  |  |  |  |                         > | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                                 v-for="item in fromStorageOptions" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :key="item.value" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :label="item.code" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :value="item"> | 
			
		
	
		
			
				
					|  |  |  |  |                                 <span style="float: left">{{ item.name }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                                 <span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                             </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                         </el-select> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-select v-model="formData.fromSubInvCode" placeholder="请选择分库" clearable="true" | 
			
		
	
		
			
				
					|  |  |  |  |                                    :disabled="corpOrderIdDisabled"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-select v-model="formData.fromSubInvCode" placeholder="请选择仓库" clearable="true" | 
			
		
	
		
			
				
					|  |  |  |  |                                    :disabled="corpOrderIdDisabled"  filterable | 
			
		
	
		
			
				
					|  |  |  |  |                         > | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                                 v-for="item in fromSubStorageOptions" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :key="item.code" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :label="item.name" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :value="item.code"> | 
			
		
	
		
			
				
					|  |  |  |  |                                 <span style="float: left">{{ item.name }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                                 <span style="float: right; color: #8492a6; font-size: 13px">{{ item.code }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                                 <span style="float: right; color: #8492a6; font-size: 13px">{{ item.warehouseName }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                                 <!--<span style="float: right; color: #8492a6; font-size: 13px">{{ item.action }}</span>--> | 
			
		
	
		
			
				
					|  |  |  |  |                             </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                         </el-select> | 
			
		
	
	
		
			
				
					|  |  |  | @ -177,27 +159,6 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                         ></el-input> | 
			
		
	
		
			
				
					|  |  |  |  |                     </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-col :span="2"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <div class="ao-text"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <span>当前分库:</span> | 
			
		
	
		
			
				
					|  |  |  |  |                     </div> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-col> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-col :span="8"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item prop="invWarehouseCode"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息" | 
			
		
	
		
			
				
					|  |  |  |  |                                    :disabled="corpOrderIdDisabled" @change="subStorageChange"> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                                 v-for="item in subInvList" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :key="item.name" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :label="item.name" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :value="item.code"> | 
			
		
	
		
			
				
					|  |  |  |  |                                 <span style="float: left">{{ item.name }}</span> | 
			
		
	
		
			
				
					|  |  |  |  |                             </el-option> | 
			
		
	
		
			
				
					|  |  |  |  |                         </el-select> | 
			
		
	
		
			
				
					|  |  |  |  |                     </el-form-item> | 
			
		
	
		
			
				
					|  |  |  |  |                 </el-col> | 
			
		
	
		
			
				
					|  |  |  |  |             </el-row> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             <el-row :gutter="20" v-if="enableDept"> | 
			
		
	
	
		
			
				
					|  |  |  | @ -603,10 +564,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error('未选择扫码单据类型'); | 
			
		
	
		
			
				
					|  |  |  |  |                 return | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.formData.locStorageCode == null || this.formData.locStorageCode == '') { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error('当前仓库不能为空'); | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error('当前分库不能为空'); | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
	
		
			
				
					|  |  |  | @ -717,20 +675,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.warning("请选择单据类型!"); | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.$isBlank(this.formData.locStorageCode)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error('当前仓库不能为空'); | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.formData.invWarehouseCode == null || this.formData.invWarehouseCode == '') { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error('当前分库不能为空'); | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.$isBlank(this.formData.fromCorp)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.$message.error('当前往来单位不能为空'); | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             // if (this.$isBlank(this.formData.fromCorp)) { | 
			
		
	
		
			
				
					|  |  |  |  |             //     this.$message.error('当前往来单位不能为空'); | 
			
		
	
		
			
				
					|  |  |  |  |             //     return; | 
			
		
	
		
			
				
					|  |  |  |  |             // } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.curAction.corpType == 1) { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (this.$isBlank(this.formData.fromSubInvCode)) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -1026,8 +980,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         findSubStorageMethod() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.getBusType(); | 
			
		
	
		
			
				
					|  |  |  |  |             let cQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |                 pcode: this.formData.fromCorpId, | 
			
		
	
		
			
				
					|  |  |  |  |                 code: this.formData.invWarehouseCode, | 
			
		
	
		
			
				
					|  |  |  |  |                 filter: 2, | 
			
		
	
		
			
				
					|  |  |  |  |             }; | 
			
		
	
		
			
				
					|  |  |  |  |             filterSubByInv(cQuery) | 
			
		
	
	
		
			
				
					|  |  |  | @ -1043,7 +998,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         findSubInvByInv(invCode) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.subInvList = []; | 
			
		
	
		
			
				
					|  |  |  |  |             let query = { | 
			
		
	
		
			
				
					|  |  |  |  |                 pcode: invCode | 
			
		
	
		
			
				
					|  |  |  |  |                 filter:3 | 
			
		
	
		
			
				
					|  |  |  |  |             }; | 
			
		
	
		
			
				
					|  |  |  |  |             filterSubByInv(query) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
	
		
			
				
					|  |  |  | @ -1072,8 +1027,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.fromDeptOptions = []; | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         getStorage(event) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.storageList = []; | 
			
		
	
		
			
				
					|  |  |  |  |             filterAllByUser() | 
			
		
	
	
		
			
				
					|  |  |  | @ -1272,6 +1225,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         this.findSubInvByInv(this.formData.locStorageCode); | 
			
		
	
		
			
				
					|  |  |  |  |         this.findSubStorageMethod(); | 
			
		
	
		
			
				
					|  |  |  |  |         if(this.formData.invWarehouseCode!=null){ | 
			
		
	
		
			
				
					|  |  |  |  |         this.getBusType(); | 
			
		
	
		
			
				
					|  |  |  |  |        } | 
			
		
	
	
		
			
				
					|  |  |  | 
 |