|
@@ -232,45 +232,47 @@
|
|
|
<div>
|
|
|
<a-row>
|
|
|
<a-col :span="16">
|
|
|
- <a-card size="small" :bordered="false" class="page-cont" :bodyStyle="{padding: '17px 30px 20px'}">
|
|
|
- <h3 class="page-tit">
|
|
|
- <span>销售/采购/调拨指引</span>
|
|
|
- <a-radio-group v-model="curDate" @change="onDateChange">
|
|
|
- <!-- <a-radio-button value="6">
|
|
|
+ <a-spin :spinning="spinning" tip="Loading...">
|
|
|
+ <a-card size="small" :bordered="false" class="page-cont" :bodyStyle="{padding: '17px 30px 20px'}">
|
|
|
+ <h3 class="page-tit">
|
|
|
+ <span>销售/采购/调拨指引</span>
|
|
|
+ <a-radio-group v-model="curDate" @change="onDateChange">
|
|
|
+ <!-- <a-radio-button value="6">
|
|
|
最近半年
|
|
|
</a-radio-button> -->
|
|
|
- <a-radio-button value="12">
|
|
|
- 最近一年
|
|
|
- </a-radio-button>
|
|
|
- <a-radio-button value="0">
|
|
|
- 全部
|
|
|
- </a-radio-button>
|
|
|
- </a-radio-group>
|
|
|
- </h3>
|
|
|
- <div class="page-nav-main">
|
|
|
- <!-- 导航指引 start -->
|
|
|
- <div class="page-nav-con" v-for="(item, index) in navList" :key="index">
|
|
|
- <div class="page-nav-box" v-for="(subItem, subInd) in item" :key="subInd">
|
|
|
- <a-badge
|
|
|
- :count="countData&&unitItem.permission&&unitItem.orderNum&&$hasPermissions(unitItem.permission) ? countData[unitItem.orderNum] : 0"
|
|
|
- class="page-nav-badge"
|
|
|
- v-for="(unitItem, unitInd) in subItem"
|
|
|
- :key="unitInd"
|
|
|
- @click="unitItem.permission&&unitItem.url&&$hasPermissions(unitItem.permission) ? goPage(unitItem,subInd) : null"
|
|
|
- :style="{cursor: unitItem.permission&&unitItem.url&&$hasPermissions(unitItem.permission)?'pointer': 'initial'}">
|
|
|
- <div :class="['page-nav-item', unitItem.styleC]">
|
|
|
- <div class="page-nav-n">
|
|
|
- <img v-show="unitItem.icon" :src="unitItem.icon" width="16" height="16" />
|
|
|
- <span>{{ unitItem.name }}</span>
|
|
|
+ <a-radio-button value="12">
|
|
|
+ 最近一年
|
|
|
+ </a-radio-button>
|
|
|
+ <a-radio-button value="0">
|
|
|
+ 全部
|
|
|
+ </a-radio-button>
|
|
|
+ </a-radio-group>
|
|
|
+ </h3>
|
|
|
+ <div class="page-nav-main">
|
|
|
+ <!-- 导航指引 start -->
|
|
|
+ <div class="page-nav-con" v-for="(item, index) in navList" :key="index">
|
|
|
+ <div class="page-nav-box" v-for="(subItem, subInd) in item" :key="subInd">
|
|
|
+ <a-badge
|
|
|
+ :count="countData&&unitItem.permission&&unitItem.orderNum&&$hasPermissions(unitItem.permission) ? countData[unitItem.orderNum] : 0"
|
|
|
+ class="page-nav-badge"
|
|
|
+ v-for="(unitItem, unitInd) in subItem"
|
|
|
+ :key="unitInd"
|
|
|
+ @click="unitItem.permission&&unitItem.url&&$hasPermissions(unitItem.permission) ? goPage(unitItem,subInd) : null"
|
|
|
+ :style="{cursor: unitItem.permission&&unitItem.url&&$hasPermissions(unitItem.permission)?'pointer': 'initial'}">
|
|
|
+ <div :class="['page-nav-item', unitItem.styleC]">
|
|
|
+ <div class="page-nav-n">
|
|
|
+ <img v-show="unitItem.icon" :src="unitItem.icon" width="16" height="16" />
|
|
|
+ <span>{{ unitItem.name }}</span>
|
|
|
+ </div>
|
|
|
+ <a-icon type="caret-right" v-show="unitItem.permission&&unitItem.url&&$hasPermissions(unitItem.permission)" style="color: #BBBBBB;" />
|
|
|
</div>
|
|
|
- <a-icon type="caret-right" v-show="unitItem.permission&&unitItem.url&&$hasPermissions(unitItem.permission)" style="color: #BBBBBB;" />
|
|
|
- </div>
|
|
|
- </a-badge>
|
|
|
+ </a-badge>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
<!-- 导航指引 end -->
|
|
|
- </div>
|
|
|
- </a-card>
|
|
|
+ </div>
|
|
|
+ </a-card>
|
|
|
+ </a-spin>
|
|
|
</a-col>
|
|
|
<a-col :span="8">
|
|
|
<a-card size="small" :bordered="false" class="page-cont right-con" :bodyStyle="{padding: '17px 30px 20px'}">
|
|
@@ -356,6 +358,7 @@ export default {
|
|
|
mixins: [mixin, commonMixin],
|
|
|
data () {
|
|
|
return {
|
|
|
+ spinning: false,
|
|
|
message: '欢迎登录' + process.env.VUE_APP_PRO_NAME,
|
|
|
hiddenBizData: true, // 隐藏数据概览
|
|
|
openResetPwd: false, // 重置密码是否显示
|
|
@@ -818,12 +821,14 @@ export default {
|
|
|
},
|
|
|
// 导航指引合计
|
|
|
getNavCount () {
|
|
|
+ this.spinning = true
|
|
|
bizStateCount(this.queryParams).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.countData = res.data
|
|
|
} else {
|
|
|
this.countData = null
|
|
|
}
|
|
|
+ this.spinning = false
|
|
|
})
|
|
|
},
|
|
|
onDateChange (e) {
|
|
@@ -844,6 +849,8 @@ export default {
|
|
|
let params = null
|
|
|
// 有待办数据,则跳转带有条件的;若无待办数据,则跳转全部数据
|
|
|
if (data.orderNum && this.countData[data.orderNum] || data.params) {
|
|
|
+ data.params.beginDate = this.queryParams.beginDate
|
|
|
+ data.params.endDate = this.queryParams.endDate
|
|
|
params = { pageParams: data.params, type: 'todo' }
|
|
|
} else {
|
|
|
params = { pageParams: null, type: subInd == 1 ? 'new' : 'todo' }
|