<template>
    <basic-container>
        <!-- 其他入库 -->
        <avue-crud :option="option" :table-loading="loading" :data="data" v-model="form" v-model:page="page" ref="crud"
            @search-change="searchChange" @search-reset="searchReset" :before-open="beforeOpen"
            @selection-change="selectionChange" @current-change="currentChange" @size-change="sizeChange"
            @refresh-change="refreshChange" @on-load="onLoad" @row-save="rowSave">
            <template #menu-right>
                <el-button type="primary" @click="handleImport">导入</el-button>
            </template>
            <template #menu-left>
                <el-button type="primary" @click="handleAdd">新增</el-button>

            </template>
            <template #goodsCode="{ row }">{{ row.goods.goodsCode }}</template>
            <template #goodsName="{ row }">{{ row.goods.goodsName }}</template>
            <template #mtltmrk="{ row }">{{ row.goods.mtltmrk }}</template>
            <template #unitName="{ row }">{{ row.goods.unitName }}</template>
            <template #shName="{ row }">{{ row.stAccBill.coStorehouse.shName }}</template>
            <template #location="{ row }">{{ row.coStorageLocation.location }}</template>
            <template #userName="{ row }">{{ row.stAccBill.createMan.userName }}</template>
            <template #createTime="{ row }">{{ row.stAccBill.createTime }}</template>
        </avue-crud>

        <!-- 新增 -->
        <addEditDialog v-if="isOpen" :showDialog="isOpen" @closeDialog="closeDialog" :moldAddMore="moldAddMore"
            :buy-cycle="buyCycle"></addEditDialog>
        <basic-import v-if="isShowImport" title="导入" :isShow="isShowImport"
            templateUrl="/blade-desk/QA/CycleTestItem/download-excel-template"
            templateName="试验项目模板.xlsx"
            importUrl="/blade-desk/QA/CycleTestItem/import-excel"
            @closeDialog="closeDialog"></basic-import>
    </basic-container>
