<template>
  <el-container>
    <el-header style="width: 100%; height: 60px;font-size: 12px">
      <el-form :inline="true"  label-width="65px"  label-position="left">
        <el-row>
          <el-col :span="18">
            <el-form-item label="船号:">
              <vxe-pulldown ref="xDown4" transfer >
                <template #default>
                  <vxe-input
                    v-model="queryParam.dcch"
                    placeholder="船号"
                    style="height: 28px;
                    line-height: 28px; width: 150px;"
                    suffix-icon="vxe-icon--search"
                    @keyup="keyupEvent4"
                    @focus="focusEvent4"
                  />
                </template>
                <template #dropdown>
                  <div class="my-dropdown  mytable " style="width: 250px">
                    <vxe-grid
                      highlight-hover-row
                      height="auto"

                      :data="projectData"
                      :columns="projectColumns"
                      @cell-click="cellClickEvent"
                      show-overflow
                    >
                      <template #wgbsEdit="{ row}">
                        <vxe-checkbox v-model="row.wgbs"  checked-value="Y" unchecked-value="N"   disabled ></vxe-checkbox>
                      </template>
                    </vxe-grid>
                  </div>
                </template>
              </vxe-pulldown>
            </el-form-item>
            <el-form-item label="批量:">
              <el-input v-model="queryParam.dcpl" type="search" placeholder="批量" ></el-input>
              -
              <el-input v-model="queryParam.dcpl1" type="search" placeholder="批量" ></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="6">
            <el-form-item style="float: right" >
              <el-button type="success" @click="initList">查询</el-button>
              <el-button type="success" @click="handlerYqb">预切板计算</el-button>
              <el-button
                class="out-item"
                type="primary"
                icon="el-icon-download"
                @click="handleExport"
              >导出Excel</el-button>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </el-header>
    <el-container  style="padding-top: 0px">
      <el-container>
        <el-main>
          <div class="mytable">
            <vxe-grid
              id="id"
              ref="xGrid"
              border
              resizable
              :align="'center'"
              :height="height"
              :columns="tableColumn"
              highlight-current-row
              :data="list"
              :custom-config="{ storage: true }"
              :cell-style="cellClassName"
              highlight-hover-row
              show-overflow
              show-footer
              :footer-cell-style="{'text-align':'center','color':'red'}"
              :footer-method="footerMethod"
            >
              <template #hjdwDefault="{ row }">
                  <span>{{ hdwNum(row) }}</span>
              </template>
              <template #lqhjDefault="{ row }">
                <span>{{ lqhjNum(row) }}</span>
              </template>
              <template #shhjDefault="{ row }">
                <span>{{ shhjNum(row) }}</span>
              </template>
            </vxe-grid>
          </div>
        </el-main>
      </el-container>
    </el-container>
  </el-container>
</template>

