{ "type" : "page", "title" : "总包合同评审及扣款项配置编辑页面", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "PM_PROJECTID", "label" : "工程名称", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] }, "value" : "${currentProject}" } ] }, { "md" : 3, "body" : [ { "name" : "BUILDCOMPANY", "label" : "建设单位", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/1964fda1-b020-4a8b-95e2-dc32de36e74a/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, { "md" : 3, "body" : [ { "name" : "FILIALE", "label" : "(分)公司", "type" : "static", "tpl" : "${FILIALE_DISPLAY__ ? FILIALE_DISPLAY__ : (NAME ? NAME : FILIALE)}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "TYPE", "label" : "工程类型", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECT_TYPE" } ] }, { "md" : 3, "body" : [ { "name" : "CATEGORY", "label" : "项目类别", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECT_CATEGORY" } ] }, { "md" : 3, "body" : [ { "name" : "ADDRESS", "label" : "工程地址", "required" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "STRUCTURE", "label" : "结构", "type" : "input-text" } ] }, { "md" : 3, "body" : [ { "name" : "NUMBER", "label" : "层次", "type" : "input-text" } ] }, { "md" : 3, "body" : [ { "name" : "ACREAGE", "label" : "建筑面积(m2)", "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 3, "body" : [ { "name" : "PROJECTMANAGER", "label" : "项目经理", "type" : "static", "tpl" : "${PROJECTMANAGER_DISPLAY__ ? PROJECTMANAGER_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : PROJECTMANAGER)}" } ] }, { "md" : 3, "body" : [ { "name" : "PSELECT", "label" : "选择", "type" : "picker", "clearable" : true, "source" : "/api/picker/a801e436-9176-4794-a48b-5c7020697697/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, { "md" : 3, "body" : [ { "name" : "CONTRACTOR", "label" : "承包人", "type" : "input-text" } ] }, { "md" : 3, "body" : [ { "name" : "INVOICEFORM", "label" : "征税方式", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/INVOICE_INVOICEFORM" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "TAXRATE", "label" : "税率(%)", "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "DEPARTMENT", "label" : "组织部门", "required" : true, "type" : "tree-select", "clearable" : true, "source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree", "searchable" : true, "onlyLeaf" : true } ] }, { "md" : 3, "body" : [ { "name" : "CONTRACTUALFORM", "label" : "合同形式", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/CONTRACTFORM" } ] }, { "md" : 3, "body" : [ { "name" : "GENERALCONTRACTOR", "label" : "发包人(总包方)", "type" : "picker", "clearable" : true, "source" : "/api/picker/1964fda1-b020-4a8b-95e2-dc32de36e74a/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" : 5, "body" : [ { "name" : "STARTTIME", "label" : "开工日期", "required" : true, "type" : "input-date" } ] }, { "md" : 3, "body" : [ { "name" : "ENDTIME", "label" : "竣工日期", "required" : true, "type" : "input-date" } ] }, { "md" : 3, "body" : [ { "name" : "WORKINGDAYS", "label" : "工期(天)", "type" : "input-number", "precision" : 0, "step" : 1 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "CONTRACTUALMONEY", "label" : "合同价款(元)", "required" : true, "type" : "input-number", "precision" : 2 } ] }, { "md" : 6, "body" : [ { "name" : "CAPITAL", "label" : "大写", "disabled" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "SEALCOUNT", "label" : "合同份数", "type" : "input-number", "precision" : 0, "step" : 1 } ] }, { "md" : 6, "body" : [ { "name" : "CREATEBY", "label" : "申请人", "type" : "static", "tpl" : "${CREATEBY_DISPLAY__ ? CREATEBY_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : CREATEBY)}", "value" : "${currentUser}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "TYPEOFPAYMENT", "label" : "付款方式", "required" : true, "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "CONTRACTUALSCOPE", "label" : "承包范围", "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "CONTRACTUALCONTENT", "label" : "评审内容", "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "MEMBERUSERS", "label" : "合同备案人员", "type" : "input-table", "id" : "eg-MEMBERUSERS", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "PROJECTROLE", "label" : "项目角色", "quickEdit" : { "name" : "PROJECTROLE", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/PM_PROJECTMANAGERROLE", "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "d9ef7606-7828-459b-8ae6-022b356d92c2", "editgridField" : "MEMBERUSERS", "scriptKey" : "ba1d2448-d67f-4997-a778-ef867d153b8d", "changedField" : "PROJECTROLE", "row" : "${__rendererData}", "parent" : { "MEMBERUSERS" : "${__rendererData.MEMBERUSERS || MEMBERUSERS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-MEMBERUSERS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "USERID", "label" : "姓名", "type" : "tpl", "tpl" : "${USERID_DISPLAY__ ? USERID_DISPLAY__ : USERID}", "quickEdit" : false }, { "name" : "SELECT", "label" : "SELECT", "quickEdit" : { "name" : "SELECT", "type" : "picker", "clearable" : true, "source" : "/api/picker/a801e436-9176-4794-a48b-5c7020697697/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" : "d9ef7606-7828-459b-8ae6-022b356d92c2", "editgridField" : "MEMBERUSERS", "scriptKey" : "dbc3a8fd-f663-4905-b013-ed64d13d81f9", "changedField" : "SELECT", "row" : "${__rendererData}", "parent" : { "MEMBERUSERS" : "${__rendererData.MEMBERUSERS || MEMBERUSERS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-MEMBERUSERS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "RATES", "label" : "配置项", "type" : "input-table", "id" : "eg-RATES", "addable" : false, "removable" : false, "staticOn" : "${__readonly}", "columns" : [ { "name" : "RATE", "label" : "扣款项", "quickEdit" : { "name" : "RATE", "required" : true, "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/TOTALCOSTCONTRACT_RATE" } }, { "name" : "RATEVALUE", "label" : "扣款比例(%)", "quickEdit" : { "name" : "RATEVALUE", "type" : "input-number", "precision" : 4, "max" : 100.0 } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DOCUMENT", "label" : "附件", "required" : true, "type" : "input-file", "receiver" : "/api/file/upload?tableName=PM_CONTRACTUALREVIEW&businessKey=${PM_CONTRACTUALREVIEW_ID}", "downloadUrl" : "/api/file/${id}", "multiple" : true, "staticOn" : "${__readonly}", "joinValues" : false, "extractValue" : false } ] } ] }, { "name" : "PCARD", "label" : "选择", "hidden" : true, "type" : "input-text" }, { "name" : "PM_CONTRACTUALREVIEW_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "PREPAY", "label" : "预付款(元)", "hidden" : true, "type" : "input-number", "precision" : 2 }, { "name" : "PROGRESSPAYRATE", "label" : "进度支付比例(%)", "hidden" : true, "type" : "input-number", "precision" : 0 }, { "name" : "BALANCEPAYRATE", "label" : "竣工结算支付比例(%)", "hidden" : true, "type" : "input-number", "precision" : 0 } ], "actions" : [ ] } }