<template>
  <el-container>
    <el-header style="width: 100%; height: 100px;font-size: 12px">
<!--      <el-row :gutter="5">-->
<!--        <el-col :span="20">-->
<!--          <el-col :span="5">-->
<!--            <el-form-item label="工程编号">-->
<!--            <el-select v-model="queryParam.czbh" filterable  placeholder="工程编号" @change="czbhChange" style="width: 50%">-->
<!--              <el-option-->
<!--                v-for="item in projectData"-->
<!--                :key="item.czbh"-->
<!--                :label="item.czbh"-->
<!--                :value="item.czbh">-->
<!--              </el-option>-->
<!--            </el-select>-->
<!--            </el-form-item>-->
<!--          </el-col>-->
<!--          <el-col :span="5">-->
<!--            <el-form-item label="工程编号">-->
<!--              <el-select v-model="queryParam.czbh" filterable  placeholder="工程编号" @change="czbhChange" style="width: 50%">-->
<!--                <el-option-->
<!--                  v-for="item in projectData"-->
<!--                  :key="item.czbh"-->
<!--                  :label="item.czbh"-->
<!--                  :value="item.czbh">-->
<!--                </el-option>-->
<!--              </el-select>-->
<!--            </el-form-item>-->
<!--          </el-col>-->
<!--          <el-col :span="5">-->
<!--            <span>分段号：</span>-->
<!--            <el-input v-model="filterName1" type="search" placeholder="分段号" ></el-input>-->
<!--          </el-col>-->
<!--          <el-col :span="5">-->
<!--            <el-form-item label="工程编号">-->
<!--              <el-select v-model="queryParam.czbh" filterable  placeholder="工程编号" @change="czbhChange" style="width: 50%">-->
<!--                <el-option-->
<!--                  v-for="item in projectData"-->
<!--                  :key="item.czbh"-->
<!--                  :label="item.czbh"-->
<!--                  :value="item.czbh">-->
<!--                </el-option>-->
<!--              </el-select>-->
<!--            </el-form-item>-->
<!--          </el-col>-->

<!--          &lt;!&ndash;          <el-col :span="8">&ndash;&gt;-->
<!--          &lt;!&ndash;            <span>分段号：</span>&ndash;&gt;-->
<!--          &lt;!&ndash;            <el-input v-model="filterName1" type="search" placeholder="分段号" ></el-input>&ndash;&gt;-->
<!--          &lt;!&ndash;          </el-col>&ndash;&gt;-->


<!--        </el-col>-->
<!--        <el-col :span="4" style="text-align:right">-->
<!--          <el-button type="success" @click="loadData()">查询</el-button>-->



<!--          <el-button type="success"  @click.native="uploadExcel">    <el-upload-->
<!--            :action="uploadAction"-->
<!--            :show-file-list="false"-->
<!--            :before-upload="beforeAvatarUpload"-->
<!--            :data="uploadData"-->
<!--            :on-success="handleAvatarSuccess"-->
<!--            :disabled="uploadState==0?true:false"-->
<!--            :headers="heads"-->
<!--          >-->
<!--            直观图模板导入-->
<!--          </el-upload>   </el-button>-->



<!--        </el-col>-->
<!--      </el-row>-->
      <el-form :inline="true"  label-width="70px" >
        <el-row>

            <el-col :span="20">
            <el-form-item label="工程编号:"  >
              <el-select v-model="queryParam.czbh" filterable  placeholder="工程编号" @change="czbhChange" clearable >
                <el-option
                  v-for="item in dictData.czbhs"
                  :key="item.czbh"
                  :label="item.czbh"
                  :value="item.czbh">
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="作业阶段:">
              <el-select v-model="queryParam.zyjd" filterable  placeholder="作业阶段" @change="czbhChange" clearable >
                <el-option
                  v-for="item in dictData.zyjds"
                  :key="item.bm"
                  :label="item.bmms"
                  :value="item.bm">
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="分段号:">
              <el-input v-model="queryParam.fdh" type="search" placeholder="分段号" ></el-input>
            </el-form-item>
            <el-form-item label="部件类别:">
              <el-select v-model="queryParam.bjlb" filterable  placeholder="部件类别" clearable>
                <el-option
                  v-for="item in dictData.bjlbs"
                  :key="item.bm"
                  :label="item.bmsm"
                  :value="item.bm">
                </el-option>
              </el-select>
            </el-form-item>
