diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangneigou/cheliangneigouguanli.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangneigou/cheliangneigouguanli.vue index 8272170761..58069b0eff 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangneigou/cheliangneigouguanli.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangneigou/cheliangneigouguanli.vue @@ -115,7 +115,7 @@ import ButtonBar from '@/components/ButtonBar' import cheliangneigouAdd from './cheliangneigouAdd.vue' import cheliangneigouInfo from './cheliangneigouInfo.vue' import req from '@/api/supplychain/cheliangneigou' -import { getOrgSidByPath, typeValues, getListOrg } from '@/api/cheliang/dictcommons' +import { getOrgSidByPath, typeValues, getListOrg, selectHaveMessage } from '@/api/cheliang/dictcommons' import { getStorage } from "@/utils/auth" export default { @@ -325,8 +325,12 @@ export default { this.init() }, toAdd() { - this.viewState = 2 - this.$refs['divAdd'].showAdd() + selectHaveMessage({ menuUrl: this.$route.path, orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { + if (res.success) { + this.viewState = 2 + this.$refs['divAdd'].showAdd() + } + }) }, toEdit(row) { this.viewState = 3 diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqing.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqing.vue index b45dde209f..659c0d601b 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqing.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqing.vue @@ -97,7 +97,7 @@ import pageye from '@/components/pagination/pageye' import diaocheshenqingAdd from '@/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqingAdd' import diaocheshenqingInfo from '@/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqingInfo' import { listPage, delBySids } from '@/api/supplychain/diaochekaipiaoshenqing' -import { getOrgSidByPath, getListOrg } from '@/api/cheliang/dictcommons' +import { getOrgSidByPath, getListOrg, selectHaveMessage } from '@/api/cheliang/dictcommons' import { getStorage } from '@/utils/auth' export default { @@ -220,8 +220,12 @@ export default { } }, toAdd() { - this.viewState = 2 - this.$refs['divadd'].showAdd() + selectHaveMessage({ menuUrl: this.$route.path, orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { + if (res.success) { + this.viewState = 2 + this.$refs['divadd'].showAdd() + } + }) }, doDel() { if (this.multipleSelection.length === 0) { diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanli.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanli.vue index 3533951b2a..f387d12ec7 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanli.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanli.vue @@ -93,7 +93,7 @@ import pageye from '@/components/pagination/pageye' import tiaozhangshenqingguanliAdd from '@/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliAdd' import tiaozhangshenqingguanliInfo from '@/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliInfo' import { listPage, delBySids } from '@/api/supplychain/tiaozhangshenqing.js' -import { getOrgSidByPath, getListOrg, typeValues } from '@/api/cheliang/dictcommons' +import { getOrgSidByPath, getListOrg, typeValues, selectHaveMessage } from '@/api/cheliang/dictcommons' import { getStorage } from '@/utils/auth' export default { @@ -217,8 +217,10 @@ export default { } }, toAdd() { - this.viewState = 2 - this.$refs['divadd'].showAdd() + selectHaveMessage({ menuUrl: this.$route.path, orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { + this.viewState = 2 + this.$refs['divadd'].showAdd() + }) }, doDel() { if (this.multipleSelection.length === 0) {