date
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: Do not edit
 | 
			
		||||
 * @Date: 2024-04-22 15:49:56
 | 
			
		||||
 * @LastEditTime: 2024-04-25 08:39:13
 | 
			
		||||
 * @LastEditTime: 2024-04-25 09:10:07
 | 
			
		||||
 * @LastEditors: DY
 | 
			
		||||
 * @Description: 
 | 
			
		||||
-->
 | 
			
		||||
@@ -33,7 +33,7 @@
 | 
			
		||||
<script>
 | 
			
		||||
// import monthWeek from '../glass/month.vue'
 | 
			
		||||
// import proMonth from '../productionMonthReport/index.vue'
 | 
			
		||||
import { productionMonthY } from '@/api/report/glass';
 | 
			
		||||
import { productionMonthY, productionMonthD } from '@/api/report/glass';
 | 
			
		||||
import { parseTime } from '../../core/mixins/code-filter'
 | 
			
		||||
import FileSaver from 'file-saver'
 | 
			
		||||
import * as XLSX from 'xlsx/xlsx.mjs'
 | 
			
		||||
@@ -46,7 +46,7 @@ export default {
 | 
			
		||||
    return {
 | 
			
		||||
      heightNum: 240,
 | 
			
		||||
      listQuery: {
 | 
			
		||||
				time: parseTime(new Date())
 | 
			
		||||
				time: ''
 | 
			
		||||
      },
 | 
			
		||||
      // startTimeStamp: '',
 | 
			
		||||
      // endTimeStamp: '',
 | 
			
		||||
@@ -68,9 +68,12 @@ export default {
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  created() {
 | 
			
		||||
    // this.getCurrentMonthFirst()
 | 
			
		||||
    // this.glassWeekShow = true
 | 
			
		||||
    // this.proWeekShow = true
 | 
			
		||||
    let now = new Date()
 | 
			
		||||
    now.setHours(0, 0, 0, 0)
 | 
			
		||||
    now.setDate(1)
 | 
			
		||||
    let startOfMonth = now.getTime()
 | 
			
		||||
    let firstDayOfMonth = new Date(startOfMonth)
 | 
			
		||||
    this.listQuery.time = parseTime(firstDayOfMonth)
 | 
			
		||||
  },
 | 
			
		||||
  mounted() {
 | 
			
		||||
    this.getList()
 | 
			
		||||
@@ -113,6 +116,19 @@ export default {
 | 
			
		||||
        })
 | 
			
		||||
        this.buildTableData()
 | 
			
		||||
      })
 | 
			
		||||
      await productionMonthD(this.listQuery).then(res => {
 | 
			
		||||
        console.log('11', res.data)
 | 
			
		||||
        // this.resData = res.data
 | 
			
		||||
        // // 设置表头
 | 
			
		||||
        // Object.keys(this.resData).forEach(item => {
 | 
			
		||||
        //   this.tableProps.push({
 | 
			
		||||
        //     prop: item,
 | 
			
		||||
        //     label: item,
 | 
			
		||||
        //     'show-overflow-tooltip': true
 | 
			
		||||
        //   })
 | 
			
		||||
        // })
 | 
			
		||||
        // this.buildTableData()
 | 
			
		||||
      })
 | 
			
		||||
    },
 | 
			
		||||
    // 设置表格数据
 | 
			
		||||
    buildTableData() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user