<!--            <el-form-item label="工程编号">-->
<!--              <el-select v-model="queryParam.czbh" filterable  placeholder="工程编号" @change="czbhChange" >-->
<!--                <el-option-->
<!--                  v-for="item in projectData"-->
<!--                  :key="item.czbh"-->
<!--                  :label="item.czbh"-->
<!--                  :value="item.czbh">-->
<!--                </el-option>-->
<!--              </el-select>-->
<!--            </el-form-item>-->
          </el-col>
          <el-col :span="4">
            <el-form-item style="float: right" >
              <el-button type="success" @click="loadData">查询</el-button>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>

          <el-col :span="20">

            <el-form-item label="托盘表号:" >
              <el-input v-model="queryParam.tpbh" type="search" placeholder="托盘表号"  clearable></el-input>
            </el-form-item>
            <el-form-item label="安装图号:">
              <el-input v-model="queryParam.azth" type="search" placeholder="安装图号" clearable ></el-input>
            </el-form-item>
            <el-form-item label="制作图号:">
              <el-input v-model="queryParam.zzth" type="search" placeholder="制作图号"  clearable></el-input>
            </el-form-item>
            <el-form-item label="部件描述:">
              <el-input v-model="queryParam.bjms" type="search" placeholder="部件描述"  clearable></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item style="float: right" >
              <el-button type="success" @click="exprotExcel">导出</el-button>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row>

          <el-col :span="20">
            <el-form-item label="需求部门:">
              <el-select v-model="queryParam.xqdw" filterable  placeholder="需求部门" clearable   :disabled="this.flag" >
<!--              <el-select v-model="queryParam.xqdw" filterable  placeholder="需求部门" clearable    >-->
                <el-option
                  v-for="item in dictData.xqdws"
                  :key="item.bm"
                  :label="item.mc"
                  :value="item.bm">
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="">
              <el-select v-model="queryParam.rqopt" filterable  placeholder=""    >
                <!--              <el-select v-model="queryParam.xqdw" filterable  placeholder="需求部门" clearable    >-->
                <el-option
                  v-for="item in rqopts"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value">
                </el-option>
              </el-select>
              <el-date-picker v-model="queryParam.jhrq" value-format="yyyy/MM/dd" format="yyyy/MM/dd" type="date"  style="width: 130px" clearable placeholder=""/>
              <span  style="width:4%;font-size: 13px;color: #606266;">&nbsp;至&nbsp;</span>
              <el-date-picker v-model="queryParam.jhrq1" value-format="yyyy/MM/dd"  format="yyyy/MM/dd" type="date"style="width: 130px" clearable  placeholder=""/>
            </el-form-item>
            <el-form-item label="所属车间:">
              <el-select v-model="queryParam.bmbm" filterable  placeholder="所属车间"  clearable >
                <el-option
                  v-for="item in dictData.bmbms"
                  :key="item.bm"
                  :label="item.bmsm"
                  :value="item.bm">
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4">

          </el-col>
        </el-row>

      </el-form>
    </el-header>
    <el-container :style="defaultHeight" style="padding-top: 0px">
      <!--    <el-container >-->

      <el-main>
        <div class="mytable" >

          <vxe-grid
            id="id"
            ref="xGrid"
            border
            :footer-method="footerMethod"
            resizable
            show-header-overflow
            :custom-config="{storage: true}"
            :height="height"
            :row-config="{isHover: true,isCurrent:true}"
            :columns="tableColumn"
            :data="tableData"
            align="center"
            @cell-click="cellClick"
            :row-class-name="rowClassName"
            :header-cell-style="headerCellStyle"
            :show-footer="true"
          >


          </vxe-grid>
          <!--            <vxe-table-->
          <!--                align="center"-->
          <!--              :data="tableData">-->
          <!--              <template v-for="item in col">-->
          <!--                <vxe-column type="column"+{{item}}+ width="60"></vxe-column>-->
          <!--              </template>-->


          <!--            </vxe-table>-->
        </div>
      </el-main>

    </el-container>

  </el-container>

</template>

