fix: 扫码异常生成查看帮助按钮跳转

dev2.0.1
chenhc 1 year ago
parent 659f554a2f
commit c88f640a8d

@ -41,7 +41,13 @@ export function selectAuthMenu(query) {
}); });
} }
export function selectAuthMenuByMenuKey(query) {
return axios({
url: "/system/param/help/selectAuthMenuByMenuKey",
method: "get",
params: query
});
}

@ -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();
} }
, ,
} }

@ -89,7 +89,7 @@
</el-col> </el-col>
<el-col :span="8" type="flex"> <el-col :span="8" type="flex">
<el-form-item prop="userFlag"> <el-form-item prop="userFlag">
<el-radio-group v-model="formData.helpType==null?0:formData.helpType" > <el-radio-group v-model="formData.helpType" >
<el-radio :label="0">文件</el-radio> <el-radio :label="0">文件</el-radio>
<el-radio :label="1">URL</el-radio> <el-radio :label="1">URL</el-radio>
</el-radio-group> </el-radio-group>
@ -111,7 +111,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row v-show="formData.helpType==null || formData.helpType==0"> <el-row v-show="formData.helpType == null || formData.helpType == 0">
<el-col :span="3"> <el-col :span="3">
<div class="ao-text"> <div class="ao-text">
<span>文件</span> <span>文件</span>

Loading…
Cancel
Save