Commit 8b7a80fd authored by yaya's avatar yaya

feat: 优化账单列表筛选默认值

parent e803ae55
......@@ -45,6 +45,7 @@
element-loading-text="正在查询中..."
border
fit
height="800"
highlight-current-row>
<!-- <el-table-column align="center" label="排行" width="100px" type="index" />-->
<el-table-column align="center" min-width="100px" prop="accountPeriod" label="账期" />
......@@ -116,9 +117,6 @@ export default {
options: [{
value: 1,
label: '订单收入'
}, {
value: 2,
label: '平台佣金'
}, {
value: 3,
label: '介绍佣金'
......
......@@ -15,7 +15,8 @@
style="width: 200px;"
placeholder="选择帐期"
format="yyyy-MM"
value-format="yyyy-MM" />
value-format="yyyy-MM"
@change="handleOnChange"/>
<el-select v-model="listQuery.state" placeholder="请选择是否结款" class="filter-item" style="width: 200px;">
<el-option
v-for="item in options"
......@@ -41,6 +42,7 @@
element-loading-text="正在查询中..."
border
fit
heighy="800"
highlight-current-row>
<!-- <el-table-column align="center" label="排行" width="100px" type="index" />-->
<el-table-column align="center" min-width="100px" prop="accountPeriod" label="账期" fixed="left"/>
......@@ -184,14 +186,22 @@ export default {
fianceItem: {},
showFinishFinanceDialog: false,
imageUrl: '',
showLargeDialog: false
showLargeDialog: false,
defaultTime: ''
}
},
created() {
const date = new Date()
const year = date.getFullYear()
const month = date.getMonth() + 1
this.$set(this.listQuery, 'accountPeriod', year + '-' + (month < 10 ? `0${month}` : month))
this.getList()
},
methods: {
handleOnChange(value) {
console.log('===', value)
},
handlePreview(voucher) {
if (voucher) {
this.imageUrl = voucher
......
......@@ -162,9 +162,6 @@ export default {
itemKey: 0,
loadingInstance: {},
options: [{
value: 1,
label: '待付款'
}, {
value: 10,
label: '待发货'
}, {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment