You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
3.9 KiB
122 lines
3.9 KiB
<template>
|
|
<div class="app-container">
|
|
<!--列表页面-->
|
|
<div v-show="viewState == 1">
|
|
<button-bar view-title="厂家返利汇总统计报表" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
|
|
<div class="main-content">
|
|
<div class="listtop">
|
|
<div class="tit">厂家返利汇总统计报表</div>
|
|
<div style="margin-right: 10px"><span class="bluezi" @click="lookBrand">品牌</span></div>
|
|
</div>
|
|
<div class="">
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;">
|
|
<el-table-column prop="year" label="年份" align="center" min-width="120" />
|
|
<el-table-column prop="estimate" label="预提" align="center" min-width="120" />
|
|
<el-table-column prop="upload" label="上传" align="center" min-width="120" />
|
|
<el-table-column prop="adjust" label="调整" align="center" min-width="120" />
|
|
<el-table-column label="未上传" align="center">
|
|
<el-table-column prop="unUpload.total" label="合计" align="center" min-width="120" />
|
|
<el-table-column label="其中费用" align="center">
|
|
<el-table-column prop="unUpload.fee" label="合计" align="center" min-width="120" />
|
|
<el-table-column prop="unUpload.feeOutlay" label="支出" align="center" min-width="120" />
|
|
<el-table-column prop="unUpload.feeUnPaid" label="待支付" align="center" min-width="120" />
|
|
<el-table-column prop="unUpload.feeTopping" label="抵顶" align="center" min-width="120" />
|
|
</el-table-column>
|
|
<el-table-column prop="unUpload.rebate" label="其中返利" align="center" min-width="120" />
|
|
</el-table-column>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<divisionByBrand v-show="viewState == 2" ref="divBrand" @doback="resetState" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import ButtonBar from '@/components/ButtonBar'
|
|
import req from '@/api/statement/rebateSummary'
|
|
import divisionByBrand from './divisionByBrand'
|
|
|
|
export default {
|
|
name: 'Division',
|
|
components: {
|
|
ButtonBar,
|
|
divisionByBrand
|
|
},
|
|
data() {
|
|
return {
|
|
btndisabled: false,
|
|
btnList: [
|
|
{
|
|
type: 'info',
|
|
size: 'small',
|
|
icon: 'cross',
|
|
btnKey: 'doClose',
|
|
btnLabel: '关闭'
|
|
}
|
|
],
|
|
isSearchShow: false,
|
|
searchxianshitit: '显示查询条件',
|
|
viewState: 1, // 1、列表 2、新增 3、编辑 4、查看
|
|
tableKey: 0,
|
|
list: [],
|
|
linkSid: '',
|
|
listQuery: {
|
|
params: {
|
|
type: '',
|
|
orgPath: ''
|
|
},
|
|
current: 1,
|
|
size: 5,
|
|
total: 0
|
|
},
|
|
FormLoading: false,
|
|
listLoading: false
|
|
}
|
|
},
|
|
mounted() {
|
|
this.$refs['btnbar'].setButtonList(this.btnList)
|
|
},
|
|
methods: {
|
|
btnHandle(btnKey) {
|
|
console.log('XXXXXXXXXXXXXXX ' + btnKey)
|
|
switch (btnKey) {
|
|
case 'doClose':
|
|
this.doClose()
|
|
break
|
|
default:
|
|
break
|
|
}
|
|
},
|
|
// 查询列表信息
|
|
getList() {
|
|
this.listLoading = true
|
|
this.listQuery.params.type = 'syb'
|
|
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
|
|
req.listPage(this.listQuery).then((response) => {
|
|
this.listLoading = false
|
|
if (response.success) {
|
|
this.list = response.data.records
|
|
this.linkSid = response.data.linkSid
|
|
} else {
|
|
this.list = []
|
|
this.linkSid = ''
|
|
}
|
|
})
|
|
},
|
|
lookBrand() {
|
|
this.viewState = 2
|
|
this.$refs['divBrand'].getList(this.linkSid)
|
|
},
|
|
resetState() {
|
|
this.viewState = 1
|
|
},
|
|
doClose() {
|
|
this.$store.dispatch('tagsView/delView', this.$route)
|
|
this.$router.go(-1)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped>
|
|
</style>
|
|
|