Browse Source

2026-07-20

工单数据汇总和工单明细汇总页面增加按钮权限
master
fengyuan_yang 1 week ago
parent
commit
1e37b897a0
  1. 13
      src/views/modules/shopOrder/workOrderAlloc/searchWorkOrderAlloc.vue
  2. 13
      src/views/modules/shopOrder/workOrderAlloc/searchWorkOrderDetailsAlloc.vue

13
src/views/modules/shopOrder/workOrderAlloc/searchWorkOrderAlloc.vue

@ -165,6 +165,7 @@
</div>
<div class="action-right">
<el-button
v-if="!authAlloc"
type="success"
icon="el-icon-document-add"
:loading="allocLoading"
@ -172,6 +173,7 @@
工单数据汇总
</el-button>
<el-button
v-if="!authSync"
type="warning"
icon="el-icon-upload2"
:loading="syncLoading"
@ -345,6 +347,9 @@ export default {
searchLoading: false,
allocLoading: false,
syncLoading: false,
authAlloc: false,
authSync: false,
menuId: this.$route.meta.menuId,
orderListLoading: false,
allocListLoading: false,
//
@ -452,6 +457,7 @@ export default {
window.removeEventListener('resize', this.calculateTableHeight);
},
created() {
this.getButtonAuthData();
//
this.setDefaultDateRange();
//
@ -459,6 +465,13 @@ export default {
this.getData();
},
methods: {
//
getButtonAuthData() {
let allocFlag = this.isAuth(this.menuId + ":alloc");
let syncFlag = this.isAuth(this.menuId + ":sync");
this.authAlloc = !allocFlag;
this.authSync = !syncFlag;
},
//
getSiteList() {
getSiteList().then(({ data }) => {

13
src/views/modules/shopOrder/workOrderAlloc/searchWorkOrderDetailsAlloc.vue

@ -177,6 +177,7 @@
</div>
<div class="action-right">
<el-button
v-if="!authAlloc"
type="success"
icon="el-icon-document-add"
:loading="allocLoading"
@ -184,6 +185,7 @@
工单明细数据汇总
</el-button>
<el-button
v-if="!authSync"
type="warning"
icon="el-icon-upload2"
:loading="syncLoading"
@ -358,6 +360,9 @@ export default {
searchLoading: false,
allocLoading: false,
syncLoading: false,
authAlloc: false,
authSync: false,
menuId: this.$route.meta.menuId,
orderListLoading: false,
allocListLoading: false,
orderTableHeight: 200,
@ -469,11 +474,19 @@ export default {
window.removeEventListener('resize', this.calculateTableHeight)
},
created () {
this.getButtonAuthData()
this.setDefaultDateRange()
this.getSiteList()
this.getData()
},
methods: {
//
getButtonAuthData () {
let allocFlag = this.isAuth(this.menuId + ':alloc')
let syncFlag = this.isAuth(this.menuId + ':sync')
this.authAlloc = !allocFlag
this.authSync = !syncFlag
},
getSiteList () {
getSiteList().then(({ data }) => {
if (data && data.code === 0) {

Loading…
Cancel
Save