|  |  |  | @ -136,7 +136,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                     > | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-select v-model="formData.fromSubInvCode" placeholder="请选择仓库" clearable="true" | 
			
		
	
		
			
				
					|  |  |  |  |                                    :disabled="corpOrderIdDisabled"  filterable | 
			
		
	
		
			
				
					|  |  |  |  |                                    :disabled="corpOrderIdDisabled"  @change="getFormCorp" filterable | 
			
		
	
		
			
				
					|  |  |  |  |                         > | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                                 v-for="item in fromSubStorageOptions" | 
			
		
	
	
		
			
				
					|  |  |  | @ -506,7 +506,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             deleteLoading: false, | 
			
		
	
		
			
				
					|  |  |  |  |             orderNo: null, | 
			
		
	
		
			
				
					|  |  |  |  |             fromOptions: [], | 
			
		
	
		
			
				
					|  |  |  |  |             fromStorageOptions: [], | 
			
		
	
		
			
				
					|  |  |  |  |             fromSubStorageOptions: [], | 
			
		
	
		
			
				
					|  |  |  |  |             curAction: { | 
			
		
	
		
			
				
					|  |  |  |  |                 corpType: 0, | 
			
		
	
	
		
			
				
					|  |  |  | @ -541,7 +540,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 orderId: this.idQuery.id, | 
			
		
	
		
			
				
					|  |  |  |  |                 locStorageCode: this.formData.locStorageCode, | 
			
		
	
		
			
				
					|  |  |  |  |                 invWarehouseCode: this.formData.invWarehouseCode, | 
			
		
	
		
			
				
					|  |  |  |  |                 invStorageCode:this.formData.invStorageCode, | 
			
		
	
		
			
				
					|  |  |  |  |                 fromSubInvCode: this.formData.fromSubInvCode, | 
			
		
	
		
			
				
					|  |  |  |  |                 subInvCode: this.formData.subInvCode, | 
			
		
	
		
			
				
					|  |  |  |  |                 action: this.formData.action, | 
			
		
	
		
			
				
					|  |  |  |  |                 fromCorp: this.formData.fromCorp, | 
			
		
	
		
			
				
					|  |  |  |  |                 fromCorpId: this.formData.fromCorpId, | 
			
		
	
	
		
			
				
					|  |  |  | @ -961,23 +962,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         findStorageMethod() { | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.formData.locStorageCode == null) | 
			
		
	
		
			
				
					|  |  |  |  |                 return; | 
			
		
	
		
			
				
					|  |  |  |  |             this.fromStorageOptions = []; | 
			
		
	
		
			
				
					|  |  |  |  |             let cQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |                 locInvCode: this.formData.locStorageCode, | 
			
		
	
		
			
				
					|  |  |  |  |             }; | 
			
		
	
		
			
				
					|  |  |  |  |             filterAllByLoc(cQuery) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.fromStorageOptions = response.data || []; | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         findSubStorageMethod() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.invStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.locStorageCode= this.subInvList.find(item => item.code == this.formData.invWarehouseCode).parentId | 
			
		
	
		
			
				
					|  |  |  |  |             this.getBusType(); | 
			
		
	
		
			
				
					|  |  |  |  |             let cQuery = { | 
			
		
	
		
			
				
					|  |  |  |  |                 code: this.formData.invWarehouseCode, | 
			
		
	
	
		
			
				
					|  |  |  | @ -991,7 +979,11 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         getFormCorp(){ | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.subInvCode= this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).parentId | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.fromCorp=this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).warehouseName | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.fromCorpId=this.fromSubStorageOptions.find(item => item.code == this.formData.fromSubInvCode).code | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         findSubInvByInv(invCode) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.subInvList = []; | 
			
		
	
	
		
			
				
					|  |  |  | @ -1001,9 +993,9 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             filterSubByInv(query) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.subInvList = response.data || []; | 
			
		
	
		
			
				
					|  |  |  |  |                     if (this.subInvList != null && this.subInvList.length == 1) { | 
			
		
	
		
			
				
					|  |  |  |  |                         this.formData.invWarehouseCode = this.subInvList[0].code; | 
			
		
	
		
			
				
					|  |  |  |  |                     if (this.subInvList != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         this.getBusType(); | 
			
		
	
		
			
				
					|  |  |  |  |                         this.findSubStorageMethod(); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
	
		
			
				
					|  |  |  | @ -1025,16 +1017,6 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.fromDeptOptions = []; | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         getStorage(event) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.storageList = []; | 
			
		
	
		
			
				
					|  |  |  |  |             filterAllByUser() | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.storageList = response.data || []; | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         getActionName(action) { | 
			
		
	
		
			
				
					|  |  |  |  |             for (let i = 0; i < this.busTypes.length; i++) { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (this.busTypes[i].action === action) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -1181,7 +1163,7 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         this.formData.actDate = new Date(); | 
			
		
	
		
			
				
					|  |  |  |  |         this.codeArray = []; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         this.getStorage(this.formData.action); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         if (this.$isNotBlank(this.idQuery.id)) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.actDate = new Date(this.idQuery.actDate); | 
			
		
	
	
		
			
				
					|  |  |  | @ -1216,17 +1198,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 // this.getCodeList(); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.invWarehouseCode = this.$store.getters.locSubInvCode; | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.invStorageCode=this.$store.getters.locInvCode; | 
			
		
	
		
			
				
					|  |  |  |  |             this.formData.locStorageCode = this.$store.getters.locInvCode; | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.$isNotBlank(this.formData.locStorageCode)) { | 
			
		
	
		
			
				
					|  |  |  |  |                 this.findStorageMethod(); | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         this.findSubInvByInv(this.formData.locStorageCode); | 
			
		
	
		
			
				
					|  |  |  |  |         this.findSubStorageMethod(); | 
			
		
	
		
			
				
					|  |  |  |  |         if(this.formData.invWarehouseCode!=null){ | 
			
		
	
		
			
				
					|  |  |  |  |         this.getBusType(); | 
			
		
	
		
			
				
					|  |  |  |  |        } | 
			
		
	
		
			
				
					|  |  |  |  |         //查询是否启用多级仓库,判断是否启用部门 | 
			
		
	
		
			
				
					|  |  |  |  |         selectSysParamByKey({paramKey: "muti_inv_mode"}).then((res) => { | 
			
		
	
		
			
				
					|  |  |  |  |             if (res.code === 20000) { | 
			
		
	
	
		
			
				
					|  |  |  | 
 |