{ "type" : "page", "title" : "收房申请-办公室盖章页面(审批)", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 7, "body" : [ { "name" : "PROJECTNAME", "label" : "项目名称", "required" : true, "disabled" : true, "type" : "input-text" } ] }, { "md" : 3, "body" : [ { "name" : "FORMNO", "label" : "单号", "required" : true, "disabled" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "BIDAMOUNT", "label" : "项目中标金额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 3, "body" : [ { "name" : "APPROVEDAMOUNT", "label" : "审定金额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 3, "body" : [ { "name" : "TOTALMONEY", "label" : "工抵房总额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 3, "body" : [ { "name" : "CONTRACTOR", "label" : "承包人", "disabled" : true, "type" : "input-text" } ] }, { "md" : 3, "body" : [ { "name" : "CONTRACTMONEY", "label" : "承包金额(元)", "disabled" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 3, "body" : [ { "name" : "SIGNATUREDATE", "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/edf587c2-0e41-41af-95b0-c207cc3b892d/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-HOUSEDETAILS", "args" : { "item" : "${ARRAYMAP(__egpicked, item => ({...item}))}" } }, { "actionType" : "closeDialog" } ] } } } ] }, "hiddenOn" : "${__readonly}" } ] }, { "name" : "HOUSEDETAILS", "label" : "房源信息明细", "required" : true, "disabled" : true, "type" : "input-table", "id" : "eg-HOUSEDETAILS", "addable" : false, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "HOUSEID", "label" : "房源库名称", "type" : "tpl", "tpl" : "${HOUSEID_DISPLAY__ ? HOUSEID_DISPLAY__ : HOUSEID}", "quickEdit" : false }, { "name" : "PRICE", "label" : "单价(元/平)", "quickEdit" : { "name" : "PRICE", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "SQUARE", "label" : "面积(㎡)", "quickEdit" : { "name" : "SQUARE", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "NUMS", "label" : "总套数", "quickEdit" : { "name" : "NUMS", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "TOTALMONEY", "label" : "房款总额(元)", "quickEdit" : { "name" : "TOTALMONEY", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "AFTERNUMS", "label" : "剩余套数", "quickEdit" : { "name" : "AFTERNUMS", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "NUM", "label" : "当前套数", "quickEdit" : { "name" : "NUM", "required" : true, "type" : "input-number", "precision" : 2, "min" : 0.0 } }, { "name" : "SUMSQUARE", "label" : "当前面积(㎡)", "quickEdit" : { "name" : "SUMSQUARE", "type" : "input-number", "precision" : 2 } }, { "name" : "SUMMONEY", "label" : "总价(元)", "quickEdit" : { "name" : "SUMMONEY", "required" : true, "type" : "input-number", "precision" : 2, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "f3fb1192-e4c7-4b95-a141-5cc6e7b7066e", "editgridField" : "HOUSEDETAILS", "scriptKey" : "f71c5901-c074-4350-9bc8-2b0e523795cd", "changedField" : "SUMMONEY", "row" : "${__rendererData}", "parent" : { "HOUSEDETAILS" : "${__rendererData.HOUSEDETAILS || HOUSEDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-HOUSEDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "REMARK", "label" : "备注", "quickEdit" : { "name" : "REMARK", "type" : "input-text" } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "REMARK", "label" : "备注", "disabled" : true, "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DOCUMENT", "label" : "未盖章合同文件", "required" : true, "disabled" : true, "type" : "input-file", "receiver" : "/api/file/upload?tableName=PM_ACCEPTHOUSEAPPLY&businessKey=${PM_ACCEPTHOUSEAPPLY_ID}", "downloadUrl" : "/api/file/${id}", "multiple" : true, "staticOn" : "${__readonly}", "joinValues" : false, "extractValue" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "AFTERDOCUMENT", "label" : "已盖章合同文件", "required" : true, "type" : "input-file", "receiver" : "/api/file/upload?tableName=PM_ACCEPTHOUSEAPPLY&businessKey=${PM_ACCEPTHOUSEAPPLY_ID}", "downloadUrl" : "/api/file/${id}", "multiple" : true, "staticOn" : "${__readonly}", "joinValues" : false, "extractValue" : false } ] } ] }, { "name" : "PM_ACCEPTHOUSEAPPLY_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "PROJECTID", "label" : "选择项目ID", "type" : "static", "tpl" : "${PROJECTID_DISPLAY__ ? PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PROJECTID)}", "hidden" : true }, { "name" : "SELECTUSER", "label" : "选择用户", "type" : "static", "tpl" : "${SELECTUSER_DISPLAY__ ? SELECTUSER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : SELECTUSER)}", "hidden" : true }, { "type" : "group", "body" : [ ] } ], "actions" : [ ] } }