{ "type" : "page", "title" : "领用申请(按库领用)", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "FORMNO", "label" : "表单号", "required" : true, "type" : "input-text" } ] }, { "md" : 4, "body" : [ { "name" : "STORE_ID", "label" : "办公用品库", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/VIEW_OA_OFFICE_STOREHOUSE/list?perPage=500" } ] }, { "md" : 4, "body" : [ { "name" : "GOODS_IMPORTANCE", "label" : "重要性", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/GOODS_IMPORTANCE" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "DEPART_ID", "label" : "申请部门", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/SYS_DEPART/list?perPage=500", "value" : "${currentDepart}" } ] }, { "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}" } ] } ] }, { "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/88bab87b-01d3-4ebc-84f4-0103188b2751/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-GOODSDETAIL", "args" : { "item" : "${ARRAYMAP(__egpicked, item => ({GOODS_ID: item.OA_OFFICE_GOODS_ID, GOODS_ID_DISPLAY__: item._label, GOODS_STANDARD: item.GOODS_STANDARD, GOODS_UNIT: item.GOODS_UNIT, GOODS_IMPORTANCE: item.GOODS_IMPORTANCE}))}" } }, { "actionType" : "closeDialog" } ] } } } ] }, "hiddenOn" : "${__readonly}" } ] }, { "name" : "GOODSDETAIL", "label" : "申请用品", "required" : true, "type" : "input-table", "id" : "eg-GOODSDETAIL", "addable" : false, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "GOODS_ID", "label" : "用品名称", "type" : "tpl", "tpl" : "${GOODS_ID_DISPLAY__ ? GOODS_ID_DISPLAY__ : GOODS_ID}", "quickEdit" : false }, { "name" : "GOODS_STANDARD", "label" : "规格", "quickEdit" : { "name" : "GOODS_STANDARD", "disabled" : true, "type" : "input-text" } }, { "name" : "GOODS_UNIT", "label" : "计量单位", "quickEdit" : { "name" : "GOODS_UNIT", "disabled" : true, "type" : "input-text" } }, { "name" : "GOODS_IMPORTANCE", "label" : "重要性", "quickEdit" : { "name" : "GOODS_IMPORTANCE", "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/OFFICE_SIZE" } }, { "name" : "AMOUNT", "label" : "申领数量", "quickEdit" : { "name" : "AMOUNT", "required" : true, "type" : "input-number", "precision" : 0, "step" : 1, "max" : 9999999 } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "REMARK", "label" : "备注", "type" : "textarea" } ] } ] }, { "name" : "OA_OFFICE_COLLARAPPLY_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "ISCOLLARFINISH", "label" : "是否领用完毕", "required" : true, "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO", "value" : "0" }, { "name" : "OLD_STORE_ID", "label" : "原选择办公用品库", "type" : "input-text", "hidden" : true }, { "type" : "group", "body" : [ ] } ], "actions" : [ ] } }