|  |  |  | @ -187,7 +187,7 @@ | 
			
		
	
		
			
				
					|  |  |  |  |                 <el-col :span="8"> | 
			
		
	
		
			
				
					|  |  |  |  |                     <el-form-item prop="invWarehouseCode"> | 
			
		
	
		
			
				
					|  |  |  |  |                         <el-select v-model="formData.invWarehouseCode" placeholder="当前分库信息" | 
			
		
	
		
			
				
					|  |  |  |  |                                    :disabled="corpOrderIdDisabled"> | 
			
		
	
		
			
				
					|  |  |  |  |                                    :disabled="corpOrderIdDisabled" @change="subStorageChange"> | 
			
		
	
		
			
				
					|  |  |  |  |                             <el-option | 
			
		
	
		
			
				
					|  |  |  |  |                                 v-for="item in subInvList" | 
			
		
	
		
			
				
					|  |  |  |  |                                 :key="item.name" | 
			
		
	
	
		
			
				
					|  |  |  | @ -872,32 +872,38 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         getBusType() { | 
			
		
	
		
			
				
					|  |  |  |  |             let query = { | 
			
		
	
		
			
				
					|  |  |  |  |                 code: this.formData.invWarehouseCode, | 
			
		
	
		
			
				
					|  |  |  |  |                 enabled: true, | 
			
		
	
		
			
				
					|  |  |  |  |             }; | 
			
		
	
		
			
				
					|  |  |  |  |             getLocalJoinByUser(query) | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.busTypes = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |                     if (this.formData.action != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                         this.curAction = this.getActionItem(this.formData.action); | 
			
		
	
		
			
				
					|  |  |  |  |                         if (this.curAction != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                             this.formData.vailInv = this.curAction.vailInv; | 
			
		
	
		
			
				
					|  |  |  |  |                             this.formData.codeFillCheck = this.curAction.codeFillCheck; | 
			
		
	
		
			
				
					|  |  |  |  |                         this.busTypes = response.data.list || []; | 
			
		
	
		
			
				
					|  |  |  |  |                         if (this.formData.action != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                             this.curAction = this.getActionItem(this.formData.action); | 
			
		
	
		
			
				
					|  |  |  |  |                             if (this.curAction != null) { | 
			
		
	
		
			
				
					|  |  |  |  |                                 this.formData.vailInv = this.curAction.vailInv; | 
			
		
	
		
			
				
					|  |  |  |  |                                 this.formData.codeFillCheck = this.curAction.codeFillCheck; | 
			
		
	
		
			
				
					|  |  |  |  |                             } | 
			
		
	
		
			
				
					|  |  |  |  |                         } else { | 
			
		
	
		
			
				
					|  |  |  |  |                             this.curAction = {corpType: 0, genUnit: false, changeEnable: false,}; | 
			
		
	
		
			
				
					|  |  |  |  |                             this.formData.action = null; | 
			
		
	
		
			
				
					|  |  |  |  |                         } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 ) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         subStorageChange() { | 
			
		
	
		
			
				
					|  |  |  |  |             this.getBusType(); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         geActionName(action) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.busTypes.forEach((obj) => { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (obj.action == action) { | 
			
		
	
		
			
				
					|  |  |  |  |                     return obj.name; | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         locCHange() { | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.$isNotBlank(this.formData.invWarehouseCode)) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -905,7 +911,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             this.findStorageMethod(); | 
			
		
	
		
			
				
					|  |  |  |  |             this.findSubInvByInv(this.formData.locStorageCode); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         findMethod(query) { | 
			
		
	
		
			
				
					|  |  |  |  |             console.log(query); | 
			
		
	
		
			
				
					|  |  |  |  |             this.fromOptions = []; | 
			
		
	
	
		
			
				
					|  |  |  | @ -942,7 +949,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.loading = false; | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         findStorageMethod() { | 
			
		
	
		
			
				
					|  |  |  |  |             if (this.formData.locStorageCode == null) | 
			
		
	
	
		
			
				
					|  |  |  | @ -957,7 +965,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         findSubStorageMethod() { | 
			
		
	
		
			
				
					|  |  |  |  |             let cQuery = { | 
			
		
	
	
		
			
				
					|  |  |  | @ -970,7 +979,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         findSubInvByInv(invCode) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -982,12 +992,14 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 .then((response) => { | 
			
		
	
		
			
				
					|  |  |  |  |                     this.subInvList = response.data || []; | 
			
		
	
		
			
				
					|  |  |  |  |                     if (this.subInvList != null && this.subInvList.length == 1) { | 
			
		
	
		
			
				
					|  |  |  |  |                         // this.formData.invWarehouseCode = this.subInvList[0].code; | 
			
		
	
		
			
				
					|  |  |  |  |                         this.formData.invWarehouseCode = this.subInvList[0].code; | 
			
		
	
		
			
				
					|  |  |  |  |                         this.getBusType(); | 
			
		
	
		
			
				
					|  |  |  |  |                     } | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         getStorage(event) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -998,14 +1010,16 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                 }) | 
			
		
	
		
			
				
					|  |  |  |  |                 .catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  |                 }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         getActionName(action) { | 
			
		
	
		
			
				
					|  |  |  |  |             for (let i = 0; i < this.busTypes.length; i++) { | 
			
		
	
		
			
				
					|  |  |  |  |                 if (this.busTypes[i].action === action) { | 
			
		
	
		
			
				
					|  |  |  |  |                     return this.busTypes[i].advanceType; | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         getActionItem(action) { | 
			
		
	
		
			
				
					|  |  |  |  |             console.log("-----") | 
			
		
	
		
			
				
					|  |  |  |  |             for (let i = 0; i < this.busTypes.length; i++) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -1014,7 +1028,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |                     return this.busTypes[i]; | 
			
		
	
		
			
				
					|  |  |  |  |                 } | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         actionChange(item) { | 
			
		
	
		
			
				
					|  |  |  |  |             this.curAction = this.getActionItem(item); | 
			
		
	
		
			
				
					|  |  |  |  |             this.findMethod(); | 
			
		
	
	
		
			
				
					|  |  |  | @ -1024,19 +1039,22 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             this.$set(this.formData, "outChangeEnable", this.curAction.ullageFill); | 
			
		
	
		
			
				
					|  |  |  |  |             this.$set(this.formData, "codeFillCheck", this.curAction.codeFillCheck); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         //绑定数据 | 
			
		
	
		
			
				
					|  |  |  |  | //绑定数据 | 
			
		
	
		
			
				
					|  |  |  |  |         bindRl(val) { | 
			
		
	
		
			
				
					|  |  |  |  |             console.log("curRow.erpId = " + val.id); | 
			
		
	
		
			
				
					|  |  |  |  |             this.curRow = val; | 
			
		
	
		
			
				
					|  |  |  |  |             this.selectRlVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         handleUnitClick(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             console.log("curRow.erpId = " + row.id); | 
			
		
	
		
			
				
					|  |  |  |  |             this.curRow = row; | 
			
		
	
		
			
				
					|  |  |  |  |             this.dialogTableVisible = true; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         selectSupUnit(row) { | 
			
		
	
		
			
				
					|  |  |  |  |             let query = { | 
			
		
	
		
			
				
					|  |  |  |  |                 id: this.curRow.id, | 
			
		
	
	
		
			
				
					|  |  |  | @ -1054,7 +1072,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         selectBindRl(row) { | 
			
		
	
	
		
			
				
					|  |  |  | @ -1082,12 +1101,14 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             }).catch(() => { | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             }); | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  |         closeBindDialog(val) { | 
			
		
	
		
			
				
					|  |  |  |  |             console.log("closeBindDialog" + val); | 
			
		
	
		
			
				
					|  |  |  |  |             this.selectRlVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |             this.dialogTableVisible = false; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |         rowStyle({row, rowIndex}) { | 
			
		
	
		
			
				
					|  |  |  |  |             let rowBackground = {}; | 
			
		
	
	
		
			
				
					|  |  |  | @ -1097,12 +1118,14 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |             return rowBackground; | 
			
		
	
		
			
				
					|  |  |  |  |         }, | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  |         , | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     filters: {}, | 
			
		
	
		
			
				
					|  |  |  |  |     filters: {} | 
			
		
	
		
			
				
					|  |  |  |  |     , | 
			
		
	
		
			
				
					|  |  |  |  |     mounted() { | 
			
		
	
		
			
				
					|  |  |  |  |         document.body.ondrop = function (event) { | 
			
		
	
		
			
				
					|  |  |  |  |             event.preventDefault(); | 
			
		
	
	
		
			
				
					|  |  |  | @ -1134,7 +1157,8 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         }; | 
			
		
	
		
			
				
					|  |  |  |  |         inputer.focus(); | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     , | 
			
		
	
		
			
				
					|  |  |  |  |     created() { | 
			
		
	
		
			
				
					|  |  |  |  |         this.formData.code = ''; | 
			
		
	
		
			
				
					|  |  |  |  |         this.formData.actDate = new Date(); | 
			
		
	
	
		
			
				
					|  |  |  | @ -1183,8 +1207,10 @@ export default { | 
			
		
	
		
			
				
					|  |  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     }, | 
			
		
	
		
			
				
					|  |  |  |  | }; | 
			
		
	
		
			
				
					|  |  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  |  |     , | 
			
		
	
		
			
				
					|  |  |  |  | } | 
			
		
	
		
			
				
					|  |  |  |  | ; | 
			
		
	
		
			
				
					|  |  |  |  | </script> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |