|
|
@ -248,6 +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 codesPanel from "./PanelCreateOrderCodes"
|
|
|
|
import codesPanel from "./PanelCreateOrderCodes"
|
|
|
@ -280,7 +281,19 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
|
|
|
|
//查看帮助相关
|
|
|
|
|
|
|
|
helpMenuKey: "ioCreateOrderHelp",
|
|
|
|
|
|
|
|
help:{
|
|
|
|
|
|
|
|
id: null,
|
|
|
|
|
|
|
|
menuKey: null,
|
|
|
|
|
|
|
|
menuName: null,
|
|
|
|
|
|
|
|
status: null,
|
|
|
|
|
|
|
|
filePath: null,
|
|
|
|
|
|
|
|
remark: null,
|
|
|
|
|
|
|
|
updateTime: null,
|
|
|
|
|
|
|
|
helpType: null,
|
|
|
|
|
|
|
|
urlPath: null,
|
|
|
|
|
|
|
|
},
|
|
|
|
//单据相关
|
|
|
|
//单据相关
|
|
|
|
orderFormData: {
|
|
|
|
orderFormData: {
|
|
|
|
billNo: null,
|
|
|
|
billNo: null,
|
|
|
@ -373,6 +386,16 @@ export default {
|
|
|
|
codesPanel, codeDetailPanel, bizDetailPanel, editCodeDialog
|
|
|
|
codesPanel, codeDetailPanel, bizDetailPanel, editCodeDialog
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
//获取查看帮助url
|
|
|
|
|
|
|
|
selectAuthMenuByMenuKey() {
|
|
|
|
|
|
|
|
let params = {menuKey: this.helpMenuKey}
|
|
|
|
|
|
|
|
selectAuthMenuByMenuKey(params).then((res) => {
|
|
|
|
|
|
|
|
if (res.code === 20000) {
|
|
|
|
|
|
|
|
this.help = res.data;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
//获取用户仓库列表
|
|
|
|
//获取用户仓库列表
|
|
|
|
findInvListByUser() {
|
|
|
|
findInvListByUser() {
|
|
|
|
this.curInvOptions = [];
|
|
|
|
this.curInvOptions = [];
|
|
|
@ -666,11 +689,20 @@ export default {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.$alert(response.message, '提示', {
|
|
|
|
this.$alert(response.message, '提示', {
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
|
|
|
cancelButtonText: "查看帮助",
|
|
|
|
type: 'warning',
|
|
|
|
type: 'warning',
|
|
|
|
closeOnClickModal: true,
|
|
|
|
closeOnClickModal: true,
|
|
|
|
callback: action => {
|
|
|
|
showCancelButton: true,
|
|
|
|
this.$refs.inputRef.focus();
|
|
|
|
// callback: action => {
|
|
|
|
this.$refs.inputRef.select();
|
|
|
|
// this.$refs.inputRef.focus();
|
|
|
|
|
|
|
|
// this.$refs.inputRef.select();
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
|
|
|
let helpType = this.help.helpType;
|
|
|
|
|
|
|
|
//为url类型
|
|
|
|
|
|
|
|
if (helpType == 1){
|
|
|
|
|
|
|
|
window.open(this.help.urlPath,'_blank')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -982,6 +1014,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.findInvListByUser();
|
|
|
|
this.findInvListByUser();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.selectAuthMenuByMenuKey();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
,
|
|
|
|
,
|
|
|
|
}
|
|
|
|
}
|
|
|
|