</template>
<script>
import addEditDialog from './components/addEditDialog.vue'
import basicImport from '@/components/basic-import/main.vue'
export default {
    components: {
        addEditDialog,
        basicImport
    },
    data() {
        return {
            isShowImport:false,
            loading: false,
            data: [],
            form: {},
            page: {
                pageSize: 10,
                currentPage: 1,
                total: 0,
            },
            option: {
                columnSort: true,
                tip: false,
                height: 'auto',
                align: 'center',
                calcHeight: 32,
                simplePage: false,
                searchShow: true,
                searchMenuSpan: 6,
                searchIcon: true,
                searchIndex: 3,
                tree: false,
                border: true,
                index: true,
                selection: false,
                viewBtn: false,
                addBtn: false,
                delBtn: false,
                editBtn: false,
                editBtnText: '修改',
                labelWidth: 140,
                menu: false,
                menuWidth: 200,
                dialogWidth: 1200,
                dialogClickModal: false,
                searchEnter: true,
                excelBtn: true,
                gridBtn: false,
                searchShowBtn: false,
                showOverflowTooltip: true,
                searchLabelPosition: 'left',
                searchGutter: 24,
                searchSpan: 6,
                menuAlign: 'left',
                gridBtn: false,
                searchMenuPosition: 'right',
                addBtnIcon: ' ',
                viewBtnIcon: ' ',
                delBtnIcon: ' ',
                editBtnIcon: ' ',
                searchShowBtn: false,
                column: [
                    {
                        label: '入库单号',
                        addDisabled: true,
                        prop: 'goodsCode',
                        span: 8,
                        overflow: true,
                        search: true,
                        hide: false,
                        order: 17,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入入库单号',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '物料编码',
                        prop: 'goodsCode',
                        span: 8,
                        overflow: true,
                        search: true,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入物料编码',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '物料名称',
                        prop: 'goodsName',
                        span: 8,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入物料名称',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '型号/牌号',
                        prop: 'mtltmrk',
                        span: 8,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入型号/牌号',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '质量编号',
                        prop: 'checkNo',
                        span: 8,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入质量编号',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '生产批次号',
                        prop: 'piNo',
                        span: 8,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入生产批次号',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '炉批号',
                        prop: 'stovePiNo',
                        span: 8,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入炉批号',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '生产标识',
                        prop: 'quantityLevel',
                        span: 8,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入生产标识',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '到期日期',
                        prop: 'scrapCycle',
                        span: 8,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入到期日期',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '入库数量',
                        prop: 'quantity',
                        span: 8,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入入库数量',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '计量单位',
                        prop: 'unitName',
                        span: 8,
                        addDisplay: false,
                        editDisplay: false,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入单位',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '入库仓库',
                        prop: 'shName',
                        type: 'select',
                        order: 15,
                        span: 8,
                        overflow: true,
                        search: true,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入入库仓库',
                                trigger: 'blur',
                            },
                        ],
                        dicData: [
                            { label: "仓库一", value: '001' },
                            { label: "仓库二", value: '002' },
                        ]
                    },
                    {
                        label: '入库库位',
                        prop: 'location',
                        span: 8,
                        addDisplay: false,
                        editDisplay: false,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入入库库位',
                                trigger: 'blur',
                            },
                        ],
                    },

                    // {
                    //     label: '货位号',
                    //     prop: 'cslId',
                    //     span: 8,
                    //     overflow: true,
                    //     search: false,
                    //     width: 140,
                    //     rules: [
                    //         {
                    //             required: true,
                    //             message: '请输入货位号',
                    //             trigger: 'blur',
                    //         },
                    //     ],
                    // },
                    {
                        label: '单价',
                        prop: 'unitPrice',
                        span: 8,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入单价',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '金额',
                        prop: 'abdMoney',
                        span: 8,
                        overflow: true,
                        search: false,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入金额',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '入库人',
                        prop: 'userName',
                        type: 'select',
                        order: 14,
                        span: 8,
                        overflow: true,
                        search: true,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入入库人',
                                trigger: 'blur',
                            },
                        ],
                        dicData: [
                            {
                                "jobName": "生产调度员",
                                "deptName": "外协业务交付管理室",
                                "deptId": 65,
                                "userName": "00188",
                                "userId": 441,
                                "userCode": "00188"
                            }, {
                                "jobName": "表面处理工",
                                "deptName": "复合镍班",
                                "deptId": 69,
                                "userName": "00460",
                                "userId": 224,
                                "userCode": "00460"
                            }, {
                                "jobName": "保管员",
                                "deptName": "零件管理班",
                                "deptId": 46,
                                "userName": "00660",
                                "userId": 322,
                                "userCode": "00660"
                            }
                        ],
                        props: {
                            label: 'userName',
                            value: '00460'
                        }
                    },
                    {
                        label: '入库时间',
                        prop: 'createTime',
                        type: 'date',
                        searchRange: true,
                        startPlaceholder: '开始时间',
                        endPlaceholder: "结束时间",
                        span: 8,
                        order: 16,
                        overflow: true,
                        search: true,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入入库时间',
                                trigger: 'blur',
                            },
                        ],
                    },
                    {
                        label: '入库原因',
                        prop: 'warehousingReason',
                        type: 'select',
                        span: 8,
                        order: 13,
                        overflow: true,
                        search: true,
                        width: 140,
                        rules: [
                            {
                                required: true,
                                message: '请输入入库原因',
                                trigger: 'blur',
                            },
                        ],
                        props: {
                            label: 'value',
                            value: 'warehousingReason'
                        },
                        dicData: [
                            { warehousingReason: 1, value: '余料退库' },
                            { warehousingReason: 2, value: '库转移' },
                            { warehousingReason: 3, value: '计划取消退库' },
                            { warehousingReason: 4, value: '领用入库' },
                            { warehousingReason: 5, value: '料头入库' },
                            { warehousingReason: 6, value: '物料入库' }
                        ]
                    },
                ]
            },
            isOpen: false,
            moldAddMore: false,
        }
    },
    mounted() {

    },
    methods: {
        closeDialog(){
            this.isOpen = false
            this.isShowImport = false
        }, 
        handleImport() {    
            this.isShowImport = true
        },
        // 新增
        handleAdd() {
            this.isOpen = true
            this.moldAddMore = true
        },
        // 弹窗打开前
        beforeOpen(done, type, loading) {
            if (type == 'add') {
                let date = new Date()
                let year = date.getFullYear()
                let month = (date.getMonth() + 1) < 10 ? '0' + (date.getMonth() + 1) : (date.getMonth() + 1)
                let day = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
                let newDate = year + '-' + month + day
                this.form.createTime = newDate
                done()
            }
        },
        rowSave(row, done, loading) {
            done()
        },
        onLoad() {
            this.data = [
                {
                    "abdId": 1840,
                    "abdMoney": 20.0,
                    "allMoney": 20000.0,
                    "barCode": null,
                    "buyCode": null,
                    "checkNo": "CK001",
                    "coStorageLocation": {
                        "coStorehouse": {
                            "codeAndName": null,
                            "createTime": "2023-12-25 10:08:43",
                            "deleted": false,
                            "factoryId": 41,
                            "memo": null,
                            "saveUser": {
                                "accountId": null,
                                "card": null,
                                "createTime": "2023-04-06",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 41,
                                "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"
                                },
                                "ucUserId": null,
                                "updateTime": "2023-04-06 16:23:38",
                                "userCode": "0001",
                                "userId": 521,
                                "userName": "测试",
                                "userSex": 1,
                                "userSources": "测试",
                                "userString": "521:A:测试",
                                "userType": "A",
                                "yearsOfService": null
                            },
                            "shCode": "RB001",
                            "shId": 183,
                            "shLevel": null,
                            "shName": "石墨模",
                            "toolingType": null,
                            "toolingTypeStr": null,
                            "type": 0,
                            "typeStr": "模具库",
                            "updateTime": null
                        },
                        "cslId": 221,
                        "deleted": false,
                        "goodsCode": "21E543-6108-B1-N",
                        "goodsName": null,
                        "location": "RB001SM01",
                        "mtltmrk": null,
                        "specifications": null
                    },
                    "coStorehouse": null,
                    "deptId": null,
                    "goods": {
                        "allGoodsQuantity": null,
                        "batch": null,
                        "bomQuantity": null,
                        "buyQuantity": null,
                        "cavityno": null,
                        "checkoutCode": "3333",
                        "coGoodsClass": null,
                        "coStorageLocation": null,
                        "cplb": null,
                        "createTime": "2023-07-15 16:18:30",
                        "curQuantity": 684.0,
                        "cycle": null,
                        "deleted": false,
                        "deliveryDate": null,
                        "dept": null,
                        "drawingNo": null,
                        "ecnno": null,
                        "enditem": 0,
                        "erpQuantity": null,
                        "goodsCode": "21E543-6108-B1-N",
                        "goodsCodeAndGoodsName": "null——21E543-6108-B1-N——石墨模",
                        "goodsId": 167,
                        "goodsName": "石墨模",
                        "grade": null,
                        "houseQuantity": null,
                        "lockQuantity": 0.0,
                        "madeIn": null,
                        "matbigclassify": null,
                        "matsmallclassify": null,
                        "maxNum": 300.0,
                        "memo": null,
                        "minNum": 50.0,
                        "mtlsgrt": 0.0,
                        "mtltmrk": "232",
                        "mustCheck": null,
                        "newGoodsName": null,
                        "newSpecifications": null,
                        "numAcc": null,
                        "onthewayQuantity": 0.0,
                        "partLink": null,
                        "piNo": null,
                        "price": null,
                        "priority": null,
                        "prtType": "零件",
                        "prtrevedit": null,
                        "prtstd": null,
                        "prtwt": 0.0,
                        "purchaseQuantity": 100.0,
                        "releaseno": null,
                        "releasenoTime": "2023-03-23 00:00:00",
                        "remark": null,
                        "rlsId": null,
                        "singlePieceQuota": null,
                        "source": null,
                        "special": null,
                        "specifications": null,
                        "syQuantity": null,
                        "trademark": null,
                        "unitName": "每个",
                        "updateTime": "2023-07-15 16:18:30",
                        "used": true
                    },
                    "keeper": null,
                    "memo": null,
                    "modelOrBrandStr": "232/null",
                    "moldBaseMaterial": false,
                    "moldNum": null,
                    "partsCode": null,
                    "piNo": "Y20231225001",
                    "pvBomRequest": null,
                    "quantity": 1000.0,
                    "quantityLevel": null,
                    "reason": null,
                    "recordType": null,
                    "rlsId": null,
                    "scrapCycle": null,
                    "scrap_cycle": null,
                    "stAccBill": {
                        "abId": 3420,
                        "billCode": "202312250001",
                        "billDate": "2023-12-25",
                        "billFlag": 3,
                        "billFlagStr": "其他入库",
                        "coStorehouse": {
                            "codeAndName": null,
                            "createTime": "2023-12-25 10:08:43",
                            "deleted": false,
                            "factoryId": 41,
                            "memo": null,
                            "saveUser": {
                                "accountId": null,
                                "card": null,
                                "createTime": "2023-04-06",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 41,
                                "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"
                                },
                                "ucUserId": null,
                                "updateTime": "2023-04-06 16:23:38",
                                "userCode": "0001",
                                "userId": 521,
                                "userName": "测试",
                                "userSex": 1,
                                "userSources": "测试",
                                "userString": "521:A:测试",
                                "userType": "A",
                                "yearsOfService": null
                            },
                            "shCode": "RB001",
                            "shId": 183,
                            "shLevel": null,
                            "shName": "石墨模",
                            "toolingType": null,
                            "toolingTypeStr": null,
                            "type": 0,
                            "typeStr": "模具库",
                            "updateTime": null
                        },
                        "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"
                            },
                            "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",
                            "yearsOfService": null
                        },
                        "createTime": "2023-12-25",
                        "factoryId": 41,
                        "pfUserInfo": null,
                        "updateTime": null
                    },
                    "stovePiNo": null,
                    "thickness": null,
                    "unitPrice": null,
                    "warehousingDate": null,
                    "woCode": null
                },
                {
                    "abdId": 1841,
                    "abdMoney": 15.0,
                    "allMoney": 45000.0,
                    "barCode": null,
                    "buyCode": null,
                    "checkNo": "ck001",
                    "coStorageLocation": {
                        "coStorehouse": {
                            "codeAndName": null,
                            "createTime": "2023-12-25 10:08:43",
                            "deleted": false,
                            "factoryId": 41,
                            "memo": null,
                            "saveUser": {
                                "accountId": null,
                                "card": null,
                                "createTime": "2023-04-06",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 41,
                                "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"
                                },
                                "ucUserId": null,
                                "updateTime": "2023-04-06 16:23:38",
                                "userCode": "0001",
                                "userId": 521,
                                "userName": "测试",
                                "userSex": 1,
                                "userSources": "测试",
                                "userString": "521:A:测试",
                                "userType": "A",
                                "yearsOfService": null
                            },
                            "shCode": "RB001",
                            "shId": 183,
                            "shLevel": null,
                            "shName": "石墨模",
                            "toolingType": null,
                            "toolingTypeStr": null,
                            "type": 0,
                            "typeStr": "模具库",
                            "updateTime": null
                        },
                        "cslId": 222,
                        "deleted": false,
                        "goodsCode": "21E543-6108-B1",
                        "goodsName": null,
                        "location": "RB001SM02",
                        "mtltmrk": null,
                        "specifications": null
                    },
                    "coStorehouse": null,
                    "deptId": null,
                    "goods": {
                        "allGoodsQuantity": null,
                        "batch": null,
                        "bomQuantity": null,
                        "buyQuantity": null,
                        "cavityno": null,
                        "checkoutCode": "2222",
                        "coGoodsClass": null,
                        "coStorageLocation": null,
                        "cplb": null,
                        "createTime": "2023-07-15 16:18:30",
                        "curQuantity": 2999.0,
                        "cycle": null,
                        "deleted": false,
                        "deliveryDate": null,
                        "dept": null,
                        "drawingNo": null,
                        "ecnno": null,
                        "enditem": 0,
                        "erpQuantity": null,
                        "goodsCode": "21E543-6108-B1",
                        "goodsCodeAndGoodsName": "null——21E543-6108-B1——石墨模",
                        "goodsId": 170,
                        "goodsName": "石墨模",
                        "grade": null,
                        "houseQuantity": null,
                        "lockQuantity": 0.0,
                        "madeIn": null,
                        "matbigclassify": null,
                        "matsmallclassify": null,
                        "maxNum": 300.0,
                        "memo": null,
                        "minNum": 50.0,
                        "mtlsgrt": null,
                        "mtltmrk": "4",
                        "mustCheck": 0,
                        "newGoodsName": null,
                        "newSpecifications": null,
                        "numAcc": null,
                        "onthewayQuantity": 0.0,
                        "partLink": null,
                        "piNo": null,
                        "price": null,
                        "priority": null,
                        "prtType": "零件",
                        "prtrevedit": null,
                        "prtstd": null,
                        "prtwt": 0.0,
                        "purchaseQuantity": 0.0,
                        "releaseno": null,
                        "releasenoTime": null,
                        "remark": null,
                        "rlsId": null,
                        "singlePieceQuota": null,
                        "source": null,
                        "special": null,
                        "specifications": null,
                        "syQuantity": null,
                        "trademark": null,
                        "unitName": "每个",
                        "updateTime": "2023-07-15 16:18:30",
                        "used": true
                    },
                    "keeper": null,
                    "memo": null,
                    "modelOrBrandStr": "4/null",
                    "moldBaseMaterial": false,
                    "moldNum": null,
                    "partsCode": null,
                    "piNo": "Y20231225001",
                    "pvBomRequest": null,
                    "quantity": 3000.0,
                    "quantityLevel": null,
                    "reason": null,
                    "recordType": null,
                    "rlsId": null,
                    "scrapCycle": null,
                    "scrap_cycle": null,
                    "stAccBill": {
                        "abId": 3421,
                        "billCode": "202312250002",
                        "billDate": "2023-12-25",
                        "billFlag": 3,
                        "billFlagStr": "其他入库",
                        "coStorehouse": {
                            "codeAndName": null,
                            "createTime": "2023-12-25 10:08:43",
                            "deleted": false,
                            "factoryId": 41,
                            "memo": null,
                            "saveUser": {
                                "accountId": null,
                                "card": null,
                                "createTime": "2023-04-06",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 41,
                                "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"
                                },
                                "ucUserId": null,
                                "updateTime": "2023-04-06 16:23:38",
                                "userCode": "0001",
                                "userId": 521,
                                "userName": "测试",
                                "userSex": 1,
                                "userSources": "测试",
                                "userString": "521:A:测试",
                                "userType": "A",
                                "yearsOfService": null
                            },
                            "shCode": "RB001",
                            "shId": 183,
                            "shLevel": null,
                            "shName": "石墨模",
                            "toolingType": null,
                            "toolingTypeStr": null,
                            "type": 0,
                            "typeStr": "模具库",
                            "updateTime": null
                        },
                        "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"
                            },
                            "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",
                            "yearsOfService": null
                        },
                        "createTime": "2023-12-25",
                        "factoryId": 41,
                        "pfUserInfo": null,
                        "updateTime": null
                    },
                    "stovePiNo": null,
                    "thickness": null,
                    "unitPrice": null,
                    "warehousingDate": null,
                    "woCode": null
                },
                {
                    "abdId": 1842,
                    "abdMoney": 30.0,
                    "allMoney": 60000.0,
                    "barCode": null,
                    "buyCode": null,
                    "checkNo": "CK002",
                    "coStorageLocation": {
                        "coStorehouse": {
                            "codeAndName": null,
                            "createTime": "2023-12-25 10:09:44",
                            "deleted": false,
                            "factoryId": 41,
                            "memo": null,
                            "saveUser": {
                                "accountId": null,
                                "card": null,
                                "createTime": "2023-02-08",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 41,
                                "head": 0,
                                "jobName": "主任",
                                "keyValue": 453,
                                "ldapName": "00075",
                                "mail": null,
                                "mobile": null,
                                "pfDepartment": {
                                    "appLink": null,
                                    "createTime": "2023-02-08",
                                    "deleted": false,
                                    "deptCode": "26",
                                    "deptId": 57,
                                    "deptName": "外协业务中心",
                                    "deptType": 1,
                                    "deptTypeTitle": "厂",
                                    "keyValue": 57,
                                    "memo": null,
                                    "orders": "26",
                                    "parentDeptId": 41,
                                    "parentPath": null,
                                    "ucDeptId": null,
                                    "updateTime": "2023-02-08 16:38:31"
                                },
                                "ucUserId": null,
                                "updateTime": "2023-02-08 17:25:13",
                                "userCode": "00075",
                                "userId": 453,
                                "userName": "测试1",
                                "userSex": 1,
                                "userSources": "测试1",
                                "userString": "453:A:测试1",
                                "userType": "A",
                                "yearsOfService": null
                            },
                            "shCode": "RB002",
                            "shId": 184,
                            "shLevel": null,
                            "shName": "锡铂金库",
                            "toolingType": null,
                            "toolingTypeStr": null,
                            "type": 0,
                            "typeStr": "模具库",
                            "updateTime": "2023-12-25 10:09:58"
                        },
                        "cslId": 223,
                        "deleted": false,
                        "goodsCode": "04-05-025",
                        "goodsName": null,
                        "location": "RB002XBJ01",
                        "mtltmrk": null,
                        "specifications": null
                    },
                    "coStorehouse": null,
                    "deptId": null,
                    "goods": {
                        "allGoodsQuantity": null,
                        "batch": null,
                        "bomQuantity": null,
                        "buyQuantity": null,
                        "cavityno": null,
                        "checkoutCode": "1111",
                        "coGoodsClass": null,
                        "coStorageLocation": null,
                        "cplb": null,
                        "createTime": "2023-07-15 16:18:30",
                        "curQuantity": 1950.0,
                        "cycle": null,
                        "deleted": false,
                        "deliveryDate": null,
                        "dept": null,
                        "drawingNo": null,
                        "ecnno": null,
                        "enditem": 0,
                        "erpQuantity": null,
                        "goodsCode": "04-05-025",
                        "goodsCodeAndGoodsName": "null——04-05-025——锡铂金",
                        "goodsId": 169,
                        "goodsName": "锡铂金",
                        "grade": null,
                        "houseQuantity": null,
                        "lockQuantity": 0.0,
                        "madeIn": null,
                        "matbigclassify": null,
                        "matsmallclassify": null,
                        "maxNum": 300.0,
                        "memo": null,
                        "minNum": 50.0,
                        "mtlsgrt": null,
                        "mtltmrk": "23",
                        "mustCheck": 0,
                        "newGoodsName": null,
                        "newSpecifications": null,
                        "numAcc": null,
                        "onthewayQuantity": 0.0,
                        "partLink": null,
                        "piNo": null,
                        "price": null,
                        "priority": null,
                        "prtType": "零件",
                        "prtrevedit": null,
                        "prtstd": null,
                        "prtwt": 0.0,
                        "purchaseQuantity": 100.0,
                        "releaseno": null,
                        "releasenoTime": null,
                        "remark": null,
                        "rlsId": null,
                        "singlePieceQuota": null,
                        "source": null,
                        "special": null,
                        "specifications": "100克/瓶",
                        "syQuantity": null,
                        "trademark": null,
                        "unitName": "每克",
                        "updateTime": "2023-07-15 16:18:30",
                        "used": true
                    },
                    "keeper": null,
                    "memo": null,
                    "modelOrBrandStr": "23/null",
                    "moldBaseMaterial": false,
                    "moldNum": null,
                    "partsCode": null,
                    "piNo": "Y20231225001",
                    "pvBomRequest": null,
                    "quantity": 2000.0,
                    "quantityLevel": null,
                    "reason": null,
                    "recordType": null,
                    "rlsId": null,
                    "scrapCycle": null,
                    "scrap_cycle": null,
                    "stAccBill": {
                        "abId": 3422,
                        "billCode": "202312250003",
                        "billDate": "2023-12-25",
                        "billFlag": 3,
                        "billFlagStr": "其他入库",
                        "coStorehouse": {
                            "codeAndName": null,
                            "createTime": "2023-12-25 10:09:44",
                            "deleted": false,
                            "factoryId": 41,
                            "memo": null,
                            "saveUser": {
                                "accountId": null,
                                "card": null,
                                "createTime": "2023-02-08",
                                "curStatus": 1,
                                "deleted": false,
                                "deptName": null,
                                "dimissionTime": null,
                                "factoryId": 41,
                                "head": 0,
                                "jobName": "主任",
                                "keyValue": 453,
                                "ldapName": "00075",
                                "mail": null,
                                "mobile": null,
                                "pfDepartment": {
                                    "appLink": null,
                                    "createTime": "2023-02-08",
                                    "deleted": false,
                                    "deptCode": "26",
                                    "deptId": 57,
                                    "deptName": "外协业务中心",
                                    "deptType": 1,
                                    "deptTypeTitle": "厂",
                                    "keyValue": 57,
                                    "memo": null,
                                    "orders": "26",
                                    "parentDeptId": 41,
                                    "parentPath": null,
                                    "ucDeptId": null,
                                    "updateTime": "2023-02-08 16:38:31"
                                },
                                "ucUserId": null,
                                "updateTime": "2023-02-08 17:25:13",
                                "userCode": "00075",
                                "userId": 453,
                                "userName": "测试1",
                                "userSex": 1,
                                "userSources": "测试1",
                                "userString": "453:A:测试1",
                                "userType": "A",
                                "yearsOfService": null
                            },
                            "shCode": "RB002",
                            "shId": 184,
                            "shLevel": null,
                            "shName": "锡铂金库",
                            "toolingType": null,
                            "toolingTypeStr": null,
                            "type": 0,
                            "typeStr": "模具库",
                            "updateTime": "2023-12-25 10:09:58"
                        },
                        "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"
                            },
                            "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",
                            "yearsOfService": null
                        },
                        "createTime": "2023-12-25",
                        "factoryId": 41,
                        "pfUserInfo": null,
                        "updateTime": null
                    },
                    "stovePiNo": null,
                    "thickness": null,
                    "unitPrice": null,
                    "warehousingDate": null,
                    "woCode": null
                }
            ]
            this.page.total = this.data.length
        }
    }
}
</script>