diff --git a/dist.zip b/dist.zip index 7a34f6f..f81e7ca 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/api/apis/businessVoucher.js b/src/api/apis/businessVoucher.js index 97aba13..7de67f2 100644 --- a/src/api/apis/businessVoucher.js +++ b/src/api/apis/businessVoucher.js @@ -15,6 +15,14 @@ export function coreGenerateAPI(data) { data, }); } +//收回 +export function backVoucherAPI(data) { + return request({ + url: "/kangarooDataCenterV3/ae/core/backVoucher", + method: "post", + data, + }); +} // 凭证明细查询 export function queryDetailsByBillCodeAPI(data) { return request({ diff --git a/src/layout/components/NewMenu/index.vue b/src/layout/components/NewMenu/index.vue index bcb3c13..aabd77b 100644 --- a/src/layout/components/NewMenu/index.vue +++ b/src/layout/components/NewMenu/index.vue @@ -142,12 +142,12 @@ export default { icon: "icon-shouye", show: true, }, - { - title: "消息", - path: "/message", - icon: "el-icon-chat-dot-square", - show: true, - }, + // { + // title: "消息", + // path: "/message", + // icon: "el-icon-chat-dot-square", + // show: true, + // }, { title: "工作台", path: "/Workbench", diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 145c9b1..1eeb5a3 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -1,4 +1,4 @@ -import { login, logout, getInfo } from "@/api/login"; +import { login, logout, getInfo } from '@/api/login' import { getToken, setToken, @@ -6,77 +6,77 @@ import { removeInfo, setInfo, setCompanyId, - removeCompanyId, -} from "@/utils/auth"; + removeCompanyId +} from '@/utils/auth' const user = { state: { token: getToken(), - name: "", - avatar: "", + name: '', + avatar: '', roles: [], permissions: [], info: {}, - companyID: "", + companyID: '', companyListAll: [], - messageCount:0, - currentMenuNode:"",//目的是 结合cokkie 实时监听当前导航栏的变化 + messageCount: 0, + currentMenuNode: ''//目的是 结合cokkie 实时监听当前导航栏的变化 }, mutations: { SET_TOKEN: (state, token) => { - state.token = token; + state.token = token }, SET_NAME: (state, name) => { - state.name = name; + state.name = name }, SET_AVATAR: (state, avatar) => { - state.avatar = avatar; + state.avatar = avatar }, SET_ROLES: (state, roles) => { - state.roles = roles; + state.roles = roles }, SET_PERMISSIONS: (state, permissions) => { - state.permissions = permissions; + state.permissions = permissions }, SET_INFO: (state, info) => { - state.info = info; + state.info = info }, SET_COMPANYID: (state, companyID) => { - state.companyID = companyID; + state.companyID = companyID }, SET_COMPANYID_LIST_All: (state, companyListAll) => { - state.companyListAll = companyListAll; + state.companyListAll = companyListAll }, SET_MESSAGE_COUNT: (state, messageCount) => { state.messageCount = messageCount }, SET_CURRENT_MENU_NODE: (state, currentMenuNode) => { state.currentMenuNode = currentMenuNode - }, + } }, actions: { // 登录 Login({ commit }, userInfo) { - const login_name = userInfo.login_name.trim(); - const password = userInfo.password; + const login_name = userInfo.login_name.trim() + const password = userInfo.password // const companyID = userInfo.companyID; return new Promise((resolve, reject) => { login(login_name, password) .then((res) => { - setToken(res.attribute['zt-token']); - setInfo(JSON.stringify(res.attribute.userInfo)); - commit("SET_TOKEN", res.attribute.token); - commit("SET_INFO", res.attribute.userInfo); - resolve(); + setToken(res.attribute['zt-token']) + setInfo(JSON.stringify(res.attribute.userInfo)) + commit('SET_TOKEN', res.attribute.token) + commit('SET_INFO', res.attribute.userInfo) + resolve() }) .catch((error) => { - commit("LogOut") - reject(error); + commit('LogOut') + reject(error) - }); - }); + }) + }) }, // 获取用户信息 @@ -84,53 +84,53 @@ const user = { return new Promise((resolve, reject) => { getInfo() .then((res) => { - const user = res.user; + const user = res.user const avatar = - user.avatar == "" || user.avatar == null - ? require("@/assets/images/profile.jpg") - : process.env.VUE_APP_BASE_API + user.avatar; + user.avatar == '' || user.avatar == null + ? require('@/assets/images/profile.jpg') + : process.env.VUE_APP_BASE_API + user.avatar if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组 - commit("SET_ROLES", res.roles); - commit("SET_PERMISSIONS", res.permissions); + commit('SET_ROLES', res.roles) + commit('SET_PERMISSIONS', res.permissions) } else { - commit("SET_ROLES", ["ROLE_DEFAULT"]); + commit('SET_ROLES', ['ROLE_DEFAULT']) } - commit("SET_NAME", user.userName); - commit("SET_AVATAR", avatar); - resolve(res); + commit('SET_NAME', user.userName) + commit('SET_AVATAR', avatar) + resolve(res) }) .catch((error) => { - reject(error); - }); - }); + reject(error) + }) + }) }, // 退出系统 LogOut({ commit, state }) { - console.log("触发推出") + console.log('触发推出') return new Promise((resolve, reject) => { - commit("SET_TOKEN", ""); - commit("SET_ROLES", []); - commit("SET_PERMISSIONS", []); - commit("SET_COMPANYID_LIST_All", []); - removeToken(); - removeInfo(); - removeCompanyId(); - resolve(); - }); + commit('SET_TOKEN', '') + commit('SET_ROLES', []) + commit('SET_PERMISSIONS', []) + commit('SET_COMPANYID_LIST_All', []) + removeToken() + removeInfo() + removeCompanyId() + resolve() + }) }, // 前端 登出 FedLogOut({ commit }) { return new Promise((resolve) => { - commit("SET_TOKEN", ""); - removeToken(); - removeInfo(); - resolve(); - }); - }, - }, -}; + commit('SET_TOKEN', '') + removeToken() + removeInfo() + resolve() + }) + } + } +} -export default user; +export default user diff --git a/src/views/ItemEntryTemplate/index.vue b/src/views/ItemEntryTemplate/index.vue index 9879932..a2bc8d8 100644 --- a/src/views/ItemEntryTemplate/index.vue +++ b/src/views/ItemEntryTemplate/index.vue @@ -1133,7 +1133,7 @@ export default { searchObj: {}, pageModel: { page: 1, //当前页码 - limit: 20, //每页显示多少 + limit: 10, //每页显示多少 prop7: '', propValue7: '', prop8: '', diff --git a/src/views/businessVoucher/index.vue b/src/views/businessVoucher/index.vue index 9bd62e4..821a998 100644 --- a/src/views/businessVoucher/index.vue +++ b/src/views/businessVoucher/index.vue @@ -12,10 +12,10 @@