<template>
    <basic-container>
        <div class="search_box">

        </div>
        <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 #menu-left>
                <el-button type="primary" @click="batchClose()">批量关闭</el-button>
                <el-button type="primary" @click.stop="priorityFn(row)">优先级调整</el-button>
            </template>
            <template #menu-right>

            </template>

            <template #poCode="{ row }">
                <el-text type="primary">{{ row.poCode }}</el-text>
            </template>
            <template #prodIdent="{ row }">
                <el-tag>{{ row.prodIdent }}</el-tag>
            </template>
            <template #curStatusText="{ row }">
                <el-tag v-if="row.curStatusText == '已派工'">{{ row.curStatusText }}</el-tag>
                <el-tag class="ml-2" type="success" v-if="row.curStatusText == '已完工'"> {{
                    row.curStatusText }}</el-tag>
                <el-tag class="ml-2" type="info" v-if="row.curStatusText == '已关闭'">{{ row.curStatusText
                }}</el-tag>
                <el-tag class="ml-2" type="warning" v-if="row.curStatusText == '加工中'">{{ row.curStatusText
                }}</el-tag>
                <el-tag class="ml-2" type="danger" v-if="row.curStatusText == '已退回'">{{ row.curStatusText
                }}</el-tag>
            </template>
            <template #menu="{ row }">
                <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
                    @click="lookProcessRoute(row)">工艺路线
                </el-button>
                <!-- <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
                    @click.stop="batchClose(row)">优先级调整
                </el-button> -->

                <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
                    @click.stop="updateFn(row)">修改
                </el-button>
                <el-button type="primary" text plain style="border: 0; background-color: transparent !important"
                    @click.stop="openGlassPlateDialog(row)"
                    v-if="row.orderType === 0 && row.glassPlateIssuedStatus === 0">下发玻璃饼
                </el-button>
            </template>
        </avue-crud>


        <!-- 加急 -->
        <!-- <rushDialog :showDialog="isRushOpen" v-if="isRushOpen" @closeDialog="closeDialog"></rushDialog>

        <batchDialog :showDialog="isBatchOpen" v-if="isBatchOpen" @closeDialog="closeDialog"></batchDialog> -->
        <!-- 修改弹窗 -->
        <orderUpdateDailog :showDialog="isUpdateOpen" v-if="isUpdateOpen" @closeDialog="closeDialog">
        </orderUpdateDailog>
        <sinTerYieIdDialog :showDialog="isPriorityOpen" v-if="isPriorityOpen" @closeDialog="closeDialog"
            @submitPriority="handlePrioritySubmit"></sinTerYieIdDialog>
        <!-- 玻璃饼下发弹窗 -->
        <el-dialog title="下发玻璃饼" v-model="glassPlateDialog" width="30%" :before-close="closeGlassPlateDialog">
            <span>确定要下发玻璃饼吗？</span>
            <template #footer>
                <span class="dialog-footer">
                    <el-button @click="closeGlassPlateDialog">取消</el-button>
                    <el-button type="primary" @click="confirmGlassPlateIssued">确定</el-button>
                </span>
            </template>
        </el-dialog>
        <!-- 工艺路线弹窗 -->
        <lookProcess 
        :is-open="isOpen"  
        v-if="isOpen" 
        @cancel="closeDialog"
        :rowData="rowItem"
        sourceId="sinTerYieIdOrder"
        ></lookProcess>
    </basic-container>
</template>

<script>

