<template>
  <div class="produce-report customer-css">
    <el-dialog v-drag
               @close="closeDialog"
               width="900px" class="customer-dialog"
               :title="titleCon" v-bind="$attrs" v-on="$listeners">
      <el-form :inline="true" label-position="top" style="height: 507px;"
               label-width="80px">
        <!-- 第一行信息 -->
        <el-form style="margin-top: -10px;">
          <el-form-item :label=labels.orderNo class="customer-item">
            <el-input v-model="scheduleData.orderNo" :readonly="true" style="width: 130px;"></el-input>
          </el-form-item>
          <el-form-item :label=labels.partNo class="customer-item">
            <el-input v-model="scheduleData.partNo" :readonly="true" style="width: 130px;"></el-input>
          </el-form-item>
          <el-form-item :label=labels.partDesc class="customer-item">
            <el-input v-model="scheduleData.partDesc" :readonly="true" style="width: 200px;"></el-input>
          </el-form-item>
          <el-form-item :label=labels.seqNo class="customer-item">
            <el-input v-model="scheduleData.seqNo" :readonly="true" style="width: 80px;"></el-input>
          </el-form-item>
        </el-form>
        <!-- 第二行信息 -->
        <el-form>
          <el-form-item :label=labels.needDate class="customer-item">
            <el-input v-model="scheduleData.planFinishTime" :readonly="true" style="width: 130px;"></el-input>
          </el-form-item>
          <el-form-item :label=labels.planStartDate class="customer-item">
            <el-input v-model="scheduleData.planStartTime" :readonly="true" style="width: 130px;"></el-input>
          </el-form-item>
          <el-form-item :label=labels.lotSize class="customer-item">
            <el-input v-model="scheduleData.qtyRequiredOriginal" :readonly="true" style="width: 80px;"></el-input>
          </el-form-item>
          <el-form-item :label=labels.scheduledDate class="customer-item">
            <el-input v-model="scheduleData.scheduledDate" :readonly="true" style="width: 80px;"></el-input>
          </el-form-item>
          <el-form-item :label=labels.shiftNo class="customer-item">
            <el-input v-model="scheduleData.shiftNo" :readonly="true" style="width: 80px;"></el-input>
          </el-form-item>
        </el-form>
        <!-- 第三行信息 -->
        <el-form>
          <el-form-item :label=labels.preItemNo class="customer-item">
            <el-input v-model="scheduleData.preItemDesc" :readonly="true" style="width: 180px;"></el-input>
          </el-form-item>
          <el-form-item :label=labels.nextItemNo prop="languageDefault" class="customer-item">
            <el-input v-model="scheduleData.nextItemDesc" :readonly="true" style="width: 180px;"></el-input>
          </el-form-item>
          <el-form-item :label="''" style="margin-left: -5px;" class="customer-item">
            <el-checkbox style="margin-left: 30px; margin-top: 28px;" true-label="true" false-label="false"
                         v-model="scheduleData.currentRollFlag">{{labels.onlyCurrentRoll}}
            </el-checkbox>
          </el-form-item>
        </el-form>
        <!-- 第四行菜单- 卷操作 -->
        <fieldset class="customer-fieldset" style="width: 330px; height: 60px">
          <legend class="customer-legend">{{labels.rollButtons}}</legend>
          <el-form style="margin-top: 5px">
            <el-form-item class="customer-roll-css" style="width: 130px; font-size: 16px; color: #387877;">
              <span>{{ this.currentRollOps.rollNo }}</span>
            </el-form-item>
            <el-form-item>
              <el-button class="customer-bun-mid" type="primary" @click="switchRollModal"
                         :disabled="buttonTags.scannerRollFlag"
                         style="margin-left: 5px; margin-bottom: 5px;">
                {{ buttons.scanRoll }}
              </el-button>
            </el-form-item>
            <el-form-item>
              <el-button class="customer-bun-mid" type="primary" @click="finishRollModal"

                         style="margin-left: 10px; margin-bottom: 5px;">
                {{ buttons.finishRoll }}
              </el-button>
            </el-form-item>

          </el-form>
        </fieldset>
        <!-- 第四行菜单- fqc成品卷奥做 -->
        <fieldset class="customer-fieldset" style="width: 330px; margin-top: -60px;margin-left: 340px;height: 60px">
          <legend class="customer-legend">{{labels.fqcSfdcOperation}}</legend>
          <el-form>
            <el-form-item style="margin-top: -10px ;">
              <span slot="label" type="label">{{labels.perRollQty}}</span>
              <el-input style="width: 80px" oninput="value=value.replace(/[^0-9]/g,'')" v-model="createRoll.rollQty">
              </el-input>
            </el-form-item>
            <el-form-item style="margin-top: -10px ;">
              <span slot="label" type="label">{{labels.rollNums}}</span>
              <el-input class="customer-bun-mid" oninput="value=value.replace(/[^0-9]/g,'')"
                        v-model="createRoll.rollNums">
              </el-input>
            </el-form-item>
            <el-form-item style="margin-top: -12px ;">
              <span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px"> </span>
              <el-button class="customer-bun-mid" type="primary" @click="separateRollModal"
                         :disabled="buttonTags.createNewRollFlag">
                {{buttons.separateRoll}}
              </el-button>
            </el-form-item>
            <el-form-item style="margin-top: -12px ;">
              <span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px"> </span>
              <el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.mergeRollFlag"
                         @click="mergeRollModal" style="margin-left: 10px; margin-bottom: 5px;">
                {{buttons.mergeRoll}}
              </el-button>
            </el-form-item>

          </el-form>
        </fieldset>
        <!-- 列表展示区域 -->
        <fieldset class="customer-fieldset" style="margin-bottom: 10px; width: 870px; height: 300px;">
          <legend class="customer-legend">{{labels.listDesc}}</legend>
          <el-tabs v-model="activeTable" style="margin-top: -3px; width: 870px;"
                   type="border-card" @tab-click="tabClick" class="customer-tab">
            <el-tab-pane :label=labels.materialList name="sfdc_material">
              <el-table
                height="120"
                :data="orderBomList"
                border
                v-loading="dataListLoading"
                style="width: 100%;">
                <el-table-column
                  v-for="(item,index) in columnBomArray" :key="index"
                  :sortable="item.columnSortable"
                  :prop="item.columnProp"
                  :header-align="item.headerAlign"
                  :show-overflow-tooltip="item.showOverflowTooltip"
                  :align="item.align"
                  :fixed="item.fixed==''?false:item.fixed"
                  :width="item.columnWidth"
                  :label="item.columnLabel">
                  <template slot-scope="scope">
                    <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
                    <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
                                                       style="width: 100px; height: 80px"/></span>
                  </template>
                </el-table-column>
              </el-table>
              <el-table
                height="140"
                :data="sfdcMaterialList"
                border
                v-loading="dataListLoading"
                style="width: 100%;">
                <el-table-column
                  v-for="(item,index) in columnMaterialArray" :key="index"
                  :sortable="item.columnSortable"
                  :prop="item.columnProp"
                  :header-align="item.headerAlign"
                  :show-overflow-tooltip="item.showOverflowTooltip"
                  :align="item.align"
                  :fixed="item.fixed==''?false:item.fixed"
                  :width="item.columnWidth"
                  :label="item.columnLabel">
                  <template slot-scope="scope">
                    <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
                    <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
                                                       style="width: 100px; height: 80px"/></span>
                  </template>
                </el-table-column>
                <el-table-column
                  fixed="left"
                  header-align="center"
                  align="center"
                  width="115"
                  :label=labels.materialListOperation>
                  <template slot-scope="scope">
                    <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.rollNo != '*' && scope.row.sAPBOMItemNo >= 0
                    && scope.row.finishedFlag == 'N' && scope.row.histType == '发料'"
                       @click="replaceMaterialModal(scope.row)">{{labels.materialListReplace}}</a>
                    <a class="customer-a" v-if="operatorData.operatorName != ''  && scope.row.rollNo == '*' && scope.row.sAPBOMItemNo >= 0
                    && scope.row.finishedFlag == 'N' && scope.row.histType == '发料'"
                       @click="cuttingMaterialModal(scope.row)"
                    >{{labels.materialListCutting}}</a>
                    <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag == 'N' && scope.row.sAPBOMItemNo >= 0
                    && scope.row.histType == '发料' && scope.row.keyRMFlag == 'N'"
                       @click="warnFinishMaterialWithNoRemainderConfirm(scope.row)"
                    >{{labels.materialListFinish}}</a>
                  </template>
                </el-table-column>
              </el-table>
            </el-tab-pane>
            <el-tab-pane :label=labels.rollopsList name="sfdc_rollOps">
              <el-table
                height="250"
                :data="sfdcRollOpsList"
                border
                v-loading="dataListLoading"
                style="width: 100%;">
                <el-table-column
                  v-for="(item,index) in columnRollOpsArray" :key="index"
                  :sortable="item.columnSortable"
                  :prop="item.columnProp"
                  :header-align="item.headerAlign"
                  :show-overflow-tooltip="item.showOverflowTooltip"
                  :align="item.align"
                  :fixed="item.fixed==''?false:item.fixed"
                  :width="item.columnWidth"
                  :label="item.columnLabel">
                  <template slot-scope="scope">
                    <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
                    <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
                                                       style="width: 100px; height: 80px"/></span>
                  </template>
                </el-table-column>
              </el-table>
            </el-tab-pane>
            <el-tab-pane :label=labels.defectList name="sfdc_defect">
              <el-form>
                <el-form-item style="margin-top: 0px ;">
                  <span slot="label" type="label">{{labels.reportDate}}</span>
                  <el-date-picker style="width: 100px"
                                  format="yyyy-MM-dd"
                                  value-format="yyyy-MM-dd hh:mm:ss" v-model="harmful.reportedDate">
                  </el-date-picker>
                </el-form-item>
                <el-form-item style="margin-top: 0px ;">
                  <a slot="label" type="label" @click="getBaseList(89)">{{labels.defectCode}}</a>
                  <el-input style="width: 90px" v-model="harmful.defectCode">
                  </el-input>
                </el-form-item>
                <el-form-item style="margin-top: 0px ;">
                  <span slot="label" type="label">{{labels.defectDesc}}</span>
                  <el-input style="width: 150px" v-model="harmful.defectDesc" readonly>
                  </el-input>
                </el-form-item>
                <el-form-item style="margin-top: 0px ;">
                  <span slot="label" type="label">{{labels.defectQty}}</span>
                  <el-input style="width: 120px" v-model="harmful.defectQty"
                            oninput="value=value.replace(/[^0-9]/g,'')">
                  </el-input>
                </el-form-item>
                <el-form-item style="margin-top: 0px ;">
                  <span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px" @click="getBaseList(89)"> </span>
                  <el-button class="customer-bun-mid" type="primary" @click="saveHarmful">
                    {{buttons.saveButton}}
                  </el-button>
                </el-form-item>
                <el-form-item style="margin-top: 0px ;">
                  <span slot="label" type="label" style="margin-top: -10px ;margin-left: 10px"> </span>
                  <el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.mergeRollFlag"
                             @click="getInspectionDefectCodeList" style="margin-left: 10px; margin-bottom: 5px;">
                    {{buttons.batchSaveButton}}
                  </el-button>
                </el-form-item>

              </el-form>
              <el-table
                height="200"
                :data="sfdcDefectList"
                border
                show-summary
                :summary-method="sfdcDefectListSummaries"
                v-loading="dataListLoading"
                style="width: 100%;">
                <el-table-column
                  v-for="(item,index) in columnDefectArray" :key="index"
                  :sortable="item.columnSortable"
                  :prop="item.columnProp"
                  :header-align="item.headerAlign"
                  :show-overflow-tooltip="item.showOverflowTooltip"
                  :align="item.align"
                  :fixed="item.fixed==''?false:item.fixed"
                  :width="item.columnWidth"
                  :label="item.columnLabel">
                  <template slot-scope="scope">
                    <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
                    <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
                                                       style="width: 100px; height: 80px"/></span>
                  </template>
                </el-table-column>
              </el-table>
            </el-tab-pane>
            <el-tab-pane :label=labels.rollList name="sfdc_roll">
              <el-table
                height="250"
                :data="sfdcRollList"
                border
                show-summary
                :summary-method="sfdcRollListSummaries"
                v-loading="dataListLoading"
                style="width: 100%;">
                <el-table-column
                  v-for="(item,index) in columnRollArray" :key="index"
                  :sortable="item.columnSortable"
                  :prop="item.columnProp"
                  :header-align="item.headerAlign"
                  :show-overflow-tooltip="item.showOverflowTooltip"
                  :align="item.align"
                  :fixed="item.fixed==''?false:item.fixed"
                  :width="item.columnWidth"
                  :label="item.columnLabel">
                  <template slot-scope="scope">
                    <span v-if="!item.columnHidden"> {{ scope.row[item.columnProp] }}</span>
                    <span v-if="item.columnImage"><img :src="scope.row[item.columnProp]"
                                                       style="width: 100px; height: 80px"/></span>
                  </template>
                </el-table-column>
                <el-table-column
                  fixed="left"
                  header-align="center"
                  align="center"
                  width="115"
                  :label=labels.rollListOperation>
                  <template slot-scope="scope">
                    <a v-if="scope.row.virtualRollFlag=='N'" class="customer-a"
                       @click="rollPrintLabel(scope.row)"
                    >{{'打印'}}</a>
                    <a class="customer-a" v-if="operatorData.operatorName != '' && scope.row.finishedFlag != 'N'"
                       @click="warnReopenSfdcRollsConfirm(scope.row)"
                    >{{ labels.rollListReopen }}</a>
                    <a class="customer-a" v-if="operatorData.operatorName != ''"
                       @click="warnDeleteSfdcRollsConfirm(scope.row)"
                    >{{labels.rollListDelete}}</a>
                  </template>
                </el-table-column>
              </el-table>
            </el-tab-pane>
          </el-tabs>
        </fieldset>
        <!-- 生产调机菜单 -->
        <fieldset class="customer-fieldset"
                  style="margin-left: 680px; margin-top: -510px; width: 200px; height: 200px;">
          <legend class="customer-legend">{{labels.produceTuning}}</legend>
          <el-form>
            <el-form-item style="margin-left: 10px; margin-top: 20px">
              <el-button class="customer-bun-mid" type="primary" @click="refreshPageData"
                         style="width: 80px; ">
                {{buttons.refreshButton}}
              </el-button>
            </el-form-item>
            <el-form-item style="margin-left: 100px; margin-top: -20px">
              <el-button class="customer-bun-mid" type="primary" @click="switchOperatorModal" style="width: 80px;">
                {{buttons.switchOperator}}
              </el-button>
            </el-form-item>
            <el-form-item style="margin-left: 100px; margin-top: -20px">
              <el-button class="customer-bun-mid" type="primary" :disabled="buttonTags.finishScheduleFlag"
                         @click="showFinishScheduleModal" style="width: 80px; margin-left: -90px;margin-top: 15px;">
                {{buttons.finishSchedule}}
              </el-button>
            </el-form-item>
            <el-form-item style="margin-left: 100px; margin-top: -20px">
              <el-button v-if="showDefault" @click="saveMultiLanguage()" type="primary">多语言设置</el-button>
            </el-form-item>

          </el-form>
        </fieldset>
      </el-form>
    </el-dialog>

    <!-- 切换操作员 -->
    <comSwitchOperator ref="comSwitchOperator" :close-on-click-modal="false"
                       :visible.sync="showOperatorFlag"
                       @initOperatorData="initOperatorData" @notInitOperatorData="notInitOperatorData">

    </comSwitchOperator>


    <!-- 开始生产组件 -->
    <changeSwitchRoll ref="changeSwitchRoll" :close-on-click-modal="false"
                     :visible.sync="showSwitchFlag" @refreshPageData="refreshPageData">

    </changeSwitchRoll>

    <!--  创建分卷的操作  -->
    <comSeparateRoll ref="comSeparateRoll" :close-on-click-modal="false"
                     :visible.sync="showSeparateFlag" @refreshPageData="refreshPageData">

    </comSeparateRoll>

    <!--  结束卷的modal -->
    <changeFinishRoll ref="changeFinishRoll" :close-on-click-modal="false"
                   :visible.sync="showFinishFlag" @refreshPageData="refreshPageData">

    </changeFinishRoll>

    <!-- 产量报告的组件 -->
    <comFinishPartRoll ref="comFinishPartRoll" :close-on-click-modal="false"
                       :visible.sync="showFinishPartFlag"
                       @refreshPageData="refreshPageData">

    </comFinishPartRoll>

    <!-- 合并卷组件 -->
    <comMergeRoll ref="comMergeRoll" :close-on-click-modal="false"
                  :visible.sync="showMergeFlag" @refreshPageData="refreshPageData">

    </comMergeRoll>


    <!-- 开始生产组件 -->
    <comStartProduce ref="comStartProduce" :close-on-click-modal="false"
                     :visible.sync="showProduceFlag" @refreshPageData="refreshPageData">

    </comStartProduce>

    <!-- 报告不良组件 -->
    <comDefectRoll ref="comDefectRoll" :close-on-click-modal="false"
                   :visible.sync="showDefectFlag">

    </comDefectRoll>

    <!-- 生产过程的工具组件 -->
    <comProduceTool ref="comProduceTool" :close-on-click-modal="false"
                    :visible.sync="showToolFlag"
                    @refreshPageData="refreshPageData">

    </comProduceTool>

    <!-- 切换刀模的组件 -->
    <comReplaceTool ref="comReplaceTool" :close-on-click-modal="false"
                    :visible.sync="showReplaceToolFlag"
                    @refreshPageData="refreshPageData">

    </comReplaceTool>

    <!-- 生产过程的材料组件 -->
    <comProduceMaterial ref="comProduceMaterial" :close-on-click-modal="false"
                        :visible.sync="showMaterialFlag">

    </comProduceMaterial>

    <!--  换料组件  -->
    <comReplaceMaterial ref="comReplaceMaterial" :close-on-click-modal="false"
                        :visible.sync="showReplaceMaterialFlag"
                        @refreshPageData="refreshPageData">

    </comReplaceMaterial>

    <!--  换料组件  -->
    <comCuttingMaterial ref="comCuttingMaterial" :close-on-click-modal="false"
                        :visible.sync="showCuttingMaterialFlag"
                        @refreshPageData="refreshPageData">

    </comCuttingMaterial>

    <!-- 生产过程的停机组件 -->
    <comProduceDown ref="comProduceDown" :close-on-click-modal="false"
                    :visible.sync="showDownFlag"
                    @refreshPageData="refreshPageData">

    </comProduceDown>

    <!-- 正常的组件 -->
    <comFinishSchedule :close-on-click-modal="false"
                       :visible.sync="showFinishScheduleFlag" ref="comFinishSchedule">

    </comFinishSchedule>

    <defectList ref="defectList" @getSfdcDefectList='getSfdcDefectList' ></defectList>

    <Chooselist ref="baseList"  @getBaseData="getBaseData"></Chooselist>
    <!-- 为生产下机拆卷 -->
    <notOverFinishRoll ref="notOverFinishRoll" :visible.sync="showNotOverFlag"
                       @refreshPageData="refreshPageData"></notOverFinishRoll>

    <!--打印卷标签-->
    <com-roll-label ref="comRollLabel" ></com-roll-label>
  </div>

</template>

<script>
import {
  otherCheckCreateSplitSfdcRoll,/*校验是否可以创建分卷*/
  otherCreateSplitSfdcRoll,/*执行创建分卷的操作*/
  workbenchCreateslittingrollRepackAction
} from '@/api/yieldReport/com_separate_roll.js';

/*打印标签专用的js*/
import {
  printSfdcLabel,
} from "@/views/modules/yieldReport/print_roll_label.js";


import {
  getScheduleDataBySeqNo,
  getCurrentRollOpsBySeqNo,
  getSfdcTimeByCon,
  getOrderToolByCon,
  getSfdcToolByCon,
  getOrderBomByCon,
  getSfdcMaterialByCon,
  getSfdcRollOpsByCon,
  getSfdcDefectByCon,
  getSfdcRollByCon,
  refreshWorkPlatformButtons,
  checkScheduleButton,
  checkCreateNewSfdcRoll,
  createNewRoll,
  reopenSfdcRolls,/*重新打开卷操作*/
  deleteSfdcRolls,/*删除sfdcRolls的操作*/
  processFinishTool,/*执行工具的结束使用的方法*/
  finishMaterialWithNoRemainder,/*执行材料结束使用 且无剩余 */
  saveSfdcDefect,  /* 保存不良*/
  checkSfdcDefect
} from "@/api/yieldReport/produce_report_normal.js";
/*引入组件*/
import comRollLabel from "../../common/com-roll-label";/*打印卷标签*/
import comSwitchOperator from "../com_switch_operator";/*切换操作员*/
import changeSwitchRoll from "./change_switch_roll";/*切换卷操作*/
import comSeparateRoll from "../com_separate_roll";
import comFinishRoll from "../com_finish_roll";/*结束卷数的组件*/
import changeFinishRoll from "./change_finish_roll";//产量报告的组件
import comMergeRoll from "../com_merge_roll";/*合并卷的组件*/
import comStartTuning from "../com_start_tuning";/*开始调机组件*/
import comStartProduce from "../com_start_produce";/*开始生产组件*/
import comDefectRoll from "../com_defect_roll";/*报告不良品卷*/
import comProduceTool from "../com_produce_tool";/*生产过程的工具组件*/
import comReplaceTool from "../com_replace_tool";/*生产过程的工具组件*/
import comProduceMaterial from "../com_produce_material";/*生产过程的材料组件*/
import comReplaceMaterial from "../com_replace_material"/*换料组件*/
import comCuttingMaterial from "../com_cutting_material"/*材料下料*/
import comProduceDown from "../com_produce_down";/*停机组件*/
import comFinishSchedule from "../com_finish_schedule";/*结束派工单组件*/
import defectList from "./defectList";/*结束派工单组件*/
import Chooselist from '@/views/modules/common/Chooselist';/*列表组件*/
import notOverFinishRoll from "../not_over_finish_roll";/*结束派工单组件*/
import comFinishPartRoll from "../com_finish_part_roll";


import {
  searchSysLanguagePackList,
  searchSysLanguageParam,
  searchFunctionButtonList,
  saveButtonList,
  searchSysLanguage,
  searchLanguageListByLanguageCode,
  saveSysLanguageOne,
  searchPageLanguageData,
  removerLanguage,
  saveSysLanguageList
} from "@/api/sysLanguage.js";

var functionId = 'C10000024';
/*生产过程的停机组件*/
export default {
  data() {
    return {
      titleCon: '',
      showDefault: false,
      popoverFlag: false,
      showNotOverFlag:false,
      showOperatorFlag: false,
      showSwitchFlag: false,
      showSeparateFlag: false,
      showFinishFlag: false,
      showFinishPartFlag: false,
      showMergeFlag: false,
      showTuningFlag: false,
      showProduceFlag: false,
      showDefectFlag: false,
      showToolFlag: false,
      showReplaceToolFlag: false,
      showMaterialFlag: false,
      showReplaceMaterialFlag: false,
      showCuttingMaterialFlag: false,
      showDownFlag: false,
      showFinishScheduleFlag: false,
      activeTable: 'sfdc_time',
      sfdcTimeList: [],
      orderToolList: [],
      sfdcToolList: [],
      orderBomList: [],
      sfdcMaterialList: [],
      sfdcRollOpsList: [],
      sfdcDefectList: [],
      sfdcRollList: [],
      columnTimeArray: [
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeSeqNo',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "seqNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "派工单号",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeHistSeqNo',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "histSeqNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "记录号",
          columnWidth: 55,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeRollNo',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "rollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "卷号",
          columnWidth: 90,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeEventDesc',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "eventDesc",
          headerAlign: "center",
          align: "center",
          columnLabel: "事件",
          columnWidth: 75,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeDowntimeCode',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "downtimeCode",
          headerAlign: "center",
          align: "center",
          columnLabel: "停机代码",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeEventTime',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "eventTime",
          headerAlign: "center",
          align: "center",
          columnLabel: "时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeEnteredby',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "enteredby",
          headerAlign: "center",
          align: "center",
          columnLabel: "录入人",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeTillTime',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "tillTime",
          headerAlign: "center",
          align: "center",
          columnLabel: "结束时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeCompletedFlag',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "completedFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "结束",
          columnWidth: 35,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeTotalTime',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "totalTime",
          headerAlign: "center",
          align: "center",
          columnLabel: "总时长",
          columnWidth: 55,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303TimeDowntimePhaseIn',
          tableId: "5303Time",
          tableName: "时间记录表",
          columnProp: "downtimePhaseIn",
          headerAlign: "center",
          align: "center",
          columnLabel: "停机所处时段",
          columnWidth: 90,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        }
      ],
      columnOrderToolArray: [
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303OrderToolToolId',
          tableId: "5303OrderTool",
          tableName: "工单工具",
          columnProp: "toolId",
          headerAlign: "center",
          align: "center",
          columnLabel: "工具编号",
          columnWidth: 70,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303OrderToolToolDesc',
          tableId: "5303OrderTool",
          tableName: "工单工具",
          columnProp: "toolDesc",
          headerAlign: "center",
          align: "center",
          columnLabel: "工具名称",
          columnWidth: 85,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303OrderToolSpec',
          tableId: "5303OrderTool",
          tableName: "工单工具",
          columnProp: "spec",
          headerAlign: "center",
          align: "center",
          columnLabel: "规格型号",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303OrderToolToolQty',
          tableId: "5303OrderTool",
          tableName: "工单工具",
          columnProp: "toolQty",
          headerAlign: "center",
          align: "center",
          columnLabel: "工具数量",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303OrderToolDowntimeUmid',
          tableId: "5303OrderTool",
          tableName: "工单工具",
          columnProp: "umid",
          headerAlign: "center",
          align: "center",
          columnLabel: "计量单位",
          columnWidth: 65,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303OrderToolActive',
          tableId: "5303OrderTool",
          tableName: "工单工具",
          columnProp: "active",
          headerAlign: "center",
          align: "center",
          columnLabel: "在用",
          columnWidth: 35,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303OrderToolFamilyId',
          tableId: "5303OrderTool",
          tableName: "工单工具",
          columnProp: "familyId",
          headerAlign: "center",
          align: "center",
          columnLabel: "工具分类",
          columnWidth: 55,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303OrderToolRemark',
          tableId: "5303OrderTool",
          tableName: "工单工具",
          columnProp: "remark",
          headerAlign: "center",
          align: "center",
          columnLabel: "备注",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303OrderToolCreatedDate',
          tableId: "5303OrderTool",
          tableName: "工单工具",
          columnProp: "createdDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "录入日期",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303OrderToolCreatedBy',
          tableId: "5303OrderTool",
          tableName: "工单工具",
          columnProp: "createdBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "录入人",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        }
      ],
      columnToolArray: [
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolHistSeqNo',
          tableId: "5303Tool",
          tableName: "工具记录表",
          columnProp: "histSeqNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "序号",
          columnWidth: 35,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolRollNo',
          tableId: "5303Tool",
          tableName: "工单表",
          columnProp: "rollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "卷号",
          columnWidth: 90,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolReportedDate',
          tableId: "5303Tool",
          tableName: "工单表",
          columnProp: "reportedDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "报告时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolReportedBy',
          tableId: "5303Tool",
          tableName: "工单表",
          columnProp: "reportedBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "报告人",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolToolInstanceId',
          tableId: "5303Tool",
          tableName: "工单表",
          columnProp: "toolInstanceId",
          headerAlign: "center",
          align: "center",
          columnLabel: "工具实例编号",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolStartDate',
          tableId: "5303Tool",
          tableName: "工单表",
          columnProp: "startDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "开始使用时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolFinishedDate',
          tableId: "5303Tool",
          tableName: "工单表",
          columnProp: "finishedDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "结束使用时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolFinishedFlag',
          tableId: "5303Tool",
          tableName: "工单表",
          columnProp: "finishedFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "使用结束",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolRemark',
          tableId: "5303Tool",
          tableName: "工单表",
          columnProp: "remark",
          headerAlign: "center",
          align: "center",
          columnLabel: "备注",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolStartFromRollNo',
          tableId: "5303Tool",
          tableName: "工单表",
          columnProp: "startFromRollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "上机时的半成品卷号",
          columnWidth: 120,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5301ToolFinishQty',
          tableId: "5303Tool",
          tableName: "工单表",
          columnProp: "finishQty",
          headerAlign: "center",
          align: "center",
          columnLabel: "生产数量",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        }
      ],
      columnBomArray: [
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomItemNo',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "itemNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "序号",
          columnWidth: 35,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomComponentPartNo',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "componentPartNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "零部件编码",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomPartDesc',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "partDesc",
          headerAlign: "center",
          align: "center",
          columnLabel: "零部件名称",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomPartSpec',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "partSpec",
          headerAlign: "center",
          align: "center",
          columnLabel: "规格型号",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomToolQtyAssembly',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "qtyAssembly",
          headerAlign: "center",
          align: "center",
          columnLabel: "单位用量",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomQtyFixedScrapt',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "qtyFixedScrapt",
          headerAlign: "center",
          align: "center",
          columnLabel: "固定损耗",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomPartUm',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "partUm",
          headerAlign: "center",
          align: "center",
          columnLabel: "计量单位",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomScraptFactor',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "scraptFactor",
          headerAlign: "center",
          align: "center",
          columnLabel: "报废率",
          columnWidth: 55,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomQtyRequired',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "qtyRequired",
          headerAlign: "center",
          align: "center",
          columnLabel: "需求数量",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomQtyReserved',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "qtyReserved",
          headerAlign: "center",
          align: "center",
          columnLabel: "预留数量",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomQtyIssue',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "qtyIssue",
          headerAlign: "center",
          align: "center",
          columnLabel: "发料数量",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomIssueDate',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "issueDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "发料日期",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomRemark',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "remark",
          headerAlign: "center",
          align: "center",
          columnLabel: "备注",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomMatGroup',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "matGroup",
          headerAlign: "center",
          align: "center",
          columnLabel: "零部件来源",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303BomRmTypeDb',
          tableId: "5303Bom",
          tableName: "工单bom",
          columnProp: "rmTypeDb",
          headerAlign: "center",
          align: "center",
          columnLabel: "是否是主材料",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        }
      ],
      columnMaterialArray: [
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialHistSeqNo',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "histSeqNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "序号",
          columnWidth: 35,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialReportDate',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "reportDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "报告时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialReportedBy',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "reportedBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "报告人",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialRollNo',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "rollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "卷号",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialRmRollNo',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "rmRollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "材料卷号",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialPartNo',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "partNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "零部件编码",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialRemark',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "remark",
          headerAlign: "center",
          align: "center",
          columnLabel: "备注",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialStartDate',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "startDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "开始使用时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialFinishedDate',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "finishedDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "结束使用时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialFinishedFlag',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "finishedFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "结束使用",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialHistType',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "histType",
          headerAlign: "center",
          align: "center",
          columnLabel: "类型",
          columnWidth: 50,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialTransGeneratedFlag',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "transGeneratedFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "是否同步SAp",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialOriginalRMRollNo',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "originalRMRollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "原材料卷号",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialUnissueFlag',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "unissueFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "是否退料",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialTransQty',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "transQty",
          headerAlign: "center",
          align: "center",
          columnLabel: "数量",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialNetIssueQty',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "netIssueQty",
          headerAlign: "center",
          align: "center",
          columnLabel: "净耗用数量",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialOriginalHistSeqNo',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "originalHistSeqNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "关联序号",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialKeyRMFlag',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "keyRMFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "是否主材",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialStartFromRollNo',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "startFromRollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "上机时的半成品卷号",
          columnWidth: 115,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialSAPBOMItemNo',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "sAPBOMItemNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "SAP BOM序号",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303MaterialSetupflag',
          tableId: "5303Material",
          tableName: "派工单材料",
          columnProp: "setupflag",
          headerAlign: "center",
          align: "center",
          columnLabel: "调机",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        }
      ],
      columnRollOpsArray: [
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsRollNo',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "rollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "卷号",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFinishedDate',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "finishedDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "完工时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFinishedBy',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "finishedBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "完工人",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFinishedFlag',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "finishedFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "是否完工",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsRemark',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "remark",
          headerAlign: "center",
          align: "center",
          columnLabel: "备注",
          columnWidth: 110,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsScanedBy',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "scanedBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "扫描员",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsScanedDate',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "scanedDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "扫描时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFirstSetupBy',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "firstSetupBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "首次调机人",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFirstSetupDate',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "firstSetupDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "首次调机时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsLatestSetupBy',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "latestSetupBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "最近一次调机人",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsLatestSetupDate',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "latestSetupDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "最近一次调机时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFirstEndSetupBy',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "firstEndSetupBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "首次调机结束人",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFirstEndSetupDate',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "firstEndSetupDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "首次调机结束时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsLatestEndSetupBy',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "latestEndSetupBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "最近一次调机结束人",
          columnWidth: 110,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsLatestEndSetupDate',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "latestEndSetupDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "最近一次调机结束时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFirstProdBy',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "firstProdBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "首次开始生产人",
          columnWidth: 120,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFirstProdDate',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "firstProdDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "首次开始生产时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsLatestProdBy',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "latestProdBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "最近一次开始生产人",
          columnWidth: 120,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsLatestProdDate',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "latestProdDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "最近一次开始生产时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFirstEndProdBy',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "firstEndProdBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "首次结束生产人",
          columnWidth: 120,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsFirstEndProdDate',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "firstEndProdDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "首次结束生产时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsLatestEndProdBy',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "latestEndProdBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "最近一次结束生产人",
          columnWidth: 120,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsLatestEndProdDate',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "latestEndProdDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "最近一次结束生产时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsPauseFlag',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "pauseFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "暂停",
          columnWidth: 35,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsReportedFlag',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "reportedFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "是否报产量",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOpsQtyReported',
          tableId: "5303RollOps",
          tableName: "上机卷",
          columnProp: "qtyReported",
          headerAlign: "center",
          align: "center",
          columnLabel: "产出数量",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        }
      ],
      columnDefectArray: [
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303DefectHistSeqNo',
          tableId: "5303Defect",
          tableName: "不良信息",
          columnProp: "histSeqNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "序号",
          columnWidth: 50,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303DefectRollNo',
          tableId: "5303Defect",
          tableName: "不良信息",
          columnProp: "rollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "卷号",
          columnWidth: 200,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303DefectDefectCode',
          tableId: "5303Defect",
          tableName: "不良信息",
          columnProp: "defectCode",
          headerAlign: "center",
          align: "center",
          columnLabel: "不良代码",
          columnWidth: 90,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303DefectDefectDesc',
          tableId: "5303Defect",
          tableName: "不良信息",
          columnProp: "defectDesc",
          headerAlign: "center",
          align: "center",
          columnLabel: "不良描述",
          columnWidth: 200,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303DefectDefectQty',
          tableId: "5303Defect",
          tableName: "不良信息",
          columnProp: "defectQty",
          headerAlign: "center",
          align: "center",
          columnLabel: "不良数量",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303DefectReportedDate',
          tableId: "5303Defect",
          tableName: "不良信息",
          columnProp: "reportedDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "报告日期",
          columnWidth: 90,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303DefectReportedBy',
          tableId: "5303Defect",
          tableName: "不良信息",
          columnProp: "reportedBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "报告人",
          columnWidth: 85,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303DefectRemark',
          tableId: "5303Defect",
          tableName: "不良信息",
          columnProp: "remark",
          headerAlign: "center",
          align: "center",
          columnLabel: "备注",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        }
      ],
      columnRollArray: [
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollRollNo',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "rollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "卷号",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollCreatedDate',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "createdDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "创建时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollCreatedBy',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "createdBy",
          headerAlign: "center",
          align: "center",
          columnLabel: "创建人",
          columnWidth: 55,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollCurrentOpsItemNo',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "currentOpsItemNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "当前生产工序号",
          columnWidth: 95,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollLastFinishedOpsItemNo',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "lastFinishedOpsItemNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "最近完工工序号",
          columnWidth: 95,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollFinishedDate',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "finishedDate",
          headerAlign: "center",
          align: "center",
          columnLabel: "完工时间",
          columnWidth: 125,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollFinishedFlag',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "finishedFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "是否完成",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOnLineFlag',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "onLineFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "是否在线",
          columnWidth: 60,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollPauseFlag',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "pauseFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "暂停",
          columnWidth: 35,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollOriRollNo',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "oriRollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "原卷号",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollStartOpsItemNo',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "startOpsItemNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "开始生产工序号",
          columnWidth: 95,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollRollType',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "rollType",
          headerAlign: "center",
          align: "center",
          columnLabel: "卷类型",
          columnWidth: 75,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollCreatedOpsItemNo',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "createdOpsItemNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "创建卷的工序号",
          columnWidth: 95,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollRollQty',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "rollQty",
          headerAlign: "center",
          align: "center",
          columnLabel: "卷数量",
          columnWidth: 55,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollFirstLevelRollNo',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "firstLevelRollNo",
          headerAlign: "center",
          align: "center",
          columnLabel: "最原始卷号",
          columnWidth: 100,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        },
        {
          userId: this.$store.state.user.name,
          functionId: 5303,
          serialNumber: '5303RollVirtualRollFlag',
          tableId: "5303Roll",
          tableName: "下机卷",
          columnProp: "virtualRollFlag",
          headerAlign: "center",
          align: "center",
          columnLabel: "虚拟卷",
          columnWidth: 80,
          columnHidden: false,
          columnImage: false,
          columnSortable: false,
          sortLv: 0,
          status: true,
          fixed: false
        }
      ],
      searchData: {
        site: this.$store.state.user.site,
        userName: this.$store.state.user.name,
        seqNo: '',
        orderNo: '',
        itemNo: 0,
        resourceId: '',
        scheduledDate: '',
        shiftNo: '',
        partNo: '',
        workCenterNo: '',
        workCenterDesc: '',
        resourceDesc: '',
        rollNo: '',
        partDesc: '',
        planStartTime: '',
        planFinishTime: '',
        qtyRequiredOriginal: 0,
        preItemDesc: '',
        nextItemDesc: '',
        nextItemNo: 0,
        operatorId: '',
        functionName: ''
      },
      scheduleData: {
        site: this.$store.state.user.site,
        username: this.$store.state.user.name,
        seqNo: '',
        orderNo: '',
        itemNo: 0,
        resourceId: '',
        scheduledDate: '',
        shiftNo: '',
        partNo: '',
        workCenterNo: '',
        workCenterDesc: '',
        resourceDesc: '',
        rollNo: '',
        partDesc: '',
        planStartTime: '',
        planFinishTime: '',
        qtyRequiredOriginal: 0,
        preItemDesc: '',
        nextItemDesc: '',
        nextItemNo: 0,
        operatorId: '',
        functionName: '',
        currentRollFlag: false,
        // fqc , 切换卷参数
        repairOrderFlag: 'N',
        checkMultipleRoll: 'N',
        directPass: 'N'
      },
      currentRollOps: {
        site: this.$store.state.user.site,
        seqNo: '',
        rollNo: '',
        finishedFlag: '',
      },
      operatorData: {
        site: this.$store.state.user.site,
        username: this.$store.state.user.name,
        operatorId: '',
        operatorName: '',
        status: '',
        showFlag: false
      },
      buttonTags: {
        createNewRollFlag: false,
        switchRollFlag: false,
        separateRollFlag: false,
        finishRollFlag: false,
        mergeRollFlag: false,
        tuningFlag: false,
        produceFlag: false,
        defectFlag: false,
        produceToolFlag: false,
        materialFlag: false,
        downTimeFlag: false,
        scannerRollFlag:false,
        otherFlag:false,
      },
      dataListLoading: false,
      createRoll: {
        site: this.$store.state.user.site,
        userName: this.$store.state.user.name,
        orderNo: '',
        itemNo: '',
        seqNo: '',
        rollNo: '',
        reportDate: '',
        reportTime: '',
        rollQty: '',
        rollNums: ''
      },
      harmful: {
        site: this.$store.state.user.site,
        reportedBy: this.$store.state.user.name,
        orderNo: '',
        itemNo: '',
        seqNo: '',
        histSeqNo: '',
        rollNo: '',
        reportedDate: '',
        defectCode: '',
        defectQty: '',
        defectDesc: ''
      },
      buttons: {
        scanRoll: '扫描卷',
        finishRoll: '结束卷',
        separateRoll: '创建分卷',
        mergeRoll: '合并卷',
        refreshButton: '刷新',
        switchOperator: '切换用户',
        finishSchedule: '结单',
        saveButton: '保存',
        batchSaveButton: '批量插入',
      },
      buttonList: [
        {
          functionId: functionId,
          languageValue: '扫描卷',
          objectId: 'scanRoll',
          objectType: 'button',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '结束卷',
          objectId: 'finishRoll',
          objectType: 'button',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '创建分卷',
          objectId: 'separateRoll',
          objectType: 'button',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '合并卷',
          objectId: 'mergeRoll',
          objectType: 'button',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '刷新',
          objectId: 'refreshButton',
          objectType: 'button',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '切换用户',
          objectId: 'switchOperator',
          objectType: 'button',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '结单',
          objectId: 'finishSchedule',
          objectType: 'button',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '保存',
          objectId: 'saveButton',
          objectType: 'button',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '批量插入',
          objectId: 'batchSaveButton',
          objectType: 'button',
          tableId: '*'
        },
      ],
      labels: {
        titleCon: '机台工作台',
        orderNo: '订单号',
        partNo: '物料编码',
        partDesc: '物料名称/规则',
        seqNo: '派工单号',
        needDate: '要求完工日期',
        planStartDate: '要求开工日期',
        lotSize: '原始派工单需求数量',
        scheduledDate: ' 排产日期',
        shiftNo: '班次',
        preItemNo: '前道工序',
        nextItemNo: ' 后道工序',
        onlyCurrentRoll: '仅显示当前卷信息',
        rollButtons: '卷操作',
        fqcSfdcOperation: 'FQC成品卷操作',
        perRollQty: '每卷数量',
        rollNums: '卷数',
        produceTuning: '生产调机',
        listDesc: '列表信息',
        materialList: '材料',
        timeList: '时间',
        rollopsList: '生产卷操作信息',
        defectList: '不良记录',
        rollList: '机器下机卷',
        reportDate: '报告日期',
        defectCode: '不良代码',
        defectDesc: '不良原因',
        defectQty: '不良数',
        rollListOperation: '操作',
        rollListReopen: '重打开',
        rollListDelete: '删除卷',
        materialListOperation: '操作',
        materialListReplace: '换料',
        materialListCutting: '下料',
        materialListFinish: '结束生产',
        totalSum: '合计: ',
        sfdcRollSum: '下机卷总数：',
        confirmLabel: '确定',
        cancelLabel: '取消',
        pleaseEnterDefectCode: '请输入不良代码!',
        pleaseEnterDefectQty: '请输入不良数量!',
        pleaseSelectSeqNo: '请先选择派工单!',
        pleaseEnterPreRollQtyAndRollNums: '请输入每卷数量和卷数!',
        pleaseScanRollThanSplitRoll: '请扫描卷后再进行分卷!',
        sureCreateNewRoll: '确实要创建一个新卷吗?',
        noRollCantMerge: '暂无卷号参与无法合并卷!',
        sureReopenSfdcRoll: '确实要重新打开卷',
        sureLabel: '吗?',
        sureDeleteCurrentRoll: '确实要删除该卷吗?',
        sureEndThisToolUsed: '确实要结束该工具的使用吗?',
      },
      labelsList: [
        {
          functionId: functionId,
          languageValue: '机台工作台',
          objectId: 'titleCon',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '订单号',
          objectId: 'orderNo',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '物料编码',
          objectId: 'partNo',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '物料名称/规则',
          objectId: 'partDesc',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '派工单号',
          objectId: 'seqNo',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '要求完工日期',
          objectId: 'needDate',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '要求开工日期',
          objectId: 'planStartDate',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '原始派工单需求数量',
          objectId: 'lotSize',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '排产日期',
          objectId: 'scheduledDate',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '班次',
          objectId: 'shiftNo',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '前道工序',
          objectId: 'preItemNo',
          objectType: 'label',
          tableId: '*'
        },{
          functionId: functionId,
          languageValue: '后道工序',
          objectId: 'nextItemNo',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '仅显示当前卷信息',
          objectId: 'onlyCurrentRoll',
          objectType: 'label',
          tableId: '*'
        },{
          functionId: functionId,
          languageValue: '卷操作',
          objectId: 'rollButtons',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: 'FQC成品卷操作',
          objectId: 'fqcSfdcOperation',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '每卷数量',
          objectId: 'perRollQty',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '卷数',
          objectId: 'rollNums',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '生产调机',
          objectId: 'produceTuning',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '列表信息',
          objectId: 'listDesc',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '材料',
          objectId: 'materialList',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '时间',
          objectId: 'timeList',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '生产卷操作信息',
          objectId: 'rollopsList',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '不良记录',
          objectId: 'defectList',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '机器下机卷',
          objectId: 'rollList',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '报告日期',
          objectId: 'reportDate',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '不良代码',
          objectId: 'defectCode',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '不良原因',
          objectId: 'defectDesc',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '不良数量',
          objectId: 'defectQty',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '操作',
          objectId: 'rollListOperation',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '重打开',
          objectId: 'rollListReopen',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '删除卷',
          objectId: 'rollListDelete',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '操作',
          objectId: 'materialListOperation',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '换料',
          objectId: 'materialListReplace',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '下料',
          objectId: 'materialListCutting',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '结束生产',
          objectId: 'materialListFinish',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '合计: ',
          objectId: 'totalSum',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '下机卷总数: ',
          objectId: 'sfdcRollSum',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '暂无卷号!',
          objectId: 'noneRollNo',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '确定要删除',
          objectId: 'sureDeleteRoll',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '当前卷？',
          objectId: 'currentRollNo',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '确定',
          objectId: 'confirmLabel',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '取消',
          objectId: 'cancelLabel',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '请先选择派工单!',
          objectId: 'pleaseSelectSeqNo',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '请输入每卷数量和卷数!',
          objectId: 'pleaseEnterPreRollQtyAndRollNums',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '请扫描卷后再进行分卷!',
          objectId: 'pleaseScanRollThanSplitRoll',
          objectType: 'label',
          tableId: '*'
        },{
          functionId: functionId,
          languageValue: '确实要创建一个新卷吗?',
          objectId: 'sureCreateNewRoll',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '暂无卷号参与无法合并卷!',
          objectId: 'noRollCantMerge',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '确实要重新打开卷',
          objectId: 'sureReopenSfdcRoll',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '吗?',
          objectId: 'sureLabel',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '确实要删除该卷吗?',
          objectId: 'sureDeleteCurrentRoll',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '确实要结束该工具的使用吗?',
          objectId: 'sureEndThisToolUsed',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '请输入不良代码!',
          objectId: 'pleaseEnterDefectCode',
          objectType: 'label',
          tableId: '*'
        }, {
          functionId: functionId,
          languageValue: '请输入不良数量!',
          objectId: 'pleaseEnterDefectQty',
          objectType: 'label',
          tableId: '*'
        },
      ],
      queryButton: {
        functionId: functionId,
        table_id: '*',
        languageCode: this.$i18n.locale,
        objectType: 'button'
      },
      queryLabel: {
        functionId: functionId,
        table_id: '*',
        languageCode: this.$i18n.locale,
        objectType: 'label'
      },
    }
  },
  watch: {
    harmful: {
      deep: true,
      handler: function (newV, oldV) {
        this.harmful.defectCode = this.harmful.defectCode.toUpperCase()
        this.defectCodeCheck()
      }
    }
  },
  components: {
    comRollLabel,
    comSwitchOperator,/*切换用户的组件*/
    changeSwitchRoll,/*切换卷操作*/
    comSeparateRoll,/*創建分卷组件*/
    comFinishRoll,/*结束卷的组件*/
    changeFinishRoll,/*产量报告的组件*/
    comMergeRoll,/*合并卷组件*/
    comStartTuning,/*开始调机组件*/
    comStartProduce,/*开始生产组件*/
    comDefectRoll,/*报告不良品*/
    comProduceTool,/*生产过程的工具组件*/
    comReplaceTool,/*刀模切换组件*/
    comProduceMaterial,/*生产过程的材料组件*/
    comReplaceMaterial,/*换料的组件*/
    comCuttingMaterial,/*材料下料的功能*/
    comProduceDown,/*生产过程的停机组件*/
    comFinishSchedule,/*结束派工单的组件*/
    defectList,/*不良信息列表*/
    Chooselist, /*基础信息列表*/
    notOverFinishRoll, /*未结生产订单下机*/
    comFinishPartRoll,
  },
  methods: {
    // 卷标签打印
    rollPrintLabel(val){
      this.$nextTick(() => {
        this.$refs.comRollLabel.init(val.rollNo)
      });
    },
    // 不良记录
    sfdcDefectListSummaries(param){
      const { columns, data } = param;
      const sums = [];
      columns.forEach((column, index) => {
        if (index === 1) {
          sums[index] = this.labels.totalSum;
          return;
        }
        if (index == 4){
          const values = data.map(item => Number(item[column.property]));
          if (!values.every(value => isNaN(value))) {
            sums[index] = values.reduce((prev, curr) => {
              const value = Number(curr);
              if (!isNaN(value)) {
                return prev + curr;
              } else {
                return prev;
              }
            }, 0);
            sums[index] ;
          }
          sums[index] = sums[index]?sums[index]:0
        }

      });
      return sums;
    },
    // 机器下机卷
    sfdcRollListSummaries(param){
      const { columns, data } = param;
      const sums = [];
      columns.forEach((column, index) => {
        if (index === 0) {
          sums[index] = this.labels.sfdcRollSum;
          return;
        }
        if (index == 14){
          let list = data.filter(item => item.virtualRollFlag!='Y' && item.rollType !='删除卷')
          const values = list.map(item => Number(item[column.property]));
          let sum = 0
          if (!values.every(value => isNaN(value))) {
            sum = values.reduce((prev, curr) => {
              const value = Number(curr);
              if (!isNaN(value)) {
                return prev + curr;
              } else {
                return prev;
              }
            }, 0);

          }
          sums[0]+= sum?sum:0
        }
      });
      return sums;
    },
    // 异常下机报工
    notOverFinishRollModal() {
      this.popoverFlag = false
      this.$nextTick(() => {
        this.showNotOverFlag = true;
        this.$refs.notOverFinishRoll.init(this.scheduleData, this.operatorData)
      });
    },
    /*列表方法的回调*/
    getBaseData(val){
      console.log(val)
      if (this.tagNo === 89){
        this.harmful.defectCode = val.DefectCode;
        this.harmful.defectDesc = val.DefectDesc;
      }
    },
    // 获取基础数据列表
    getBaseList(val){
      this.tagNo = val
      this.$nextTick(() => {
        let strVal = "";
        if (val === 89 ){
          strVal =  this.harmful.defectCode;
        }
        this.$refs.baseList.init(val, strVal)
      })
    },
    // 不良信息列表
    getInspectionDefectCodeList(){
      this.$nextTick(() => {
        this.$refs.defectList.init(this.scheduleData)
      });
    },
    // 校验不良代码
    defectCodeCheck() {
      this.harmful.orderNo = this.scheduleData.orderNo
      this.harmful.itemNo = this.scheduleData.itemNo
      this.harmful.seqNo = this.scheduleData.seqNo
      this.harmful.rollNo = this.scheduleData.rollNo
      checkSfdcDefect(this.harmful).then(({data}) => {
        if (data.code == 0) {
          this.harmful.defectDesc = data.map.defectDesc
        }
      })
    },
    // 保存不良
    saveHarmful() {
      if (!this.harmful.defectCode) {
        this.$message.warning(this.labels.pleaseEnterDefectCode)
        return
      }
      if (!this.harmful.defectQty) {
        this.$message.warning(this.labels.pleaseEnterDefectQty)
        return
      }
      this.harmful.orderNo = this.scheduleData.orderNo
      this.harmful.itemNo = this.scheduleData.itemNo
      this.harmful.seqNo = this.scheduleData.seqNo
      this.harmful.rollNo = this.scheduleData.rollNo
      this.harmful.reportedBy = this.operatorData.operatorId
      saveSfdcDefect(this.harmful).then(({data}) => {
        if (data.code == 0) {
          this.$message.success(data.msg)
          this.harmful.defectCode= ''
          this.harmful.defectQty= ''
          this.harmful.defectDesc = ''
          this.getSfdcDefectList();
        } else if(data.code == 500){
          this.$message.error(data.msg)
        } else {
          this.$message.warning(data.msg)
        }
      })
    },
    // 获取派工单的信息
    getScheduleDataBySeqNo() {
      getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => {

        this.scheduleData.seqNo = data.row.seqNo;
        this.scheduleData.orderNo = data.row.orderNo;
        this.scheduleData.itemNo = data.row.itemNo;
        this.scheduleData.resourceId = data.row.resourceId;
        this.scheduleData.partNo = data.row.partNo;
        this.scheduleData.partDesc = data.row.partDesc;
        this.scheduleData.planStartTime = data.row.planStartTime;
        this.scheduleData.planFinishTime = data.row.planFinishTime;
        this.scheduleData.qtyRequiredOriginal = data.row.qtyRequiredOriginal;
        this.scheduleData.scheduledDate = data.row.scheduledDate;
        this.scheduleData.shiftNo = data.row.shiftNo;
        this.scheduleData.preItemDesc = data.row.preItemDesc;
        this.scheduleData.nextItemDesc = data.row.nextItemDesc;
        this.scheduleData.workCenterNo = data.row.workCenterNo;
        this.scheduleData.workCenterDesc = data.row.workCenterDesc;
        this.scheduleData.resourceDesc = data.row.resourceDesc;
        this.scheduleData.preItemNo = data.row.preItemNo;
      });
    },
    // 获取当前卷的信息
    async getCurrentRollOpsBySeqNoFun() {
      await getCurrentRollOpsBySeqNo(this.currentRollOps).then(({data}) => {
        if (data.code === 200) {
          this.currentRollOps.rollNo = data.row.rollNo;
          this.scheduleData.rollNo = data.row.rollNo;
          this.currentRollOps.finishedFlag = data.row.finishedFlag;
        } else {
          this.currentRollOps.rollNo = '';
          this.scheduleData.rollNo = '';
        }
        //设置查询的数据
        this.searchData = JSON.parse(JSON.stringify(this.scheduleData));
      });
    },
    //列表表格选择替换
    tabClick(tab, event) {
      //刷新列表数据
      this.refreshCurrentTabTable();
    },

    //刷新派工单的时间的记录
    async getSfdcTimeList() {
      await getSfdcTimeByCon(this.searchData).then(({data}) => {
        this.sfdcTimeList = data.rows;
      });
    },

    //刷新工单的工具信息
    getOrderToolList() {
      getOrderToolByCon(this.searchData).then(({data}) => {
        this.orderToolList = data.rows;
      });
    },

    //刷新派工单的刀模板的记录
    getSfdcToolList() {
      getSfdcToolByCon(this.searchData).then(({data}) => {
        this.sfdcToolList = data.rows;
      });
    },

    //刷新工单的bom信息
    getOrderBomList() {
      getOrderBomByCon(this.searchData).then(({data}) => {
        this.orderBomList = data.rows;
      });
    },

    //刷新派工单的材料表的记录
    getSfdcMaterialList() {
      getSfdcMaterialByCon(this.searchData).then(({data}) => {
        this.sfdcMaterialList = data.rows;
      });
    },

    //刷新派工单的下机卷的记录
    getSfdcRollOpsList() {
      getSfdcRollOpsByCon(this.searchData).then(({data}) => {
        this.sfdcRollOpsList = data.rows;
      });
    },

    //刷新派工单的不良标的记录
    getSfdcDefectList() {
      getSfdcDefectByCon(this.searchData).then(({data}) => {
        this.sfdcDefectList = data.rows;
      });
    },

    //刷新派工单的下机卷的记录
    getSfdcRollList() {
      getSfdcRollByCon(this.searchData).then(({data}) => {
        this.sfdcRollList = data.rows;
      });
    },

    //刷新页签的table数据
    async refreshCurrentTabTable() {
      //设置查询的数据
      this.searchData = JSON.parse(JSON.stringify(this.scheduleData));
      //判断是否按照当前卷来查询
      if (this.scheduleData.currentRollFlag) {
        //设置相关的卷号 判断是否存在卷
        this.searchData.rollNo = this.currentRollOps.rollNo;
      } else {
        this.searchData.rollNo = '';
      }

      //区分不同的页签刷新不同的列表数据
      if (this.activeTable == 'sfdc_time') {
        await this.getSfdcTimeList();
      } else if (this.activeTable == 'sfdc_tool') {
        this.getOrderToolList();
        this.getSfdcToolList();
      } else if (this.activeTable == 'sfdc_material') {
        this.getOrderBomList();
        this.getSfdcMaterialList();
      } else if (this.activeTable == 'sfdc_rollOps') {
        this.getSfdcRollOpsList();
      } else if (this.activeTable == 'sfdc_defect') {
        this.harmful.reportedDate = this.dayjs().format("YYYY-MM-DD 00:00:00")
        this.getSfdcDefectList();
      } else if (this.activeTable == 'sfdc_roll') {
        this.getSfdcRollList();
      }

    },

    init(seqNo, operatorData) {
      this.scheduleData.seqNo = seqNo;
      this.currentRollOps.seqNo = seqNo;
      this.operatorData = operatorData;
      this.getMultiLanguageList();//刷新多语言的信息
      //清空当前的页面列表参数
      this.sfdcTimeList = [];
      this.sfdcToolList = [];
      this.sfdcMaterialList = [];
      this.sfdcRollOpsList = [];
      this.sfdcDefectList = [];
      this.sfdcRollList = [];
      this.harmful.defectCode = ''
      this.harmful.defectDesc = ''
      //设置table页签
      this.activeTable = 'sfdc_material';
      //刷新当前派工单的信息
      this.refreshPageData();
    },

    //刷新页面的数据
    async refreshPageData() {
      await getScheduleDataBySeqNo(this.scheduleData.seqNo).then(({data}) => {
        this.scheduleData.seqNo = data.row.seqNo;
        this.scheduleData.orderNo = data.row.orderNo;
        this.scheduleData.itemNo = data.row.itemNo;
        this.scheduleData.resourceId = data.row.resourceId;
        this.scheduleData.partNo = data.row.partNo;
        this.scheduleData.partDesc = data.row.partDesc;
        this.scheduleData.planStartTime = data.row.planStartTime;
        this.scheduleData.planFinishTime = data.row.planFinishTime;
        this.scheduleData.qtyRequiredOriginal = data.row.qtyRequiredOriginal;
        this.scheduleData.scheduledDate = data.row.scheduledDate;
        this.scheduleData.shiftNo = data.row.shiftNo;
        this.scheduleData.preItemDesc = data.row.preItemDesc;
        this.scheduleData.nextItemDesc = data.row.nextItemDesc;
        this.scheduleData.workCenterNo = data.row.workCenterNo;
        this.scheduleData.workCenterDesc = data.row.workCenterDesc;
        this.scheduleData.resourceDesc = data.row.resourceDesc;
        this.scheduleData.preItemNo = data.row.preItemNo;
        //设置弹窗的标题
        this.titleCon = this.labels.titleCon + ' - ' + data.row.itemDesc + ' '
          + data.row.resourceDesc + ' （' + this.operatorData.operatorName + '）';
      })
      //刷新页面的卷信息
      await this.getCurrentRollOpsBySeqNoFun();

      //设置table页签
      //this.activeTable = 'sfdc_time';
      //刷新当前页签的table的内容
      await this.refreshCurrentTabTable();

      //刷新当前的菜单
      await this.refreshPageButtons();

    },

    //刷新当前页面的菜单
    async refreshPageButtons() {
      //判断是否存在人员
      if (this.operatorData.operatorId == null || this.operatorData.operatorId == '') {
        this.buttonTags.createNewRollFlag = true;
        this.buttonTags.switchRollFlag = true;
        this.buttonTags.separateRollFlag = true;
        this.buttonTags.finishRollFlag = true;
        this.buttonTags.tuningFlag = true;
        this.buttonTags.produceFlag = true;
        this.buttonTags.defectFlag = true;
        this.buttonTags.toolFlag = true;
        this.buttonTags.materialFlag = true;
        this.buttonTags.downTimeFlag = true;
        this.buttonTags.scannerRollFlag = true;
        this.buttonTags.mergeRollFlag = true;
        this.buttonTags.otherFlag = true;
      } else {
        //存在人员既可以合并卷
        this.buttonTags.otherFlag = false;
        this.buttonTags.mergeRollFlag = false;
        this.buttonTags.createNewRollFlag = false;
        //刷新其他的菜单
        await refreshWorkPlatformButtons(this.scheduleData).then(({data}) => {
          if (data.resultMap.createNewRollFlag == 'Y') {
            this.buttonTags.createNewRollFlag = false;
          } else {
            this.buttonTags.createNewRollFlag = true;
          }
          if (data.resultMap.switchRollFlag == 'Y') {
            this.buttonTags.switchRollFlag = false;
          } else {
            this.buttonTags.switchRollFlag = true;
          }
          if (data.resultMap.separateRollFlag == 'Y') {
            this.buttonTags.separateRollFlag = false;
          } else {
            this.buttonTags.separateRollFlag = true;
          }
          if (data.resultMap.finishRollFlag == 'Y') {
            this.buttonTags.finishRollFlag = false;
          } else {
            this.buttonTags.finishRollFlag = true;
          }
          if (data.resultMap.tuningFlag == 'Y') {
            this.buttonTags.tuningFlag = false;
          } else {
            this.buttonTags.tuningFlag = true;
          }
          if (data.resultMap.produceFlag == 'Y') {
            this.buttonTags.produceFlag = false;
          } else {
            this.buttonTags.produceFlag = true;
          }
          if (data.resultMap.defectFlag == 'Y') {
            this.buttonTags.defectFlag = false;
          } else {
            this.buttonTags.defectFlag = true;
          }
          if (data.resultMap.toolFlag == 'Y') {
            this.buttonTags.toolFlag = false;
          } else {
            this.buttonTags.toolFlag = true;
          }
          if (data.resultMap.materialFlag == 'Y') {
            this.buttonTags.materialFlag = false;
          } else {
            this.buttonTags.materialFlag = true;
          }
          if (data.resultMap.downTimeFlag == 'Y') {
            this.buttonTags.downTimeFlag = false;
          } else {
            this.buttonTags.downTimeFlag = true;
          }
        });
      }
    },

    //设置参数
    initOperatorData(operatorData) {
      this.showOperatorFlag = false;
      this.operatorData = JSON.parse(JSON.stringify(operatorData));
      //切换当前账户的信息
      //设置弹窗的标题
      this.titleCon =  this.labels.titleCon + ' - ' + this.scheduleData.workCenterDesc + ' '
        + this.scheduleData.resourceDesc + ' （' + this.operatorData.operatorName + '）';
      //刷新菜单
    },

    /*不初始化操作员的方法*/
    notInitOperatorData() {
      //关闭切换用户的组件
      this.showOperatorFlag = false;
    },

    //切换员工modal
    switchOperatorModal() {
      //首先判断是否选择好派工单
      if (JSON.stringify(this.currentRow) == '{}') {
        this.$message.error(this.labels.pleaseSelectSeqNo);
        return false;
      }
      //打开操作员切换功能
      this.showOperatorFlag = true;
      this.$nextTick(() => {
        this.$refs.comSwitchOperator.init();
      });
    },

    /*提示是否创建新卷*/
    warnCreateNewRollConfirm() {
      //禁用当按钮  操作完成 恢复
      this.buttonTags.createNewRollFlag = true;
      //提示操作
      this.$confirm(this.labels.sureCreateNewRoll, '提示', {
        confirmButtonText: this.labels.confirmLabel,
        celButtonText: this.labels.cancelLabel,
        type: 'warning'
      }).then(() => {
        //执行创建新卷的操作
        this.createNewRollFun();
      });
    },

    //创建新卷的功能
    createNewRollFun() {
      //校验当前的功能是否可用
      this.scheduleData.operatorId = this.operatorData.operatorId;
      checkCreateNewSfdcRoll(this.scheduleData).then(({data}) => {
        if (data.code === 200) {
          //调用创建卷的方法
          this.createNewRollDo();
        } else {
          // 操作完成 恢复
          this.buttonTags.createNewRollFlag = false;
          this.$message.error(data.msg)
        }
      });
    },

    /*切换卷操作*/
    switchRollModal() {
      //1.首先调用菜单判断方式 看看是否可以结束卷
      //checkProduceButton('switchRollFlag');
      //打开切换用户的页面
      this.$nextTick(() => {
        this.showSwitchFlag = true;
        this.$refs.changeSwitchRoll.init(this.scheduleData, this.operatorData)
      });
    },

    /*创建分卷的modal调用*/
    separateRollModal() {
      if (!this.currentRollOps.rollNo) {
        this.$message.warning( this.labels.pleaseEnterPreRollQtyAndRollNums)
        return;
      }
      if (!this.createRoll.rollQty || !this.createRoll.rollNums) {
        this.$message.warning( this.labels.pleaseEnterPreRollQtyAndRollNums)
        return;
      }

      this.createRoll.orderNo = this.scheduleData.orderNo
      this.createRoll.itemNo = this.scheduleData.itemNo
      this.createRoll.seqNo = this.scheduleData.seqNo
      this.createRoll.rollNo = this.currentRollOps.rollNo
      this.createRoll.operatorId = this.operatorData.operatorId;
      this.createRoll.rollCount = this.createRoll.rollNums;
      this.createRoll.sFQCSlitFlag = 'N'
      otherCheckCreateSplitSfdcRoll(this.createRoll).then(({data}) => {
        //判断是否成功
        if (data.code == 0) {
          // 执行创建分卷的操作
          this.createSeparateRolllOperation();
        }
        if (data.code == 201) {
          //打开异常原因录入的界面
          this.$confirm(data.msg, '提示', {
            confirmButtonText: this.labels.confirmLabel,
            celButtonText: this.labels.cancelLabel,
            type: 'warning'
          }).then(() => {
            // 执行创建分卷的操作
            this.createSeparateRolllOperation();
          });
        }
        if (data.code == 400) {
          this.$message(data.msg);
        }
      });

    },
    /*执行创建分卷的操作*/
    createSeparateRolllOperation() {
      //处理信息
      workbenchCreateslittingrollRepackAction(this.createRoll).then(({data}) => {
        //判断操作是否成功
        if (data.code == 500) {
          this.$message.error(data.msg);
        } else if (data.code == 200) {
          this.$message.success(data.msg)
          this.createRoll.rollNums= ''
          this.createRoll.rollQty= ''
          //打印卷标签
          // let printList = data.printList;
          // printSfdcLabel(printList);
          // 打印
          this.$nextTick(() => {
            this.$refs.comRollLabel.init(data.rollNos)
          });
          //刷新报工的页面
          this.getSfdcRollList()
        }else {
          this.$message.warning(data.msg)
        }

      })
    },
    /*结束卷操作*/
    finishRollModal() {
      //1.首先调用菜单判断方式 看看是否可以结束卷
      //checkProduceButton('finishRollFlag');
      //打开结束卷的页面
      this.$nextTick(() => {
        this.showFinishFlag = true;
        this.$refs.changeFinishRoll.init(this.scheduleData, this.operatorData)
      });
    },

    /*产量报告的卷操作*/
    finishPartRollModal() {
      //1.首先调用菜单判断方式 看看是否可以结束卷
      //checkProduceButton('finishRollFlag');
      //打开结束卷的页面
      this.$nextTick(() => {
        this.showFinishPartFlag = true;
        this.$refs.comFinishPartRoll.init(this.scheduleData, this.operatorData)
      });
    },

    /*合并卷modal*/
    mergeRollModal() {
      //1.首先调用菜单判断方式 看看是否可以结束卷
      //checkProduceButton('mergeRollFlag');
      //打开合并卷的页面
      this.$nextTick(() => {
        this.showMergeFlag = true;
        this.$refs.comMergeRoll.init(this.scheduleData, this.operatorData,1)
      });
    },

    /*开始调机modal*/
    startTuningModal() {
      //1.首先调用菜单判断方式 看看是否可以结束卷
      //checkProduceButton('startTuningFlag');
      //打开开始调机的页面
      this.$nextTick(() => {
        this.showTuningFlag = true;
        this.$refs.comStartTuning.init(this.scheduleData, this.operatorData)
      });
    },

    /*开始调机modal*/
    startProduceModal() {
      //1.首先调用菜单判断方式 看看是否可以结束卷
      //checkProduceButton('startProduceFlag');
      //打开开始生产的页面
      this.$nextTick(() => {
        this.showProduceFlag = true;
        this.$refs.comStartProduce.init(this.scheduleData, this.operatorData)
      });
    },

    /*报告不良modal*/
    defectRollModal() {
      //1.首先调用菜单判断方式 看看是否可以结束卷
      //checkProduceButton('defectRollFlag');
      //打开不良卷的页面
      this.$nextTick(() => {
        this.showDefectFlag = true;
        this.$refs.comDefectRoll.init(this.scheduleData, this.operatorData)
      });
    },

    /*生产过程的工具组件*/
    produceToolModal() {
      //1.首先调用菜单判断方式  打开生产过程的工具的页面
      //checkProduceButton('produceToolFlag');
      //打开生产过程的工具的页面
      this.$nextTick(() => {
        this.showToolFlag = true;
        this.$refs.comProduceTool.init(this.scheduleData, this.operatorData, 0)
      });
    },

    /*生产过程的工具组件*/
    produceMaterialModal() {
      //1.首先调用菜单判断方式  打开生产过程的材料的页面
      //checkProduceButton('produceMaterialFlag');
      //打开生产过程的工具的页面
      this.$nextTick(() => {
        this.showMaterialFlag = true;
        this.$refs.comProduceMaterial.init(this.scheduleData, this.operatorData)
      });
    },

    /*生产过程的停机组件*/
    produceDownModal() {
      //1.首先调用菜单判断方式  打开生产过程的停机的页面
      //checkProduceButton('produceDownFlag');
      //打开生产过程的工具的页面
      this.$nextTick(() => {
        this.showDownFlag = true;
        this.$refs.comProduceDown.init(this.scheduleData, this.operatorData)
      });
    },

    /*替换工具的组件*/
    replaceToolModal(toolRow) {
      //1.首先调用菜单判断方式  打开生产过程的停机的页面
      //checkProduceButton('produceDownFlag');
      //打开生产过程的工具的页面
      this.$nextTick(() => {
        this.showReplaceToolFlag = true;
        this.$refs.comReplaceTool.init(this.scheduleData, this.operatorData, toolRow)
      });
    },

    /*替换工具的组件*/
    replaceMaterialModal(materialRow) {
      //1.首先调用菜单判断方式  打开生产过程的停机的页面
      //checkProduceButton('produceDownFlag');
      //打开生产过程的工具的页面
      this.$nextTick(() => {
        this.showReplaceMaterialFlag = true;
        this.$refs.comReplaceMaterial.init(this.scheduleData, this.operatorData, materialRow)
      });
    },

    /*材料下料的modal*/
    cuttingMaterialModal(materialRow) {
      this.$nextTick(() => {
        this.showCuttingMaterialFlag = true;
        this.$refs.comCuttingMaterial.init(this.scheduleData, this.operatorData, materialRow);
      });
    },

    /*材料结束生产的modal*/
    finishMaterialModal(materialRow) {
      this.$nextTick(() => {
        this.showMaterialFlag = true;
        this.$refs.comProduceMaterial.init(this.scheduleData, this.operatorData)
      });
    },

    //打开结束派工单的modal
    showFinishScheduleModal() {
      //打开操作员切换功能
      this.showFinishScheduleFlag = true;
      this.$nextTick(() => {
        // 第三个换包装结单参数
        this.$refs.comFinishSchedule.init(this.scheduleData, this.operatorData,4);
      });
    },

    //结束派工单后刷新页面
    processFinishScheduleOperation() {
      //刷新当前页面的数据
      this.refreshPageTables();
    },

    //创建新卷的方法
    createNewRollDo() {
      createNewRoll(this.scheduleData).then(({data}) => {
        //判断是否成功
        if (data.success) {
          this.$message.success(data.msg);
          //刷新当的按钮
          this.refreshPageData();
        } else {
          //打开当前创建新卷的按钮
          this.buttonTags.createNewRollFlag = false;
          this.$message.error(data.msg);
        }
      });
    },

    /*提醒是否重新打开的提示*/
    warnReopenSfdcRollsConfirm(sfdcRollRow) {
      this.$confirm(this.labels.sureReopenSfdcRoll + sfdcRollRow.rollNo + this.labels.sureLabel, '提示', {
        confirmButtonText: this.labels.confirmLabel,
        celButtonText: this.labels.cancelLabel,
        type: 'warning'
      }).then(() => {
        //执行重新打开sfdcRolls记录的操作
        this.reopenSfdcRollsOperation(sfdcRollRow);
      });
    },

    /*执行重新sfdcRolls表的记录*/
    reopenSfdcRollsOperation(sfdcRollRow) {
      let sfdcRoll = {
        'site': this.scheduleData.site, 'orderNo': this.scheduleData.orderNo,
        'itemNo': this.scheduleData.itemNo, 'seqNo': this.scheduleData.seqNo,
        'rollNo': sfdcRollRow.rollNo, 'operatorId': this.scheduleData.operatorId
      };
      reopenSfdcRolls(sfdcRoll).then(({data}) => {
        //判断是否成功
        if (data.code == 500) {
          this.$message.error(data.msg);
        } else {
          this.$message.info(data.resultMap.resultMsg);
          //刷新报工的页面
          this.refreshPageData();
        }
      });
    },

    /*提醒是否删除的提示*/
    warnDeleteSfdcRollsConfirm(sfdcRollRow) {
      this.$confirm(this.labels.sureDeleteCurrentRoll, '提示', {
        confirmButtonText: this.labels.confirmLabel,
        celButtonText: this.labels.cancelLabel,
        type: 'warning'
      }).then(() => {
        //执行重新打开sfdcRolls记录的操作
        this.deleteSfdcRollsOperation(sfdcRollRow);
      });
    },

    /*执行删除sfdcRolls的数据功能*/
    deleteSfdcRollsOperation(sfdcRollRow) {
      let sfdcRoll = {
        'site': this.scheduleData.site, 'orderNo': this.scheduleData.orderNo,
        'itemNo': this.scheduleData.itemNo, 'seqNo': this.scheduleData.seqNo,
        'rollNo': sfdcRollRow.rollNo, 'oriRollNo': sfdcRollRow.oriRollNo, 'operatorId': this.scheduleData.operatorId
      };
      //执行删除卷的操作
      deleteSfdcRolls(sfdcRoll).then(({data}) => {
        //判断是否成功
        if (data.code == 500) {
          this.$message.error(data.msg);
        } else {
          this.$message.info(data.resultMap.resultMsg);
          //刷新报工的页面
          this.refreshPageData();
        }
      });
    },

    /*结束使用 工具确认功能*/
    warnFinishToolConfirm(toolRow) {
      this.$confirm(this.labels.sureEndThisToolUsed, '提示', {
        confirmButtonText: this.labels.confirmLabel,
        celButtonText: this.labels.cancelLabel,
        type: 'warning'
      }).then(() => {
        //执行结束使用工具的的操作
        this.finishToolOperation(toolRow);
      });
    },

    /*执行删除sfdcRolls的数据功能*/
    finishToolOperation(toolRow) {
      let toolData = {
        'site': this.scheduleData.site, 'orderNo': this.scheduleData.orderNo,
        'itemNo': this.scheduleData.itemNo, 'seqNo': this.scheduleData.seqNo,
        'histSeqNo': toolRow.histSeqNo, 'toolInstanceId': toolRow.toolInstanceId
      };
      //执行删除卷的操作
      processFinishTool(toolData).then(({data}) => {
        //判断是否成功
        if (data.code == 500) {
          this.$message.error(data.msg);
        } else {
          this.$message.success(data.msg);
          //刷新报工的页面
          this.refreshPageData();
        }
      });
    },

    /*结束使用 材料确认功能*/
    warnFinishMaterialWithNoRemainderConfirm(materialRow) {
      this.$confirm(this.labels.sureEndThisToolUsed, '提示', {
        confirmButtonText: this.labels.confirmLabel,
        celButtonText: this.labels.cancelLabel,
        type: 'warning'
      }).then(() => {
        //执行结束使用材料的的操作
        this.finishMaterialWithNoRemainderOperation(materialRow);
      });
    },

    /*执行结束使用 材料的数据功能*/
    finishMaterialWithNoRemainderOperation(materialRow) {
      let materialData = {
        'site': this.scheduleData.site, 'orderNo': this.scheduleData.orderNo,
        'itemNo': this.scheduleData.itemNo, 'seqNo': this.scheduleData.seqNo,
        'histSeqNo': materialRow.histSeqNo, 'rollNo': materialRow.rollNo
      };
      //执行结束使用材料卷且无剩余的操作
      finishMaterialWithNoRemainder(materialData).then(({data}) => {
        //判断是否成功
        if (data.code == 500) {
          this.$message.error(data.msg);
        } else {
          this.$message.success(data.msg);
          //刷新报工的页面
          this.refreshPageData();
        }
      });
    },
    closeDialog(){
      Object.assign(this.$data, this.$options.data.call(this));
    },

    // 保存 默认配置 列
    async saveMultiLanguage() {
      // 保存页面 button label title 属性
      let buttons = this.buttonList;
      let labels = this.labelsList;
      await saveButtonList(buttons)
      await saveButtonList(labels)
      this.getMultiLanguageList()
    },

    getMultiLanguageList() {
      //首先查询当前按钮的多语言
      searchFunctionButtonList(this.queryButton).then(({data}) => {
        if (JSON.stringify(data.data) != '{}') {
          this.buttons = data.data
        } else {
          // saveButtonList(this.buttonList).then(({data}) => {
          // })
        }
      });
      //其次查询当前标签的多语言
      searchFunctionButtonList(this.queryLabel).then(({data}) => {
        if (JSON.stringify(data.data) != '{}') {
          this.labels = data.data
        } else {
          // saveButtonList(this.buttonList).then(({data}) => {
          // })
        }
      });
    },

  },

  created() {
    // this.factoryList()
    // this.getLanguageList()
    //this.getMultiLanguageList();//刷新多语言的信息
  }
}

</script>

<style scoped lang="scss">
/deep/ .customer-tab .el-tabs__content {
  padding: 0px !important;
}

/*当前按钮的通用样式*/
.customer-css .customer-bun-mid {
  width: 60px;
  text-align: center;
}

.customer-css .customer-bun-min {
  width: 50px;
  text-align: center;
}

.customer-css .customer-bun-max {
  width: 80px;
  text-align: center;
}

/*当前按钮的通用样式*/
.customer-css .el-button--medium {
  padding: 5px 5px;
}

.customer-css .customer-roll-css span {
  margin-left: 15px;
  font-size: 16px;
  color: #387877;
}

/*定制组件的样式*/
.customer-css /deep/ .el-dialog {
  top: 6vh !important;
  margin-top: 0px !important;
  margin-bottom: 10px;
}

/*自定义当前el-input的样式 */
.customer-item .el-input {
  margin-right: 25px;
}
</style>
