{ "type" : "page", "title" : "印章外带登记添加页面", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "ISRULE", "label" : "选择已申请外带的印章", "type" : "checkbox", "value" : "0" } ] }, { "md" : 6, "body" : [ { "name" : "SELECT_APPLY", "label" : "从使用申请中选择", "type" : "picker", "clearable" : true, "source" : "/api/picker/69e720ad-a129-40da-9399-dbae004f9310/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" : "LEDGERS", "label" : "外带印章", "type" : "static", "tpl" : "${LEDGERS_DISPLAY__ ? LEDGERS_DISPLAY__ : (SEALNAME ? SEALNAME : LEDGERS)}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "SEALCOUNT", "label" : "盖章文件份数", "type" : "input-number", "precision" : 0, "step" : 1 } ] }, { "md" : 6, "body" : [ { "name" : "COLLAR_NAME", "label" : "领用人", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "COLLARDEPART", "label" : "领用部门", "required" : true, "type" : "tree-select", "clearable" : true, "source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree", "searchable" : true, "onlyLeaf" : true } ] }, { "md" : 6, "body" : [ { "name" : "BRINGOUTDATE", "label" : "外带日期", "required" : true, "type" : "input-date" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "BRINGOUTADDRESS", "label" : "外带地点", "type" : "input-text" } ] }, { "md" : 6, "body" : [ { "name" : "EXPECTEDRETURNDATE", "label" : "预计归还日期", "required" : true, "type" : "input-date" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "BRINGOUTREASON", "label" : "外带事由", "required" : true, "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "BRINGOUTREGISTERNAME", "label" : "外带登记人", "type" : "static", "tpl" : "${BRINGOUTREGISTERNAME_DISPLAY__ ? BRINGOUTREGISTERNAME_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : BRINGOUTREGISTERNAME)}", "value" : "${currentUser}" } ] }, { "md" : 6, "body" : [ { "name" : "BRINGOUTREGISTERDATE", "label" : "外带登记日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "name" : "ACTUALRETURNDATE", "label" : "实际归还日期", "hidden" : true, "type" : "input-date" }, { "name" : "RETURNREGISTERNAME", "label" : "归还登记人", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "placeholder" : "请点击右侧的图标" }, { "name" : "RETURNREGISTERDATE", "label" : "归还登记日期", "hidden" : true, "type" : "input-date" }, { "name" : "REMARK", "label" : "备注", "hidden" : true, "type" : "textarea" }, { "name" : "OA_SEALBRINGOUTREGISTER_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "type" : "group", "body" : [ { "name" : "APPLYLIST", "label" : "选择", "type" : "button", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "id" : "egadddlgAPPLYLIST", "title" : "", "size" : "lg", "body" : { "type" : "crud", "api" : "/api/picker/8f22cab7-e475-4c5e-b575-e45486a7b281/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" : "egadddlgAPPLYLIST", "args" : { "value" : { "__egpicked" : "${event.data.selectedItems}" } } } ] } } }, "actions" : [ { "type" : "button", "label" : "取消", "actionType" : "close" }, { "type" : "button", "label" : "确定", "level" : "primary", "onEvent" : { "click" : { "actions" : [ { "actionType" : "addItem", "componentId" : "__EDITGRID_ADD_TARGET__", "args" : { "item" : "${ARRAYMAP(__egpicked, item => ({...item}))}" } }, { "actionType" : "closeDialog" } ] } } } ] }, "__EDITGRID_ADD_TARGET__" : true, "hiddenOn" : "${__readonly}" } ] } ], "actions" : [ ] } }