{ "type" : "page", "title" : "物资采购申请(土建)编辑界面", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "ISPREPARATION", "label" : "公司备料", "type" : "checkbox", "value" : "0" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "FORMNO", "label" : "表单号", "required" : true, "type" : "input-text", "maxLength" : 50 } ] }, { "md" : 4, "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" } ] }, { "md" : 4, "body" : [ { "name" : "DEPARTID", "label" : "申请部门", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/SYS_DEPART/list?perPage=500", "value" : "${currentDepart}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "APPLYNAME", "label" : "申请人", "type" : "static", "tpl" : "${APPLYNAME_DISPLAY__ ? APPLYNAME_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : APPLYNAME)}", "value" : "${currentUser}" } ] }, { "md" : 4, "body" : [ { "name" : "APPLYDATE", "label" : "申请日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] }, { "md" : 4, "body" : [ { "name" : "DELIVERYREQUIRE", "label" : "要求交货日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "DELIVERYPLACE", "label" : "送货地点", "required" : true, "type" : "input-text", "maxLength" : 100 } ] }, { "md" : 4, "body" : [ { "name" : "CONSIGNEE", "label" : "收货联系人", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/1b6820ad-bc7c-4eef-ac63-652cdf52c75f/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "EXPLAIN", "label" : "说明", "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "type" : "flex", "justify" : "flex-start", "alignItems" : "center", "style" : { "paddingLeft" : "120px", "marginBottom" : "4px" }, "items" : [ { "name" : "SELECT", "label" : "添加", "type" : "button", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "id" : "egadddlgSELECT", "title" : "", "size" : "lg", "body" : { "type" : "crud", "api" : "/api/picker/28807c26-61fa-467e-88fa-d797fb8b580d/list", "mode" : "table", "syncLocation" : false, "selectable" : true, "multiple" : true, "keepItemSelectionOnPageChange" : true, "primaryField" : "_id", "labelField" : "_label", "headerToolbar" : [ { "type" : "search-box", "placeholder" : "输入关键字搜索", "name" : "q" } ], "footerToolbar" : [ "pagination" ], "onEvent" : { "selectedChange" : { "actions" : [ { "actionType" : "setValue", "componentId" : "egadddlgSELECT", "args" : { "value" : { "__egpicked" : "${event.data.selectedItems}" } } } ] } } }, "actions" : [ { "type" : "button", "label" : "取消", "actionType" : "close" }, { "type" : "button", "label" : "确定", "level" : "primary", "onEvent" : { "click" : { "actions" : [ { "actionType" : "addItem", "componentId" : "eg-MATERIALDETAILS", "args" : { "item" : "${ARRAYMAP(__egpicked, item => ({MATERIALID: item.PM_MATERIALREPOSITORY_ID, MATERIALNAME: item.MATERIALNAME, SPECIFICATIONS: item.SPECIFICATIONS, UNIT: item.UNIT, MATERIALCODE: item.MATERIALCODE}))}" } }, { "actionType" : "closeDialog" } ] } } } ] }, "hiddenOn" : "${__readonly}" } ] }, { "name" : "MATERIALDETAILS", "label" : "采购物资明细", "required" : true, "type" : "input-table", "id" : "eg-MATERIALDETAILS", "addable" : false, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "MATERIALCODE", "label" : "材料编码", "quickEdit" : { "name" : "MATERIALCODE", "disabled" : true, "type" : "input-text" } }, { "name" : "MATERIALNAME", "label" : "材料名称", "quickEdit" : { "name" : "MATERIALNAME", "disabled" : true, "type" : "input-text" } }, { "name" : "SPECIFICATIONS", "label" : "规格", "quickEdit" : { "name" : "SPECIFICATIONS", "disabled" : true, "type" : "input-text" } }, { "name" : "PURCHASENUM", "label" : "数量", "quickEdit" : { "name" : "PURCHASENUM", "required" : true, "type" : "input-number", "precision" : 4 } }, { "name" : "UNIT", "label" : "单位", "quickEdit" : { "name" : "UNIT", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/PM_UNITLIST/list?perPage=500" } }, { "name" : "REMARK", "label" : "备注", "quickEdit" : { "name" : "REMARK", "type" : "input-text", "maxLength" : 100 } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DOCUMENT", "label" : "附件", "type" : "input-file", "receiver" : "/api/file/upload?tableName=PM_MATERIALPURCHASEAPPLY_TJ&businessKey=${PM_MATERIALPURCHASEAPPLY_TJ_ID}", "downloadUrl" : "/api/file/${id}", "multiple" : true, "staticOn" : "${__readonly}", "joinValues" : false, "extractValue" : false } ] } ] }, { "name" : "PM_MATERIALPURCHASEAPPLY_TJ_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "STAGEPLANID", "label" : "选择计划", "type" : "picker", "clearable" : true, "source" : "/api/picker/b17dd3f8-a4dc-4a27-ac7f-02e6f90fbbe9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "hidden" : true }, { "type" : "group", "body" : [ ] } ], "actions" : [ ] } }