var config = {

    schemeType_main : "1",

    options_schemeType: [
        { label: '主柜', value: '1' }, { label: '抽屉', value: '2' }, { label: '镜柜', value: '3' }
    ],

    expressionsDefines: {

        "主柜长度": ({ data }) => {
            return data.main_cabinet_length;
        },

        "主柜宽度": ({ data }) => {
            return data.main_cabinet_width;
        },


        "主柜高度": ({ data }) => {
            return data.main_cabinet_height;
        },


        "抽屉长度": ({ data }) => {
            return data.long;
        },

        "抽屉宽度": ({ data }) => {
            return data.width;
        },


        "抽屉高度": ({ data }) => {
            return data.height;
        },

        "部件的数量": ({ row }) => {
            return row.quantity;
        },
        "板材的长": ({ row }) => {
            return row.long;
        },
        "板材的宽": ({ row }) => {
            return row.width;
        },
        "板材的厚": ({ row }) => {
            return row.material_default_height;
        },

        "主材利用率": ({ row }) => {
            return row.rate_materials;
        },
        "油漆面": ({ row }) => {
            return row.paint_number;
        },
        "封边条用量合计": ({ data }) => {
            return data.fittings_total_seal;
        },
        "板材用量合计": ({ data }) => {
            return data.fittings_total_board_length;
        },
        "板材数量合计": ({ data }) => {
            return data.fittings_total_quantity;
        },
        "油漆面积合计": ({ data }) => {
            return data.fittings_total_paint_area;
        },


        "配件总费用": ({ data }) => {
            return data.parts_total_amount;
        },
        "包装总费用": ({ data }) => {
            return data.packaging_total_amount;
        },
        "免漆材料总费用": ({ data }) => {
            return data.material_total_amount;
        },
        "免漆人工总费用": ({ data }) => {
            return data.labor_total_amount;
        },
        "油漆材料总费用": ({ data }) => {
            return data.paintMaterial_total_amount;
        },
        "油漆人工总费用": ({ data }) => {
            return data.paintLabor_total_amount;
        },

        "免漆抽屉总费用": ({ data }) => {
            return data.drawer_total_amount;
        },
        "油漆抽屉总费用": ({ data }) => {
            return data.drawer_total_paint_amount;
        },


        "包装的长": ({ row }) => {
            return row.long;
        },
        "包装的宽": ({ row }) => {
            return row.width;
        },
        "包装的厚": ({ row }) => {
            return row.height;
        },
        "包装的数量": ({ row }) => {
            return row.quantity;
        },
        "包装的单价": ({ row }) => {
            return row.price;
        },



        "材料的用量": ({ row }) => {
            return row.quantity;
        },
        "材料的单价": ({ row }) => {
            return row.price;
        },

        "行的数量": ({ row }) => {
            return row.quantity;
        },
        "行的单价": ({ row }) => {
            return row.price;
        },
        
        "行的厚": ({ row }) => {
            return row.height;
        },

        "无妨布袋的默认单价" : ({ data }) => {
            if(data.main_cabinet_length +60 < 1000){
                return 3;
            }

            return 4;
        },

    },




    expressions_list: [

    ],



    table_min_count: 1,


   getGuid: () => {
        return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
            var r = Math.random() * 16 | 0,
                v = c == 'x' ? r : (r & 0x3 | 0x8);
            return v.toString(16);
        }); 
    },

    printTemplate:{"panels":[{"index":0,"name":1,"height":210,"width":296.6,"paperHeader":46.5,"paperFooter":573.4996628455832,"printElements":[{"options":{"left":339,"top":18,"height":16,"width":103.5,"field":"main_cabinet_length","fontSize":14,"fontWeight":"700","title":"规格","coordinateSync":false,"widthHeightSync":false,"qrCodeLevel":0},"printElementType":{"title":"主柜规格","type":"text"}},{"options":{"left":138,"top":18,"height":15,"width":166.5,"field":"project_name","fontSize":14,"fontWeight":"700","title":"工程名","right":282.75,"bottom":38.75,"vCenter":222.75,"hCenter":30.25,"coordinateSync":false,"widthHeightSync":false,"qrCodeLevel":0},"printElementType":{"title":"工程名","type":"text"}},{"options":{"left":442.5,"top":18,"height":16,"width":42,"field":"main_cabinet_width","fontSize":14,"fontWeight":"700","textAlign":"center","hideTitle":true,"title":"main_cabinet_width","right":458.25,"bottom":28.75,"vCenter":398.25,"hCenter":20.75,"coordinateSync":false,"widthHeightSync":false,"qrCodeLevel":0},"printElementType":{"title":"main_cabinet_width","type":"text"}},{"options":{"left":484.5,"top":18,"height":16,"width":31.5,"field":"main_cabinet_height","fontSize":14,"fontWeight":"700","textAlign":"center","hideTitle":true,"title":"main_cabinet_height","coordinateSync":false,"widthHeightSync":false,"qrCodeLevel":0},"printElementType":{"title":"main_cabinet_height","type":"text"}},{"options":{"left":15,"top":18,"height":16,"width":88.5,"field":"mode_name","fontSize":14,"fontWeight":"700","title":"型号","right":102.75,"bottom":34,"vCenter":58.5,"hCenter":26,"coordinateSync":false,"widthHeightSync":false,"qrCodeLevel":0},"printElementType":{"title":"型号","type":"text"}},{"options":{"left":615,"top":18,"height":16,"width":199.5,"field":"customer","fontSize":14,"fontWeight":"700","textAlign":"right","title":"客户名","right":749.25,"bottom":34,"vCenter":681.75,"hCenter":26,"coordinateSync":false,"widthHeightSync":false,"qrCodeLevel":0},"printElementType":{"title":"客户名","type":"text"}},{"options":{"left":15,"top":54,"height":72,"width":801,"field":"fittings","fields":[{"field":"fittings","text":"部件"},{"field":"material","text":"材料（免漆）"},{"field":"paint_material","text":"材料（油漆）"},{"field":"long","text":"长"},{"field":"width","text":"宽"},{"field":"height","text":"厚"},{"field":"quantity","text":"数量"},{"field":"banding","text":"封边"},{"field":"seal","text":"封边用量"},{"field":"rate_materials","text":"主材利用率"},{"field":"paint_number","text":"油漆面"},{"field":"board_length","text":"板材用量(块)"},{"field":"real_quantity","text":"实木用量(立方)"},{"field":"paint_area","text":"油漆面积(㎡)"},{"field":"remark","text":"备注"}],"right":564.25,"bottom":97.5,"vCenter":289.25,"hCenter":73.5,"coordinateSync":false,"widthHeightSync":false,"tableHeaderRepeat":"page","columns":[[{"width":150,"title":"部件","field":"fittings","checked":true,"columnId":"fittings","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"材料（免漆）","field":"material","checked":true,"columnId":"material","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"材料（油漆）","field":"paint_material","checked":true,"columnId":"paint_material","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"长","field":"long","checked":true,"columnId":"long","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"宽","field":"width","checked":true,"columnId":"width","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"厚","field":"height","checked":true,"columnId":"height","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"数量","field":"quantity","checked":true,"columnId":"quantity","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"},{"width":150,"title":"封边","field":"banding","checked":true,"columnId":"banding","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"封边用量","field":"seal","checked":true,"columnId":"seal","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"},{"width":150,"title":"主材利用率","field":"rate_materials","checked":true,"columnId":"rate_materials","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150.50025000000002,"title":"油漆面","field":"paint_number","checked":true,"columnId":"paint_number","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":149.49974999999998,"title":"板材用量(块)","field":"board_length","checked":true,"columnId":"board_length","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"},{"width":149.99174999999994,"title":"实木用量(立方)","field":"real_quantity","checked":true,"columnId":"real_quantity","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150.00825000000006,"title":"油漆面积(㎡)","field":"paint_area","checked":true,"columnId":"paint_area","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"},{"width":150,"title":"备注","field":"remark","checked":true,"columnId":"remark","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0}]]},"printElementType":{"title":"材料部分","type":"table","editable":true,"columnDisplayEditable":true,"columnDisplayIndexEditable":true,"columnTitleEditable":true,"columnResizable":true,"columnAlignEditable":true,"isEnableEditField":true,"isEnableContextMenu":true,"isEnableInsertRow":true,"isEnableDeleteRow":true,"isEnableInsertColumn":true,"isEnableDeleteColumn":true,"isEnableMergeCell":true}},{"options":{"left":13.5,"top":130.5,"height":82.5,"width":396,"tableFooterRepeat":"last","field":"parts","tableHeaderRepeat":"page","fields":[{"field":"parts","text":"配件"},{"field":"spec","text":"规格"},{"field":"quantity","text":"数量"},{"field":"price","text":"单价"},{"field":"amount","text":"金额"}],"right":406.5,"bottom":207,"vCenter":208.5,"hCenter":168.75,"coordinateSync":false,"widthHeightSync":false,"columns":[[{"width":150,"title":"配件部分","checked":true,"fixed":false,"rowspan":1,"colspan":5,"halign":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummary":""}],[{"width":150,"title":"配件","field":"parts","checked":true,"columnId":"parts","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"规格","field":"spec","checked":true,"columnId":"spec","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"数量","field":"quantity","checked":true,"columnId":"quantity","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"单价","field":"price","checked":true,"columnId":"price","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"金额","field":"amount","checked":true,"columnId":"amount","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"}]]},"printElementType":{"title":"配件部分","type":"table","editable":true,"columnDisplayEditable":true,"columnDisplayIndexEditable":true,"columnTitleEditable":true,"columnResizable":true,"columnAlignEditable":true,"isEnableEditField":true,"isEnableContextMenu":true,"isEnableInsertRow":true,"isEnableDeleteRow":true,"isEnableInsertColumn":true,"isEnableDeleteColumn":true,"isEnableMergeCell":true}},{"options":{"left":415.5,"top":130.5,"height":84,"width":393,"tableFooterRepeat":"last","field":"packaging","tableHeaderRepeat":"page","fields":[{"field":"packaging","text":"包装"},{"field":"long","text":"长"},{"field":"width","text":"宽"},{"field":"height","text":"高"},{"field":"quantity","text":"数量"},{"field":"price","text":"单价"},{"field":"amount","text":"金额"}],"coordinateSync":false,"widthHeightSync":false,"right":810,"bottom":205.5,"vCenter":613.5,"hCenter":168,"columns":[[{"width":150,"title":"包装部分\n","checked":true,"fixed":false,"rowspan":1,"colspan":7,"halign":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummary":""}],[{"width":150,"title":"包装","field":"packaging","checked":true,"columnId":"packaging","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":149.57025,"title":"长","field":"long","checked":true,"columnId":"long","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150.42975,"title":"宽","field":"width","checked":true,"columnId":"width","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"高","field":"height","checked":true,"columnId":"height","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"数量","field":"quantity","checked":true,"columnId":"quantity","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"单价","field":"price","checked":true,"columnId":"price","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"金额","field":"amount","checked":true,"columnId":"amount","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":"  ","tableSummary":"sum"}]]},"printElementType":{"title":"包装部分","type":"table","editable":true,"columnDisplayEditable":true,"columnDisplayIndexEditable":true,"columnTitleEditable":true,"columnResizable":true,"columnAlignEditable":true,"isEnableEditField":true,"isEnableContextMenu":true,"isEnableInsertRow":true,"isEnableDeleteRow":true,"isEnableInsertColumn":true,"isEnableDeleteColumn":true,"isEnableMergeCell":true}},{"options":{"left":13.5,"top":232.5,"height":9.75,"width":567,"title":"成本核算表（免漆）整装","right":580.5,"bottom":242.25,"vCenter":297,"hCenter":237.375,"coordinateSync":false,"widthHeightSync":false,"fontSize":18,"fontWeight":"bolder","textAlign":"center","qrCodeLevel":0},"printElementType":{"title":"文本","type":"text"}},{"options":{"left":13.5,"top":250.5,"height":151.5,"width":289.5,"tableFooterRepeat":"last","field":"labor","tableHeaderRepeat":"page","fields":[{"field":"labor","text":"项目"},{"field":"amount","text":"金额"}],"coordinateSync":false,"widthHeightSync":false,"right":213,"bottom":309,"vCenter":113.25,"hCenter":279.75,"columns":[[{"width":150,"title":"人工费用","checked":true,"fixed":false,"rowspan":1,"colspan":2,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummary":""}],[{"width":149.750025,"title":"项目","field":"labor","checked":true,"columnId":"labor","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150.249975,"title":"金额","field":"amount","checked":true,"columnId":"amount","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"}]]},"printElementType":{"title":"labor","type":"table","editable":true,"columnDisplayEditable":true,"columnDisplayIndexEditable":true,"columnTitleEditable":true,"columnResizable":true,"columnAlignEditable":true,"isEnableEditField":true,"isEnableContextMenu":true,"isEnableInsertRow":true,"isEnableDeleteRow":true,"isEnableInsertColumn":true,"isEnableDeleteColumn":true,"isEnableMergeCell":true}},{"options":{"left":313.5,"top":250.5,"height":157.5,"width":315,"tableFooterRepeat":"last","field":"material","tableHeaderRepeat":"page","fields":[{"field":"material","text":"材料"},{"field":"quantity","text":"总用量"},{"field":"price","text":"单价"},{"field":"amount","text":"金额"}],"right":563.25,"bottom":308.25,"vCenter":438,"hCenter":279,"coordinateSync":false,"widthHeightSync":false,"columns":[[{"width":150,"title":"材料费用 ","checked":true,"fixed":false,"rowspan":1,"colspan":4,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummary":""}],[{"width":150,"title":"材料","field":"material","checked":true,"columnId":"material","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":151.00875,"title":"总用量","field":"quantity","checked":true,"columnId":"quantity","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":148.99125,"title":"单价","field":"price","checked":true,"columnId":"price","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"金额","field":"amount","checked":true,"columnId":"amount","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"}]]},"printElementType":{"title":"material","type":"table","editable":true,"columnDisplayEditable":true,"columnDisplayIndexEditable":true,"columnTitleEditable":true,"columnResizable":true,"columnAlignEditable":true,"isEnableEditField":true,"isEnableContextMenu":true,"isEnableInsertRow":true,"isEnableDeleteRow":true,"isEnableInsertColumn":true,"isEnableDeleteColumn":true,"isEnableMergeCell":true}},{"options":{"left":633,"top":250.5,"height":165,"width":183,"tableFooterRepeat":"last","field":"expense","tableHeaderRepeat":"page","fields":[{"field":"item_name","text":"项目"},{"field":"amount","text":"金额"}],"coordinateSync":false,"widthHeightSync":false,"right":813,"bottom":310.5,"vCenter":723,"hCenter":280.5,"columns":[[{"width":150,"title":"费用合计","checked":true,"fixed":false,"rowspan":1,"colspan":2,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummary":""}],[{"width":149.75025,"title":"项目","field":"item_name","checked":true,"columnId":"item_name","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150.24975,"title":"金额","field":"amount","checked":true,"columnId":"amount","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"}]]},"printElementType":{"title":"expense","type":"table","editable":true,"columnDisplayEditable":true,"columnDisplayIndexEditable":true,"columnTitleEditable":true,"columnResizable":true,"columnAlignEditable":true,"isEnableEditField":true,"isEnableContextMenu":true,"isEnableInsertRow":true,"isEnableDeleteRow":true,"isEnableInsertColumn":true,"isEnableDeleteColumn":true,"isEnableMergeCell":true}},{"options":{"left":6,"top":423,"height":9.75,"width":567,"title":"成本核算表（油漆）","right":578.25,"bottom":346.5,"vCenter":294.75,"hCenter":341.625,"coordinateSync":false,"widthHeightSync":false,"fontSize":18,"fontWeight":"bolder","textAlign":"center","qrCodeLevel":0},"printElementType":{"title":"文本","type":"text"}},{"options":{"left":6,"top":439.5,"height":111,"width":291,"tableFooterRepeat":"last","field":"paintLabor","tableHeaderRepeat":"page","fields":[{"field":"labor","text":"项目"},{"field":"amount","text":"金额"}],"coordinateSync":false,"widthHeightSync":false,"right":135.75,"bottom":499.5,"vCenter":72.75,"hCenter":456,"columns":[[{"width":150,"title":"人工费用","checked":true,"fixed":false,"rowspan":1,"colspan":2,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummary":""}],[{"width":150,"title":"项目","field":"labor","checked":true,"columnId":"labor","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummary":""},{"width":150,"title":"金额","field":"amount","checked":true,"columnId":"amount","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"}]]},"printElementType":{"title":"paintLabor","type":"table","editable":true,"columnDisplayEditable":true,"columnDisplayIndexEditable":true,"columnTitleEditable":true,"columnResizable":true,"columnAlignEditable":true,"isEnableEditField":true,"isEnableContextMenu":true,"isEnableInsertRow":true,"isEnableDeleteRow":true,"isEnableInsertColumn":true,"isEnableDeleteColumn":true,"isEnableMergeCell":true}},{"options":{"left":633,"top":439.5,"height":111,"width":183,"tableFooterRepeat":"last","field":"paintExpense","tableHeaderRepeat":"page","fields":[{"field":"item_name","text":"项目"},{"field":"amount","text":"金额"}],"coordinateSync":false,"widthHeightSync":false,"right":817.5,"bottom":535.5,"vCenter":726,"hCenter":487.5,"columns":[[{"width":150,"title":"费用合计","checked":true,"fixed":false,"rowspan":1,"colspan":2,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummary":""}],[{"width":150,"title":"项目","field":"item_name","checked":true,"columnId":"item_name","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"金额","field":"amount","checked":true,"columnId":"amount","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"}]]},"printElementType":{"title":"paintExpense","type":"table","editable":true,"columnDisplayEditable":true,"columnDisplayIndexEditable":true,"columnTitleEditable":true,"columnResizable":true,"columnAlignEditable":true,"isEnableEditField":true,"isEnableContextMenu":true,"isEnableInsertRow":true,"isEnableDeleteRow":true,"isEnableInsertColumn":true,"isEnableDeleteColumn":true,"isEnableMergeCell":true}},{"options":{"left":313.5,"top":439.5,"height":108,"width":313.5,"tableFooterRepeat":"last","field":"paintMaterial","tableHeaderRepeat":"page","fields":[{"field":"material","text":"材料"},{"field":"quantity","text":"总用量"},{"field":"price","text":"单价"},{"field":"amount","text":"金额"}],"coordinateSync":false,"widthHeightSync":false,"right":626.25,"bottom":517.5,"vCenter":469.5,"hCenter":478.5,"columns":[[{"width":150,"title":"材料费用 ","checked":true,"fixed":false,"rowspan":1,"colspan":4,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummary":""}],[{"width":184.93725,"title":"材料","field":"material","checked":true,"columnId":"material","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":115.06275,"title":"总用量","field":"quantity","checked":true,"columnId":"quantity","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"单价","field":"price","checked":true,"columnId":"price","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":30,"tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0},{"width":150,"title":"金额","field":"amount","checked":true,"columnId":"amount","fixed":false,"rowspan":1,"colspan":1,"align":"center","tableColumnHeight":"30","tableTextType":"text","tableBarcodeMode":"CODE128A","tableQRCodeLevel":0,"tableSummaryTitle":true,"tableSummaryText":" ","tableSummary":"sum"}]]},"printElementType":{"title":"paintMaterial","type":"table","editable":true,"columnDisplayEditable":true,"columnDisplayIndexEditable":true,"columnTitleEditable":true,"columnResizable":true,"columnAlignEditable":true,"isEnableEditField":true,"isEnableContextMenu":true,"isEnableInsertRow":true,"isEnableDeleteRow":true,"isEnableInsertColumn":true,"isEnableDeleteColumn":true,"isEnableMergeCell":true}}],"paperNumberLeft":3,"paperNumberTop":577.5,"orient":2,"watermarkOptions":{"content":"","rotate":25,"timestamp":false,"format":"YYYY-MM-DD HH:mm"}}]},
    
};


for (let name in config.expressionsDefines) {

    if (typeof (name) == "string" && config.expressionsDefines[name]) {
        config.expressions_list.push(name);
    }
}

module.exports = config