Commit 8b7a80fd authored by yaya's avatar yaya

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

parent e803ae55
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
element-loading-text="正在查询中..." element-loading-text="正在查询中..."
border border
fit fit
height="800"
highlight-current-row> highlight-current-row>
<!-- <el-table-column align="center" label="排行" width="100px" type="index" />--> <!-- <el-table-column align="center" label="排行" width="100px" type="index" />-->
<el-table-column align="center" min-width="100px" prop="accountPeriod" label="账期" /> <el-table-column align="center" min-width="100px" prop="accountPeriod" label="账期" />
...@@ -116,9 +117,6 @@ export default { ...@@ -116,9 +117,6 @@ export default {
options: [{ options: [{
value: 1, value: 1,
label: '订单收入' label: '订单收入'
}, {
value: 2,
label: '平台佣金'
}, { }, {
value: 3, value: 3,
label: '介绍佣金' label: '介绍佣金'
......
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
style="width: 200px;" style="width: 200px;"
placeholder="选择帐期" placeholder="选择帐期"
format="yyyy-MM" 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-select v-model="listQuery.state" placeholder="请选择是否结款" class="filter-item" style="width: 200px;">
<el-option <el-option
v-for="item in options" v-for="item in options"
...@@ -41,6 +42,7 @@ ...@@ -41,6 +42,7 @@
element-loading-text="正在查询中..." element-loading-text="正在查询中..."
border border
fit fit
heighy="800"
highlight-current-row> highlight-current-row>
<!-- <el-table-column align="center" label="排行" width="100px" type="index" />--> <!-- <el-table-column align="center" label="排行" width="100px" type="index" />-->
<el-table-column align="center" min-width="100px" prop="accountPeriod" label="账期" fixed="left"/> <el-table-column align="center" min-width="100px" prop="accountPeriod" label="账期" fixed="left"/>
...@@ -184,14 +186,22 @@ export default { ...@@ -184,14 +186,22 @@ export default {
fianceItem: {}, fianceItem: {},
showFinishFinanceDialog: false, showFinishFinanceDialog: false,
imageUrl: '', imageUrl: '',
showLargeDialog: false showLargeDialog: false,
defaultTime: ''
} }
}, },
created() { 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() this.getList()
}, },
methods: { methods: {
handleOnChange(value) {
console.log('===', value)
},
handlePreview(voucher) { handlePreview(voucher) {
if (voucher) { if (voucher) {
this.imageUrl = voucher this.imageUrl = voucher
......
...@@ -162,9 +162,6 @@ export default { ...@@ -162,9 +162,6 @@ export default {
itemKey: 0, itemKey: 0,
loadingInstance: {}, loadingInstance: {},
options: [{ options: [{
value: 1,
label: '待付款'
}, {
value: 10, value: 10,
label: '待发货' 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