将报表中的时间段改为当前年

This commit is contained in:
神话
2022-05-04 11:02:37 +08:00
parent 8940b6e846
commit 0d60fd5306
7 changed files with 21 additions and 21 deletions

View File

@@ -119,7 +119,7 @@
<script>
import BillDetail from '../bill/dialog/BillDetail'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getNowFormatMonth, openDownloadDialog, sheet2blob} from "@/utils/util"
import { getNowFormatYear, openDownloadDialog, sheet2blob} from "@/utils/util"
import {getAction} from '@/api/manage'
import {findBySelectCus, findBillDetailByNumber} from '@/api/api'
import JEllipsis from '@/components/jeecg/JEllipsis'
@@ -146,7 +146,7 @@
number: '',
materialParam:'',
depotId: '',
beginTime: getNowFormatMonth() + '-01',
beginTime: getNowFormatYear() + '-01-01',
endTime: moment().format('YYYY-MM-DD'),
type: "出库",
remark: ''
@@ -194,7 +194,7 @@
created () {
this.getDepotData()
this.initSupplier()
this.defaultTimeStr = [moment(getNowFormatMonth() + '-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
this.defaultTimeStr = [moment(getNowFormatYear() + '-01-01', this.dateFormat), moment(this.currentDay, this.dateFormat)]
},
methods: {
moment,