import {
    add,
    getRole,
    getRoleAlias,
    getRoleTreeById,
    grant,
    grantTree,
    remove,
    update,
} from '@/api/system/role';
import { mapGetters } from 'vuex';
import { validatenull } from '@/utils/validate';
import orderUpdateDailog from './components/orderUpdateDailog.vue'
import sinTerYieIdDialog from './components/sinTerYieIdDialog.vue'
import lookProcess from './components/lookProcess.vue'
// import rushDialog from './components/rushDialog.vue'
// import batchDialog from './components/batchDialog.vue'
export default {
    components: {
        orderUpdateDailog,
        // rushDialog,
        // batchDialog
        sinTerYieIdDialog,
        lookProcess
    },
    data() {
        return {
            isPriorityOpen: false,
            isUpdateOpen: false,
            inBatchesOpen: false,
            platingSmallOpen: false,
            glassPlateDialog: false,
            currentRow: null,
            planOrderArr: [],
            isOpen: false,
            rowItem: {},
            poId: null,
            form: {},
            box: false,
            props: {
                label: 'title',
                value: 'key',
            },
            menuGrantList: [],
            dataScopeGrantList: [],
            apiScopeGrantList: [],
            apiGrantList: [],
            menuTreeObj: [],
            dataScopeTreeObj: [],
            apiScopeTreeObj: [],
            selectionList: [],
            query: {},
            loading: true,
            page: {
                pageSize: 10,
                currentPage: 1,
                total: 0,
            },
            option: {
                columnSort: true,
                tip: false,
                height: 'auto',
                calcHeight: 32,
                simplePage: false,
                searchShow: true,
                searchMenuSpan: 6,
                searchIcon: true,
                searchIndex: 3,
                tree: false,
                border: true,
                index: true,
                selection: true,
                addBtn: false,
                editBtn: false,
                viewBtn: false,
                delBtn: false,
                editBtnText: '修改',
                labelWidth: 120,
                // searchLabelWidth: 120,
                menuWidth: 240,
                dialogWidth: 900,
                dialogClickModal: false,
                searchEnter: true,
                excelBtn: false,
                filterBtn: true,
                searchShowBtn: false,
                excelBtn: true,
                index: false,
                showOverflowTooltip: true,
                addBtnIcon: ' ',
                viewBtnIcon: ' ',
                delBtnIcon: ' ',
                editBtnIcon: ' ',
                gridBtn: false,
                searchLabelPosition: 'left',
                searchLabelPosition: 'left',
                searchGutter: 24,
                searchSpan: 6,
                menuAlign: 'left',
                gridBtn: false,
                searchMenuPosition: 'right',
                align: 'center',
                column: [
                    {
                        label: '计划单号',
                        prop: 'poCode',
                        search: true,
                        sortable: true,
                        width: 150,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '生产单号',
                        prop: 'poCode1',
                        search: true,
                        sortable: true,
                        width: 150,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '零件号',
                        prop: 'partCode',
                        search: true,
                        sortable: true,
                        width: 180,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',

                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '批次号',
                        prop: 'poCode2',
                        search: true,
                        sortable: true,
                        width: 150,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },


                    {
                        label: '产品型号',
                        prop: 'productType',
                        search: false,
                        sortable: true,
                        disabled: true,
                        width: 120,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: false,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '产品名称',
                        prop: 'partName',
                        search: false,
                        sortable: true,
                        disabled: true,
                        span: 12,
                        width: 150,
                        headerAlign: 'center',
                        align: 'left',
                        rules: [
                            {
                                required: false,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '流程卡号',
                        prop: 'poCode3',
                        search: true,
                        sortable: true,
                        width: 150,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '流转编号',
                        prop: 'poCode4',
                        search: true,
                        sortable: true,
                        width: 150,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '订单优先级',
                        prop: 'orderPriority',
                        search: false,
                        sortable: true,
                        width: 150,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入订单优先级',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '订单类型',
                        prop: 'orderType',
                        search: true,
                        sortable: true,
                        disabled: true,
                        width: 120,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        type: 'select',
                        dicData: [
                            {
                                label: '烧结订单',
                                value: 0,
                            },
                            {
                                label: '玻璃饼订单',
                                value: 1,
                            },
                            {
                                label: '石墨模订单',
                                value: 2,
                            },
                            {
                                label: '插针订单',
                                value: 3,
                            },
                            {
                                label: '壳体订单',
                                value: 4,
                            },
                        ],
                        rules: [
                            {
                                required: false,
                                message: '请输入订单类型',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '镀种',
                        prop: 'plate',
                        search: false,
                        sortable: true,
                        disabled: true,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: false,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '生产标识',
                        prop: 'prodIdent',
                        search: false,
                        sortable: true,
                        width: 120,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '使用部门',
                        prop: 'useDept',
                        search: false,
                        sortable: true,
                        disabled: true,
                        width: 120,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '需求数量',
                        prop: 'poQty',
                        search: false,
                        sortable: true,
                        width: 120,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '面积(d㎡)',
                        prop: 'poArea',
                        search: false,
                        sortable: true,
                        width: 120,
                        span: 12,
                        disabled: true,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: false,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },

                    {
                        label: '需求交期',
                        prop: 'demandDate',
                        search: false,
                        sortable: true,
                        width: 150,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',

                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '计划员',
                        prop: 'planUser',
                        search: false,
                        sortable: true,
                        width: 120,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '计划下达时间',
                        prop: 'releaseDate',
                        search: false,
                        sortable: true,
                        searchLabelWidth: 100,
                        width: 170,
                        span: 12,
                        type: "date",
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '返工单号',
                        prop: 'returnWorkOrderNo',
                        search: true,
                        sortable: true,
                        width: 120,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入返工单号',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '原生产单号',
                        prop: 'originalProductionOrderNo',
                        search: false,
                        sortable: true,
                        width: 120,
                        span: 12,
                        headerAlign: 'center',
                        align: 'center',
                        rules: [
                            {
                                required: true,
                                message: '请输入原生产单号',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '玻璃饼下发状态',
                        prop: 'glassPlateIssuedStatus',
                        show: (row) => row.orderType === 0, // 只有订单类型为0 烧结时显示
                        search: true,
                        sortable: true,
                        width: 160,
                        span: 12,
                        searchLabelWidth: 150,
                        headerAlign: 'center',
                        align: 'center',
                        type: 'select',
                        dicData: [
                            {
                                label: '未下发',
                                value: 0,
                            },
                            {
                                label: '已下发',
                                value: 1,
                            },
                        ],
                        rules: [
                            {
                                required: true,
                                message: '请选择玻璃饼下发状态',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '订单状态',
                        prop: 'curStatusText',
                        search: true,
                        sortable: true,
                        span: 12,
                        display: false,
                        type: 'select',
                        width: '140',
                        headerAlign: 'center',
                        align: 'center',
                        dicData: [{
                            value: 2,
                            label: '已退回'
                        }, {
                            value: 4,
                            label: '已派工'
                        }, {
                            value: 5,
                            label: '加工中'
                        }, {
                            value: 15,
                            label: '已完工'
                        },
                        {
                            value: 21,
                            label: '已关闭'
                        }]
                    },
                    {
                        label: '备注',
                        prop: 'memo',
                        search: false,
                        sortable: true,
                        span: 24,
                        type: 'textarea',
                        width: 150,
                        headerAlign: 'center',
                        align: 'left',
                        rules: [
                            {
                                required: true,
                                message: '请输入角色名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                ],
            },
            data: [],
            isRushOpen: false,//加急弹框
            isBatchOpen: false,//分批处理
        };
    },
    computed: {
        ...mapGetters(['userInfo', 'permission']),
        permissionList() {
            return {
                addBtn: this.validData(this.permission.role_add, false),
                viewBtn: this.validData(this.permission.role_view, false),
                delBtn: this.validData(this.permission.role_delete, false),
                editBtn: this.validData(this.permission.role_edit, false),
            };
        },
        ids() {
            let ids = [];
            this.selectionList.forEach(ele => {
                ids.push(ele.id);
            });
            return ids.join(',');
        },
        idsArray() {
            let ids = [];
            this.selectionList.forEach(ele => {
                ids.push(ele.id);
            });
            return ids;
        },
    },
    watch: {
        'form.currentAlias'() {
            const alias = this.form.currentAlias;
            if (!validatenull(alias)) {
                this.form.roleAlias = alias;
            }
        },
    },
    methods: {
        // 优先级调整
        priorityFn() {
            this.isPriorityOpen = true
        },
        handlePrioritySubmit(data) {
            this.$message.success(`优先级已调整为${data.priority === 1 ? '一级' : data.priority === 2 ? '二级' : '三级'}`);
        },
        // 修改
        updateFn() {
            this.isUpdateOpen = true
        },
         //工艺路线
        lookProcessRoute(row) {
            this.isOpen = true;
            this.rowItem = row;
        },
        // 批量接收
        batchReceiving() {
            this.$confirm('确定将选择数据批量接收?', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning',
            })
                .then(() => {
                    // return remove(row.id);
                })
                .then(() => {
                    // this.onLoad(this.page);
                    // this.$message({
                    //     type: 'success',
                    //     message: '操作成功!',
                    // });
                });
        },
        // 批量关闭
        batchClose() {
            // 检查是否选择了数据
            if (this.selectionList.length === 0) {
                this.$message.warning('请选择至少一条数据');
                return;
            }
            this.$confirm('确定将选择数据批量关闭?', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning',
            })
                .then(() => {
                    // return remove(row.id);
                })
                .then(() => {
                    // this.onLoad(this.page);
                    // this.$message({
                    //     type: 'success',
                    //     message: '操作成功!',
                    // });
                });
        },
        // 加急
        rushFn() {
            this.isRushOpen = true
        },
        closeDialog() {
            this.isPriorityOpen = false
            this.isRushOpen = false
            this.isBatchOpen = false
            this.isUpdateOpen = false
            this.isOpen = false
        },
        // 打开玻璃饼下发弹窗
        openGlassPlateDialog(row) {
            this.currentRow = row;
            this.glassPlateDialog = true;
        },
        // 关闭玻璃饼下发弹窗
        closeGlassPlateDialog() {
            this.glassPlateDialog = false;
            this.currentRow = null;
        },
        // 确认下发玻璃饼
        confirmGlassPlateIssued() {
            if (this.currentRow) {
                // 更新玻璃饼下发状态为已下发
                this.currentRow.glassPlateIssuedStatus = 1;
                // updateGlassPlateStatus(this.currentRow.id, 1).then(res => {
                //   this.$message.success('玻璃饼下发成功');
                // }).catch(err => {
                //   this.$message.error('玻璃饼下发失败');
                // });
                this.$message.success('玻璃饼下发成功');
                this.closeGlassPlateDialog();
            }
        },
        inBatchesFn(row) {
            this.rowItem = row;
            this.isBatchOpen = true;
        },
        subclass() {
            this.platingSmallOpen = true;
        },
       
        cancel(refresh) {
            if (refresh) {
                this.$refs.myTable.load();
            }
            this.inBatchesOpen = false;
            this.isOpen = false;
            this.planFormOpen = false;
            this.platingSmallOpen = false;
        },
        initData(roleId) {
            getRoleTreeById(roleId).then(res => {
                const column = this.findObject(this.option.column, 'parentId');
                column.dicData = res.data.data;
            });
        },
        submit() {
            const menuList = this.$refs.treeMenu.getCheckedKeys();
            const dataScopeList = this.$refs.treeDataScope.getCheckedKeys();
            const apiScopeList = this.$refs.treeApiScope.getCheckedKeys();
            grant(this.idsArray, menuList, dataScopeList, apiScopeList).then(() => {
                this.box = false;
                this.$message({
                    type: 'success',
                    message: '操作成功!',
                });
                this.selectionList = [];
                this.onLoad(this.page);
            });
        },
        rowSave(row, done, loading) {
            add(row).then(
                () => {
                    this.onLoad(this.page);
                    this.$message({
                        type: 'success',
                        message: '操作成功!',
                    });
                    done();
                },
                error => {
                    window.console.log(error);
                    loading();
                }
            );
        },
        rowUpdate(row, index, done, loading) {
            update(row).then(
                () => {
                    this.onLoad(this.page);
                    this.$message({
                        type: 'success',
                        message: '操作成功!',
                    });
                    done();
                },
                error => {
                    window.console.log(error);
                    loading();
                }
            );
        },
        rowDel(row) {
            this.$confirm('确定将选择数据删除?', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning',
            })
                .then(() => {
                    return remove(row.id);
                })
                .then(() => {
                    this.onLoad(this.page);
                    this.$message({
                        type: 'success',
                        message: '操作成功!',
                    });
                });
        },

        searchReset() {
            this.query = {};
            this.onLoad(this.page);
        },
        searchChange(params, done) {
            this.query = params;
            this.page.currentPage = 1;
            this.onLoad(this.page, params);
            done();
        },
        selectionChange(list) {
            this.selectionList = list;
        },
        selectionClear() {
            this.selectionList = [];
            this.$refs.crud.toggleSelection();
        },
        beforeOpen(done, type) {
            if (['add', 'edit'].includes(type)) {
                this.initData(this.form.id);
            }
            if (['edit', 'view'].includes(type)) {
                if (this.form.parentId === '0') {
                    this.form.parentId = '';
                }
            }
            getRoleAlias().then(res => {
                const column = this.findObject(this.option.column, 'currentAlias');
                column.dicData = res.data.data;
            });
            done();
        },
        handleRole() {
            if (this.selectionList.length !== 1) {
                this.$message.warning('只能选择一条数据');
                return;
            }
            this.menuTreeObj = [];
            this.dataScopeTreeObj = [];
            this.apiScopeTreeObj = [];
            grantTree().then(res => {
                this.menuGrantList = res.data.data.menu;
                this.dataScopeGrantList = res.data.data.dataScope;
                this.apiScopeGrantList = res.data.data.apiScope;
                getRole(this.ids).then(res => {
                    this.menuTreeObj = res.data.data.menu;
                    this.dataScopeTreeObj = res.data.data.dataScope;
                    this.apiScopeTreeObj = res.data.data.apiScope;
                    this.box = true;
                });
            });
        },
        handleRowRole(row) {
            this.menuTreeObj = [];
            this.dataScopeTreeObj = [];
            this.apiScopeTreeObj = [];
            grantTree().then(res => {
                this.menuGrantList = res.data.data.menu;
                this.dataScopeGrantList = res.data.data.dataScope;
                this.apiScopeGrantList = res.data.data.apiScope;
                getRole(row.id).then(res => {
                    this.menuTreeObj = res.data.data.menu;
                    this.dataScopeTreeObj = res.data.data.dataScope;
                    this.apiScopeTreeObj = res.data.data.apiScope;
                    this.selectionList.push(row);
                    this.box = true;
                });
            });
        },
        handleDelete() {
            if (this.selectionList.length === 0) {
                this.$message.warning('请选择至少一条数据');
                return;
            }
            this.$confirm('确定将选择数据删除?', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning',
            })
                .then(() => {
                    return remove(this.ids);
                })
                .then(() => {
                    this.onLoad(this.page);
                    this.$message({
                        type: 'success',
                        message: '操作成功!',
                    });
                    this.$refs.crud.toggleSelection();
                });
        },
        currentChange(currentPage) {
            this.page.currentPage = currentPage;
        },
        sizeChange(pageSize) {
            this.page.pageSize = pageSize;
        },
        refreshChange() {
            this.onLoad(this.page, this.query);
        },
        handleChange(file, fileList) {
            // proxy.$Export.xlsx(file.raw).then((data) => {
            //     data.value = data.results;
            // });
            this.$message({
                type: 'success',
                message: '操作成功!',
            });
        },

        onLoad(page, params = {}) {
            this.loading = true;
            this.data = [
                {
                    id: 1,
                    "glassPlateIssuedStatus": 0,
                    "orderType": 0,
                    "alreadyBranchQty": 5.0,
                    "bsPlatingmedium": {
                        "bpsId": 4,
                        "bpsName": "小类04",
                        "bsWorkCenter": {
                            "area": 0.0,
                            "batchNo": null,
                            "bigBatch": false,
                            "bsJfCenter": {
                                "createMan": {
                                    "accountId": null,
                                    "card": null,
                                    "createTime": "2022-08-31",
                                    "curStatus": 1,
                                    "deleted": false,
                                    "deptName": null,
                                    "dimissionTime": null,
                                    "factoryId": 41,
                                    "head": 0,
                                    "jobName": "总工",
                                    "keyValue": 1,
                                    "ldapName": "admin",
                                    "mail": "13699999999@136.com",
                                    "mobile": "13699999999",
                                    "pfDepartment": {
                                        "appLink": null,
                                        "createTime": "2022-08-31",
                                        "deleted": false,
                                        "deptCode": "001",
                                        "deptId": 1,
                                        "deptName": "MES开发部",
                                        "deptType": 1,
                                        "deptTypeTitle": "厂",
                                        "keyValue": 1,
                                        "memo": null,
                                        "orders": "00",
                                        "parentDeptId": null,
                                        "parentPath": null,
                                        "ucDeptId": null,
                                        "updateTime": "2022-08-31 16:32:46"
                                    },
                                    "pinyinIndex": "ADMIN,ADMIN",
                                    "ucUserId": null,
                                    "updateTime": "2022-08-31 16:32:46",
                                    "userCode": "00",
                                    "userId": 1,
                                    "userName": "admin",
                                    "userSex": 1,
                                    "userSources": "admin",
                                    "userString": "1:A:admin",
                                    "userType": "A"
                                },
                                "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": {
                                "accountId": 90,
                                "card": null,
                                "createTime": "2023-02-08",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 41,
                                "head": 1,
                                "jobName": "生产调度员",
                                "keyValue": 90,
                                "ldapName": "03891",
                                "mail": null,
                                "mobile": null,
                                "pfDepartment": {
                                    "appLink": null,
                                    "createTime": "2023-02-08",
                                    "deleted": false,
                                    "deptCode": "06",
                                    "deptId": 47,
                                    "deptName": "经营管理室",
                                    "deptType": 1,
                                    "deptTypeTitle": "厂",
                                    "keyValue": 47,
                                    "memo": null,
                                    "orders": "6",
                                    "parentDeptId": 41,
                                    "parentPath": null,
                                    "ucDeptId": null,
                                    "updateTime": "2023-02-08 13:23:30"
                                },
                                "pinyinIndex": "03891,03891",
                                "ucUserId": null,
                                "updateTime": "2023-02-08 13:20:39",
                                "userCode": "03891",
                                "userId": 90,
                                "userName": "03891",
                                "userSex": 1,
                                "userSources": "03891",
                                "userString": "90:A:03891",
                                "userType": "A"
                            },
                            "createTime": "2023-04-08 18:35:43",
                            "deleted": false,
                            "describe": null,
                            "endPoint": null,
                            "keyValue": 142,
                            "leaderUser": {
                                "accountId": 541,
                                "card": null,
                                "createTime": "2023-05-04",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 102,
                                "head": 0,
                                "jobName": "MES开发",
                                "keyValue": 541,
                                "ldapName": "cdl",
                                "mail": null,
                                "mobile": null,
                                "pfDepartment": {
                                    "appLink": null,
                                    "createTime": "2022-08-31",
                                    "deleted": false,
                                    "deptCode": "001",
                                    "deptId": 1,
                                    "deptName": "MES开发部",
                                    "deptType": 1,
                                    "deptTypeTitle": "厂",
                                    "keyValue": 1,
                                    "memo": null,
                                    "orders": "00",
                                    "parentDeptId": null,
                                    "parentPath": null,
                                    "ucDeptId": null,
                                    "updateTime": "2022-08-31 16:32:46"
                                },
                                "pinyinIndex": "CUIDIANLONG,CDL",
                                "ucUserId": null,
                                "updateTime": "2023-05-04 09:16:54",
                                "userCode": "cdl",
                                "userId": 541,
                                "userName": "崔殿龙",
                                "userSex": 1,
                                "userSources": "崔殿龙",
                                "userString": "541:A:崔殿龙",
                                "userType": "A"
                            },
                            "limitType": 0,
                            "processes": " ",
                            "quantity": 0,
                            "roundCycle": null,
                            "saturation": 0.0,
                            "sign": "4",
                            "startPoint": null,
                            "team": "热处理班",
                            "updateTime": "2023-04-08 18:35:43",
                            "wcCode": "003",
                            "wcId": 142,
                            "wcName": "热处理作业中心",
                            "whetherPlate": false
                        },
                        "capacity": 1.0,
                        "keyValue": 4,
                        "updateMan": {
                            "accountId": 541,
                            "card": null,
                            "createTime": "2023-05-04",
                            "curStatus": 1,
                            "deleted": false,
                            "deptName": null,
                            "dimissionTime": null,
                            "factoryId": 102,
                            "head": 0,
                            "jobName": "MES开发",
                            "keyValue": 541,
                            "ldapName": "cdl",
                            "mail": null,
                            "mobile": null,
                            "pfDepartment": {
                                "appLink": null,
                                "createTime": "2022-08-31",
                                "deleted": false,
                                "deptCode": "001",
                                "deptId": 1,
                                "deptName": "MES开发部",
                                "deptType": 1,
                                "deptTypeTitle": "厂",
                                "keyValue": 1,
                                "memo": null,
                                "orders": "00",
                                "parentDeptId": null,
                                "parentPath": null,
                                "ucDeptId": null,
                                "updateTime": "2022-08-31 16:32:46"
                            },
                            "pinyinIndex": "CUIDIANLONG,CDL",
                            "ucUserId": null,
                            "updateTime": "2023-05-04 09:16:54",
                            "userCode": "cdl",
                            "userId": 541,
                            "userName": "崔殿龙",
                            "userSex": 1,
                            "userSources": "崔殿龙",
                            "userString": "541:A:崔殿龙",
                            "userType": "A"
                        },
                        "updateTime": "2024-04-10 16:22:22"
                    },
                    "bsProcedureQua": null,
                    "closeMan": null,
                    "closeTime": null,
                    "curStatus": 4,
                    "curStatusText": "已派工",
                    "custodian": null,
                    "deliveryQty": 0.0,
                    "demandDate": "2023-03-07 00:00:00",
                    "dominantDept": "1000",
                    "dsPart": null,
                    "keyValue": 41417,
                    "memo": "同一批次,可提前交件",
                    "partCode": "21E100-001-3900-E34",
                    "partName": "LRMT振动机架底板",
                    "planType": 1,
                    "planUser": "0300092",
                    "plate": "Ct.Ocd",
                    "poArea": 18.3376140803,
                    "poCode": "WO-2212149345",
                    "originalProductionOrderNo": "45566",
                    "returnWorkOrderNo":'2345',
                    "orderPriority": 1,
                    "poCode1": "12212149345",
                    "poCode2": "22212149345",
                    "poCode3": "32212149345",
                    "poCode4": "42212149345",
                    "poId": 41417,
                    "poQty": 5,
                    "primaryCraft": "库1-2（机加）-4（表）-库2",
                    "priority": 1,
                    "prodIdent": "JII",
                    "prodLine": "test",
                    "productType": "LRMT",
                    "releaseDate": "2022-12-28 09:07:31",
                    "roamNo": "B1269880",
                    "routeNo": "LX01-03-001",
                    "sureType": null,
                    "sureTypeTitle": "未确认",
                    "syncTime": "2023-02-08 13:26:47",
                    "undeliveredQty": 5.0,
                    "useDept": "3505",
                    "wcName": null
                },
                {
                    id: 2,
                    "glassPlateIssuedStatus": null,
                    "orderType": 4,
                    "alreadyBranchQty": 5.0,
                    "bsPlatingmedium": {
                        "bpsId": 6,
                        "bpsName": "小类06",
                        "bsWorkCenter": {
                            "area": 0.0,
                            "batchNo": null,
                            "bigBatch": false,
                            "bsJfCenter": {
                                "createMan": {
                                    "accountId": null,
                                    "card": null,
                                    "createTime": "2022-08-31",
                                    "curStatus": 1,
                                    "deleted": false,
                                    "deptName": null,
                                    "dimissionTime": null,
                                    "factoryId": 41,
                                    "head": 0,
                                    "jobName": "总工",
                                    "keyValue": 1,
                                    "ldapName": "admin",
                                    "mail": "13699999999@136.com",
                                    "mobile": "13699999999",
                                    "pfDepartment": {
                                        "appLink": null,
                                        "createTime": "2022-08-31",
                                        "deleted": false,
                                        "deptCode": "001",
                                        "deptId": 1,
                                        "deptName": "MES开发部",
                                        "deptType": 1,
                                        "deptTypeTitle": "厂",
                                        "keyValue": 1,
                                        "memo": null,
                                        "orders": "00",
                                        "parentDeptId": null,
                                        "parentPath": null,
                                        "ucDeptId": null,
                                        "updateTime": "2022-08-31 16:32:46"
                                    },
                                    "pinyinIndex": "ADMIN,ADMIN",
                                    "ucUserId": null,
                                    "updateTime": "2022-08-31 16:32:46",
                                    "userCode": "00",
                                    "userId": 1,
                                    "userName": "admin",
                                    "userSex": 1,
                                    "userSources": "admin",
                                    "userString": "1:A:admin",
                                    "userType": "A"
                                },
                                "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": {
                                "accountId": 90,
                                "card": null,
                                "createTime": "2023-02-08",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 41,
                                "head": 1,
                                "jobName": "生产调度员",
                                "keyValue": 90,
                                "ldapName": "03891",
                                "mail": null,
                                "mobile": null,
                                "pfDepartment": {
                                    "appLink": null,
                                    "createTime": "2023-02-08",
                                    "deleted": false,
                                    "deptCode": "06",
                                    "deptId": 47,
                                    "deptName": "经营管理室",
                                    "deptType": 1,
                                    "deptTypeTitle": "厂",
                                    "keyValue": 47,
                                    "memo": null,
                                    "orders": "6",
                                    "parentDeptId": 41,
                                    "parentPath": null,
                                    "ucDeptId": null,
                                    "updateTime": "2023-02-08 13:23:30"
                                },
                                "pinyinIndex": "03891,03891",
                                "ucUserId": null,
                                "updateTime": "2023-02-08 13:20:39",
                                "userCode": "03891",
                                "userId": 90,
                                "userName": "03891",
                                "userSex": 1,
                                "userSources": "03891",
                                "userString": "90:A:03891",
                                "userType": "A"
                            },
                            "createTime": "2023-04-08 18:35:43",
                            "deleted": false,
                            "describe": null,
                            "endPoint": null,
                            "keyValue": 142,
                            "leaderUser": {
                                "accountId": 541,
                                "card": null,
                                "createTime": "2023-05-04",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 102,
                                "head": 0,
                                "jobName": "MES开发",
                                "keyValue": 541,
                                "ldapName": "cdl",
                                "mail": null,
                                "mobile": null,
                                "pfDepartment": {
                                    "appLink": null,
                                    "createTime": "2022-08-31",
                                    "deleted": false,
                                    "deptCode": "001",
                                    "deptId": 1,
                                    "deptName": "MES开发部",
                                    "deptType": 1,
                                    "deptTypeTitle": "厂",
                                    "keyValue": 1,
                                    "memo": null,
                                    "orders": "00",
                                    "parentDeptId": null,
                                    "parentPath": null,
                                    "ucDeptId": null,
                                    "updateTime": "2022-08-31 16:32:46"
                                },
                                "pinyinIndex": "CUIDIANLONG,CDL",
                                "ucUserId": null,
                                "updateTime": "2023-05-04 09:16:54",
                                "userCode": "cdl",
                                "userId": 541,
                                "userName": "崔殿龙",
                                "userSex": 1,
                                "userSources": "崔殿龙",
                                "userString": "541:A:崔殿龙",
                                "userType": "A"
                            },
                            "limitType": 0,
                            "processes": " ",
                            "quantity": 0,
                            "roundCycle": null,
                            "saturation": 0.0,
                            "sign": "4",
                            "startPoint": null,
                            "team": "热处理班",
                            "updateTime": "2023-04-08 18:35:43",
                            "wcCode": "003",
                            "wcId": 142,
                            "wcName": "热处理作业中心",
                            "whetherPlate": false
                        },
                        "capacity": 1.0,
                        "keyValue": 6,
                        "updateMan": {
                            "accountId": 541,
                            "card": null,
                            "createTime": "2023-05-04",
                            "curStatus": 1,
                            "deleted": false,
                            "deptName": null,
                            "dimissionTime": null,
                            "factoryId": 102,
                            "head": 0,
                            "jobName": "MES开发",
                            "keyValue": 541,
                            "ldapName": "cdl",
                            "mail": null,
                            "mobile": null,
                            "pfDepartment": {
                                "appLink": null,
                                "createTime": "2022-08-31",
                                "deleted": false,
                                "deptCode": "001",
                                "deptId": 1,
                                "deptName": "MES开发部",
                                "deptType": 1,
                                "deptTypeTitle": "厂",
                                "keyValue": 1,
                                "memo": null,
                                "orders": "00",
                                "parentDeptId": null,
                                "parentPath": null,
                                "ucDeptId": null,
                                "updateTime": "2022-08-31 16:32:46"
                            },
                            "pinyinIndex": "CUIDIANLONG,CDL",
                            "ucUserId": null,
                            "updateTime": "2023-05-04 09:16:54",
                            "userCode": "cdl",
                            "userId": 541,
                            "userName": "崔殿龙",
                            "userSex": 1,
                            "userSources": "崔殿龙",
                            "userString": "541:A:崔殿龙",
                            "userType": "A"
                        },
                        "updateTime": "2024-04-10 16:22:22"
                    },
                    "bsProcedureQua": null,
                    "closeMan": null,
                    "closeTime": null,
                    "curStatus": 4,
                    "curStatusText": "加工中",
                    "custodian": null,
                    "deliveryQty": 0.0,
                    "demandDate": "2022-11-20 00:00:00",
                    "dominantDept": "4302",
                    "dsPart": null,
                    "keyValue": 41419,
                    "memo": "可提前交件",
                    "partCode": "21E2-505-134-B1",
                    "partName": "左柜柜体喷漆部件",
                    "planType": 1,
                    "planUser": "0300009",
                    "plate": null,
                    "poArea": 0.0,
                    "poCode": "WO-221047370",
                    "poId": 41419,
                    "poQty": 5,
                    "primaryCraft": "库1、2-12（装配）-4（表）-12（装配）-库3",
                    "priority": 1,
                    "prodIdent": "JIX",
                    "prodLine": null,
                    "productType": "Y/QAZ",
                    "releaseDate": "2022-10-12 09:02:31",
                    "roamNo": null,
                    "routeNo": "LX12-02-007",
                    "sureType": null,
                    "sureTypeTitle": "未确认",
                    "syncTime": "2023-02-08 13:26:47",
                    "undeliveredQty": 5.0,
                    "useDept": "4302",
                    "wcName": null
                },
                {
                    id: 3,
                    "orderType": 1, // 玻璃饼订单
                    "glassPlateIssuedStatus": null, // 非烧结订单，玻璃饼下发状态为空
                    "alreadyBranchQty": 3.0,
                    "bsPlatingmedium": {
                        "bpsId": 5,
                        "bpsName": "小类05",
                        "bsWorkCenter": {
                            "area": 0.0,
                            "batchNo": null,
                            "bigBatch": false,
                            "bsJfCenter": {
                                "createMan": {
                                    "accountId": null,
                                    "card": null,
                                    "createTime": "2022-08-31",
                                    "curStatus": 1,
                                    "deleted": false,
                                    "deptName": null,
                                    "dimissionTime": null,
                                    "factoryId": 41,
                                    "head": 0,
                                    "jobName": "总工",
                                    "keyValue": 1,
                                    "ldapName": "admin",
                                    "mail": "13699999999@136.com",
                                    "mobile": "13699999999",
                                    "pfDepartment": {
                                        "appLink": null,
                                        "createTime": "2022-08-31",
                                        "deleted": false,
                                        "deptCode": "001",
                                        "deptId": 1,
                                        "deptName": "MES开发部",
                                        "deptType": 1,
                                        "deptTypeTitle": "厂",
                                        "keyValue": 1,
                                        "memo": null,
                                        "orders": "00",
                                        "parentDeptId": null,
                                        "parentPath": null,
                                        "ucDeptId": null,
                                        "updateTime": "2022-08-31 16:32:46"
                                    },
                                    "pinyinIndex": "ADMIN,ADMIN",
                                    "ucUserId": null,
                                    "updateTime": "2022-08-31 16:32:46",
                                    "userCode": "00",
                                    "userId": 1,
                                    "userName": "admin",
                                    "userSex": 1,
                                    "userSources": "admin",
                                    "userString": "1:A:admin",
                                    "userType": "A"
                                },
                                "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": {
                                "accountId": 90,
                                "card": null,
                                "createTime": "2023-02-08",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 41,
                                "head": 1,
                                "jobName": "生产调度员",
                                "keyValue": 90,
                                "ldapName": "03891",
                                "mail": null,
                                "mobile": null,
                                "pfDepartment": {
                                    "appLink": null,
                                    "createTime": "2023-02-08",
                                    "deleted": false,
                                    "deptCode": "06",
                                    "deptId": 47,
                                    "deptName": "经营管理室",
                                    "deptType": 1,
                                    "deptTypeTitle": "厂",
                                    "keyValue": 47,
                                    "memo": null,
                                    "orders": "6",
                                    "parentDeptId": 41,
                                    "parentPath": null,
                                    "ucDeptId": null,
                                    "updateTime": "2023-02-08 13:23:30"
                                },
                                "pinyinIndex": "03891,03891",
                                "ucUserId": null,
                                "updateTime": "2023-02-08 13:20:39",
                                "userCode": "03891",
                                "userId": 90,
                                "userName": "03891",
                                "userSex": 1,
                                "userSources": "03891",
                                "userString": "90:A:03891",
                                "userType": "A"
                            },
                            "createTime": "2023-04-08 18:35:43",
                            "deleted": false,
                            "describe": null,
                            "endPoint": null,
                            "keyValue": 142,
                            "leaderUser": {
                                "accountId": 541,
                                "card": null,
                                "createTime": "2023-05-04",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 102,
                                "head": 0,
                                "jobName": "MES开发",
                                "keyValue": 541,
                                "ldapName": "cdl",
                                "mail": null,
                                "mobile": null,
                                "pfDepartment": {
                                    "appLink": null,
                                    "createTime": "2022-08-31",
                                    "deleted": false,
                                    "deptCode": "001",
                                    "deptId": 1,
                                    "deptName": "MES开发部",
                                    "deptType": 1,
                                    "deptTypeTitle": "厂",
                                    "keyValue": 1,
                                    "memo": null,
                                    "orders": "00",
                                    "parentDeptId": null,
                                    "parentPath": null,
                                    "ucDeptId": null,
                                    "updateTime": "2022-08-31 16:32:46"
                                },
                                "pinyinIndex": "CUIDIANLONG,CDL",
                                "ucUserId": null,
                                "updateTime": "2023-05-04 09:16:54",
                                "userCode": "cdl",
                                "userId": 541,
                                "userName": "崔殿龙",
                                "userSex": 1,
                                "userSources": "崔殿龙",
                                "userString": "541:A:崔殿龙",
                                "userType": "A"
                            },
                            "limitType": 0,
                            "processes": " ",
                            "quantity": 0,
                            "roundCycle": null,
                            "saturation": 0.0,
                            "sign": "4",
                            "startPoint": null,
                            "team": "热处理班",
                            "updateTime": "2023-04-08 18:35:43",
                            "wcCode": "003",
                            "wcId": 142,
                            "wcName": "热处理作业中心",
                            "whetherPlate": false
                        },
                        "capacity": 1.0,
                        "keyValue": 5,
                        "updateMan": {
                            "accountId": 541,
                            "card": null,
                            "createTime": "2023-05-04",
                            "curStatus": 1,
                            "deleted": false,
                            "deptName": null,
                            "dimissionTime": null,
                            "factoryId": 102,
                            "head": 0,
                            "jobName": "MES开发",
                            "keyValue": 541,
                            "ldapName": "cdl",
                            "mail": null,
                            "mobile": null,
                            "pfDepartment": {
                                "appLink": null,
                                "createTime": "2022-08-31",
                                "deleted": false,
                                "deptCode": "001",
                                "deptId": 1,
                                "deptName": "MES开发部",
                                "deptType": 1,
                                "deptTypeTitle": "厂",
                                "keyValue": 1,
                                "memo": null,
                                "orders": "00",
                                "parentDeptId": null,
                                "parentPath": null,
                                "ucDeptId": null,
                                "updateTime": "2022-08-31 16:32:46"
                            },
                            "pinyinIndex": "CUIDIANLONG,CDL",
                            "ucUserId": null,
                            "updateTime": "2023-05-04 09:16:54",
                            "userCode": "cdl",
                            "userId": 541,
                            "userName": "崔殿龙",
                            "userSex": 1,
                            "userSources": "崔殿龙",
                            "userString": "541:A:崔殿龙",
                            "userType": "A"
                        },
                        "updateTime": "2024-04-10 16:22:22"
                    },
                    "bsProcedureQua": null,
                    "closeMan": null,
                    "closeTime": null,
                    "curStatus": 4,
                    "curStatusText": "已退回",
                    "custodian": null,
                    "deliveryQty": 0.0,
                    "demandDate": "2023-07-17 00:00:00",
                    "dominantDept": "4302",
                    "dsPart": null,
                    "keyValue": 41420,
                    "memo": null,
                    "partCode": "21E2-505-523-B1",
                    "partName": "客货舱设备架",
                    "planType": 1,
                    "planUser": "0300007",
                    "plate": null,
                    "poArea": 0.0,
                    "poCode": "WO-221279741",
                    "poId": 41420,
                    "poQty": 3,
                    "primaryCraft": "库1、2-12（装配）-4（表）-12（装配）-库3",
                    "priority": 1,
                    "prodIdent": "JIX",
                    "prodLine": null,
                    "productType": "Y/QAZ",
                    "releaseDate": "2022-12-14 11:05:47",
                    "roamNo": "B1964845",
                    "routeNo": "LX12-02-007",
                    "sureType": null,
                    "sureTypeTitle": "未确认",
                    "syncTime": "2023-02-08 13:26:47",
                    "undeliveredQty": 3.0,
                    "useDept": "4302",
                    "wcName": null
                },
                {
                    id: 4,
                    "glassPlateIssuedStatus": 1,
                    "orderType": 0, // 烧结订单
                    "alreadyBranchQty": 1.0,
                    "bsPlatingSmall": {
                        "bpsId": 6,
                        "bpsName": "小类06",
                        "bsWorkCenter": {
                            "area": 0.0,
                            "batchNo": null,
                            "bigBatch": false,
                            "bsJfCenter": {
                                "createMan": {
                                    "accountId": null,
                                    "card": null,
                                    "createTime": "2022-08-31",
                                    "curStatus": 1,
                                    "deleted": false,
                                    "deptName": null,
                                    "dimissionTime": null,
                                    "factoryId": 41,
                                    "head": 0,
                                    "jobName": "总工",
                                    "keyValue": 1,
                                    "ldapName": "admin",
                                    "mail": "13699999999@136.com",
                                    "mobile": "13699999999",
                                    "pfDepartment": {
                                        "appLink": null,
                                        "createTime": "2022-08-31",
                                        "deleted": false,
                                        "deptCode": "001",
                                        "deptId": 1,
                                        "deptName": "MES开发部",
                                        "deptType": 1,
                                        "deptTypeTitle": "厂",
                                        "keyValue": 1,
                                        "memo": null,
                                        "orders": "00",
                                        "parentDeptId": null,
                                        "parentPath": null,
                                        "ucDeptId": null,
                                        "updateTime": "2022-08-31 16:32:46"
                                    },
                                    "pinyinIndex": "ADMIN,ADMIN",
                                    "ucUserId": null,
                                    "updateTime": "2022-08-31 16:32:46",
                                    "userCode": "00",
                                    "userId": 1,
                                    "userName": "admin",
                                    "userSex": 1,
                                    "userSources": "admin",
                                    "userString": "1:A:admin",
                                    "userType": "A"
                                },
                                "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": {
                                "accountId": 90,
                                "card": null,
                                "createTime": "2023-02-08",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 41,
                                "head": 1,
                                "jobName": "生产调度员",
                                "keyValue": 90,
                                "ldapName": "03891",
                                "mail": null,
                                "mobile": null,
                                "pfDepartment": {
                                    "appLink": null,
                                    "createTime": "2023-02-08",
                                    "deleted": false,
                                    "deptCode": "06",
                                    "deptId": 47,
                                    "deptName": "经营管理室",
                                    "deptType": 1,
                                    "deptTypeTitle": "厂",
                                    "keyValue": 47,
                                    "memo": null,
                                    "orders": "6",
                                    "parentDeptId": 41,
                                    "parentPath": null,
                                    "ucDeptId": null,
                                    "updateTime": "2023-02-08 13:23:30"
                                },
                                "pinyinIndex": "03891,03891",
                                "ucUserId": null,
                                "updateTime": "2023-02-08 13:20:39",
                                "userCode": "03891",
                                "userId": 90,
                                "userName": "03891",
                                "userSex": 1,
                                "userSources": "03891",
                                "userString": "90:A:03891",
                                "userType": "A"
                            },
                            "createTime": "2023-04-08 18:35:43",
                            "deleted": false,
                            "describe": null,
                            "endPoint": null,
                            "keyValue": 142,
                            "leaderUser": {
                                "accountId": 541,
                                "card": null,
                                "createTime": "2023-05-04",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 102,
                                "head": 0,
                                "jobName": "MES开发",
                                "keyValue": 541,
                                "ldapName": "cdl",
                                "mail": null,
                                "mobile": null,
                                "pfDepartment": {
                                    "appLink": null,
                                    "createTime": "2022-08-31",
                                    "deleted": false,
                                    "deptCode": "001",
                                    "deptId": 1,
                                    "deptName": "MES开发部",
                                    "deptType": 1,
                                    "deptTypeTitle": "厂",
                                    "keyValue": 1,
                                    "memo": null,
                                    "orders": "00",
                                    "parentDeptId": null,
                                    "parentPath": null,
                                    "ucDeptId": null,
                                    "updateTime": "2022-08-31 16:32:46"
                                },
                                "pinyinIndex": "CUIDIANLONG,CDL",
                                "ucUserId": null,
                                "updateTime": "2023-05-04 09:16:54",
                                "userCode": "cdl",
                                "userId": 541,
                                "userName": "崔殿龙",
                                "userSex": 1,
                                "userSources": "崔殿龙",
                                "userString": "541:A:崔殿龙",
                                "userType": "A"
                            },
                            "limitType": 0,
                            "processes": " ",
                            "quantity": 0,
                            "roundCycle": null,
                            "saturation": 0.0,
                            "sign": "4",
                            "startPoint": null,
                            "team": "热处理班",
                            "updateTime": "2023-04-08 18:35:43",
                            "wcCode": "003",
                            "wcId": 142,
                            "wcName": "热处理作业中心",
                            "whetherPlate": false
                        },
                        "capacity": 1.0,
                        "keyValue": 6,
                        "updateMan": {
                            "accountId": 541,
                            "card": null,
                            "createTime": "2023-05-04",
                            "curStatus": 1,
                            "deleted": false,
                            "deptName": null,
                            "dimissionTime": null,
                            "factoryId": 102,
                            "head": 0,
                            "jobName": "MES开发",
                            "keyValue": 541,
                            "ldapName": "cdl",
                            "mail": null,
                            "mobile": null,
                            "pfDepartment": {
                                "appLink": null,
                                "createTime": "2022-08-31",
                                "deleted": false,
                                "deptCode": "001",
                                "deptId": 1,
                                "deptName": "MES开发部",
                                "deptType": 1,
                                "deptTypeTitle": "厂",
                                "keyValue": 1,
                                "memo": null,
                                "orders": "00",
                                "parentDeptId": null,
                                "parentPath": null,
                                "ucDeptId": null,
                                "updateTime": "2022-08-31 16:32:46"
                            },
                            "pinyinIndex": "CUIDIANLONG,CDL",
                            "ucUserId": null,
                            "updateTime": "2023-05-04 09:16:54",
                            "userCode": "cdl",
                            "userId": 541,
                            "userName": "崔殿龙",
                            "userSex": 1,
                            "userSources": "崔殿龙",
                            "userString": "541:A:崔殿龙",
                            "userType": "A"
                        },
                        "updateTime": "2024-04-10 16:22:22"
                    },
                    "bsProcedureQua": null,
                    "closeMan": {
                        "accountId": null,
                        "card": null,
                        "createTime": "2022-08-31",
                        "curStatus": 1,
                        "deleted": false,
                        "deptName": null,
                        "dimissionTime": null,
                        "factoryId": 41,
                        "head": 0,
                        "jobName": "总工",
                        "keyValue": 1,
                        "ldapName": "admin",
                        "mail": "13699999999@136.com",
                        "mobile": "13699999999",
                        "pfDepartment": {
                            "appLink": null,
                            "createTime": "2022-08-31",
                            "deleted": false,
                            "deptCode": "001",
                            "deptId": 1,
                            "deptName": "MES开发部",
                            "deptType": 1,
                            "deptTypeTitle": "厂",
                            "keyValue": 1,
                            "memo": null,
                            "orders": "00",
                            "parentDeptId": null,
                            "parentPath": null,
                            "ucDeptId": null,
                            "updateTime": "2022-08-31 16:32:46"
                        },
                        "pinyinIndex": "ADMIN,ADMIN",
                        "ucUserId": null,
                        "updateTime": "2022-08-31 16:32:46",
                        "userCode": "00",
                        "userId": 1,
                        "userName": "admin",
                        "userSex": 1,
                        "userSources": "admin",
                        "userString": "1:A:admin",
                        "userType": "A"
                    },
                    "closeTime": "2025-08-25 15:57:35",
                    "curStatus": 15,
                    "curStatusText": "已完工",
                    "custodian": null,
                    "deliveryQty": 0.0,
                    "demandDate": "2022-12-06 00:00:00",
                    "dominantDept": "4302",
                    "dsPart": null,
                    "keyValue": 41418,
                    "memo": "SWSXJ017-00000075 0159,可提前交件",
                    "partCode": "21E2-505-134-B1",
                    "partName": "左柜柜体喷漆部件",
                    "planType": 1,
                    "planUser": "0300009",
                    "plate": null,
                    "poArea": 0.0,
                    "poCode": "WO-221194871",
                    "poId": 41418,
                    "poQty": 1,
                    "primaryCraft": "库1、2-12（装配）-4（表）-12（装配）-库3",
                    "priority": 1,
                    "prodIdent": "JIX",
                    "prodLine": null,
                    "productType": "Y/QAZ",
                    "releaseDate": "2022-11-15 18:44:12",
                    "roamNo": "B2284606",
                    "routeNo": "LX12-02-007",
                    "sureType": null,
                    "sureTypeTitle": "未确认",
                    "syncTime": "2023-02-08 13:26:47",
                    "undeliveredQty": 1.0,
                    "useDept": "4302",
                    "wcName": null
                },
            ]
            this.page.total = this.data.length
            //   getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
            //     this.data = res.data.data.records;
            this.loading = false;
            //     this.page.total = res.data.data.total
            //     this.selectionClear();
            //   });
        },
    },
    mounted() {
    }
};
</script>
