|
@@ -2,7 +2,7 @@
|
|
<a-card size="small" :bordered="false" class="financialCollectionList-wrap">
|
|
<a-card size="small" :bordered="false" class="financialCollectionList-wrap">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<a-spin :spinning="spinning" tip="Loading...">
|
|
<!-- 标签页 -->
|
|
<!-- 标签页 -->
|
|
- <a-tabs type="card" default-active-key="ALL" @change="handleTabChange" class="financialCollectionList-tabs ">
|
|
|
|
|
|
+ <a-tabs type="card" v-model="queryParam.bizType" @change="handleTabChange" class="financialCollectionList-tabs ">
|
|
<a-tab-pane v-for="item in tabPaneData" :key="item.bizType">
|
|
<a-tab-pane v-for="item in tabPaneData" :key="item.bizType">
|
|
<span slot="tab">{{ item.bizName }}({{ item.countNum }})</span>
|
|
<span slot="tab">{{ item.bizName }}({{ item.countNum }})</span>
|
|
</a-tab-pane>
|
|
</a-tab-pane>
|
|
@@ -130,6 +130,7 @@ export default {
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
openModal: false, // 详情弹框
|
|
openModal: false, // 详情弹框
|
|
tableHeight: 0,
|
|
tableHeight: 0,
|
|
|
|
+ curBizType: 'ALL',
|
|
// 查询参数
|
|
// 查询参数
|
|
queryParam: {
|
|
queryParam: {
|
|
bizType: 'ALL',
|
|
bizType: 'ALL',
|
|
@@ -236,7 +237,12 @@ export default {
|
|
queryByTypeSum({}).then(res => {
|
|
queryByTypeSum({}).then(res => {
|
|
if (res.data && res.status == 200) {
|
|
if (res.data && res.status == 200) {
|
|
this.tabPaneData = res.data
|
|
this.tabPaneData = res.data
|
|
- this.queryParam.bizType = res.data[0].bizType
|
|
|
|
|
|
+ if (this.$route.query.pageParams) {
|
|
|
|
+ this.queryParam.bizType = JSON.parse(this.$route.query.pageParams).bizType
|
|
|
|
+ } else {
|
|
|
|
+ this.queryParam.bizType = res.data[0].bizType
|
|
|
|
+ }
|
|
|
|
+ this.$refs.table.refresh(true)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -289,6 +295,11 @@ export default {
|
|
},
|
|
},
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
|
|
+ this.resetData()
|
|
|
|
+ this.$refs.table.refresh(true)
|
|
|
|
+ },
|
|
|
|
+ // 重置数据
|
|
|
|
+ resetData () {
|
|
if (this.advanced) {
|
|
if (this.advanced) {
|
|
this.$refs.rangeDate.resetDate()
|
|
this.$refs.rangeDate.resetDate()
|
|
}
|
|
}
|
|
@@ -301,7 +312,6 @@ export default {
|
|
auditBeginDate: '',
|
|
auditBeginDate: '',
|
|
auditEndDate: ''
|
|
auditEndDate: ''
|
|
}
|
|
}
|
|
- this.$refs.table.refresh(true)
|
|
|
|
},
|
|
},
|
|
onSelectChange (record, selected, selectedRows, nativeEvent) {
|
|
onSelectChange (record, selected, selectedRows, nativeEvent) {
|
|
if (selected) { // 选择
|
|
if (selected) { // 选择
|
|
@@ -354,15 +364,19 @@ export default {
|
|
},
|
|
},
|
|
mounted () {
|
|
mounted () {
|
|
if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
if (!this.$store.state.app.isNewTab) { // 页签刷新时调用
|
|
|
|
+ this.resetData()
|
|
this.pageInit()
|
|
this.pageInit()
|
|
- this.resetSearchForm()
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
activated () {
|
|
activated () {
|
|
// 如果是新页签打开,则重置当前页面
|
|
// 如果是新页签打开,则重置当前页面
|
|
if (this.$store.state.app.isNewTab) {
|
|
if (this.$store.state.app.isNewTab) {
|
|
|
|
+ this.resetData()
|
|
|
|
+ if (this.$route.query.pageParams) {
|
|
|
|
+ this.queryParam.bizType = JSON.parse(this.$route.query.pageParams).bizType
|
|
|
|
+ this.queryParam.billState = JSON.parse(this.$route.query.pageParams).billState
|
|
|
|
+ }
|
|
this.pageInit()
|
|
this.pageInit()
|
|
- this.resetSearchForm()
|
|
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeRouteEnter (to, from, next) {
|
|
beforeRouteEnter (to, from, next) {
|