<template>
  <div class="app-container">
    <el-card class="topCard">
      <div class="topDiv">
        <div>
          <span style="margin-left: 10px">时间：</span>
          <el-date-picker
            :clearable="false"
            v-model="dateTime"
            size="small"
            type="daterange"
            align="center"
            style="width: 240px;"
            value-format="yyyy-MM-dd"
            format="yyyy-MM-dd"
            range-separator="～"
            start-placeholder="开始日期"
            end-placeholder="结束日期"
            @change="getOrderNumber();getAssemblyNumber()"/>
          <span style="margin-left: 10px">总成编号：</span>
          <el-select
            v-model="assemblyNumberValue"
            placeholder="请选择总成编号"
            allow-create
            filterable
            clearable
            size="small"
            style="width: 280px; margin-left: 13px">
            <el-option
              v-for="item in assemblyNumber"
              :key="item.ID"
              :label="item.label"
              :value="item.value"
              size="mini"/>
          </el-select>
          <span style="margin-left: 10px">订单号：</span>
          <el-select
            v-model="orderNumberValue"
            placeholder="请选择订单"
            clearable
            filterable
            size="small"
            style="width: 200px"
            @change="getAssemblyNumber()">
            <el-option
              v-for="item in orderNumber"
              :key="item.value"
              :label="item.label"
              :value="item.value"
              size="mini"/>
          </el-select>
          <el-button
            type="primary"
            plain
            size="small"
            icon="el-icon-search"
            style="margin-left: 5px"
            @click="selectDate()">查询
          </el-button>
          <el-button type="info" size="small" icon="el-icon-download" @click="exportExcel()">Excel</el-button>
        </div>
        <el-table
          v-loading="loading"
          ref="multipleTable"
          :data="tableData"
          :header-cell-style="{background:'#eef1f6',color:'#606266'}"
          :cell-class-name="tableRowClassName"
          element-loading-text="数据加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.2)"
          highlight-current-row
          class="main"
          tooltip-effect="dark"
          height="260px"
          style="width: 100%;max-height: 73vh"
          border
          size="mini"
          @row-click="selectDate1">
          <!--        <el-table-column :selectable="selectable" type="selection" width="45" align="center"/>-->
          <el-table-column type="index" width="60" label="序号" align="center"/>
          <el-table-column align="center" label="订单号">
            <template slot-scope="scope">
              {{ scope.row.订单号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="机型">
            <template slot-scope="scope">
              {{ scope.row.机型 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="总成编号">
            <template slot-scope="scope">
              {{ scope.row.发动机号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="上线时间">
            <template slot-scope="scope">
              {{ scope.row.到达时间 }}
            </template>
          </el-table-column>
        </el-table>
        <div class="block" style="margin-top: 10px;">
          <el-pagination
            v-if="!loading"
            :current-page="pageCurrent"
            :page-sizes="[15, 30, 40]"
            :page-size="pageSize"
            :total="total"
            layout="total, sizes, prev, pager, next, jumper"
            @size-change="handleSizeChange"
            @current-change="handleCurrentChange"/>
        </div>
        <h3>过站信息</h3>
        <el-table
          v-loading="loading1"
          ref="multipleTable"
          :data="tableData1"
          :header-cell-style="{background:'#eef1f6',color:'#606266'}"
          :cell-class-name="tableRowClassName"
          element-loading-text="数据加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.2)"
          class="main"
          tooltip-effect="dark"
          height="960px"
          style="width: 100%;max-height: 73vh"
          border
          size="mini">
          <!--        <el-table-column :selectable="selectable" type="selection" width="45" align="center"/>-->
          <el-table-column type="index" width="60" label="序号" align="center"/>
          <el-table-column align="center" label="订单号">
            <template slot-scope="scope">
              {{ scope.row.订单号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="机型">
            <template slot-scope="scope">
              {{ scope.row.机型 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="总成编号">
            <template slot-scope="scope">
              {{ scope.row.发动机号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="工位号">
            <template slot-scope="scope">
              {{ scope.row.工位号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="到达时间">
            <template slot-scope="scope">
              {{ scope.row.到达时间 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="离开时间">
            <template slot-scope="scope">
              {{ scope.row.离开时间 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="在线时间(s)">
            <template slot-scope="scope">
              {{ scope.row.在线时间 }}
            </template>
          </el-table-column>
          <!--          <el-table-column align="center" label="操作者工号" width="90px">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.操作者工号 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <el-table-column align="center" label="是否合格" width="80px">
            <template slot-scope="scope">
              {{ scope.row.是否合格 }}
            </template>
          </el-table-column>

          <!--          <el-table-column align="center" label="操作时间">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.操作时间 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
        </el-table>
        <div class="block" style="margin-top: 10px;">
          <el-pagination
            v-if="!loading1"
            :current-page="pageCurrent1"
            :page-sizes="[15, 30, 40]"
            :page-size="pageSize1"
            :total="total1"
            layout="total, sizes, prev, pager, next, jumper"
            @size-change="handleSizeChange1"
            @current-change="handleCurrentChange1"/>
        </div>
        <h3>物料信息</h3>
        <el-table
          v-loading="loading2"
          ref="multipleTable"
          :data="tableData2"
          :header-cell-style="{background:'#eef1f6',color:'#606266'}"
          :cell-class-name="tableRowClassName"
          element-loading-text="数据加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.2)"
          class="main"
          tooltip-effect="dark"
          height="960px"
          style="width: 100%;max-height: 73vh"
          border
          size="mini">
          <!--        <el-table-column :selectable="selectable" type="selection" width="45" align="center"/>-->
          <el-table-column type="index" width="60" label="序号" align="center"/>
          <el-table-column align="center" width="120px" label="订单号">
            <template slot-scope="scope">
              {{ scope.row.订单号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" width="100px" label="型号">
            <template slot-scope="scope">
              {{ scope.row.发动机型号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="总成编号">
            <template slot-scope="scope">
              {{ scope.row.发动机号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" width="100px" label="工位号">
            <template slot-scope="scope">
              {{ scope.row.工位号 }}
            </template>
          </el-table-column>
          <!--          <el-table-column align="center" label="工位名称">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.工序名称 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <el-table-column align="center" width="100px" label="零件数量">
            <template slot-scope="scope">
              {{ scope.row.零件数量 }}
            </template>
          </el-table-column>
          <el-table-column align="center" min-width="150px" label="零件名称">
            <template slot-scope="scope">
              {{ scope.row.零件名称 }}
            </template>
          </el-table-column>
          <!--          <el-table-column align="center" width="150px" label="零件图号">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.零件图号 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <el-table-column align="center" width="150px" label="物料号">
            <template slot-scope="scope">
              {{ scope.row.物料号 }}
            </template>
          </el-table-column>
          <!--          <el-table-column align="center" label="生产厂家">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.生产厂家 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <el-table-column align="center" min-width="150px" label="物料条码">
            <template slot-scope="scope">
              {{ scope.row.物料条码 }}
            </template>
          </el-table-column>
          <!--          <el-table-column align="center" label="物料条码批次">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.物料条码批次 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <el-table-column align="center" label="操作时间">
            <template slot-scope="scope">
              {{ scope.row.操作时间 }}
            </template>
          </el-table-column>
        </el-table>
        <div class="block" style="margin-top: 10px;">
          <el-pagination
            v-if="!loading2"
            :current-page="pageCurrent2"
            :page-sizes="[15, 30, 40]"
            :page-size="pageSize2"
            :total="total2"
            layout="total, sizes, prev, pager, next, jumper"
            @size-change="handleSizeChange2"
            @current-change="handleCurrentChange2"/>
        </div>
        <h3>质量信息</h3>
        <el-table
          v-loading="loading3"
          ref="multipleTable"
          :data="tableData3"
          :header-cell-style="{background:'#eef1f6',color:'#606266'}"
          :cell-class-name="tableRowClassName"
          element-loading-text="数据加载中"
          element-loading-spinner="el-icon-loading"
          element-loading-background="rgba(0, 0, 0, 0.2)"
          class="main"
          tooltip-effect="dark"
          height="960px"
          style="width: 100%;max-height: 73vh"
          border
          size="mini">
          <el-table-column type="index" width="60" label="序号" align="center"/>
          <el-table-column align="center" width="120px" label="订单号">
            <template slot-scope="scope">
              {{ scope.row.订单号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="机型">
            <template slot-scope="scope">
              {{ scope.row.发动机型号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="总成编号">
            <template slot-scope="scope">
              {{ scope.row.发动机号 }}
            </template>
          </el-table-column>
          <el-table-column align="center" width="100px" label="工位号">
            <template slot-scope="scope">
              {{ scope.row.工位号 }}
            </template>
          </el-table-column>
          <!--          <el-table-column align="center" label="工位名称">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.工位名称 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <el-table-column align="center" width="150px" label="测量位置">
            <template slot-scope="scope">
              {{ scope.row.测量位置 }}
            </template>
          </el-table-column>
          <el-table-column align="center" width="100px" label="测量项目">
            <template slot-scope="scope">
              {{ scope.row.测量项目 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="测量值" width="100px">
            <template slot-scope="scope">
              {{ scope.row.测量值 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="理论值" width="60px">
            <template slot-scope="scope">
              {{ scope.row.理论值 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="上限值" width="60px">
            <template slot-scope="scope">
              {{ scope.row.上限值 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="下限值" width="60px">
            <template slot-scope="scope">
              {{ scope.row.下限值 }}
            </template>
          </el-table-column>
          <el-table-column align="center" label="测量单位" width="80px">
            <template slot-scope="scope">
              {{ scope.row.测量单位 }}
            </template>
          </el-table-column>
          <!--          <el-table-column align="center" label="理论值" width="80px">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.理论值 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <!--          <el-table-column align="center" label="值上限" width="80px">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.上限值 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <!--          <el-table-column align="center" label="值下限" width="80px">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.下限值 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <el-table-column align="center" width="150px" label="生产日期">
            <template slot-scope="scope">
              {{ scope.row.生产日期 }}
            </template>
          </el-table-column>
          <!--          <el-table-column align="center" width="120px" label="操作者工号">-->
          <!--            <template slot-scope="scope">-->
          <!--              {{ scope.row.操作者工号 }}-->
          <!--            </template>-->
          <!--          </el-table-column>-->
          <el-table-column align="center" label="合格标志" width="80px">
            <template slot-scope="scope">
              {{ scope.row.合格标志 }}
            </template>
          </el-table-column>
        </el-table>
        <div class="block" style="margin-top: 10px;">
          <el-pagination
            v-if="!loading3"
            :current-page="pageCurrent3"
            :page-sizes="[15, 30, 40]"
            :page-size="pageSize3"
            :total="total3"
            layout="total, sizes, prev, pager, next, jumper"
            @size-change="handleSizeChange3"
            @current-change="handleCurrentChange3"/>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  data() {
    return {
      traceabilityCodeArr: [], // 精确追溯码数组
      traceabilityCode: '', // 精确追溯码
      assemblyNumber: [], // 总成编号
      assemblyNumberValue: '', // 总成编号
      orderNumberValue: '', // 订单号
      orderNumber: [], // 订单号
      stationNumberValue: '', // 工位号
      stationNumber: [], // 工位号
      stationNumberValueN: '', // 工位号N
      stationNumberN: [], // 工位号N
      measuringPosition: [], // 测量位置
      measuringPositionValue: '', // 测量位置
      measuringProject: [], // 测量项目
      measuringProjectValue: '', // 测量项目
      engineTypeValue: '', // 机型
      engineType: [], // 机型
      batchBarcode: [], // 批次条码
      batchBarcodeValue: '', // 批次条码
      isQualified: [
        {
          label: '合格',
          value: 1
        }, {
          label: '不合格',
          value: 2
        }, {
          label: '全部',
          value: 0
        }
      ], // 是否合格
      isQualifiedValue: 1, // 是否合格
      dateTime: '', // 时间
      loading: false, // 时间
      loading1: false, // 时间
      loading2: false, // 时间
      loading3: false, // 时间
      tableData: [], // 时间
      tableData1: [], // 时间
      tableData2: [], // 时间
      tableData3: [], // 时间
      date: new Date(),
      timer: '',
      assemblyNumberValue1: '', // 总成编号
      total: 0, // 总条数
      total1: 0, // 总条数
      total2: 0, // 总条数
      total3: 0, // 总条数
      pageList: 30, // 每页显示条数
      pageSize: 30, // 每页显示条数
      pageSize1: 30, // 每页显示条数
      pageSize2: 30, // 每页显示条数
      pageSize3: 30, // 每页显示条数
      pageCurrent: 1, // 后台获取页
      pageCurrent1: 1, // 后台获取页
      pageCurrent2: 1, // 后台获取页
      pageCurrent3: 1 // 后台获取页
    }
  },
  created() {
    var year, month, day, audiTime
    this.date = new Date() // 修改数据date
    year = new Date().getFullYear()
    month = new Date().getMonth() + 1 < 10 ? '0' + (new Date().getMonth() + 1) : new Date().getMonth() + 1
    day = new Date().getDate() < 10 ? '0' + new Date().getDate() : new Date().getDate()
    audiTime = year + '-' + month + '-' + day
    console.log(audiTime, 'audiTime')
    this.dateTime = [audiTime, audiTime]
    this.getStationNumber()
    this.getStationNumberN()
  },
  mounted() {
    this.getOrderNumber()
    this.getAssemblyNumber()
  },
  methods: {
    // 表格颜色变化
    tableRowClassName({ row, rowIndex }) {
      // console.log(row, rowIndex)
      if (rowIndex % 2 === 0) {
        return 'black'
      } else {
        return 'red'
      }
    },
    // 工位号
    getStationNumber() {
      this.stationNumber = []
      var param = []
      var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
      this.ExecDatabase(Data).then(response => {
        for (let i = 0; i < response.data.length; i++) {
          this.stationNumber.push({
            label: response.data[i].工位号,
            value: response.data[i].工位号
          })
        }
      })
    },
    // 工位号N
    getStationNumberN() {
      this.stationNumberN = []
      var param = []
      var Data = this.CreateData('11', 'MES_计划BOM_工位与名称_查询', param)
      this.ExecDatabase(Data).then(response => {
        for (let i = 0; i < response.data.length; i++) {
          this.stationNumberN.push({
            label: response.data[i].工位号,
            value: response.data[i].工位号
          })
        }
      })
    },
    // 订单号
    getOrderNumber() {
      this.orderNumber = []
      var param = []
      param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00:00']
      param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59:59']
      // param[0] = ['开始时间', this.dateTime[0]]
      // param[1] = ['结束时间', this.dateTime[1]]
      var Data = this.CreateData('11', '测量数据发动机在线状态_订单号_查询 ', param)
      this.ExecDatabase(Data).then(response => {
        for (let i = 0; i < response.data.length; i++) {
          this.orderNumber.push({
            label: response.data[i].订单号,
            value: response.data[i].订单号
          })
        }
      })
    },
    getAssemblyNumber() {
      this.assemblyNumber = []
      var orderNumberValue_check
      this.orderNumberValue ? orderNumberValue_check = 1 : orderNumberValue_check = 0
      var param = []
      param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00:00']
      param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59:59']
      // param[0] = ['开始时间', this.dateTime[0]]
      // param[1] = ['结束时间', this.dateTime[1]]
      param[2] = ['订单号_ischeck', orderNumberValue_check]
      param[3] = ['订单号', this.orderNumberValue]
      var Data = this.CreateData('11', '测量数据发动机在线状态_发动机号_查询 ', param)
      this.ExecDatabase(Data).then(response => {
        for (let i = 0; i < response.data.length; i++) {
          this.assemblyNumber.push({
            label: response.data[i].发动机号,
            value: response.data[i].发动机号,
            ID: response.data[i].ID
          })
        }
      })
    },
    selectDate() {
      this.tableData = []
      let orderNumberValue_check, assemblyNumberValue_check
      this.assemblyNumberValue ? assemblyNumberValue_check = 1 : (assemblyNumberValue_check = 0, this.assemblyNumberValue = '')
      this.orderNumberValue ? orderNumberValue_check = 1 : (orderNumberValue_check = 0, this.orderNumberValue = '')
      var param = []
      param[0] = ['开始时间', this.dateTime[0] + ' ' + '00:00:00']
      param[1] = ['结束时间', this.dateTime[1] + ' ' + '23:59:59']
      param[2] = ['发动机号_ischeck', assemblyNumberValue_check]
      param[3] = ['发动机号', this.assemblyNumberValue]
      param[4] = ['订单号_ischeck', orderNumberValue_check]
      param[5] = ['订单号', this.orderNumberValue]
      param[6] = ['PageCurrent', this.pageCurrent]
      param[7] = ['PageSize', this.pageSize]
      param[8] = ['PageCount', '1111', 'int', '1']
      param[9] = ['ItemCount', '1111', 'int', '1']
      var Data = this.CreateData('11', '电子档案_发动机号_查询', param)
      this.ExecDatabase(Data).then(response => {
        console.log(response, 66)
        if (response.data.result.length !== 0) {
          this.tableData = response.data.result
        }
        this.total = parseInt(response.data.output[0].ItemCount)
        this.loading = false
      })
    },
    selectDate1(row) {
      this.assemblyNumberValue1 = row.发动机号
      this.tableData1 = []
      this.tableData2 = []
      this.tableData3 = []
      var param = []
      param[0] = ['发动机号', row.发动机号]
      param[1] = ['PageCurrent', this.pageCurrent1]
      param[2] = ['PageSize', this.pageSize1]
      param[3] = ['PageCount', '1111', 'int', '1']
      param[4] = ['ItemCount', '1111', 'int', '1']
      var Data = this.CreateData('11', '电子档案_过站信息_查询', param)
      this.ExecDatabase(Data).then(response => {
        if (response.data.result.length !== 0) {
          this.tableData1 = response.data.result
        }
        this.total1 = parseInt(response.data.output[0].ItemCount)
        this.loading1 = false
      })
      var Data1 = this.CreateData('11', '电子档案_物料数据_查询', param)
      this.ExecDatabase(Data1).then(response => {
        console.log(response, 66)
        if (response.data.result.length !== 0) {
          this.tableData2 = response.data.result
        }
        this.total2 = parseInt(response.data.output[0].ItemCount)
        this.loading2 = false
      })
      var Data2 = this.CreateData('11', '电子档案_质量数据_查询', param)
      this.ExecDatabase(Data2).then(response => {
        console.log(response, 66)
        if (response.data.result.length !== 0) {
          this.tableData3 = response.data.result
        }
        this.total3 = parseInt(response.data.output[0].ItemCount)
        this.loading3 = false
      })
    },
    exportExcel() {
      if (this.tableData.length !== 0) {
        var param = []
        param[0] = ['发动机号', this.assemblyNumberValue1]
        var Data = this.CreateData('2005', '产品电子档案_导出_查询数据', param)
        this.exportExcel_NPOIDaChai(Data)
      } else {
        this.$message.warning('暂无数据')
      }
    },
    // 分页
    handleSizeChange(val) {
      this.pageCurrent = 1
      this.pageSize = val
      this.selectDate()
    },
    handleCurrentChange(val) {
      this.pageCurrent = val
      this.selectDate()
    },
    handleSizeChange1(val) {
      this.pageCurrent1 = 1
      this.pageSize1 = val
      var param = []
      param[0] = ['发动机号', this.assemblyNumberValue1]
      param[1] = ['PageCurrent', this.pageCurrent1]
      param[2] = ['PageSize', this.pageSize1]
      param[3] = ['PageCount', '1111', 'int', '1']
      param[4] = ['ItemCount', '1111', 'int', '1']
      var Data = this.CreateData('11', '电子档案_过站信息_查询', param)
      this.ExecDatabase(Data).then(response => {
        if (response.data.result.length !== 0) {
          this.tableData1 = response.data.result
        }
        this.total1 = parseInt(response.data.output[0].ItemCount)
        this.loading1 = false
      })
    },
    handleCurrentChange1(val) {
      this.pageCurrent1 = val
      var param = []
      param[0] = ['发动机号', this.assemblyNumberValue1]
      param[1] = ['PageCurrent', this.pageCurrent1]
      param[2] = ['PageSize', this.pageSize1]
      param[3] = ['PageCount', '1111', 'int', '1']
      param[4] = ['ItemCount', '1111', 'int', '1']
      var Data = this.CreateData('11', '电子档案_过站信息_查询', param)
      this.ExecDatabase(Data).then(response => {
        if (response.data.result.length !== 0) {
          this.tableData1 = response.data.result
        }
        this.total1 = parseInt(response.data.output[0].ItemCount)
        this.loading1 = false
      })
    },
    handleSizeChange2(val) {
      this.pageCurrent2 = 1
      this.pageSize2 = val
      var param = []
      param[0] = ['发动机号', this.assemblyNumberValue1]
      param[1] = ['PageCurrent', this.pageCurrent2]
      param[2] = ['PageSize', this.pageSize2]
      param[3] = ['PageCount', '1111', 'int', '1']
      param[4] = ['ItemCount', '1111', 'int', '1']
      var Data = this.CreateData('11', '电子档案_物料信息_查询', param)
      this.ExecDatabase(Data).then(response => {
        if (response.data.result.length !== 0) {
          this.tableData2 = response.data.result
        }
        this.total2 = parseInt(response.data.output[0].ItemCount)
        this.loading2 = false
      })
    },
    handleCurrentChange2(val) {
      this.pageCurrent2 = val
      var param = []
      param[0] = ['发动机号', this.assemblyNumberValue1]
      param[1] = ['PageCurrent', this.pageCurrent2]
      param[2] = ['PageSize', this.pageSize2]
      param[3] = ['PageCount', '1111', 'int', '1']
      param[4] = ['ItemCount', '1111', 'int', '1']
      var Data = this.CreateData('11', '电子档案_物料信息_查询', param)
      this.ExecDatabase(Data).then(response => {
        if (response.data.result.length !== 0) {
          this.tableData2 = response.data.result
        }
        this.total2 = parseInt(response.data.output[0].ItemCount)
        this.loading2 = false
      })
    },
    handleSizeChange3(val) {
      this.pageCurrent3 = 1
      this.pageSize3 = val
      var param = []
      param[0] = ['发动机号', this.assemblyNumberValue1]
      param[1] = ['PageCurrent', this.pageCurrent3]
      param[2] = ['PageSize', this.pageSize3]
      param[3] = ['PageCount', '1111', 'int', '1']
      param[4] = ['ItemCount', '1111', 'int', '1']
      var Data = this.CreateData('11', '电子档案_质量数据_查询', param)
      this.ExecDatabase(Data).then(response => {
        if (response.data.result.length !== 0) {
          this.tableData3 = response.data.result
        }
        this.total3 = parseInt(response.data.output[0].ItemCount)
        this.loading3 = false
      })
    },
    handleCurrentChange3(val) {
      this.pageCurrent3 = val
      var param = []
      param[0] = ['发动机号', this.assemblyNumberValue1]
      param[1] = ['PageCurrent', this.pageCurrent3]
      param[2] = ['PageSize', this.pageSize3]
      param[3] = ['PageCount', '1111', 'int', '1']
      param[4] = ['ItemCount', '1111', 'int', '1']
      var Data = this.CreateData('11', '电子档案_质量数据_查询', param)
      this.ExecDatabase(Data).then(response => {
        if (response.data.result.length !== 0) {
          this.tableData3 = response.data.result
        }
        this.total3 = parseInt(response.data.output[0].ItemCount)
        this.loading3 = false
      })
    }
  }
}
</script>

<style scoped>
.topCard {
  margin: 5px;
}

.topDiv {
  margin-bottom: 10px;
}
</style>
