<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 #body>
                <el-tag>有10个零件工艺即将到期，请尽快维护有效期</el-tag>
            </template>
            <template #tip>

            </template>
            <template #menu-left>
                <el-button type="primary" @click="setCrew(scope.row.bcId)">有效期维护</el-button>
            </template>

            <template #menu-right="{ size }">

            </template>
            <template #menu="scope">

            </template>
            <template #bsWorkType.wtName="scope">
                <span>
                    {{ scope.row.bsWorkType ? scope.row.bsWorkType.wtName : '-' }}
                </span>
            </template>
            <template #name="{ row }">
                <i :class="row.source" style="margin-right: 5px" />
                <span>{{ row.name }}</span>
            </template>
            <template #source="{ row }">
                <div style="text-align: center">
                    <i :class="row.source" />
                </div>
            </template>
        </avue-crud>
        <!-- 设置人员弹框 -->
        <!-- <setPersonnel :id="bcId" :set-crew-open="setCrewOpen" v-if="setCrewOpen" type="platingAssort"
            @setCrewOpeSancel="setCrewOpeSancel" /> -->

        <assignDaialog :id="bcId" :set-crew-open="setCrewOpen" v-if="setCrewOpen" type="platingAssort"
            @setCrewOpeSancel="setCrewOpeSancel" :title="title"></assignDaialog>

    </basic-container>
</template>
<script>
import { getLazyList, remove, update, add, getMenu } from '@/api/system/menu';

