|
|
|
@ -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 }) => { |
|
|
|
|