|  |  | @ -248,7 +248,7 @@ import {findByFrom, findInvByUser} from "../../api/system/invSubWarehouse"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {parseTime} from "../../utils/coTools"; |  |  |  | import {parseTime} from "../../utils/coTools"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain" |  |  |  | import {getBasicUnitMaintains} from "../../api/basic/basicUnitMaintain" | 
			
		
	
		
		
			
				
					
					|  |  |  | import editCodeDialog from "./DialogEditCode"; |  |  |  | import editCodeDialog from "./DialogEditCode"; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {selectAuthMenuByMenuKey } from '@/api/system/sysMenuHelp' |  |  |  | import {selectAuthMenuByMenuKeys } from '@/api/system/sysMenuHelp' | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | import codesPanel from "./PanelCreateOrderCodes" |  |  |  | import codesPanel from "./PanelCreateOrderCodes" | 
			
		
	
	
		
		
			
				
					|  |  | @ -282,18 +282,25 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |   data() { |  |  |  |   data() { | 
			
		
	
		
		
			
				
					
					|  |  |  |     return { |  |  |  |     return { | 
			
		
	
		
		
			
				
					
					|  |  |  |       //查看帮助相关 |  |  |  |       //查看帮助相关 | 
			
		
	
		
		
			
				
					
					|  |  |  |       helpMenuKey: "ioCreateOrderHelp", |  |  |  |       ioCreateOrderHelp500:{}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       help:{ |  |  |  |       // ioCreateOrderHelp502:{}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         id: null, |  |  |  |       // ioCreateOrderHelp503:{}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         menuKey: null, |  |  |  |       ioCreateOrderHelp504:{}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         menuName: null, |  |  |  |       ioCreateOrderHelp505:{}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         status: null, |  |  |  |       // ioCreateOrderHelp507:{}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         filePath: null, |  |  |  |       ioCreateOrderHelp605:{}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         remark: null, |  |  |  |       ioCreateOrderHelp604:{}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         updateTime: null, |  |  |  |       helpMenuKeys:[ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         helpType: null, |  |  |  |         "ioCreateOrderHelp500", | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         urlPath: null, |  |  |  |         // "ioCreateOrderHelp502", | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       }, |  |  |  |         // "ioCreateOrderHelp503", | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         "ioCreateOrderHelp504", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         "ioCreateOrderHelp505", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         // "ioCreateOrderHelp507", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         "ioCreateOrderHelp605", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         "ioCreateOrderHelp604" | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       ] , | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       help:[], | 
			
		
	
		
		
			
				
					
					|  |  |  |       //单据相关 |  |  |  |       //单据相关 | 
			
		
	
		
		
			
				
					
					|  |  |  |       orderFormData: { |  |  |  |       orderFormData: { | 
			
		
	
		
		
			
				
					
					|  |  |  |         billNo: null, |  |  |  |         billNo: null, | 
			
		
	
	
		
		
			
				
					|  |  | @ -387,15 +394,29 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |   }, |  |  |  |   }, | 
			
		
	
		
		
			
				
					
					|  |  |  |   methods: { |  |  |  |   methods: { | 
			
		
	
		
		
			
				
					
					|  |  |  |     //获取查看帮助url |  |  |  |     //获取查看帮助url | 
			
		
	
		
		
			
				
					
					|  |  |  |     selectAuthMenuByMenuKey() { |  |  |  |     selectAuthMenuByMenuKeys() { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       let params = {menuKey: this.helpMenuKey} |  |  |  |       selectAuthMenuByMenuKeys(this.helpMenuKeys).then((res) => { | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       selectAuthMenuByMenuKey(params).then((res) => { |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         if (res.code === 20000) { |  |  |  |         if (res.code === 20000) { | 
			
		
	
		
		
			
				
					
					|  |  |  |           this.help = res.data; |  |  |  |           this.help = res.data; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           if (this.help.length >0){ | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             this.help.forEach( x => { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               let menuKey = x.menuKey; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               this[menuKey] = x; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
		
		
			
				
					
					|  |  |  |       }) |  |  |  |       }) | 
			
		
	
		
		
			
				
					
					|  |  |  |     }, |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     //查看帮助新开标签页 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     helpOpenWindow(code) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       let helpType = this["ioCreateOrderHelp"+code].helpType; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       //为url类型 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       if (helpType == 1) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         window.open(this["ioCreateOrderHelp"+code].urlPath, '_blank') | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     }, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     //获取用户仓库列表 |  |  |  |     //获取用户仓库列表 | 
			
		
	
		
		
			
				
					
					|  |  |  |     findInvListByUser() { |  |  |  |     findInvListByUser() { | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.curInvOptions = []; |  |  |  |       this.curInvOptions = []; | 
			
		
	
	
		
		
			
				
					|  |  | @ -631,45 +652,53 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else if (response.code == 504) { |  |  |  |           } else if (response.code == 504) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$confirm(response.message, "提示", { |  |  |  |             this.$confirm(response.message, "提示", { | 
			
		
	
		
		
			
				
					
					|  |  |  |               confirmButtonText: "确定", |  |  |  |               confirmButtonText: "确定", | 
			
		
	
		
		
			
				
					
					|  |  |  |               cancelButtonText: "忽略", |  |  |  |               cancelButtonText: "查看帮助", | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |               type: "error", |  |  |  |               type: "error", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               showClose: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               showCancelButton: this.ioCreateOrderHelp504==null?false:true, | 
			
		
	
		
		
			
				
					
					|  |  |  |             }).then(() => { |  |  |  |             }).then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |               tQuery.ignoreExpire = true; |  |  |  |               tQuery.ignoreExpire = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |               this.addCodeSubmit(tQuery) |  |  |  |               this.addCodeSubmit(tQuery) | 
			
		
	
		
		
			
				
					
					|  |  |  |             }).catch(() => { |  |  |  |             }).catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |               this.helpOpenWindow(response.code); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             }); |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else if (response.code == 505) { |  |  |  |           } else if (response.code == 505) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$confirm(response.message, "提示", { |  |  |  |             this.$confirm(response.message, "提示", { | 
			
		
	
		
		
			
				
					
					|  |  |  |               confirmButtonText: "确定", |  |  |  |               confirmButtonText: "确定", | 
			
		
	
		
		
			
				
					
					|  |  |  |               cancelButtonText: "忽略", |  |  |  |               cancelButtonText: "查看帮助", | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |               type: "warning", |  |  |  |               type: "warning", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               showClose: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               showCancelButton: this.ioCreateOrderHelp505==null?false:true, | 
			
		
	
		
		
			
				
					
					|  |  |  |             }).then(() => { |  |  |  |             }).then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |               tQuery.ignoreRecentExpire = true; |  |  |  |               tQuery.ignoreRecentExpire = true; | 
			
		
	
		
		
			
				
					
					|  |  |  |               this.addCodeSubmit(tQuery) |  |  |  |               this.addCodeSubmit(tQuery) | 
			
		
	
		
		
			
				
					
					|  |  |  |             }).catch(() => { |  |  |  |             }).catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |               this.helpOpenWindow(response.code); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             }); |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else if (response.code == 605) { |  |  |  |           } else if (response.code == 605) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$confirm(response.message, "提示", { |  |  |  |             this.$confirm(response.message, "提示", { | 
			
		
	
		
		
			
				
					
					|  |  |  |               confirmButtonText: "确定", |  |  |  |               confirmButtonText: "确定", | 
			
		
	
		
		
			
				
					
					|  |  |  |               cancelButtonText: "取消", |  |  |  |               cancelButtonText: "查看帮助", | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               showClose: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |               type: "warning", |  |  |  |               type: "warning", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               showCancelButton: this.ioCreateOrderHelp605==null?false:true, | 
			
		
	
		
		
			
				
					
					|  |  |  |             }).then(() => { |  |  |  |             }).then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             }).catch(() => { |  |  |  |             }).catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |               this.helpOpenWindow(response.code); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             }); |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |             return; |  |  |  |             return; | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else if (response.code == 604) { |  |  |  |           } else if (response.code == 604) { | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.$confirm(response.message, "提示", { |  |  |  |             this.$confirm(response.message, "提示", { | 
			
		
	
		
		
			
				
					
					|  |  |  |               confirmButtonText: "确定", |  |  |  |               confirmButtonText: "确定", | 
			
		
	
		
		
			
				
					
					|  |  |  |               cancelButtonText: "取消", |  |  |  |               cancelButtonText: "查看帮助", | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               showClose: false, | 
			
		
	
		
		
			
				
					
					|  |  |  |               type: "warning", |  |  |  |               type: "warning", | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               showCancelButton: this.ioCreateOrderHelp604==null?false:true, | 
			
		
	
		
		
			
				
					
					|  |  |  |             }).then(() => { |  |  |  |             }).then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             }).catch(() => { |  |  |  |             }).catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |               this.helpOpenWindow(response.code); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             }); |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |             return; |  |  |  |             return; | 
			
		
	
		
		
			
				
					
					|  |  |  |           } else if (response.code == 507) { |  |  |  |           } else if (response.code == 507) { | 
			
		
	
	
		
		
			
				
					|  |  | @ -691,19 +720,15 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |               confirmButtonText: '确定', |  |  |  |               confirmButtonText: '确定', | 
			
		
	
		
		
			
				
					
					|  |  |  |               cancelButtonText: "查看帮助", |  |  |  |               cancelButtonText: "查看帮助", | 
			
		
	
		
		
			
				
					
					|  |  |  |               type: 'warning', |  |  |  |               type: 'warning', | 
			
		
	
		
		
			
				
					
					|  |  |  |               closeOnClickModal: true, |  |  |  |               showClose: false, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               showCancelButton: true, |  |  |  |               showCancelButton: this.ioCreateOrderHelp500==null?false:true, | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |               // callback: action => { |  |  |  |               // callback: action => { | 
			
		
	
		
		
			
				
					
					|  |  |  |               //   this.$refs.inputRef.focus(); |  |  |  |               //   this.$refs.inputRef.focus(); | 
			
		
	
		
		
			
				
					
					|  |  |  |               //   this.$refs.inputRef.select(); |  |  |  |               //   this.$refs.inputRef.select(); | 
			
		
	
		
		
			
				
					
					|  |  |  |               // } |  |  |  |               // } | 
			
		
	
		
		
			
				
					
					|  |  |  |             }).then(() => { |  |  |  |             }).then(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |             }).catch(() => { |  |  |  |             }).catch(() => { | 
			
		
	
		
		
			
				
					
					|  |  |  |               let helpType = this.help.helpType; |  |  |  |               this.helpOpenWindow(response.code); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |               //为url类型 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               if (helpType == 1){ |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 window.open(this.help.urlPath,'_blank') |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |               } |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             }); |  |  |  |             }); | 
			
		
	
		
		
			
				
					
					|  |  |  |           } |  |  |  |           } | 
			
		
	
		
		
			
				
					
					|  |  |  |         } |  |  |  |         } | 
			
		
	
	
		
		
			
				
					|  |  | @ -1014,7 +1039,7 @@ export default { | 
			
		
	
		
		
			
				
					
					|  |  |  |       } |  |  |  |       } | 
			
		
	
		
		
			
				
					
					|  |  |  |       this.findInvListByUser(); |  |  |  |       this.findInvListByUser(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |     this.selectAuthMenuByMenuKey(); |  |  |  |     this.selectAuthMenuByMenuKeys(); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  |   , |  |  |  |   , | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |