<template>
  <basic-container>
    <!-- 烧结生产监控 -->
    <avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud"
      @row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" @selection-change="selectionChange"
      @current-change="currentChange" @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
      <template #produceBool="{ row }">{{ row.pjYieldOrder.produceBool ? '已齐套' : '未齐套' }}</template>
      <template #partCode="{ row }">{{ row.pjYieldOrder.partCode }}</template>
      <template #prodIdent="{ row }">{{ row.pjYieldOrder.prodIdent }}</template>
      <template #makeTsName="{ row }">{{ row.makeTeam.tsName }}</template>
      <template #ppsName="{ row }">{{ row.procedureSet.ppsName }}</template>
      <template #useDept="{ row }">{{ row.pjYieldOrder.useDept }}</template>
      <template #failureTime="{ row }">{{ row.pjYieldOrder.failureTime }}</template>

      <template #menu-left>
        <el-button type="primary" icon="el-icon-help" @click="interlott">合批</el-button>
        <el-button type="primary" icon="el-icon-monitor" @click="handleOutsource(null, 'all')">批量外协</el-button>
        <el-button type="primary" icon="el-icon-printer" plain @click="handlePrintTags">打印标签</el-button>
        <el-button type="primary" icon="el-icon-printer" @click="printPtCard(null,'all')">打印配套单</el-button>
        <el-button type="primary" icon="el-icon-printer" plain @click="handlePrint">打印</el-button>
        <el-button type="success" icon="el-icon-download">导出</el-button>

      </template>

      <template #menu-right>
        <el-button type="success">在制品</el-button>
        <el-button type="danger">未齐套</el-button>
        <el-button type="success">已齐套</el-button>
        <el-button type="warning">加工中</el-button>
        <el-button type="danger">检验中</el-button>
        <el-button type="success" plain>已完成</el-button>
        <el-button type="primary">全部</el-button>
      </template>

      <template #menu="scope">
        <el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button>
        <el-button type="text">打印</el-button>
        <el-dropdown  style="margin-top: 4px;margin-left: 12px;">
          <span class="el-dropdown-link" style="color: #284c89;cursor: pointer;">
            更多<i class="el-icon-arrow-down el-icon--right" />
          </span>
          <template #dropdown>
            <el-dropdown-menu>
              <el-dropdown-item @click="printPtCard(scope.row,'one')"
                v-show="scope.row.runStatus === 1">打印配套单</el-dropdown-item>
              <el-dropdown-item @click="handleBatches(scope.row)" v-show="scope.row.runStatus < 15">分批</el-dropdown-item>
              <el-dropdown-item @click="handleOutsource(scope.row,'one')" v-show="scope.row.runStatus < 4">外协</el-dropdown-item>
              <el-dropdown-item @click="handleScheduling(scope.row)" v-show="scope.row.runStatus<15 && scope.row.priority!=5">调度标注</el-dropdown-item>
              <el-dropdown-item @click="handleTryAgain(scope.row)" v-show="scope.row.runStatus < 15">转试</el-dropdown-item>
              <el-dropdown-item @click="handleRebuildOrder(scope.row)" v-show="scope.row.runStatus == 19">重建订单</el-dropdown-item>
              <el-dropdown-item @click="handleRebuildOrderAndSub(scope.row)" v-show="scope.row.runStatus == 19">重建订单及子件</el-dropdown-item>
              <el-dropdown-item @click="handleClose(scope.row)" v-show="scope.row.runStatus < 15">关闭</el-dropdown-item>
              <el-dropdown-item @click="handleHotList(scope.row)" v-show="scope.row.runStatus < 15">转热表</el-dropdown-item>
            </el-dropdown-menu>
          </template>
        </el-dropdown>
      </template>

      <template #expand="{ row }">
        <el-table :data="row.subList">
          <el-table-column label="车间订单号" prop="woCode"></el-table-column>
          <el-table-column label="生产订单号" prop="pjYieldOrder.yoCode"></el-table-column>
          <el-table-column label="零件号" prop="pjYieldOrder.partCode"></el-table-column>
          <el-table-column label="下达时间" prop="sendDownTime"></el-table-column>
          <el-table-column label="订单状态" prop="runStatusTitle"></el-table-column>
          <el-table-column label="批次号" prop="batchNo"></el-table-column>
          <el-table-column label="产品名称" prop="pjYieldOrder.partName"></el-table-column>
          <el-table-column label="流程卡号" prop="cardNo"></el-table-column>
          <el-table-column label="MES流程卡号" prop="mesCardNo"></el-table-column>
          <el-table-column label="返工单号" prop="qcReworkCode"></el-table-column>
          <el-table-column label="镀种信息" prop="pjYieldOrder.plate"></el-table-column>
          <el-table-column label="产品型号" prop="pjYieldOrder.productType"></el-table-column>
          <el-table-column label="生产标识" prop="pjYieldOrder.prodIdent"></el-table-column>
          <el-table-column label="订单优先级" prop="priorityTitle"></el-table-column>
          <el-table-column label="需求部门" prop="pjYieldOrder.useDept"></el-table-column>
          <el-table-column label="生产数量" prop="makeQty"></el-table-column>
          <el-table-column label="面积(dm²)" prop="pjYieldOrder.poArea"></el-table-column>
          <el-table-column label="单批次面积" prop="batchArea"></el-table-column>
          <el-table-column label="需求交期" prop="demandDate"></el-table-column>
          <el-table-column label="会议要求周期" prop="meetCycle"></el-table-column>
          <el-table-column label="调度员" prop="dispatcher.userName"></el-table-column>
          <el-table-column label="计划下达时间" prop="createTime"></el-table-column>
          <el-table-column label="计划完工时间" prop="planEndDate"></el-table-column>
          <el-table-column label="镀后入库时间" prop="putStoreTime"></el-table-column>
          <el-table-column label="已入库数量" prop="inventoryQty"></el-table-column>
          <el-table-column label="未入库数量" prop="notInQty"></el-table-column>
          <el-table-column label="调整后班组" prop="makeTeam.tsName"></el-table-column>
          <el-table-column label="当前工序" prop="procedureSet.ppsName"></el-table-column>
          <el-table-column label="下序" prop="nextProcedureSet.ppsName"></el-table-column>
          <el-table-column label="下一班组" prop="nextMakeTeam.tsName"></el-table-column>
          <el-table-column label="领料状态" prop="pickingStatusTitle"></el-table-column>
          <el-table-column label="接收人员" prop="pjYieldOrder.failureMan.userName"></el-table-column>
          <el-table-column fixed="right" label="操作">
            <el-button type="text" @click="clickProduction(scope.row)">生产监控</el-button>
            <el-button type="text">打印</el-button>
          </el-table-column>
        </el-table>
      </template>
    </avue-crud>
    <el-dialog append-to-body v-model="printDialog" title="打印标签">
      <el-form ref="printForm" :model="printForm" :rules="printRules">
        <el-form-item label="数量" prop="quantity">
          <el-input v-model="printForm.quantity" placeholder="请输入数量"
            oninput="value=value.replace(/[^\d]/g,'')"></el-input>
        </el-form-item>
      </el-form>
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="printDialog = false">取 消</el-button>
          <el-button type="primary" @click="submitPrint">打 印</el-button>
        </span>
      </template>
    </el-dialog>

    <!-- 生产监控 -->
    <production-dialog :monitor-dialog="monitorDialog" :row-item="rowItem"
      @closeDialog="closeDialog"></production-dialog>
    <!-- 转外协弹窗 -->
    <outsource-dialog :show-dialog="showDialog" @closeDialog="closeDialog" :show-radio="showRadio"></outsource-dialog>
    <!-- 分批弹窗  -->
    <batches-dialog :show-batches="showBatches" @closeDialog="closeDialog"></batches-dialog> 
    <!-- 调度标注 -->
    <scheduling-dialog :show-scheduling="showScheduling" @closeDialog="closeDialog"></scheduling-dialog>
    <!-- 转试 -->
    <again-dialog :show-again="showAgain"></again-dialog>
    <!-- 关闭弹窗  -->
    <closed-dialog :show-close="showClose" @closeDialog="closeDialog"></closed-dialog>
  </basic-container>
