{ "type" : "page", "title" : "领用凭证-直接登记", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "NUMBER", "label" : "凭证编号", "required" : true, "type" : "input-text" } ] }, { "md" : 4, "body" : [ { "name" : "STORE_ID", "label" : "办公用品库", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/OA_OFFICE_STOREHOUSE/list?perPage=500" } ] }, { "md" : 4, "body" : [ { "name" : "COLLAR_DATE", "label" : "领用日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "COLLAR_USER", "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" : "请点击右侧的图标" } ] }, { "md" : 4, "body" : [ { "name" : "DEPART_ID", "label" : "领用部门", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/SYS_DEPART/list?perPage=500" } ] } ] }, { "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-COLLARVOUCHERDETAILS", "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" : "COLLARVOUCHERDETAILS", "label" : "所领用品", "required" : true, "type" : "input-table", "id" : "eg-COLLARVOUCHERDETAILS", "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" : "OUT_AMOUNT", "label" : "本次领用量", "quickEdit" : { "name" : "OUT_AMOUNT", "type" : "input-number", "precision" : 0, "step" : 1, "min" : 1, "max" : 9999999 } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "REMARK", "label" : "备注", "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "REGISTER_USER", "label" : "登记人", "type" : "static", "tpl" : "${REGISTER_USER_DISPLAY__ ? REGISTER_USER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : REGISTER_USER)}", "value" : "${currentUser}" } ] }, { "md" : 4, "body" : [ { "name" : "REGISTER_DATE", "label" : "登记日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "name" : "OA_OFFICE_GOODS_COLLARVOUCHER_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "ISKEEPACCOUNT", "label" : "是否记账", "required" : true, "hidden" : true, "type" : "checkbox", "value" : "0" }, { "name" : "PERIOD_ID", "label" : "期间", "hidden" : true, "type" : "select", "clearable" : true, "searchable" : true, "source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}" }, { "type" : "group", "body" : [ ] } ], "actions" : [ ] } }