Authored by 陈峰

Merge branch 'feature/finance' into 'release/3.0'

对账日期修改



See merge request !21
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 </filter-item> 17 </filter-item>
18 <filter-item :label="filters.createTime.label"> 18 <filter-item :label="filters.createTime.label">
19 <Date-picker v-model="filters.createTime.model" 19 <Date-picker v-model="filters.createTime.model"
20 - type="datetimerange" format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期和时间"> 20 + type="daterange" format="yyyy-MM-dd" placeholder="选择日期">
21 </Date-picker> 21 </Date-picker>
22 </filter-item> 22 </filter-item>
23 <filter-item> 23 <filter-item>
@@ -16,7 +16,6 @@ @@ -16,7 +16,6 @@
16 <Button @click="returnPage">返回结算单列表</Button> 16 <Button @click="returnPage">返回结算单列表</Button>
17 <Button type="primary" @click="search">筛选</Button> 17 <Button type="primary" @click="search">筛选</Button>
18 <Button @click="reset">清空条件</Button> 18 <Button @click="reset">清空条件</Button>
19 -  
20 </filter-item> 19 </filter-item>
21 </layout-filter> 20 </layout-filter>
22 <layout-list> 21 <layout-list>
@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 </filter-item> 10 </filter-item>
11 <filter-item :label="filters.createTime.label"> 11 <filter-item :label="filters.createTime.label">
12 <Date-picker v-model="filters.createTime.model" 12 <Date-picker v-model="filters.createTime.model"
13 - type="datetimerange" format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期和时间"> 13 + type="daterange" format="yyyy-MM-dd" placeholder="选择日期">
14 </Date-picker> 14 </Date-picker>
15 </filter-item> 15 </filter-item>
16 <filter-item> 16 <filter-item>
  1 +let date = new Date();
  2 +let agoMonthFirstDay = new Date(date.getFullYear(),date.getMonth()-1,1);
  3 +let agoMonthLastDay = new Date(date.getFullYear(),date.getMonth()-1,30);
  4 +
1 export default { 5 export default {
2 filters: { 6 filters: {
3 balanceId: { 7 balanceId: {
@@ -11,13 +15,13 @@ export default { @@ -11,13 +15,13 @@ export default {
11 label: '品牌', 15 label: '品牌',
12 labelSpan: 6, 16 labelSpan: 6,
13 model: '', 17 model: '',
14 - holder: '1111', 18 + holder: '',
15 fieldSpan: 18 19 fieldSpan: 18
16 }, 20 },
17 createTime: { 21 createTime: {
18 label: '创建时间', 22 label: '创建时间',
19 labelSpan: 6, 23 labelSpan: 6,
20 - model: '', 24 + model: [agoMonthFirstDay, agoMonthLastDay],
21 holder: '', 25 holder: '',
22 fieldSpan: 18 26 fieldSpan: 18
23 } 27 }