schangxiang@126.com
2025-09-19 9be9c3784b2881a3fa25e93ae2033dc2803c0ed0
SiemensWarehouse/siemens2-site/src/views/stat/inventory/deviceGeneralInfo.vue
@@ -14,6 +14,7 @@
            end-placeholder="结束日期"
          >
          </el-date-picker>
            <el-input v-model="searchParam.ext1" placeholder="车号" class="search"></el-input>
            <el-button type="success" plain @click="find(1)" >查询</el-button>
             <el-button type="info" plain @click="reset" >重置</el-button>
      </el-row>
@@ -28,6 +29,7 @@
      type="index"
      width="50">
    </el-table-column>
        <el-table-column label="车号" prop="ext1" width="80"></el-table-column>
        <el-table-column label="运行时间(分钟)" prop="deviceRunTime" width="220"></el-table-column>
        <el-table-column label="报警时间(分钟)" prop="deviceAlarmTime" width="220"></el-table-column>
        <el-table-column label="等待时间(分钟)" prop="deviceWaitTime" width="220"></el-table-column>
@@ -226,8 +228,8 @@
      // import("@/vendor/Export2Excel")
      this.downloadLoading = true
      import('@/vendor/Export2Excel').then(excel => {
        const tHeader = ['运行时间(分钟)', '报警时间(分钟)', '等待时间(分钟)','时间']
        const filterVal = ['deviceRunTime', 'deviceAlarmTime', 'deviceWaitTime', 'createTime']
        const tHeader = ['车号','运行时间(分钟)', '报警时间(分钟)', '等待时间(分钟)','时间']
        const filterVal = ['ext1','deviceRunTime', 'deviceAlarmTime', 'deviceWaitTime', 'createTime']
        const data = this.formatJson(filterVal, this.TakeStocklistAll)
        excel.export_json_to_excel({
          header: tHeader,
@@ -257,7 +259,7 @@
    reset() {
      this.searchParam.materialName = null
      this.searchParam.materialCode = null
      this.searchParam.SalesOrder = null
      this.searchParam.ext1 = null
      this.selectTypeValue = ''
      this.datatime = ''
      this.initTimeData();//重置时间