{ "type" : "page", "title" : "变更查看界面", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "type" : "static", "tpl" : "${PROJECTID_DISPLAY__ ? PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PROJECTID)}" } ] }, { "md" : 6, "body" : [ { "name" : "BUDGETUNITID", "label" : "施工预算单元", "type" : "static", "tpl" : "${BUDGETUNITID_DISPLAY__ ? BUDGETUNITID_DISPLAY__ : (BUDGETUNITNAME ? BUDGETUNITNAME : BUDGETUNITID)}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "BUDGETLISTID", "label" : "施工预算清单", "type" : "static", "tpl" : "${BUDGETLISTID_DISPLAY__ ? BUDGETLISTID_DISPLAY__ : (LISTNAME ? LISTNAME : BUDGETLISTID)}" } ] }, { "md" : 6, "body" : [ { "name" : "CHANGETYPE", "label" : "变更类型", "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_CONSTRUCTCHANGE_TYPE" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "CHANGEQUANTITY", "label" : "清单变更工程量", "disabled" : true, "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "VISALISTS", "label" : "签证单", "type" : "static", "tpl" : "${VISALISTS_DISPLAY__ ? VISALISTS_DISPLAY__ : (VISANODISPLAYNAME ? VISANODISPLAYNAME : VISALISTS)}" } ] } ] }, { "name" : "PM_CONSTRUCTCHANGE_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "CHANGEDETAILS", "label" : "变更明细", "disabled" : true, "type" : "input-table", "id" : "eg-CHANGEDETAILS", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "QUOTANO", "label" : "定额编码", "quickEdit" : { "name" : "QUOTANO", "type" : "input-text" } }, { "name" : "QUOTACONTENT", "label" : "含量", "quickEdit" : { "name" : "QUOTACONTENT", "type" : "input-number", "precision" : 2 } }, { "name" : "CBUDGETQUOTAID", "label" : "定额名称", "quickEdit" : { "name" : "CBUDGETQUOTAID", "type" : "picker", "clearable" : true, "source" : "/api/picker/1d36ab80-b430-4294-b7f3-c6aab3efa625/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "5b6dc78d-5114-4a70-9879-636fb19ce20c", "editgridField" : "CHANGEDETAILS", "scriptKey" : "70e2dd4f-e200-40b4-bae6-aabe864c4f39", "changedField" : "CBUDGETQUOTAID", "row" : "${__rendererData}", "parent" : { "CHANGEDETAILS" : "${__rendererData.CHANGEDETAILS || CHANGEDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-CHANGEDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "CHANGEQUANTITY", "label" : "变更工程量", "quickEdit" : { "name" : "CHANGEQUANTITY", "type" : "input-number", "precision" : 2 } } ], "needConfirm" : false, "hidden" : true } ], "actions" : [ ] } }