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

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

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

Loading…
Cancel
Save