{ "type" : "page", "title" : "周转(租赁)材料进场编辑界面(有申请)", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "tabs", "tabs" : [ { "title" : "批次信息", "body" : [ { "type" : "grid", "columns" : [ { "md" : 5, "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" : 5, "body" : [ { "name" : "BATCHNO", "label" : "批次号", "required" : true, "type" : "input-text", "maxLength" : 50 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "CONTRACTID", "label" : "物资供应合同", "type" : "static", "tpl" : "${CONTRACTID_DISPLAY__ ? CONTRACTID_DISPLAY__ : (CONTRACTNAME ? CONTRACTNAME : CONTRACTID)}" } ] }, { "md" : 5, "body" : [ { "name" : "SUPPLIERNAME", "label" : "物资供应商", "type" : "static", "tpl" : "${SUPPLIERNAME_DISPLAY__ ? SUPPLIERNAME_DISPLAY__ : (UNITID ? UNITID : SUPPLIERNAME)}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "IMPORTDATE", "label" : "进场日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] }, { "md" : 5, "body" : [ { "name" : "INVOICECODE", "label" : "送货单号", "type" : "input-text", "maxLength" : 50 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "TRUCKCODE", "label" : "车牌号", "type" : "input-text", "maxLength" : 50 } ] }, { "md" : 5, "body" : [ { "name" : "TRANSPORTFEE", "label" : "运输费(元)", "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "PLACE", "label" : "收料地点", "type" : "input-text", "maxLength" : 100 } ] }, { "md" : 5, "body" : [ { "name" : "ATTNNAME", "label" : "经办人", "type" : "static", "tpl" : "${ATTNNAME_DISPLAY__ ? ATTNNAME_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : ATTNNAME)}", "value" : "${currentUser}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "REMARK", "label" : "备注", "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DOCUMENT", "label" : "附件", "type" : "input-file", "receiver" : "/api/file/upload?tableName=PM_TURNOVERMATERIALIMPORTBATCH&businessKey=${PM_TURNOVERMATERIALIMPORTBATCH_ID}", "downloadUrl" : "/api/file/${id}", "multiple" : true, "staticOn" : "${__readonly}", "joinValues" : false, "extractValue" : false } ] } ] }, { "name" : "PROJECTCODE", "label" : "工程编号", "hidden" : true, "type" : "input-text" }, { "name" : "CONTRACTIDTEMP", "label" : "合同ID", "hidden" : true, "type" : "input-text" } ] }, { "title" : "材料进场信息", "body" : [ { "type" : "flex", "justify" : "flex-start", "alignItems" : "center", "style" : { "paddingLeft" : "120px", "marginBottom" : "4px" }, "items" : [ { "name" : "SELECT_ONE", "label" : "选择材料", "type" : "button", "level" : "primary", "actionType" : "dialog", "dialog" : { "type" : "dialog", "id" : "egadddlgSELECTONE", "title" : "", "size" : "lg", "body" : { "type" : "crud", "api" : "/api/picker/0f7ec0af-0d91-4b7b-a71c-26e8bf4162db/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" : "egadddlgSELECTONE", "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 => ({...item}))}" } }, { "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" : "MATERIALID", "label" : "材料名称", "type" : "tpl", "tpl" : "${MATERIALID_DISPLAY__ ? MATERIALID_DISPLAY__ : MATERIALID}", "quickEdit" : false }, { "name" : "MATERIALALIASID", "label" : "材料别名", "type" : "tpl", "tpl" : "${MATERIALALIASID_DISPLAY__ ? MATERIALALIASID_DISPLAY__ : MATERIALALIASID}", "quickEdit" : false }, { "name" : "SPECIFICATIONS", "label" : "规格", "quickEdit" : { "name" : "SPECIFICATIONS", "disabled" : true, "type" : "input-text" } }, { "name" : "UNIT", "label" : "单位", "quickEdit" : { "name" : "UNIT", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/PM_UNITLIST/list?perPage=500" } }, { "name" : "APPLYPURCHASENUM", "label" : "采购数量", "quickEdit" : { "name" : "APPLYPURCHASENUM", "disabled" : true, "type" : "input-number", "precision" : 4 } }, { "name" : "IMPORTNUMBERSUM", "label" : "已进场数量", "quickEdit" : { "name" : "IMPORTNUMBERSUM", "disabled" : true, "type" : "input-number", "precision" : 4 } }, { "name" : "IMPORTNUMBER", "label" : "本次进场数量", "quickEdit" : { "name" : "IMPORTNUMBER", "required" : true, "type" : "input-number", "precision" : 4, "min" : 1.0E-4 } }, { "name" : "UNITPRICE", "label" : "租赁单价(元/日)", "quickEdit" : { "name" : "UNITPRICE", "required" : true, "type" : "input-number", "precision" : 4, "min" : 1.0E-4 } } ], "needConfirm" : false }, { "name" : "PM_TURNOVERMATERIALIMPORTBATCH_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "ISACCOUNTS", "label" : "是否记账", "required" : true, "hidden" : true, "type" : "checkbox" }, { "name" : "ACCOUNTSDATE", "label" : "记账日期", "hidden" : true, "type" : "input-date" }, { "name" : "SELECT_LIST", "label" : "选择申请", "hidden" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/31d21bd2-7b05-447b-97e4-151b898938cd/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } }, { "name" : "APPLYTYPE", "label" : "申请类型", "hidden" : true, "type" : "input-number", "precision" : 0, "step" : 1, "value" : "1" }, { "type" : "group", "body" : [ ] } ] } ] } ], "actions" : [ ] } }