</template>

<script>
import productionDialog from './components/productionDialog.vue';
import outsourceDialog from './components/outsourceDialog.vue';
import batchesDialog from './components/batchesDialog.vue';
import schedulingDialog from './components/schedulingDialog.vue';
import againDialog from './components/againDialog.vue';
import closedDialog from './components/closedDialog.vue';

export default {
  components: {
    productionDialog,
    outsourceDialog,
    batchesDialog,
    schedulingDialog,
    againDialog,
    closedDialog
  },
  data() {
    return {
      data: [],
      loading: false,
      printDialog: false,
      form: {},
      rowItem: {},
      showScheduling:false,
      selectionList: [],
      showDialog: false,
      showAgain:false,
      showRadio: false,
      showBatches:false,
      monitorDialog: false,
      showClose:false,
      page: {
        pageSize: 10,
        currentPage: 1,
        total: 0,
      },
      option: {
        expand: true,
        height: 'auto',
        calcHeight: 32,
        rowKey: 'cardNo',
        tip: false,
        size: 'medium',
        simplePage: true,
        searchShow: true,
        searchMenuSpan: 6,
        searchIcon: true,
        searchIndex: 3,
        tree: false,
        border: true,
        index: true,
        selection: true,
        viewBtn: false,
        delBtn: false,
        addBtn: false,
        editBtn: false,
        editBtnText: '修改',
        viewBtnIcon: ' ',
        delBtnIcon: ' ',
        editBtnIcon: ' ',
        viewBtnText: '详情',
        labelWidth: 120,
        searchLabelWidth: 120,
        menuWidth: 220,
        dialogWidth: 1200,
        dialogClickModal: false,
        searchEnter: true,
        excelBtn: false,
        filterBtn: true,
        searchShowBtn: false,
        columnSort: true,
        excelBtn: true,
        columnSort: true,
        index: false,
        showOverflowTooltip: true,
        column: [
          {
            label: '是否齐套',
            prop: 'produceBool',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入是否齐套',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '返工单号',
            prop: 'qcReworkCode',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入返工单号',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '车间订单号',
            prop: 'woCode',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入车间订单号',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '零件号',
            prop: 'partCode',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入零件号',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '批次号',
            prop: 'batchNo',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入批次号',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '生产数量',
            prop: 'makeQty',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入生产数量',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '生产标识',
            prop: 'prodIdent',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入生产标识',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '调整后班组',
            prop: 'makeTsName',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入调整后班组',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '当前工序',
            prop: 'ppsName',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入当前工序',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '镀后入库时间',
            prop: 'putStoreTime',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入镀后入库时间',
                trigger: 'blur',
              },
            ],
          },
          {
            label: 'MES流程卡号',
            prop: 'mesCardNo',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入MES流程卡号',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '流程卡号',
            prop: 'cardNo',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入流程卡号',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '已入库数量',
            prop: 'inventoryQty',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入已入库数量',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '订单状态',
            prop: 'runStatusTitle',
            type: 'select',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入订单状态',
                trigger: 'blur',
              },
            ],
            dicData: [
              {
                value: 1,
                label: '正常'
              },
              {
                value: 3,
                label: '加工中'
              },
              {
                value: 4,
                label: '检验中'
              },
              {
                value: 19,
                label: '已返工'
              },
              {
                value: 15,
                label: '已完工'
              },
              {
                value: 21,
                label: '已作废'
              }
            ]
          },
          {
            label: '子件状态',
            prop: 'subRunStatus',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入子件状态',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '需求部门',
            prop: 'useDept',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入需求部门',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '会议要求周期',
            prop: 'meetCycle',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入会议要求周期',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '调度员',
            prop: 'userName',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入调度员',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '下达时间',
            prop: 'sendDownTime',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入下达时间',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '计划下达时间',
            prop: 'failureTime',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入计划下达时间',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '主加工单位',
            prop: 'tsName',
            search: true,
            sortable: true,
            overHidden: true,
            hide: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入主加工单位',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '加工单位',
            prop: 'processingUnit',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            hide: false,
            rules: [
              {
                required: true,
                message: '请输入加工单位',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '加工单位-班组',
            prop: 'tsId',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            hide: true,
            rules: [
              {
                required: true,
                message: '请输入加工单位-班组',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '加工单位-外协商',
            prop: 'ocId',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            hide: true,
            rules: [
              {
                required: true,
                message: '请输入加工单位-外协商',
                trigger: 'blur',
              },
            ],
          },



          {
            label: '生产订单号',
            prop: 'yoCode',
            search: true,
            sortable: true,
            overHidden: true,
            hide: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入生产订单号',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '计划单号',
            prop: 'poCode',
            search: true,
            sortable: true,
            hide: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入计划单号',
                trigger: 'blur',
              },
            ],
          },


          {
            label: '外协状态',
            prop: 'oemType',
            type: 'select',
            search: true,
            hide: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入外协状态',
                trigger: 'blur',
              },
            ],
            dicData: [
              {
                value: -1,
                label: '场内'
              },
              {
                value: 2,
                label: '外协'
              }
            ]
          },

          {
            label: '产品名称',
            prop: 'partName',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入产品名称',
                trigger: 'blur',
              },
            ],
          },


          {
            label: '镀种信息',
            prop: 'plate',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入镀种信息',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '产品型号',
            prop: 'productType',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入产品型号',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '订单优先级',
            prop: 'priorityTitle',
            type: 'select',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入订单优先级',
                trigger: 'blur',
              },
            ],
            dicData: [
              {
                value: 1,
                label: '正常-白色'
              }, {
                value: 2,
                label: '项目要求日期急件-橙色'
              },
              {
                value: 3,
                label: '合同急件-黄色'
              },
              {
                value: 4,
                label: '绩效零件-青色'
              },
              {
                value: 5,
                label: '调度标注急件-蓝色'
              }
            ]
          },

          {
            label: '面积(dm²)',
            prop: 'poArea',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入面积(dm²)',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '单批次面积',
            prop: 'batchArea',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入单批次面积',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '需求交期',
            prop: 'demandDate',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入需求交期',
                trigger: 'blur',
              },
            ],
          },


          {
            label: '计划完工时间',
            prop: 'planEndDate',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入计划完工时间',
                trigger: 'blur',
              },
            ],
          },


          {
            label: '未入库数量',
            prop: 'notInQty',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入未入库数量',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '下序',
            prop: 'nextPpsName',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入下序',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '下一班组',
            prop: 'nextTeamName',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入下一班组',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '领料状态',
            prop: 'pickingStatusTitle',
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入领料状态',
                trigger: 'blur',
              },
            ],
            dicData: [
              {
                value: 0,
                label: '未领'
              }, {
                value: 1,
                label: '已领'
              }
            ]
          },
          {
            label: '接收人员',
            prop: 'failureMan',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入接收人员',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '协作计划',
            prop: 'collaborateText',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入协作计划',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '备注',
            prop: 'memo',
            search: false,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入备注',
                trigger: 'blur',
              },
            ],
          },
          {
            label: '是否协作',
            prop: 'collaborate',
            type: 'select',
            hide: true,
            search: true,
            sortable: true,
            overHidden: true,
            width: 200,
            rules: [
              {
                required: true,
                message: '请输入是否协作',
                trigger: 'blur',
              },
            ],
            dicData: [
              {
                value: true,
                label: '是'
              },
              {
                value: false,
                label: '否'
              }
            ]
          },
        ]
      }
    }
  },
  mounted() {

  },
  methods: {
    selectionChange(val) {
      this.selectionList = val
    },
    // 转外协
    handleOutsource(row, type) {
      if (type == 'all') {
        if (this.selectionList.length == 0) {
          this.$message.error('请先选择数据')
        } else {
          this.showDialog = true
        }
      } else {
        this.showDialog = true
      }
    },
    // 转热表
    handleHotList(){
      this.$confirm(
        '确定将此订单转到热表中心吗?',
        '是否继续',
        {
          confirmButtonText: '确认',
          cancelButtonText: '取消',
          type: 'warning'
        }
      ).then(() => {

      })
    },
    // 关闭
    handleClose(){
      this.showClose = true
    },
    // 调度标注
    handleScheduling(){
      this.showScheduling = true
    },
    // 转试
    handleTryAgain(){
      this.showAgain = true
    },
    // 重建订单
    handleRebuildOrder(){
      this.$confirm(
        '是否确认重新创建?',
        '确认消息',
        {
          confirmButtonText: '确认',
          cancelButtonText: '取消',
          type: 'warning'
        }
      ).then(() => {

      })
    },
    // 重建订单及子件
    handleRebuildOrderAndSub(){
      this.$confirm(
        '是否确认重新创建?',
        '确认消息',
        {
          confirmButtonText: '确认',
          cancelButtonText: '取消',
          type: 'warning'
        }
      ).then(() => {

      })
    },
    // 分批
    handleBatches(){
      this.showBatches = true
    },
    // 打印标签
    handlePrintTags() {
      if (this.selectionList.length == 0) {
        this.$message.error('请先选择数据')
      } else {
        this.printForm = {
          quantity: 1
        }
        this.printDialog = true
      }
    },
    // 确定打印
    submitPrint() {
      this.$refs.printForm.validate(valid => {
        if (valid) {
          this.printDialog = false
        }
      })
    },
    // 打印
    handlePrint() {
      if (this.selectionList.length == 0) {
        this.$message.error('请先选择数据')
      } else {

      }
    },
    // 打印配件套
    printPtCard(row,type) {
      if(type == 'all'){
        if (this.selectionList.length == 0) {
          this.$message.error('请先选择数据')
        } else {

        }
      }else{

      }
      
    },
    interlott() {
      if (this.selectionList.length == 0) {
        this.$message.warning('请先选择数据')
        return;
      }
      this.$confirm(
        '是否确认合批?',
        '确认消息',
        {
          confirmButtonText: '确认',
          cancelButtonText: '取消',
          type: 'warning'
        }
      ).then(() => {

      })
    },
    // 生产监控
    clickProduction(row) {
      this.rowItem = row
      this.monitorDialog = true
    },
    // 关闭弹窗
    closeDialog() {
      this.showDialog = false
      this.monitorDialog = false
      this.showBatches = false
      this.showClose = false
      // this.showReturn = false
      this.showScheduling = false
      this.showAgain = false
    },
    onLoad() {
      this.data = [
        {
          "approvalStatus": 1,
          "batchArea": 10.343223034,
          "batchNo": "Y8892302022",
          "bsOemCustomer": null,
          "ca": null,
          "cardNo": "1016422108",
          "closeMan": null,
          "closeTime": null,
          "collaborate": false,
          "collaborateText": "否",
          "createTime": "2023-07-28 23:59:59",
          "currentBsOemCustomer": null,
          "currentMakeTeam": {
            "bsClassesSet": null,
            "bsWorkCenter": null,
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2023-02-06 12:52:22",
            "dayPutDueTime": "24",
            "deleted": false,
            "dispatcher": {
              "userId": 444,
              "userName": "03889"
            },
            "exChangeTime": null,
            "keyValue": 64,
            "planner": {
              "userId": 444,
              "userName": "03889"
            },
            "specDayPutDueTime": null,
            "special": false,
            "specialTitle": "否",
            "teamLeader": {
              "userId": 88,
              "userName": "03757"
            },
            "teamMember": "03662、04973、00660、03696、01026、03769、02051、03792、00722、59335、03831、1021、03956、03645、03693、03724、03701、admin、03705、03757、02379、03897、崔殿龙",
            "tsCode": "004",
            "tsId": 64,
            "tsName": "零件管理班",
            "tsType": null,
            "tsTypeTitle": null,
            "updateTime": "2023-02-06 12:52:22"
          },
          "demandDate": "2023-02-12",
          "dispatcher": null,
          "frontProcedureSet": {
            "assist": true,
            "assistTitle": "是",
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2022-12-05 10:26:02",
            "cycle": 0.0,
            "cyropactorControl": false,
            "deleted": false,
            "eleRate": false,
            "eleStream": false,
            "keyValue": 21,
            "mainProcess": false,
            "mainProcessTitle": "否",
            "niValue": false,
            "phValue": false,
            "ppsCode": "011",
            "ppsId": 21,
            "ppsName": "镀后检验",
            "special": false,
            "specialTitle": "否",
            "team": null,
            "updateTime": "2022-12-05 10:26:02",
            "vSpeed": false
          },
          "handoverTime": null,
          "hrTypeBool": null,
          "inventoryQty": 20.0,
          "jcName": null,
          "keyValue": 84,
          "lastInstoreTime": null,
          "lossQty": 0,
          "mainProcessingUnit": "化学镀镍一班崔胜伟",
          "makeQty": 20.0,
          "makeTeam": {
            "bsClassesSet": null,
            "bsWorkCenter": {
              "area": 13000.0,
              "batchNo": null,
              "bigBatch": false,
              "bsJfCenter": {
                "createMan": {
                  "userId": 1,
                  "userName": "admin"
                },
                "createTime": "2024-12-09 00:00:00",
                "deleted": false,
                "jcCode": "RBZX",
                "jcId": 1,
                "jcName": "热表中心",
                "keyValue": 1,
                "updateTime": "2024-12-09 00:00:00"
              },
              "checkout": false,
              "craftAbility": "化学镀镍",
              "createMan": {
                "userId": 1,
                "userName": "admin"
              },
              "createTime": "2023-02-06 12:31:36",
              "deleted": false,
              "describe": null,
              "endPoint": null,
              "keyValue": 81,
              "leaderUser": {
                "userId": 541,
                "userName": "崔殿龙"
              },
              "limitType": 0,
              "processes": "上挂、下挂、交检、化学镀镍、喷砂",
              "quantity": null,
              "roundCycle": null,
              "saturation": 85.0,
              "sign": "4",
              "startPoint": null,
              "team": "化学镀镍一班崔胜伟、化学镀镍一班郭家梁",
              "updateTime": "2023-03-06 18:42:47",
              "wcCode": "001",
              "wcId": 81,
              "wcName": "化学镀镍作业中心",
              "whetherPlate": false
            },
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2023-02-06 12:30:26",
            "dayPutDueTime": "00:30~01:00",
            "deleted": false,
            "dispatcher": {
              "userId": 355,
              "userName": "07188"
            },
            "exChangeTime": null,
            "keyValue": 61,
            "planner": {
              "userId": 355,
              "userName": "07188"
            },
            "specDayPutDueTime": null,
            "special": false,
            "specialTitle": "否",
            "teamLeader": {
              "userId": 68,
              "userName": "03772"
            },
            "teamMember": "admin、10477、03772、03555、12645、10917、10711、03800、崔殿龙、张欣",
            "tsCode": "001",
            "tsId": 61,
            "tsName": "化学镀镍一班崔胜伟",
            "tsType": null,
            "tsTypeTitle": null,
            "updateTime": "2023-02-06 12:30:26"
          },
          "makeUnit": "化学镀镍一班崔胜伟",
          "meetCycle": 0,
          "memo": null,
          "mesCardNo": null,
          "moCode": null,
          "moLocal": null,
          "nextBsOemCustomer": null,
          "nextMakeTeam": null,
          "nextOrders": null,
          "nextProcedureSet": null,
          "notInQty": 0.0,
          "nowWorkCenter": null,
          "oem": false,
          "oemOut": true,
          "oemType": 1,
          "oldRunStatus": null,
          "orderMarkTitle": "热表中心",
          "orderWoCode": "",
          "orderWoCodeDeliverKey": "",
          "orders": "0030",
          "outTime": "2023-09-06 12:00:00",
          "pgrId": null,
          "pickingStatus": 0,
          "pickingStatusTitle": "未领取",
          "pjYieldOrder": {
            "batchNo": "Y8892302022",
            "bsProcedureQua": null,
            "businessType": 1,
            "businessTypeTitle": "热表中心",
            "cardNo": "1016422108",
            "craftId": null,
            "curStatus": 0,
            "curStatusTitle": "待接收",
            "custodian": null,
            "demandDate": "2023-01-31",
            "dsCraft": null,
            "dsPart": null,
            "entrustDept": null,
            "failureMan": null,
            "failureMemo": null,
            "failureTime": "2025-01-11 10:26:00",
            "fatherYoId": null,
            "keyValue": 3105,
            "manualIncrease": false,
            "memo": "XXXX",
            "newlevFlag": null,
            "nextRoam": null,
            "nextRoamName": null,
            "partCode": "21E8-060-6884-E9",
            "partName": "尾夹安装板",
            "pdmUrl": null,
            "planUser": "0300009",
            "plate": "XXX",
            "poArea": 0.5171611517,
            "poCode": "WO-230127651",
            "poMemo": "zdzx",
            "poProdLine": "test",
            "poQty": 20.0,
            "primaryCraft": "库1-2（机加）-4（表）-库2",
            "priority": 1,
            "prodIdent": "JHT",
            "produceBool": false,
            "productType": "XXXX",
            "recseqno": null,
            "releaseDate": "2023-01-07",
            "reworkCode": null,
            "reworkMemo": null,
            "reworkNo": null,
            "roamName": null,
            "roamNo": "B1241969",
            "siteWork": false,
            "sjKitPreparation": null,
            "sjMoldPreparation": null,
            "syncTime": "2023-02-08 09:11:41",
            "useDept": "3500",
            "useDeptcode": null,
            "yieldType": 2,
            "yoCode": "WX-2301759412",
            "yoId": 3105
          },
          "planEndDate": "2023-02-12 09:58:12",
          "planner": null,
          "plateGoodsCode": null,
          "plateSingleQuota": 0.0,
          "plateSingleQuotaTotal": 0.0,
          "printCode": null,
          "printFlag": false,
          "printMan": null,
          "printTime": null,
          "priority": 1,
          "priorityTitle": "正常",
          "procedureSet": {
            "assist": true,
            "assistTitle": "是",
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2022-11-15 10:31:41",
            "cycle": 0.0,
            "cyropactorControl": false,
            "deleted": false,
            "eleRate": false,
            "eleStream": false,
            "keyValue": 10,
            "mainProcess": false,
            "mainProcessTitle": "否",
            "niValue": false,
            "phValue": false,
            "ppsCode": "006",
            "ppsId": 10,
            "ppsName": "镀后接收",
            "special": false,
            "specialTitle": "否",
            "team": null,
            "updateTime": "2022-11-15 10:31:41",
            "vSpeed": false
          },
          "processingUnit": "零件管理班",
          "producycle": 7,
          "pushFlag": true,
          "putStoreTime": "2023-03-16 16:25:14",
          "qcReworkCode": null,
          "quotaExceptional": false,
          "reInStore": false,
          "readStatus": null,
          "readStatusTiTle": "未准备",
          "recDept": null,
          "receptionTime": "2023-09-01 12:00:00",
          "reworkCode": null,
          "reworkMemo": null,
          "reworkNo": null,
          "rsCode": null,
          "runStatus": 17,
          "runStatusTitle": "已交接",
          "schedStatus": 0,
          "scrapQty": 0.0,
          "sendDownTime": "2023-02-08 09:58:12",
          "smBatch": "是",
          "subList": null,
          "subRunStatus": null,
          "testQty": 0,
          "tools": null,
          "totalArea": 10.343223034,
          "woCode": "WO-2023020800001",
          "woId": 84,
          "wpId": 167,
          "ybCode": null,
          "ybLocal": null
        },
        {
          "approvalStatus": 1,
          "batchArea": 30.752932782,
          "batchNo": "Y8892302704",
          "bsOemCustomer": null,
          "ca": null,
          "cardNo": "1016422715",
          "closeMan": null,
          "closeTime": null,
          "collaborate": false,
          "collaborateText": "否",
          "createTime": "2023-07-28 23:59:59",
          "currentBsOemCustomer": null,
          "currentMakeTeam": {
            "bsClassesSet": null,
            "bsWorkCenter": null,
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2023-02-06 12:52:22",
            "dayPutDueTime": "24",
            "deleted": false,
            "dispatcher": {
              "userId": 444,
              "userName": "03889"
            },
            "exChangeTime": null,
            "keyValue": 64,
            "planner": {
              "userId": 444,
              "userName": "03889"
            },
            "specDayPutDueTime": null,
            "special": false,
            "specialTitle": "否",
            "teamLeader": {
              "userId": 88,
              "userName": "03757"
            },
            "teamMember": "03662、04973、00660、03696、01026、03769、02051、03792、00722、59335、03831、1021、03956、03645、03693、03724、03701、admin、03705、03757、02379、03897、崔殿龙",
            "tsCode": "004",
            "tsId": 64,
            "tsName": "零件管理班",
            "tsType": null,
            "tsTypeTitle": null,
            "updateTime": "2023-02-06 12:52:22"
          },
          "demandDate": "2023-02-12",
          "dispatcher": null,
          "frontProcedureSet": {
            "assist": true,
            "assistTitle": "是",
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2022-12-05 10:26:02",
            "cycle": 0.0,
            "cyropactorControl": false,
            "deleted": false,
            "eleRate": false,
            "eleStream": false,
            "keyValue": 21,
            "mainProcess": false,
            "mainProcessTitle": "否",
            "niValue": false,
            "phValue": false,
            "ppsCode": "011",
            "ppsId": 21,
            "ppsName": "镀后检验",
            "special": false,
            "specialTitle": "否",
            "team": null,
            "updateTime": "2022-12-05 10:26:02",
            "vSpeed": false
          },
          "handoverTime": null,
          "hrTypeBool": null,
          "inventoryQty": 170.0,
          "jcName": null,
          "keyValue": 85,
          "lastInstoreTime": null,
          "lossQty": 0,
          "mainProcessingUnit": "化学镀镍一班崔胜伟",
          "makeQty": 170.0,
          "makeTeam": {
            "bsClassesSet": null,
            "bsWorkCenter": {
              "area": 13000.0,
              "batchNo": null,
              "bigBatch": false,
              "bsJfCenter": {
                "createMan": {
                  "userId": 1,
                  "userName": "admin"
                },
                "createTime": "2024-12-09 00:00:00",
                "deleted": false,
                "jcCode": "RBZX",
                "jcId": 1,
                "jcName": "热表中心",
                "keyValue": 1,
                "updateTime": "2024-12-09 00:00:00"
              },
              "checkout": false,
              "craftAbility": "化学镀镍",
              "createMan": {
                "userId": 1,
                "userName": "admin"
              },
              "createTime": "2023-02-06 12:31:36",
              "deleted": false,
              "describe": null,
              "endPoint": null,
              "keyValue": 81,
              "leaderUser": {
                "userId": 541,
                "userName": "崔殿龙"
              },
              "limitType": 0,
              "processes": "上挂、下挂、交检、化学镀镍、喷砂",
              "quantity": null,
              "roundCycle": null,
              "saturation": 85.0,
              "sign": "4",
              "startPoint": null,
              "team": "化学镀镍一班崔胜伟、化学镀镍一班郭家梁",
              "updateTime": "2023-03-06 18:42:47",
              "wcCode": "001",
              "wcId": 81,
              "wcName": "化学镀镍作业中心",
              "whetherPlate": false
            },
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2023-02-06 12:30:26",
            "dayPutDueTime": "00:30~01:00",
            "deleted": false,
            "dispatcher": {
              "userId": 355,
              "userName": "07188"
            },
            "exChangeTime": null,
            "keyValue": 61,
            "planner": {
              "userId": 355,
              "userName": "07188"
            },
            "specDayPutDueTime": null,
            "special": false,
            "specialTitle": "否",
            "teamLeader": {
              "userId": 68,
              "userName": "03772"
            },
            "teamMember": "admin、10477、03772、03555、12645、10917、10711、03800、崔殿龙、张欣",
            "tsCode": "001",
            "tsId": 61,
            "tsName": "化学镀镍一班崔胜伟",
            "tsType": null,
            "tsTypeTitle": null,
            "updateTime": "2023-02-06 12:30:26"
          },
          "makeUnit": "化学镀镍一班崔胜伟",
          "meetCycle": 0,
          "memo": null,
          "mesCardNo": null,
          "moCode": null,
          "moLocal": null,
          "nextBsOemCustomer": null,
          "nextMakeTeam": null,
          "nextOrders": null,
          "nextProcedureSet": null,
          "notInQty": 0.0,
          "nowWorkCenter": null,
          "oem": false,
          "oemOut": true,
          "oemType": 1,
          "oldRunStatus": null,
          "orderMarkTitle": "热表中心",
          "orderWoCode": "",
          "orderWoCodeDeliverKey": "",
          "orders": "0030",
          "outTime": "2023-09-06 12:00:00",
          "pgrId": null,
          "pickingStatus": 0,
          "pickingStatusTitle": "未领取",
          "pjYieldOrder": {
            "batchNo": "Y8892302704",
            "bsProcedureQua": null,
            "businessType": 1,
            "businessTypeTitle": "热表中心",
            "cardNo": "1016422715",
            "craftId": null,
            "curStatus": 0,
            "curStatusTitle": "待接收",
            "custodian": null,
            "demandDate": "2023-02-28",
            "dsCraft": null,
            "dsPart": null,
            "entrustDept": null,
            "failureMan": null,
            "failureMemo": null,
            "failureTime": "2025-01-11 10:26:00",
            "fatherYoId": null,
            "keyValue": 3104,
            "manualIncrease": false,
            "memo": "XXXX",
            "newlevFlag": null,
            "nextRoam": null,
            "nextRoamName": null,
            "partCode": "21E8-060-11631-E9",
            "partName": "21-封装金属壳体",
            "pdmUrl": null,
            "planUser": "0300009",
            "plate": "XXX",
            "poArea": 0.1808996046,
            "poCode": "WO-221210047",
            "poMemo": null,
            "poProdLine": null,
            "poQty": 170.0,
            "primaryCraft": "库1-2（机加）-4（表）-库2",
            "priority": 1,
            "prodIdent": "JI",
            "produceBool": false,
            "productType": "XXXX",
            "recseqno": null,
            "releaseDate": "2022-12-04",
            "reworkCode": null,
            "reworkMemo": null,
            "reworkNo": null,
            "roamName": null,
            "roamNo": "B1587856",
            "siteWork": false,
            "sjKitPreparation": null,
            "sjMoldPreparation": null,
            "syncTime": "2023-02-08 09:09:30",
            "useDept": "4200",
            "useDeptcode": null,
            "yieldType": 2,
            "yoCode": "WX-2212653720",
            "yoId": 3104
          },
          "planEndDate": "2023-02-12 10:09:22",
          "planner": null,
          "plateGoodsCode": null,
          "plateSingleQuota": 0.0,
          "plateSingleQuotaTotal": 0.0,
          "printCode": null,
          "printFlag": false,
          "printMan": null,
          "printTime": null,
          "priority": 1,
          "priorityTitle": "正常",
          "procedureSet": {
            "assist": true,
            "assistTitle": "是",
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2022-11-15 10:31:41",
            "cycle": 0.0,
            "cyropactorControl": false,
            "deleted": false,
            "eleRate": false,
            "eleStream": false,
            "keyValue": 10,
            "mainProcess": false,
            "mainProcessTitle": "否",
            "niValue": false,
            "phValue": false,
            "ppsCode": "006",
            "ppsId": 10,
            "ppsName": "镀后接收",
            "special": false,
            "specialTitle": "否",
            "team": null,
            "updateTime": "2022-11-15 10:31:41",
            "vSpeed": false
          },
          "processingUnit": "零件管理班",
          "producycle": 7,
          "pushFlag": true,
          "putStoreTime": "2023-03-16 16:25:14",
          "qcReworkCode": null,
          "quotaExceptional": false,
          "reInStore": false,
          "readStatus": null,
          "readStatusTiTle": "未准备",
          "recDept": null,
          "receptionTime": "2023-09-01 12:00:00",
          "reworkCode": null,
          "reworkMemo": null,
          "reworkNo": null,
          "rsCode": null,
          "runStatus": 17,
          "runStatusTitle": "已交接",
          "schedStatus": 0,
          "scrapQty": 0.0,
          "sendDownTime": "2023-02-08 10:09:22",
          "smBatch": "是",
          "subList": null,
          "subRunStatus": null,
          "testQty": 0,
          "tools": null,
          "totalArea": 30.752932782,
          "woCode": "WO-2023020800002",
          "woId": 85,
          "wpId": 173,
          "ybCode": null,
          "ybLocal": null
        },
        {
          "approvalStatus": 1,
          "batchArea": 84.7909372596,
          "batchNo": "Y709230208054",
          "bsOemCustomer": null,
          "ca": null,
          "cardNo": "1016440059",
          "closeMan": null,
          "closeTime": null,
          "collaborate": false,
          "collaborateText": "否",
          "createTime": "2023-02-11 18:29:40",
          "currentBsOemCustomer": null,
          "currentMakeTeam": {
            "bsClassesSet": null,
            "bsWorkCenter": null,
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2023-02-06 12:52:22",
            "dayPutDueTime": "24",
            "deleted": false,
            "dispatcher": {
              "userId": 444,
              "userName": "03889"
            },
            "exChangeTime": null,
            "keyValue": 64,
            "planner": {
              "userId": 444,
              "userName": "03889"
            },
            "specDayPutDueTime": null,
            "special": false,
            "specialTitle": "否",
            "teamLeader": {
              "userId": 88,
              "userName": "03757"
            },
            "teamMember": "03662、04973、00660、03696、01026、03769、02051、03792、00722、59335、03831、1021、03956、03645、03693、03724、03701、admin、03705、03757、02379、03897、崔殿龙",
            "tsCode": "004",
            "tsId": 64,
            "tsName": "零件管理班",
            "tsType": null,
            "tsTypeTitle": null,
            "updateTime": "2023-02-06 12:52:22"
          },
          "demandDate": "2023-02-15",
          "dispatcher": null,
          "frontProcedureSet": {
            "assist": true,
            "assistTitle": "是",
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2022-12-05 10:26:02",
            "cycle": 0.0,
            "cyropactorControl": false,
            "deleted": false,
            "eleRate": false,
            "eleStream": false,
            "keyValue": 21,
            "mainProcess": false,
            "mainProcessTitle": "否",
            "niValue": false,
            "phValue": false,
            "ppsCode": "011",
            "ppsId": 21,
            "ppsName": "镀后检验",
            "special": false,
            "specialTitle": "否",
            "team": null,
            "updateTime": "2022-12-05 10:26:02",
            "vSpeed": false
          },
          "handoverTime": null,
          "hrTypeBool": null,
          "inventoryQty": 247.0,
          "jcName": null,
          "keyValue": 86,
          "lastInstoreTime": null,
          "lossQty": 0,
          "mainProcessingUnit": "化学镀镍一班郭家梁",
          "makeQty": 247.0,
          "makeTeam": {
            "bsClassesSet": null,
            "bsWorkCenter": {
              "area": 13000.0,
              "batchNo": null,
              "bigBatch": false,
              "bsJfCenter": {
                "createMan": {
                  "userId": 1,
                  "userName": "admin"
                },
                "createTime": "2024-12-09 00:00:00",
                "deleted": false,
                "jcCode": "RBZX",
                "jcId": 1,
                "jcName": "热表中心",
                "keyValue": 1,
                "updateTime": "2024-12-09 00:00:00"
              },
              "checkout": false,
              "craftAbility": "化学镀镍",
              "createMan": {
                "userId": 1,
                "userName": "admin"
              },
              "createTime": "2023-02-06 12:31:36",
              "deleted": false,
              "describe": null,
              "endPoint": null,
              "keyValue": 81,
              "leaderUser": {
                "userId": 541,
                "userName": "崔殿龙"
              },
              "limitType": 0,
              "processes": "上挂、下挂、交检、化学镀镍、喷砂",
              "quantity": null,
              "roundCycle": null,
              "saturation": 85.0,
              "sign": "4",
              "startPoint": null,
              "team": "化学镀镍一班崔胜伟、化学镀镍一班郭家梁",
              "updateTime": "2023-03-06 18:42:47",
              "wcCode": "001",
              "wcId": 81,
              "wcName": "化学镀镍作业中心",
              "whetherPlate": false
            },
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2023-02-06 13:10:00",
            "dayPutDueTime": "00:00~19:00",
            "deleted": false,
            "dispatcher": {
              "userId": 541,
              "userName": "崔殿龙"
            },
            "exChangeTime": null,
            "keyValue": 66,
            "planner": {
              "userId": 355,
              "userName": "07188"
            },
            "specDayPutDueTime": null,
            "special": false,
            "specialTitle": "否",
            "teamLeader": {
              "userId": 70,
              "userName": "06623"
            },
            "teamMember": "03781、03698、56498、12647、11231、10710、10731、06623、崔殿龙、admin、张欣",
            "tsCode": "006",
            "tsId": 66,
            "tsName": "化学镀镍一班郭家梁",
            "tsType": null,
            "tsTypeTitle": null,
            "updateTime": "2023-02-06 13:10:00"
          },
          "makeUnit": "化学镀镍一班郭家梁",
          "meetCycle": 0,
          "memo": null,
          "mesCardNo": null,
          "moCode": null,
          "moLocal": null,
          "nextBsOemCustomer": null,
          "nextMakeTeam": null,
          "nextOrders": null,
          "nextProcedureSet": null,
          "notInQty": 0.0,
          "nowWorkCenter": null,
          "oem": false,
          "oemOut": true,
          "oemType": 1,
          "oldRunStatus": null,
          "orderMarkTitle": "热表中心",
          "orderWoCode": "",
          "orderWoCodeDeliverKey": "",
          "orders": "0030",
          "outTime": null,
          "pgrId": null,
          "pickingStatus": 0,
          "pickingStatusTitle": "未领取",
          "pjYieldOrder": {
            "batchNo": "Y709230208054",
            "bsProcedureQua": null,
            "businessType": 1,
            "businessTypeTitle": "热表中心",
            "cardNo": "1016440059",
            "craftId": null,
            "curStatus": 0,
            "curStatusTitle": "待接收",
            "custodian": null,
            "demandDate": "2023-02-17",
            "dsCraft": null,
            "dsPart": null,
            "entrustDept": null,
            "failureMan": null,
            "failureMemo": null,
            "failureTime": "2025-01-11 10:26:00",
            "fatherYoId": null,
            "keyValue": 6735,
            "manualIncrease": false,
            "memo": "XXXX",
            "newlevFlag": null,
            "nextRoam": null,
            "nextRoamName": null,
            "partCode": "21E8-164-003-E9",
            "partName": "18-连接螺帽",
            "pdmUrl": null,
            "planUser": "0300009",
            "plate": "XXX",
            "poArea": 0.3432831468,
            "poCode": "WO-230225211",
            "poMemo": null,
            "poProdLine": null,
            "poQty": 250.0,
            "primaryCraft": "库1-2（机加）-4（表）-库2",
            "priority": 1,
            "prodIdent": "JII",
            "produceBool": false,
            "productType": "XXXX",
            "recseqno": null,
            "releaseDate": "2023-02-03",
            "reworkCode": null,
            "reworkMemo": null,
            "reworkNo": null,
            "roamName": null,
            "roamNo": "B233178",
            "siteWork": false,
            "sjKitPreparation": null,
            "sjMoldPreparation": null,
            "syncTime": "2023-02-11 16:12:22",
            "useDept": "3500",
            "useDeptcode": null,
            "yieldType": 2,
            "yoCode": "WX-2302824469",
            "yoId": 6735
          },
          "planEndDate": "2023-02-15 18:29:40",
          "planner": null,
          "plateGoodsCode": null,
          "plateSingleQuota": 0.0,
          "plateSingleQuotaTotal": 0.0,
          "printCode": null,
          "printFlag": false,
          "printMan": null,
          "printTime": null,
          "priority": 1,
          "priorityTitle": "正常",
          "procedureSet": {
            "assist": true,
            "assistTitle": "是",
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2022-11-15 10:31:41",
            "cycle": 0.0,
            "cyropactorControl": false,
            "deleted": false,
            "eleRate": false,
            "eleStream": false,
            "keyValue": 10,
            "mainProcess": false,
            "mainProcessTitle": "否",
            "niValue": false,
            "phValue": false,
            "ppsCode": "006",
            "ppsId": 10,
            "ppsName": "镀后接收",
            "special": false,
            "specialTitle": "否",
            "team": null,
            "updateTime": "2022-11-15 10:31:41",
            "vSpeed": false
          },
          "processingUnit": "零件管理班",
          "producycle": 7,
          "pushFlag": true,
          "putStoreTime": "2023-03-16 16:25:14",
          "qcReworkCode": null,
          "quotaExceptional": false,
          "reInStore": false,
          "readStatus": null,
          "readStatusTiTle": "未准备",
          "recDept": null,
          "receptionTime": null,
          "reworkCode": null,
          "reworkMemo": null,
          "reworkNo": null,
          "rsCode": null,
          "runStatus": 17,
          "runStatusTitle": "已交接",
          "schedStatus": 0,
          "scrapQty": 0.0,
          "sendDownTime": "2023-02-11 18:29:40",
          "smBatch": "是",
          "subList": null,
          "subRunStatus": null,
          "testQty": 0,
          "tools": null,
          "totalArea": 84.7909372596,
          "woCode": "WO-2023021100001",
          "woId": 86,
          "wpId": 179,
          "ybCode": null,
          "ybLocal": null
        },
        {
          "approvalStatus": 1,
          "batchArea": 11.008139116,
          "batchNo": "Y5142302109",
          "bsOemCustomer": null,
          "ca": null,
          "cardNo": "1016434876",
          "closeMan": null,
          "closeTime": null,
          "collaborate": false,
          "collaborateText": "否",
          "createTime": "2023-07-28 23:59:59",
          "currentBsOemCustomer": null,
          "currentMakeTeam": {
            "bsClassesSet": null,
            "bsWorkCenter": null,
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2023-02-06 12:52:22",
            "dayPutDueTime": "24",
            "deleted": false,
            "dispatcher": {
              "userId": 444,
              "userName": "03889"
            },
            "exChangeTime": null,
            "keyValue": 64,
            "planner": {
              "userId": 444,
              "userName": "03889"
            },
            "specDayPutDueTime": null,
            "special": false,
            "specialTitle": "否",
            "teamLeader": {
              "userId": 88,
              "userName": "03757"
            },
            "teamMember": "03662、04973、00660、03696、01026、03769、02051、03792、00722、59335、03831、1021、03956、03645、03693、03724、03701、admin、03705、03757、02379、03897、崔殿龙",
            "tsCode": "004",
            "tsId": 64,
            "tsName": "零件管理班",
            "tsType": null,
            "tsTypeTitle": null,
            "updateTime": "2023-02-06 12:52:22"
          },
          "demandDate": "2023-02-15",
          "dispatcher": null,
          "frontProcedureSet": {
            "assist": true,
            "assistTitle": "是",
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2022-12-05 10:26:02",
            "cycle": 0.0,
            "cyropactorControl": false,
            "deleted": false,
            "eleRate": false,
            "eleStream": false,
            "keyValue": 21,
            "mainProcess": false,
            "mainProcessTitle": "否",
            "niValue": false,
            "phValue": false,
            "ppsCode": "011",
            "ppsId": 21,
            "ppsName": "镀后检验",
            "special": false,
            "specialTitle": "否",
            "team": null,
            "updateTime": "2022-12-05 10:26:02",
            "vSpeed": false
          },
          "handoverTime": null,
          "hrTypeBool": null,
          "inventoryQty": 20.0,
          "jcName": null,
          "keyValue": 87,
          "lastInstoreTime": null,
          "lossQty": 0,
          "mainProcessingUnit": "化学镀镍一班郭家梁",
          "makeQty": 20.0,
          "makeTeam": {
            "bsClassesSet": null,
            "bsWorkCenter": {
              "area": 13000.0,
              "batchNo": null,
              "bigBatch": false,
              "bsJfCenter": {
                "createMan": {
                  "userId": 1,
                  "userName": "admin"
                },
                "createTime": "2024-12-09 00:00:00",
                "deleted": false,
                "jcCode": "RBZX",
                "jcId": 1,
                "jcName": "热表中心",
                "keyValue": 1,
                "updateTime": "2024-12-09 00:00:00"
              },
              "checkout": false,
              "craftAbility": "化学镀镍",
              "createMan": {
                "userId": 1,
                "userName": "admin"
              },
              "createTime": "2023-02-06 12:31:36",
              "deleted": false,
              "describe": null,
              "endPoint": null,
              "keyValue": 81,
              "leaderUser": {
                "userId": 541,
                "userName": "崔殿龙"
              },
              "limitType": 0,
              "processes": "上挂、下挂、交检、化学镀镍、喷砂",
              "quantity": null,
              "roundCycle": null,
              "saturation": 85.0,
              "sign": "4",
              "startPoint": null,
              "team": "化学镀镍一班崔胜伟、化学镀镍一班郭家梁",
              "updateTime": "2023-03-06 18:42:47",
              "wcCode": "001",
              "wcId": 81,
              "wcName": "化学镀镍作业中心",
              "whetherPlate": false
            },
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2023-02-06 13:10:00",
            "dayPutDueTime": "00:00~19:00",
            "deleted": false,
            "dispatcher": {
              "userId": 541,
              "userName": "崔殿龙"
            },
            "exChangeTime": null,
            "keyValue": 66,
            "planner": {
              "userId": 355,
              "userName": "07188"
            },
            "specDayPutDueTime": null,
            "special": false,
            "specialTitle": "否",
            "teamLeader": {
              "userId": 70,
              "userName": "06623"
            },
            "teamMember": "03781、03698、56498、12647、11231、10710、10731、06623、崔殿龙、admin、张欣",
            "tsCode": "006",
            "tsId": 66,
            "tsName": "化学镀镍一班郭家梁",
            "tsType": null,
            "tsTypeTitle": null,
            "updateTime": "2023-02-06 13:10:00"
          },
          "makeUnit": "化学镀镍一班郭家梁",
          "meetCycle": 0,
          "memo": null,
          "mesCardNo": null,
          "moCode": null,
          "moLocal": null,
          "nextBsOemCustomer": null,
          "nextMakeTeam": null,
          "nextOrders": null,
          "nextProcedureSet": null,
          "notInQty": 0.0,
          "nowWorkCenter": null,
          "oem": false,
          "oemOut": true,
          "oemType": 1,
          "oldRunStatus": null,
          "orderMarkTitle": "热表中心",
          "orderWoCode": "",
          "orderWoCodeDeliverKey": "",
          "orders": "0030",
          "outTime": "2023-09-06 12:00:00",
          "pgrId": null,
          "pickingStatus": 0,
          "pickingStatusTitle": "未领取",
          "pjYieldOrder": {
            "batchNo": "Y5142302109",
            "bsProcedureQua": null,
            "businessType": 1,
            "businessTypeTitle": "热表中心",
            "cardNo": "1016434876",
            "craftId": null,
            "curStatus": 0,
            "curStatusTitle": "待接收",
            "custodian": null,
            "demandDate": "2023-01-12",
            "dsCraft": null,
            "dsPart": null,
            "entrustDept": null,
            "failureMan": {
              "userId": 1,
              "userName": "admin"
            },
            "failureMemo": null,
            "failureTime": "2025-03-01 10:26:00",
            "fatherYoId": null,
            "keyValue": 6736,
            "manualIncrease": false,
            "memo": "XXXX",
            "newlevFlag": null,
            "nextRoam": null,
            "nextRoamName": null,
            "partCode": "21E8-003-4638-E9",
            "partName": "16方盘壳体",
            "pdmUrl": null,
            "planUser": "03003329",
            "plate": "XXX",
            "poArea": 0.5504069558,
            "poCode": "WO-2301138401",
            "poMemo": null,
            "poProdLine": null,
            "poQty": 20.0,
            "primaryCraft": "库1-2（机加）-4（表）-库2",
            "priority": 1,
            "prodIdent": "MR",
            "produceBool": false,
            "productType": "XXXX",
            "recseqno": null,
            "releaseDate": "2023-01-30",
            "reworkCode": null,
            "reworkMemo": null,
            "reworkNo": null,
            "roamName": null,
            "roamNo": "B1109472",
            "siteWork": false,
            "sjKitPreparation": null,
            "sjMoldPreparation": null,
            "syncTime": "2023-02-11 16:14:20",
            "useDept": "3506",
            "useDeptcode": null,
            "yieldType": 2,
            "yoCode": "WX-2301808499",
            "yoId": 6736
          },
          "planEndDate": "2023-02-15 18:30:20",
          "planner": null,
          "plateGoodsCode": null,
          "plateSingleQuota": 0.0,
          "plateSingleQuotaTotal": 0.0,
          "printCode": null,
          "printFlag": false,
          "printMan": null,
          "printTime": null,
          "priority": 1,
          "priorityTitle": "正常",
          "procedureSet": {
            "assist": true,
            "assistTitle": "是",
            "createMan": {
              "userId": 1,
              "userName": "admin"
            },
            "createTime": "2022-11-15 10:31:41",
            "cycle": 0.0,
            "cyropactorControl": false,
            "deleted": false,
            "eleRate": false,
            "eleStream": false,
            "keyValue": 10,
            "mainProcess": false,
            "mainProcessTitle": "否",
            "niValue": false,
            "phValue": false,
            "ppsCode": "006",
            "ppsId": 10,
            "ppsName": "镀后接收",
            "special": false,
            "specialTitle": "否",
            "team": null,
            "updateTime": "2022-11-15 10:31:41",
            "vSpeed": false
          },
          "processingUnit": "零件管理班",
          "producycle": 7,
          "pushFlag": true,
          "putStoreTime": "2023-03-16 16:25:14",
          "qcReworkCode": null,
          "quotaExceptional": false,
          "reInStore": false,
          "readStatus": null,
          "readStatusTiTle": "未准备",
          "recDept": null,
          "receptionTime": "2023-09-01 12:00:00",
          "reworkCode": null,
          "reworkMemo": null,
          "reworkNo": null,
          "rsCode": null,
          "runStatus": 17,
          "runStatusTitle": "已交接",
          "schedStatus": 0,
          "scrapQty": 0.0,
          "sendDownTime": "2023-02-11 18:30:20",
          "smBatch": "是",
          "subList": null,
          "subRunStatus": null,
          "testQty": 0,
          "tools": null,
          "totalArea": 11.008139116,
          "woCode": "WO-2023021100002",
          "woId": 87,
          "wpId": 185,
          "ybCode": null,
          "ybLocal": null
        },
      ]
      this.page.total = this.data.length
    }
  }
}
</script>

<style></style>