loulijun2021
2022-09-27 bbb03ff09f77e4ece3dfcf80df855829399528ae
src/views/bbgl/rygz.vue
@@ -42,7 +42,7 @@
            <el-form-item v-show="isExpandForm" label="报工人员" style=" display: flex;">
              <el-input v-model="form.reportname" style="width: 200px" placeholder="请输入" />
            </el-form-item>
            <el-form-item v-show="isExpandForm" label="报工时间">
            <el-form-item v-show="isExpandForm" label="报工时间" style="display: flex;align-items: center">
              <el-date-picker
                v-model="form.reportdate"
                type="daterange"
@@ -59,7 +59,7 @@
            </el-form-item>
          </div>
          <div style="display: flex;align-items: start;margin-top: 5px;z-index: 2">
          <div class="bodySearchReset">
            <el-button type="primary" icon="el-icon-search" @click="search">查询</el-button>
            <el-button type="info" icon="el-icon-refresh" @click="reset">重置</el-button>
          </div>
@@ -77,6 +77,8 @@
      <div class="elTableDiv" style="margin-top: 0">
        <el-table
          ref="tableDataRef"
          class="tableFixed"
          :data="tableData"
          :height="isExpandForm?tableHeight:(tableHeight+40)+'px'"
          border
@@ -116,6 +118,7 @@
          <el-table-column
            prop="partspec"
            label="产品规格"
            width="160"
            show-tooltip-when-overflow
            sortable="custom"
          >
@@ -176,8 +179,8 @@
          </el-table-column>
          <el-table-column
            prop="usermoney"
            label="记件工资"
            width="110"
            label="班组记件工资"
            width="130"
            sortable="custom"
          >
            <template slot-scope="{row}">
@@ -196,6 +199,7 @@
            label="报工时间"
            width="160"
            sortable="custom"
            fixed="right"
          />
        </el-table>
@@ -259,10 +263,7 @@
import ImportPicker from '@/components/ImportPicker'
import { handleDatetime, validateCode } from '@/utils/global'
import {
  GroupSalaryReportExcelSearch,
  GroupSalaryReportSearch,
  GroupSalaryReportSearchUser,
  OutSourceReportExcelSearch, PeopleSalaryReportExcelSearch, PeopleSalaryReportSearch
  GroupSalaryReportSearchUser, PeopleSalaryReportExcelSearch, PeopleSalaryReportSearch
} from '@/api/bbgl'
import { MesOrderStepReportSelectUserGroup } from '@/api/scgl'
@@ -511,6 +512,7 @@
      this.$nextTick(() => {
        this.mainHeight = window.innerHeight - 85
        this.tableHeight = this.mainHeight - 245
        this.$refs.tableDataRef.doLayout()
      })
    },
    tableRowClassName({ row, rowIndex }) {
@@ -640,6 +642,15 @@
  align-items: center;
  justify-content: center;
}
.tableFixed{
  ::v-deep .el-table__fixed-right{
    height: 100% !important;
  }
  ::v-deep .el-table__fixed{
    height: 100% !important;
  }
}
</style>
<style>