Browse Source

完善存放地点变更、厂家采购--按钮功能化

master
yunuo970428 2 years ago
parent
commit
0fdd0e9518
  1. 15
      anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichan.vue
  2. 15
      anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangeng.vue

15
anrui-scm/anrui-scm-ui/src/views/supplychain/cheliangpaichan/cheliangpaichan.vue

@ -91,7 +91,7 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import divAdd from './cheliangpaichanAdd'
import divInfo from './cheliangpaichanInfo'
import { selectHaveMessage } from '@/api/cheliang/dictcommons'
import { getButtonPermissions, selectHaveMessage } from '@/api/cheliang/dictcommons'
import { getStorage } from '@/utils/auth'
export default {
@ -175,7 +175,18 @@ export default {
mounted() {
// vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
getButtonPermissions({ userSid: window.sessionStorage.getItem('userSid'), url: this.$route.path, type: 0 }).then((res) => {
if (res.success) {
for (var i = 0; i < res.data.length; i++) {
for (var k = 0; k < this.btnList.length; k++) {
if (res.data[i].buttonId === this.btnList[k].btnKey) {
this.btnList.splice(k, 1)
}
}
}
this.$refs['btnbar'].setButtonList(this.btnList)
}
})
},
methods: {
async handleMessage(event) {

15
anrui-scm/anrui-scm-ui/src/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangeng.vue

@ -278,7 +278,7 @@ import cunfangdidianbiangengAdd from '@/views/supplychain/cunfangdidianbiangeng/
import cunfangdidianbiangengInfo from '@/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangengInfo'
import upload from '../../../components/uploadFile/upload_cunfang'
import { getStorage } from '@/utils/auth'
import { selectHaveMessage } from '@/api/cheliang/dictcommons'
import { getButtonPermissions, selectHaveMessage } from '@/api/cheliang/dictcommons'
export default {
name: 'cunfangdidianbiangeng',
@ -367,7 +367,18 @@ export default {
mounted() {
// vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
getButtonPermissions({ userSid: window.sessionStorage.getItem('userSid'), url: this.$route.path, type: 0 }).then((res) => {
if (res.success) {
for (var i = 0; i < res.data.length; i++) {
for (var k = 0; k < this.btnList.length; k++) {
if (res.data[i].buttonId === this.btnList[k].btnKey) {
this.btnList.splice(k, 1)
}
}
}
this.$refs['btnbar'].setButtonList(this.btnList)
}
})
},
methods: {
async handleMessage(event) {

Loading…
Cancel
Save