<script>
import { startLoading, endLoading } from '@/utils'
import { mapGetters } from 'vuex'
import { getToken } from '@/utils/auth'
import { getTpBase, findTPxqjh } from '@/api/fd/base'
import {getSumAdd,exportByExcel} from '@/utils/rpkj'
export default {
  // 船只分段直观图定义
  name: 'Tpxqjhjdcx',
  data() {
    return {

      defaultHeight: { height: '' },

      heads: { token: getToken() },
      uploadAction: process.env.VUE_APP_BASE_API + '/api/dmCzfddyb/upload',
      uploadData: {},
      queryParam: {
        czbh: '',
        zyjd:'',
        fdh:'',
        bjlb:'',
        tpbh:'',
        azth:'',
        zzth:'',
        bjms:'',
        xqdw:'',
        bmbm:'',
        jhrq:'',
        jhrq1:'',
        rqopt:'',
      },
      rqopts:[
        {
          value:'01',
          label: '集团计划需求期'
        }, {
          value:'02',
          label: '分段计划需求期'
        }

      ],
      uploadState: 0,
      isupload:'01',
      dictData: {},
      projectData: [],
      col:0,
      //    tableData: [],
      tableColumn: [
        { type: 'seq', width: 60, title: '序号' },
        { field: 'jhqh', title: '计划期号', width: 100 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'czbh', title: '船只编号', width: 90 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zyjd', title: '作业阶段', width: 90 ,formatter: ['dictXtFormat','ZYJD'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'fdh', title: '分段号', width: 80 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'tpbh', title: '托盘表号', width: 110 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'hh', title: '行号', width: 80 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'azth', title: '安装图号', width: 100 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zztph', title: '批号/卡号', width: 80 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zzth', title: '制作图号', width: 110 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zztmc', title: '制作图名称', width: 150 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'bjdh', title: '部件号', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'bjmc', title: '部件名称', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'wpgg', title: '规格+型号+材质', width: 210 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jhxqrq', title: '集团三月滚动计划期', width: 150 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'fdxqrq', title: '分段计划需求期', width: 150 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zyzzssbm', title: '需求部门', width: 100 ,formatter: ['ddeptFormat'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zyzzcjmc', title: '作业车间及场地', width: 140 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'xqsl', title: '需求数量', width: 70 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'bjzl', title: '单重', width: 80 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'bjzzl', title: '总重', width: 80 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'xzjhrkrq', title: '舾装公司计划集配入库', width: 160 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zdcp', title: '重点产品', width: 100 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'tplx', title: '部件分类', width: 100 ,formatter: ['dictFormat','TPLX'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'ygpprq', title: '预计配送期', width: 100 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'fkpprq', title: '反馈配送期', width: 150 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'xqtsc', title: '需求/反馈差距', width: 160 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'fkwtsm', title: '反馈说明', width: 100 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'sscj', title: '所属车间', width: 100 ,formatter: ['dictFormat','BMBM'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jhlx', title: '计划类型', width: 100 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jhjtrq', title: '设计院计划发图日期', width: 150 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jtxqts', title: '需求发图天数差', width: 150 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'sjltsj', title: '实际接图日期', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'ltxqts', title: '需求来图天数差', width: 130 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jhxqrq_sq', title: '上期滚动计划需求日期', width: 160 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jhbgts', title: '变更天数', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jhxqrq_ls', title: '滚动计划需求期变更历史', width: 165 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'por_no', title: '采购需求编号', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'lc', title: '来处', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },

        { field: 'zzt_zt', title: '技术处理状态', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zzt_gyspsj', title: '工艺审批时间', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zzt_cplx', title: '产品类型', width: 120 ,formatter: ['dictFormat','CPLX'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zzt_clfs', title: '表面处理方式', width: 120 ,formatter: ['dictFormat','CLFS'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zzt_bmcl', title: '表面处理', width: 120 ,formatter: ['dictFormat','CLFS'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zzt_ntzdm', title: '内表面涂装代码', width: 130 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'zzt_wtzdm', title: '外表面涂装代码', width: 130 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'xglx', title: '修改类型', width: 120 ,formatter: ['dictFormat','TPXG'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'xgph', title: '修改批号/卡号', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'xgsj', title: '修改时间', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'xgtzdh', title: '修改通知单号', width: 140 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'sc_zt', title: '制作状态', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'sgdw', title: '结构施工单位', width: 120 ,formatter: ['deptFormat'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jgwgrq', title: '结构实际完工日期', width: 140 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'tzdw', title: '表面处理单位', width: 120 ,formatter: ['deptFormat'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'tzjsrq', title: '表面处理接收日期', width: 140 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'tzwgrq', title: '表面处理时间完工日期', width: 140 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'scqkbz', title: '生产情况备注', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'psdw', title: '配送单位', width: 120 ,formatter: ['deptFormat'],

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jprkrq', title: '集配入库完工时间', width: 140 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'ps_zt', title: '配送状态', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'qfsqrq', title: '前方配送申请日期', width: 140 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'qfxqrq', title: '前方实际需求期', width: 140 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'qfpssl', title: '前方配送数量', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'qfpswc', title: '配送完成情况', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'qfpsrq', title: '实际配送日期', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'qfqrrq', title: '配送确认日期', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'psqkbz', title: '配送情况备注', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jhdrry', title: '计划导入人员', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
        { field: 'jhdrrq', title: '计划导入日期', width: 120 ,

          filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          filterRender: { name: 'FilterCombination' },
        },
      ],
      columns:[],
      filterName1:'',
      tableData: [
        // { id: 10001, name: 'Test1', nickname: 'T1', role: 'Develop', sex: 'Man', age: 0, address: 'Shenzhen' },
        // { id: 10002, name: 'Test2', nickname: 'T2', role: 'Test', sex: 'Women', age: 22, address: 'Guangzhou' },
        // { id: 10003, name: 'Test3', nickname: 'T3', role: 'PM', sex: 'Man', age: 100, address: 'Shanghai' },
        // { id: 10004, name: 'Test4', nickname: 'T4', role: 'Designer', sex: 'Women', age: 70, address: 'Shenzhen' },
        // { id: 10005, name: 'Test5', nickname: 'T5', role: 'Develop', sex: 'Women', age: 10, address: 'Shanghai' },
        // { id: 10006, name: 'Test6', nickname: 'T6', role: 'Designer', sex: 'Women', age: 90, address: 'Shenzhen' },
        // { id: 10007, name: 'Test7', nickname: 'T7', role: 'Test', sex: 'Man', age: 5, address: 'Shenzhen' },
        // { id: 10008, name: 'Test8', nickname: 'T8', role: 'Develop', sex: 'Man', age: 80, address: 'Shenzhen' }
      ]
    }
  },
  computed: {
    ...mapGetters([
      'name',
      'bmbm',
      'apbm'
    ]),




  },
  created() {
    window.addEventListener('resize', this.getHeight)
    this.getHeight()
    this.baseSeacrh()
    this.uploadState=0
    //this.queryParam.jhrq=rq;
    this.queryParam.rqopt='01'
    // this.queryParam.bmbm='02'
    // this.loadData()
    if(this.apbm){

    }
    if(this.apbm.length>2){
      this.queryParam.xqdw=this.apbm
        this.flag=true;
      this.queryParam.rqopt='02';
    }else{
      this.flag=false;
    }
      if(this.flag){
        this.tableColumn= [
          { type: 'seq', width: 60, title: '序号' },
          // { field: 'jhqh', title: '计划期号', width: 100 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          { field: 'czbh', title: '船只编号', width: 90 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'zyjd', title: '作业阶段', width: 90 ,formatter: ['dictXtFormat','ZYJD'],

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'fdh', title: '分段号', width: 80 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'tpbh', title: '托盘表号', width: 110 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          // { field: 'hh', title: '行号', width: 80 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'azth', title: '安装图号', width: 100 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'zztph', title: '批号/卡号', width: 80 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'zzth', title: '制作图号', width: 110 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'zztmc', title: '制作图名称', width: 150 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          { field: 'bjdh', title: '部件号', width: 120 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'bjmc', title: '部件名称', width: 120 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'wpgg', title: '规格+型号+材质', width: 210 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },

          // { field: 'jhxqrq', title: '集团三月滚动计划期', width: 150 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'fdxqrq', title: '分段计划需求期', width: 150 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'zyzzssbm', title: '需求部门', width: 100 ,formatter: ['ddeptFormat'],
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          { field: 'zyzzcjmc', title: '作业车间及场地', width: 140 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          // { field: 'xqsl', title: '需求数量', width: 70 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          { field: 'bjzl', title: '单重', width: 80 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'bjzzl', title: '总重', width: 80 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          // { field: 'xzjhrkrq', title: '舾装公司计划集配入库', width: 160 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'zdcp', title: '重点产品', width: 100 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          { field: 'tplx', title: '部件分类', width: 100 ,formatter: ['dictFormat','TPLX'],

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'ygpprq', title: '预计配送期', width: 100 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'fkpprq', title: '反馈配送期', width: 150 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'xqtsc', title: '需求/反馈差距', width: 160 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          // { field: 'fkwtsm', title: '反馈说明', width: 100 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          { field: 'sscj', title: '所属车间', width: 100 ,formatter: ['dictFormat','BMBM'],

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          // { field: 'jhlx', title: '计划类型', width: 100 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'jhjtrq', title: '设计院计划发图日期', width: 150 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'jtxqts', title: '需求发图天数差', width: 150 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'sjltsj', title: '实际接图日期', width: 120 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'ltxqts', title: '需求来图天数差', width: 130 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'jhxqrq_sq', title: '上期滚动计划需求日期', width: 160 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'jhbgts', title: '变更天数', width: 120 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'jhxqrq_ls', title: '滚动计划需求期变更历史', width: 165 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'por_no', title: '采购需求编号', width: 120 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'lc', title: '来处', width: 120 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },


          // { field: 'zzt_cplx', title: '产品类型', width: 120 ,formatter: ['dictFormat','CPLX'],
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'zzt_clfs', title: '表面处理方式', width: 120 ,formatter: ['dictFormat','CLFS'],
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'zzt_bmcl', title: '表面处理', width: 120 ,formatter: ['dictFormat','CLFS'],
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'zzt_ntzdm', title: '内表面涂装代码', width: 130 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'zzt_wtzdm', title: '外表面涂装代码', width: 130 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          { field: 'xglx', title: '修改类型', width: 120 ,formatter: ['dictFormat','TPXG'],

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          // { field: 'xgph', title: '修改批号/卡号', width: 120 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          { field: 'xgsj', title: '修改时间', width: 120 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'xgtzdh', title: '修改通知单号', width: 140 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'jprkrq', title: '集配入库完工时间', width: 140 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },

          // { field: 'qfsqrq', title: '前方配送申请日期', width: 140 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          { field: 'qfxqrq', title: '前方实际需求期', width: 140 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'qfpssl', title: '前方配送数量', width: 120 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'qfpswc', title: '配送完成情况', width: 120 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'qfpsrq', title: '实际配送日期', width: 120 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          { field: 'qfqrrq', title: '配送确认日期', width: 120 ,

            filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
            filterRender: { name: 'FilterCombination' },
          },
          // { field: 'psqkbz', title: '配送情况备注', width: 120 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'jhdrry', title: '计划导入人员', width: 120 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          // { field: 'jhdrrq', title: '计划导入日期', width: 120 ,
          //
          //   filters: [{ data: { checks: [], sVal: '', sMenu: '', fType1: '', fVal1: '', fMode: 'and', fType2: '', fVal2: '' } }],
          //   filterRender: { name: 'FilterCombination' },
          // },
          //
        ]
      }
  },
  methods: {
    czbhChange(){

    },

    cellClick(row){
      console.log(row)
    },

    rowClassName({ row, rowIndex ,column}){
      console.log(row.qfpsrq)
      if(row.qfpsrq!=='' && row.qfpsrq!==undefined && row.qfpsrq!==null){
        return 'row-green'
      }else if(row.xqtsc<-7){
        return 'row-yellow'
      }

    },


    headerCellStyle ({ column, columnIndex }) {
      if (['jhxqrq','fdxqrq',
        "jhjtrq","jtxqts","qfxqrq"].includes(column.property)) {
        return {
          backgroundColor: '#2db7f5',
          color: '#ffffff'
        }
      }
      if (['sjltsj',"'ltxqts'",'qfpsrq',"qfqrrq","ltxqts"
      ].includes(column.property)) {
        return {
          backgroundColor: '#43b812',
          color: '#ffffff'
        }
      }
      if (['xzjhrkrq','ygpprq','fkpprq',"xqtsc",
      ].includes(column.property)) {
        return {
          backgroundColor: '#e4bc0a',
          color: '#ffffff'
        }
      }

    },

    footerMethod ({ columns, data }) {
      return [
        columns.map((column, columnIndex) => {
          if (['xqsl','bjzzl'].includes(column.property)) {

            return getSumAdd(data, column.property)
          }
          if (columnIndex === 1) {
            return '合计'
          }
          return null
        })
      ]
    },
    exprotExcel(){
      startLoading()
      exportByExcel(this.tableColumn,this.$refs.xGrid.getTableData().visibleData,0,'托盘需求计划进度.xlsx')
      endLoading();
    },


    cellStyle({ row, rowIndex, column }) {
      // if(row[column.property]){
      //   return {
      //
      //     border:'1px solid black'
      //
      //     // textAlign:'center'
      //   }
      // }

    },



    async baseSeacrh() {
      getTpBase({  }).then(response => {
        this.dictData = response.data
      })
    },
    loadData() {
      console.log(this.queryParam.jhrq)
      if(this.queryParam.czbh===''&& (this.queryParam.jhrq===null||this.queryParam.jhrq==='')){
        this.$message.warning('请选择查询条件 工程编号和计划需求开始时间不能同时为空')
        return
      }
      findTPxqjh(this.queryParam).then(res=>{

        if(res.success){



          //this.tableData=res.data.data
          // this.tableData=res.data.data

          this.$refs.xGrid.reloadData(res.data)
          //this.list=res.data.data
        }
      })

    },



    getHeight() {
      this.height = window.innerHeight - 190
      this.defaultHeight.height = window.innerHeight - 190 + 'px'
    },
  }
}
</script>

<style lang="scss" scoped >

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

}
.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;
}


</style>