import { mapGetters } from 'vuex';
import { getQueryAllCaList, getQueryAllCaDeatils, getQueryAllCaSave, getQueryAllCaDel } from '@/api/processManagement/processCapability';
import { getDictionary } from '@/api/system/dict';
import setPersonnel from "@/components/dialogCom/setPersonnel.vue"
import assignDaialog from "./components/assignDaialog.vue"
export default {
    components: {
        setPersonnel,
        assignDaialog
    },
    data() {
        return {
            bcId: null,
            setCrewOpen: false,
            form: {},
            query: {},
            loading: true,
            selectionList: [],
            parentId: '',
            page: {
                pageSize: 10,
                currentPage: 1,
                total: 0,
            },
            option: {
                tip: false,
                height: 'auto',
                calcHeight: 32,
                simplePage: false,
                searchShow: true,
                searchMenuSpan: 6,
                dialogWidth: '60%',
                border: true,
                selection: true,
                viewBtn: true,
                menuWidth: 120,
                dialogClickModal: false,
                excelBtn: true,
                viewBtn: true,
                editBtn: false,
                delBtn: false,
                addBtn: false,
                editBtnText: '编辑',
                refreshBtn: false,
                searchShowBtn: false,
                gridBtn: false,
                searchIndex: 3,
                searchIcon: true,
                column: [
                    {
                        label: '零件号',
                        prop: 'partCode',
                        search: true,
                        sortable: true,
                        overHidden: true,
                        width: 210,
                        rules: [
                            {
                                required: true,
                                message: '请输入名称分类',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '零件名称',
                        prop: 'partName',
                        sortable: true,
                        search: false,
                        overHidden: true,
                         width: 120,
                        rules: [
                            {
                                required: false,
                                message: '请选择镀种分类',
                                trigger: 'click',
                            },
                        ],
                    },
                    {
                        label: '零件类型',
                        prop: 'outTypeTitle',
                        sortable: true,
                        search: true,
                        overHidden: true,
                        type: 'select',
                        dicData: [
                            {
                                label: '烧结零件',
                                value: '1',
                            },
                            {
                                label: '热表零件',
                                value: '2',
                            }
                        ],
                        width: 120,
                        rules: [
                            {
                                required: false,
                                message: '请选择镀种分类',
                                trigger: 'click',
                            },
                        ],
                    },

                    {
                        label: '工艺路线',
                        prop: 'wayDetails',
                        sortable: true,
                        search: false,
                        overHidden: true,
                        rules: [
                            {
                                required: false,
                                message: '请选择镀种分类',
                                trigger: 'click',
                            },
                        ],
                    },
                    {
                        label: '状态',
                        prop: 'taskStatus',
                        sortable: true,
                        search: true,
                        overHidden: true,
                        width: 120,
                        type: "select",
                        dicData: [{
                            value: 0,
                            label: '待分派'
                        }, {
                            value: 1,
                            label: '已分派'
                        }, {
                            value: 2,
                            label: '已处理'
                        }],
                    },
                    {
                        label: '到期时间',
                        prop: 'assignTime',
                        sortable: true,
                        search: false,
                        overHidden: true,
                        width: 140,
                        rules: [
                            {
                                required: false,
                                message: '请选择镀种分类',
                                trigger: 'click',
                            },
                        ],
                    },
                    {
                        label: '操作人',
                        prop: 'craftMan.userName',
                        bind: "craftMan.userName",
                        sortable: true,
                        search: false,
                        overHidden: true,
                        width: 120,
                        rules: [
                            {
                                required: false,
                                message: '请选择镀种分类',
                                trigger: 'click',
                            },
                        ],
                    },
                    {
                        label: '更新时间',
                        prop: 'assignTime',
                        sortable: true,
                        search: false,
                        overHidden: true,
                        width: 140,
                        rules: [
                            {
                                required: false,
                                message: '请选择镀种分类',
                                trigger: 'click',
                            },
                        ],
                    },

                ],
            },
            data: [],
            title: '分派'

        }
    },
    computed: {
        ...mapGetters(['userInfo', 'permission']),
        permissionList() {
            return {
                addBtn: this.validData(this.permission.menu_add, false),
                viewBtn: this.validData(this.permission.menu_view, false),
                delBtn: this.validData(this.permission.menu_delete, false),
                editBtn: this.validData(this.permission.menu_edit, false),
            };
        },
        ids() {
            let ids = [];
            this.selectionList.forEach(ele => {
                ids.push(ele.id);
            });
            return ids.join(',');
        },
    },
    methods: {
        setBathCrew() {
            this.setCrewOpen = true;
            this.title = '批量分派'

        },
        // 设置班组人员
        setCrew(bcId) {
            this.bcId = bcId;
            this.setCrewOpen = true;
            this.title = '分派'
        },
        // 设置班组人员弹框关闭
        setCrewOpeSancel(isRefresh) {
            if (isRefresh) {
                this.$refs.myTable.load();
            }
            this.setCrewOpen = false;
        },
        initData() {
            // getMenuTree().then(res => {
            //     const column = this.findObject(this.option.column, 'parentId');
            //     column.dicData = res.data.data;
            // });
        },
        handleAdd(row) {
            this.parentId = row.id;
            const column = this.findObject(this.option.column, 'parentId');
            column.value = row.id;
            column.addDisabled = true;
            this.$refs.crud.rowAdd();
        },
        // 保存
        rowSave(row, done, loading) {
            // add(row).then(
            //     res => {
            //         // 获取新增数据的相关字段
            //         const data = res.data.data;
            //         row.id = data.id;
            //         this.$message({
            //             type: 'success',
            //             message: '操作成功!',
            //         });
            //         // 数据回调进行刷新
            //         done(row);
            //     },
            //     error => {
            //         window.console.log(error);
            //         loading();
            //     }
            // );
        },
        // 修改
        rowUpdate(row, index, done, loading) {
            // update(row).then(
            //     () => {
            //         this.$message({
            //             type: 'success',
            //             message: '操作成功!',
            //         });
            //         // 数据回调进行刷新
            //         done(row);
            //     },
            //     error => {
            //         window.console.log(error);
            //         loading();
            //     }
            // );
        },
        rowDel(row, index, done) {
            this.$confirm('确定将选择数据删除?', {
                confirmButtonText: '确定',
                cancelButtonText: '取消',
                type: 'warning',
            })
                .then(() => {
                    return remove(row.id);
                })
                .then(() => {
                    this.$message({
                        type: 'success',
                        message: '操作成功!',
                    });
                    // 数据回调进行刷新
                    done(row);
                });
        },
        // 重置
        searchReset() {
            this.query = {};
            this.parentId = 0;
            this.onLoad(this.page);
        },
        // 搜索
        searchChange(params, done) {
            this.query = params;
            this.parentId = '';
            this.page.currentPage = 1;
            this.onLoad(this.page, params);
            done();
        },
        // 选中表格数据
        selectionChange(list) {
            this.selectionList = list;
        },
        // 
        selectionClear() {
            this.selectionList = [];
            this.$refs.crud.toggleSelection();
        },
        // 打开弹框 前操作  打开表单前会执行beforeOpen方法
        beforeOpen(done, type) {
            if (['add', 'edit'].includes(type)) {
                this.initData();
            }
            if (['edit', 'view'].includes(type)) {
                getMenu(this.form.id).then(res => {
                    this.form = Object.assign(res.data.data, {
                        hasChildren: this.form.hasChildren,
                    });
                    if (this.form.parentId === '0') {
                        this.form.parentId = '';
                    }
                });
            }
            done();
        },
        // 关闭 弹框  关闭表单前会执行beforeClose方法，
        beforeClose(done) {
            this.parentId = '';
            const column = this.findObject(this.option.column, 'parentId');
            column.value = '';
            column.addDisabled = false;
            done();
        },
        // 切换 页码
        currentChange(currentPage) {
            this.page.currentPage = currentPage;
        },
        // 切换页面 数量
        sizeChange(pageSize) {
            this.page.pageSize = pageSize;
        },

        refreshChange() {
            this.onLoad(this.page, this.query);
        },
        // 加载页面数据
        onLoad(page, params = {}) {
            this.loading = true;

            getLazyList(this.parentId, Object.assign(params, this.query)).then(res => {
                // this.data = res.data.data;
                this.data = [
                    {
                        "id": "1",
                        "children": [
                            {
                                "askForMold": true,
                                "assignMan": {
                                    "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"
                                },
                                "assignTime": "2023-11-10 09:46:34",
                                "craftMan": {
                                    "accountId": 602,
                                    "card": null,
                                    "createTime": "2023-04-06",
                                    "curStatus": 1,
                                    "deleted": false,
                                    "deptName": null,
                                    "dimissionTime": null,
                                    "factoryId": 1,
                                    "head": 0,
                                    "jobName": "软件工程师",
                                    "keyValue": 521,
                                    "ldapName": null,
                                    "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": "CESHI,CS",
                                    "ucUserId": null,
                                    "updateTime": "2023-04-06 16:23:38",
                                    "userCode": "0001",
                                    "userId": 521,
                                    "userName": "测试",
                                    "userSex": 1,
                                    "userSources": "测试",
                                    "userString": "521:A:测试",
                                    "userType": "A"
                                },
                                "craftManName": null,
                                "craftTime": null,
                                "craftWay": "LX08-05-002",
                                "createTime": "2023-04-14 18:15:54",
                                "dtId": 33177,
                                "ecnLink": null,
                                "ecnNo": "1815055",
                                "extension": false,
                                "finalPlate": null,
                                "inProduction": false,
                                "keyValue": 33177,
                                "material": null,
                                "memo": null,
                                "outFlag": false,
                                "outType": "2",
                                "outTypeTitle": "设计变更任务",
                                "partCode": "21E6-575-12846_001-B1",
                                "partId": "13924198",
                                "partName": "封接插座部件",
                                "plate": "XXXX",
                                "syncTime": "2023-04-14 18:20:08",
                                "taskStatus": 0,
                                "taskStatusTitle": "待分派",
                                "transferMess": null,
                                "versionNo": "C",
                                "wayDetails": "4（封接、表、涂色带）-库2",
                                "wipTake": "继续使用"
                            },
                            {
                                "askForMold": true,
                                "assignMan": {
                                    "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"
                                },
                                "assignTime": "2023-11-10 09:46:34",
                                "craftMan": {
                                    "accountId": 602,
                                    "card": null,
                                    "createTime": "2023-04-06",
                                    "curStatus": 1,
                                    "deleted": false,
                                    "deptName": null,
                                    "dimissionTime": null,
                                    "factoryId": 1,
                                    "head": 0,
                                    "jobName": "软件工程师",
                                    "keyValue": 521,
                                    "ldapName": null,
                                    "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": "CESHI,CS",
                                    "ucUserId": null,
                                    "updateTime": "2023-04-06 16:23:38",
                                    "userCode": "0001",
                                    "userId": 521,
                                    "userName": "测试",
                                    "userSex": 1,
                                    "userSources": "测试",
                                    "userString": "521:A:测试",
                                    "userType": "A"
                                },
                                "craftManName": null,
                                "craftTime": null,
                                "craftWay": "LX08-05-002",
                                "createTime": "2023-04-14 18:15:54",
                                "dtId": 33176,
                                "ecnLink": null,
                                "ecnNo": "1815055",
                                "extension": false,
                                "finalPlate": null,
                                "inProduction": false,
                                "keyValue": 33176,
                                "material": null,
                                "memo": null,
                                "outFlag": false,
                                "outType": "2",
                                "outTypeTitle": "设计变更任务",
                                "partCode": "21E6-575-12846_001-B1",
                                "partId": "13924198",
                                "partName": "封接插座部件",
                                "plate": "XXXX",
                                "syncTime": "2023-04-14 18:20:08",
                                "taskStatus": 0,
                                "taskStatusTitle": "待分派",
                                "transferMess": null,
                                "versionNo": "C",
                                "wayDetails": "4（封接、表、涂色带）-库2",
                                "wipTake": "继续使用"
                            }
                        ],
                        "askForMold": true,
                        "assignMan": {
                            "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"
                        },
                        "assignTime": "2023-11-10 09:46:34",
                        "craftMan": {
                            "accountId": 602,
                            "card": null,
                            "createTime": "2023-04-06",
                            "curStatus": 1,
                            "deleted": false,
                            "deptName": null,
                            "dimissionTime": null,
                            "factoryId": 1,
                            "head": 0,
                            "jobName": "软件工程师",
                            "keyValue": 521,
                            "ldapName": null,
                            "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": "CESHI,CS",
                            "ucUserId": null,
                            "updateTime": "2023-04-06 16:23:38",
                            "userCode": "0001",
                            "userId": 521,
                            "userName": "测试",
                            "userSex": 1,
                            "userSources": "测试",
                            "userString": "521:A:测试",
                            "userType": "A"
                        },
                        "craftManName": null,
                        "craftTime": null,
                        "craftWay": "LX08-05-002",
                        "createTime": "2023-04-14 18:15:54",
                        "dtId": 33184,
                        "ecnLink": null,
                        "ecnNo": "1815055",
                        "extension": false,
                        "finalPlate": null,
                        "inProduction": false,
                        "keyValue": 33184,
                        "material": null,
                        "memo": null,
                        "outFlag": false,
                        "outType": "2",
                        "outTypeTitle": "设计变更任务",
                        "partCode": "21E6-575-12846_001-B1",
                        "partId": "13924198",
                        "partName": "封接插座部件",
                        "plate": "XXXX",
                        "syncTime": "2023-04-14 18:20:08",
                        "taskStatus": 0,
                        "taskStatusTitle": "待分派",
                        "transferMess": null,
                        "versionNo": "C",
                        "wayDetails": "4（封接、表、涂色带）-库2",
                        "wipTake": "继续使用"
                    },
                    {
                        "id": "2",
                        "askForMold": true,
                        "assignMan": {
                            "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"
                        },
                        "assignTime": "2023-11-10 09:46:34",
                        "craftMan": {
                            "accountId": 602,
                            "card": null,
                            "createTime": "2023-04-06",
                            "curStatus": 1,
                            "deleted": false,
                            "deptName": null,
                            "dimissionTime": null,
                            "factoryId": 1,
                            "head": 0,
                            "jobName": "软件工程师",
                            "keyValue": 521,
                            "ldapName": null,
                            "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": "CESHI,CS",
                            "ucUserId": null,
                            "updateTime": "2023-04-06 16:23:38",
                            "userCode": "0001",
                            "userId": 521,
                            "userName": "测试",
                            "userSex": 1,
                            "userSources": "测试",
                            "userString": "521:A:测试",
                            "userType": "A"
                        },
                        "craftManName": null,
                        "craftTime": null,
                        "craftWay": "LX08-05-002",
                        "createTime": "2023-04-14 18:15:54",
                        "dtId": 33183,
                        "ecnLink": null,
                        "ecnNo": "1815055",
                        "extension": false,
                        "finalPlate": null,
                        "inProduction": false,
                        "keyValue": 33183,
                        "material": null,
                        "memo": null,
                        "outFlag": false,
                        "outType": "2",
                        "outTypeTitle": "设计变更任务",
                        "partCode": "21E6-575-12846_001-B1",
                        "partId": "13924198",
                        "partName": "封接插座部件",
                        "plate": "XXXX",
                        "syncTime": "2023-04-14 18:20:08",
                        "taskStatus": 0,
                        "taskStatusTitle": "待分派",
                        "transferMess": null,
                        "versionNo": "C",
                        "wayDetails": "4（封接、表、涂色带）-库2",
                        "wipTake": "继续使用"
                    },
                    {
                        "id": "3",
                        "askForMold": true,
                        "assignMan": {
                            "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"
                        },
                        "assignTime": "2023-11-10 09:46:34",
                        "craftMan": {
                            "accountId": 602,
                            "card": null,
                            "createTime": "2023-04-06",
                            "curStatus": 1,
                            "deleted": false,
                            "deptName": null,
                            "dimissionTime": null,
                            "factoryId": 1,
                            "head": 0,
                            "jobName": "软件工程师",
                            "keyValue": 521,
                            "ldapName": null,
                            "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": "CESHI,CS",
                            "ucUserId": null,
                            "updateTime": "2023-04-06 16:23:38",
                            "userCode": "0001",
                            "userId": 521,
                            "userName": "测试",
                            "userSex": 1,
                            "userSources": "测试",
                            "userString": "521:A:测试",
                            "userType": "A"
                        },
                        "craftManName": null,
                        "craftTime": null,
                        "craftWay": "LX08-05-002",
                        "createTime": "2023-04-14 18:15:54",
                        "dtId": 33182,
                        "ecnLink": null,
                        "ecnNo": "1815055",
                        "extension": false,
                        "finalPlate": null,
                        "inProduction": false,
                        "keyValue": 33182,
                        "material": null,
                        "memo": null,
                        "outFlag": false,
                        "outType": "2",
                        "outTypeTitle": "设计变更任务",
                        "partCode": "21E6-575-12846_001-B1",
                        "partId": "13924198",
                        "partName": "封接插座部件",
                        "plate": "XXXX",
                        "syncTime": "2023-04-14 18:20:08",
                        "taskStatus": 0,
                        "taskStatusTitle": "待分派",
                        "transferMess": null,
                        "versionNo": "C",
                        "wayDetails": "4（封接、表、涂色带）-库2",
                        "wipTake": "继续使用"
                    },
                    {
                        "id": "4",
                        "askForMold": true,
                        "assignMan": {
                            "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"
                        },
                        "assignTime": "2023-11-10 09:46:34",
                        "craftMan": {
                            "accountId": 602,
                            "card": null,
                            "createTime": "2023-04-06",
                            "curStatus": 1,
                            "deleted": false,
                            "deptName": null,
                            "dimissionTime": null,
                            "factoryId": 1,
                            "head": 0,
                            "jobName": "软件工程师",
                            "keyValue": 521,
                            "ldapName": null,
                            "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": "CESHI,CS",
                            "ucUserId": null,
                            "updateTime": "2023-04-06 16:23:38",
                            "userCode": "0001",
                            "userId": 521,
                            "userName": "测试",
                            "userSex": 1,
                            "userSources": "测试",
                            "userString": "521:A:测试",
                            "userType": "A"
                        },
                        "craftManName": null,
                        "craftTime": null,
                        "craftWay": "LX08-05-002",
                        "createTime": "2023-04-14 18:15:54",
                        "dtId": 33181,
                        "ecnLink": null,
                        "ecnNo": "1815055",
                        "extension": false,
                        "finalPlate": null,
                        "inProduction": false,
                        "keyValue": 33181,
                        "material": null,
                        "memo": null,
                        "outFlag": false,
                        "outType": "2",
                        "outTypeTitle": "设计变更任务",
                        "partCode": "21E6-575-12846_001-B1",
                        "partId": "13924198",
                        "partName": "封接插座部件",
                        "plate": "XXXX",
                        "syncTime": "2023-04-14 18:20:08",
                        "taskStatus": 0,
                        "taskStatusTitle": "待分派",
                        "transferMess": null,
                        "versionNo": "C",
                        "wayDetails": "4（封接、表、涂色带）-库2",
                        "wipTake": "继续使用"
                    },
                    {
                        "id": "5",
                        "askForMold": true,
                        "assignMan": {
                            "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"
                        },
                        "assignTime": "2023-11-10 09:46:34",
                        "craftMan": {
                            "accountId": 602,
                            "card": null,
                            "createTime": "2023-04-06",
                            "curStatus": 1,
                            "deleted": false,
                            "deptName": null,
                            "dimissionTime": null,
                            "factoryId": 1,
                            "head": 0,
                            "jobName": "软件工程师",
                            "keyValue": 521,
                            "ldapName": null,
                            "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": "CESHI,CS",
                            "ucUserId": null,
                            "updateTime": "2023-04-06 16:23:38",
                            "userCode": "0001",
                            "userId": 521,
                            "userName": "测试",
                            "userSex": 1,
                            "userSources": "测试",
                            "userString": "521:A:测试",
                            "userType": "A"
                        },
                        "craftManName": null,
                        "craftTime": null,
                        "craftWay": "LX08-05-002",
                        "createTime": "2023-04-14 18:15:54",
                        "dtId": 33180,
                        "ecnLink": null,
                        "ecnNo": "1815055",
                        "extension": false,
                        "finalPlate": null,
                        "inProduction": false,
                        "keyValue": 33180,
                        "material": null,
                        "memo": null,
                        "outFlag": false,
                        "outType": "2",
                        "outTypeTitle": "设计变更任务",
                        "partCode": "21E6-575-12846_001-B1",
                        "partId": "13924198",
                        "partName": "封接插座部件",
                        "plate": "XXXX",
                        "syncTime": "2023-04-14 18:20:08",
                        "taskStatus": 0,
                        "taskStatusTitle": "待分派",
                        "transferMess": null,
                        "versionNo": "C",
                        "wayDetails": "4（封接、表、涂色带）-库2",
                        "wipTake": "继续使用"
                    }
                ]
                this.loading = false;
                this.page.total = this.data.length
                this.selectionClear();
            });
        },
    },
}
</script>