给报表查询时间段进行修改,默认3个月
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
<a-range-picker
|
||||
style="width: 100%"
|
||||
v-model="queryParam.createTimeRange"
|
||||
:default-value="defaultTimeStr"
|
||||
format="YYYY-MM-DD"
|
||||
:placeholder="['开始时间', '结束时间']"
|
||||
@change="onDateChange"
|
||||
@@ -141,7 +140,7 @@
|
||||
<script>
|
||||
import BillDetail from '../bill/dialog/BillDetail'
|
||||
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
||||
import { getNowFormatYear } from "@/utils/util"
|
||||
import { getFormatDate, getNowFormatYear, getPrevMonthFormatDate } from '@/utils/util'
|
||||
import {getAction} from '@/api/manage'
|
||||
import {findBySelectOrgan, findBillDetailByNumber, getUserList, getAllOrganizationTreeByUser} from '@/api/api'
|
||||
import JEllipsis from '@/components/jeecg/JEllipsis'
|
||||
@@ -169,8 +168,9 @@
|
||||
number: '',
|
||||
materialParam:'',
|
||||
depotId: '',
|
||||
beginTime: getNowFormatYear() + '-01-01',
|
||||
endTime: moment().format('YYYY-MM-DD'),
|
||||
beginTime: getPrevMonthFormatDate(3),
|
||||
endTime: getFormatDate(),
|
||||
createTimeRange: [moment(getPrevMonthFormatDate(3)), moment(getFormatDate())],
|
||||
type: "出库",
|
||||
creator: "",
|
||||
organizationId: '',
|
||||
@@ -180,9 +180,6 @@
|
||||
pageSize: 11,
|
||||
pageSizeOptions: ['11', '21', '31', '101', '201', '301', '1001', '2001', '3001']
|
||||
},
|
||||
dateFormat: 'YYYY-MM-DD',
|
||||
currentDay: moment().format('YYYY-MM-DD'),
|
||||
defaultTimeStr: '',
|
||||
organList: [],
|
||||
depotList: [],
|
||||
userList: [],
|
||||
@@ -227,7 +224,6 @@
|
||||
this.initSupplier()
|
||||
this.initUser()
|
||||
this.loadAllOrgaData()
|
||||
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
|
||||
},
|
||||
methods: {
|
||||
moment,
|
||||
@@ -239,9 +235,11 @@
|
||||
return param;
|
||||
},
|
||||
onDateChange: function (value, dateString) {
|
||||
console.log(dateString[0],dateString[1]);
|
||||
this.queryParam.beginTime=dateString[0];
|
||||
this.queryParam.endTime=dateString[1];
|
||||
this.queryParam.beginTime=dateString[0]
|
||||
this.queryParam.endTime=dateString[1]
|
||||
if(dateString[0] && dateString[1]) {
|
||||
this.queryParam.createTimeRange = [moment(dateString[0]), moment(dateString[1])]
|
||||
}
|
||||
},
|
||||
loadData(arg) {
|
||||
if (arg === 1) {
|
||||
|
||||
Reference in New Issue
Block a user