<script>
import {
  getYdjhzzList, getCzplBase, dbs
} from '@/api/sjzx/jcsj'
import { mapGetters } from 'vuex'
import XEUtils from 'xe-utils'
import { getToken } from '@/utils/auth'
export default {
  name:'YdjhzzCX',
  data() {
    return {
      queryParam: {
        dcch:'',
        dcpl:'',
        dcpl1:''
      },
      list: [],
      heads: { token: getToken() },
      dictData:{},
      height: '500px',
      projectData:[],
      projectData1:[],
      projectColumns: [
        {field: 'cbbm', title: '船号',width: 110},
        { field: 'wgbs', title: '完工标识', width: 80,
          slots:{
            default: 'wgbsEdit'
          },
        },
      ],
      tableColumn: [

        { type: 'seq', width: 60, title: '序号',fixed:"left" },
        {field: 'dcCh', title: '船号', width: 100,fixed:"left",
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'dcPl', title: '批量', width: 100,fixed:"left",
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'dcFd', title: '分段', width: 100,fixed:"left",
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'lm1', title: '龙门1', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_lm1', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_lm1', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '龙门1余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '龙门1前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '龙门1零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 's1', title: '数1', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_s1', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_s1', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数1余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数1前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数1零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'xj2', title: '激光小2', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_xj2', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_xj2', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小激光2余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小激光2前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小激光2零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'dj2', title: '激光中大2', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_dj2', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_dj2', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大激光2余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大激光2前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大激光2零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'sx2', title: '数小2', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_sx2', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_sx2', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数小2余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数小2前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数小2零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'szd2', title: '数中大2', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_szd2', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_szd2', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数中大2余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数中大2前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数中大2零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'xf', title: '小腹', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_xf', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_xf', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小腹余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小腹前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小腹零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'df', title: '大腹', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_df', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_df', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大腹余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大腹前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大腹零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'xzhb', title: '小组厚板', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_xzhb', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_xzhb', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小组厚板余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小组厚板前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小组厚板零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'dzhb', title: '大组厚板', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_dzhb', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_dzhb', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大组厚板余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大组厚板前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大组厚板零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'sx4', title: '数小4', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_sx4', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_sx4', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数小4余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数小4前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数小4零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'jz4', title: '机肘4', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_jz4', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_jz4', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '机肘4余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '机肘4前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '机肘4零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'xm', title: '小面', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_xm', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_xm', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小面余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小面前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小面零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'dm', title: '大面', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_dm', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_dm', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大面余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大面前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大面零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'sx3', title: '手小3', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_sx3', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_sx3', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '手小3余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '手小3前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '手小3零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'sj3', title: '手机3', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_sj3', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_sj3', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '手机3余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '手机3前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '手机3零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'szd3', title: '手中大3', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_szd3', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_szd3', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '手中大3余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '手中大3前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '手中大3零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'xzxcgs', title: '小组型材根数', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小组型材领取米数', title: '小组型材领取米数', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小组型材实耗米数', title: '小组型材实耗米数', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'lqzl_xzxc', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'shzl_xzxc', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小组型材余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小组型材前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小组型材零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },

        {field: 'dzxcgs', title: '大组型材根数', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大组型材领取米数', title: '大组型材领取米数', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大组型材实耗米数', title: '大组型材实耗米数', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'lqzl_dzxc', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'shzl_dzxc', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大组型材余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大组型材前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大组型材零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'fggs', title: '方钢根数', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '方钢领取米数', title: '方钢领取米数', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '方钢实耗米数', title: '方钢实耗米数', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'lqzl_fg', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'shzl_fg', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '方钢余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '方钢前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '方钢零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'xcgs_hj', title: '型材根数合计', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'xcms_hj', title: '型材总米数（不含方钢）', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'lqhj_xz', title: '小组领取合计', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'shhj_xz', title: '小组实耗合计', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'szd4', title: '数中大4', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_szd4', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_szd4', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数中大4余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数中大4前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数中大4零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'sq2x', title: '数曲2小', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_sq2x', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_sq2x', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数曲2小余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数曲2小前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数曲2小零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'sq2d', title: '数曲2大', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_sq2d', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_sq2d', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数曲2大余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数曲2大前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '数曲2大零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'xq3', title: '小曲3', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_xq3', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_xq3', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小曲3余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小曲3前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '小曲3零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'dq3', title: '大曲3', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_dq3', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_dq3', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大曲3余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大曲3前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '大曲3零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'gd', title: '光电', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bclqzl_gd', title: '领取重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'bcshzl_gd', title: '实耗重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '光电余料重量', title: '余料重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '光电前批余料代', title: '前批余料代', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: '光电零件重量', title: '零件重量', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        // {field: 'hdw1', title: '合吨位', width: 100,
        //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
        //   filterRender: { name: 'FilterCombination', }, },
        {field: 'lqhj_dz', title: '大组领取合计', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'shhj_dz', title: '大组实耗合计', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        // {field: 'hjdw', title: '合计吨位', width: 100,slots: { default: 'hjdwDefault' },
        //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
        //   filterRender: { name: 'FilterCombination', }, },
        {field: 'lqhj', title: '领取合计', width: 100,slots: { default: 'lqhjDefault' },
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'shhj', title: '实耗合计', width: 100,slots: { default: 'shhjDefault' },
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'hjbs', title: '板数合计', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'xflj', title: '小腹零件', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
        {field: 'dflj', title: '大腹零件', width: 100,
          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination', }, },
  ]
    }
  },
  computed: {
    ...mapGetters(['name', 'bmbm'])
  },
  created() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
    this.initBase()
  },
  methods: {
    handlerYqb(){
      if (this.queryParam.dcch === '') {
        this.$message.warning('选择船只编号')
        return
      }
      dbs(this.queryParam).then(()=>{
        this.initList();
      })
    },
    footerMethod ({ columns, data }) {
      const sumGroup=["lm1","s1","sx2","szd2","xf","df","xzhb","dzhb","sx4","jz4","xm","dm","sx3","sj3","szd3","xzxc","xzgs","dzxc","dzgs","fg","szd4","sq2x","sq2d","xq3","dq3","gd","xflj","dflj",
        "bclqzl_lm1","bclqzl_s1","bclqzl_sx2","bclqzl_szd2","bclqzl_xf","bclqzl_df","bclqzl_xzhb","bclqzl_dzhb","bclqzl_sx4","bclqzl_jz4","bclqzl_xm","bclqzl_dm","bclqzl_sx3","bclqzl_sj3",
        "bclqzl_szd3","lqzl_xzxc","lqzl_dzxc","lqzl_fg","bclqzl_szd4","bclqzl_sq2x","bclqzl_sq2d","bclqzl_xq3","bclqzl_dq3","bclqzl_gd","bclqzl_xflj","bclqzl_dflj","bcshzl_lm1","bcshzl_s1","bcshzl_sx2",
        "bcshzl_szd2","bcshzl_xf","bcshzl_df","bcshzl_xzhb","bcshzl_dzhb","bcshzl_sx4","bcshzl_jz4","bcshzl_xm","bcshzl_dm","bcshzl_sx3","bcshzl_sj3","bcshzl_szd3","bcshzl_xzxc","shzl_xzxc",
        "shzl_dzxc","shzl_fg","bcshzl_szd4","bcshzl_sq2x","bcshzl_sq2d","bcshzl_xq3","bcshzl_dq3","bcshzl_gd","bcshzl_xflj","bcshzl_dflj","lqhj_xz","lqhj_dz","shhj_xz","shhj_dz",
        "龙门1余料重量","龙门1前批余料代","龙门1零件重量","数1余料重量","数1前批余料代","数1零件重量","数小2余料重量","数小2前批余料代","数小2零件重量","数中大2余料重量","数中大2前批余料代","数中大2零件重量","小腹余料重量",
        "小腹前批余料代","小腹零件重量","大腹余料重量","大腹前批余料代","大腹零件重量","小组厚板余料重量","小组厚板前批余料代","小组厚板零件重量","大组厚板余料重量","大组厚板前批余料代","大组厚板零件重量","数小4余料重量",
        "数小4前批余料代","数小4零件重量","机肘4余料重量","机肘4前批余料代","机肘4零件重量","小面余料重量","小面前批余料代","小面零件重量","大面余料重量","大面前批余料代","大面零件重量","手小3余料重量","手小3前批余料代",
        "手小3零件重量","手机3余料重量","手机3前批余料代","手机3零件重量","手中大3余料重量","手中大3前批余料代","手中大3零件重量","小组型材余料重量","小组型材前批余料代","小组型材零件重量","大组型材余料重量","大组型材前批余料代",
        "大组型材零件重量","数中大4余料重量","数中大4前批余料代","数中大4零件重量","数曲2小余料重量","数曲2小前批余料代","数曲2小零件重量","数曲2大余料重量","数曲2大前批余料代","数曲2大零件重量","小曲3余料重量","小曲3前批余料代",
        "小曲3零件重量","大曲3余料重量","大曲3前批余料代","大曲3零件重量","光电余料重量","光电前批余料代","光电零件重量","xzxcgs","dzxcgs","fggs","小组型材领取米数","大组型材领取米数","小组型材实耗米数","大组型材实耗米数"
        ,"方钢实耗米数","方钢领取米数","方钢余料重量","方钢前批余料代","方钢零件重量","xcgs_hj","xcms_hj"
      ]

      //激光2
      sumGroup.push("xj2","bclqzl_xj2","bcshzl_xj2","小激光2余料重量","小激光2前批余料代","小激光2零件重量")
      sumGroup.push("dj2","bclqzl_dj2","bcshzl_dj2","大激光2余料重量","大激光2前批余料代","大激光2零件重量")
      return [
        columns.map((column, columnIndex) => {
          if (columnIndex === 1) {
            return '合计'
          }

          if (sumGroup.includes(column.property)) {
            return this.sumNum(data, column.property)
          }
          if (["hdw","hdw1","hjbs",'lqhj_xz','shhj_xz','lqhj_dz','shhj_dz'].includes(column.property)) {
            return this.sumNum(data, column.property)
          }
          if (["hjdw"].includes(column.property)) {
            return this.cal.accAdd(this.sumNum(data, 'hdw'), this.sumNum(data, 'hdw1'))
          }
          if (["lqhj"].includes(column.property)) {
            return this.cal.accAdd(this.sumNum(data, 'lqhj_xz'), this.sumNum(data, 'lqhj_dz'))
          }
          if (["shhj"].includes(column.property)) {
            return this.cal.accAdd(this.sumNum(data, 'shhj_xz'), this.sumNum(data, 'shhj_dz'))
          }
          return null
        })
      ]
    },
    sumNum(list, field) {
      let count = 0
      list.forEach(item => {
        let num = Number(item[field])
        if (!XEUtils.isNumber(num) || isNaN(num)) {
          num = 0
        }
        count = this.cal.accAdd(count, num)
      })
      return count
    },
    cellClassName ({ row, column }) {
       let fields=['lm1','s1','sx2','szd2','xf','df','xzhb','dzhb','sx4','jz4',
                  'xm','dm','sx3','sj3','szd3','xzxcgs','dzxcgs','fggs','szd4','sq2x',
                  'sq2d','xq3','dq3','gd',"xj2",'dj2'
       ]
      let hzfields=['hdw','lqhj_xz','shhj_xz','hdw1','lqhj_dz','shhj_dz']
      let zjfields=['hjdw','lqhj','shhj','hjbs']
      if (fields.includes(column.property)) {
        return {
          background: 'rgba(69,255,40,0.89)',
          cursor: 'pointer'
        }
      }
      if (hzfields.includes(column.property)) {
        return {
          color: '#0415cc',
          cursor: 'pointer'
        }
      }
      if (zjfields.includes(column.property)) {
        return {
          color: '#f50202',
          cursor: 'pointer'
        }
      }
      return null
    },
    handleExport() {
      this.$refs.xGrid.exportData({
        filename: `${this.queryParam.dcch}跟踪记录`,// 文件名字
        sheetName: 'Sheet1',
        type: 'xlsx',//导出文件类型 xlsx 和 csv
        data: this.list, // 数据源
        // sheetMethod: this.sheetMethod,
        useStyle: true,
        // 过滤那个字段导出
        columnFilterMethod: function(column, $columnIndex) {
          return !(column.$columnIndex === 0 )
          // 0是复选框 不导出
        }
      })
    },
    hdwNum(row){
      var n=(row.hdw+row.hdw1).toFixed(1);
      return n;
    },
    lqhjNum(row){
      var lqhj=(row.lqhj_xz+row.lqhj_dz).toFixed(1);
      return lqhj;
    },
    shhjNum(row){
      var shhj=(row.shhj_xz+row.shhj_dz).toFixed(1);
      return shhj;
    },
    initList() {
      if (this.queryParam.dcch === '') {
        this.$message.warning('选择船只编号')
        return
      }
      getYdjhzzList(this.queryParam).then((res) => {
       this.list = res.data
      })
    },
    initBase(){
      getCzplBase({}).then(res=>{
        this.dictData = res.data
        this.projectData=res.data.cbbm
        this.projectData1=res.data.cbbm

      })
    },
    cellClickEvent({row}) {
      this.queryParam.dcch = row.cbbm
      this.$refs.xDown4.hidePanel()
    },
    focusEvent4() {
      this.$refs.xDown4.showPanel()
    },
    keyupEvent4() {
      if (this.queryParam.dcch) {
        this.projectData = this.projectData1.filter(row => row.cbbm.indexOf(this.queryParam.dcch.toUpperCase()) > -1)
      } else {
        this.projectData = this.projectData1.slice(0)
      }

    },
    formatDate ({ cellValue }) {
      return XEUtils.toDateString(cellValue, 'yyyy/MM/dd')
    },
    getHeight() {
      this.height = window.innerHeight - 160
    },
  }
}
</script>
<style lang="scss" scoped >

.el-header{margin:0;padding: 5px;height:auto;
  .el-input{
    width: 140px;
  }
  .el-select{
    width: 140px;
  }

}
.el-container{padding: 0;margin:0;}
.el-main{padding: 0;}
.el-col{padding: 0;height: 32px;}
.el-aside{background: #fff;padding: 0}
.el-container{padding: 0}
.el-row {}
.el-row:last-child {margin-bottom: 0; }

.tableStyles{
  background: #0a76a4;
}

.my-dropdown {
  width: 400px;
  height: 400px;
  background-color: #fff;
  border: 1px solid #dcdfe6;
  box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
  font-size: 12px;

}
.mytable1{

}
.borderClass{

}
.vxe-input {
  display: inline-block !important;
  position: relative !important;
  width: auto;
}
.el-input {
  display: inline-block !important;
  position: relative !important;
  width: auto;
}
.keyword-lighten {
  color: #000;
  background-color: #FFFF00;
}

.vxe-textarea--inner {
  line-height: inherit;
}
.el-form-item__label-wrap {
  margin-left: 0px !important;
  float: left;
}
.fontClass{
  font-size: 12px;
  font-weight: bold;
}


</style>
