{ "type" : "page", "title" : "质量安全内部奖罚-合同", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "PROJECTID", "label" : "工程名称", "type" : "static", "tpl" : "${PROJECTID_DISPLAY__ ? PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PROJECTID)}", "value" : "${currentProject}" } ] }, { "md" : 4, "body" : [ { "name" : "ACTUALSTARTDATE", "label" : "开工日期", "disabled" : true, "type" : "input-date" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "ACTUALENDDATE", "label" : "竣工日期", "disabled" : true, "type" : "input-date" } ] }, { "md" : 4, "body" : [ { "name" : "PUTRECORDDATE", "label" : "竣工备案日期", "disabled" : true, "type" : "input-date" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 8, "body" : [ { "name" : "USERS", "label" : "人员", "type" : "static", "tpl" : "${USERS_DISPLAY__ ? USERS_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : USERS)}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DETAILS1", "label" : "质量及相关创优奖罚情况", "required" : true, "disabled" : true, "type" : "input-table", "id" : "eg-DETAILS1", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "REWARDNAME", "label" : "奖项名称", "quickEdit" : { "name" : "REWARDNAME", "required" : true, "type" : "input-text" } }, { "name" : "FILENUM", "label" : "文件号", "quickEdit" : { "name" : "FILENUM", "type" : "input-text" } }, { "name" : "APPROVEDATE", "label" : "批复日期", "quickEdit" : { "name" : "APPROVEDATE", "type" : "input-date" } }, { "name" : "MONEY", "label" : "奖罚金额(元)", "quickEdit" : { "name" : "MONEY", "required" : true, "type" : "input-number", "precision" : 2, "min" : -9.999999999E9, "max" : 9.999999999E9, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "98de8887-fb1d-4fef-ac3a-ec08581f7f8d", "editgridField" : "DETAILS1", "scriptKey" : "dd24c181-fa50-4979-b3c6-37ecb3b2f09e", "changedField" : "MONEY", "row" : "${__rendererData}", "parent" : { "DETAILS1" : "${__rendererData.DETAILS1 || DETAILS1}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-DETAILS1", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "SIGNUSER1", "label" : "奖罚单签发人1", "type" : "static", "tpl" : "${SIGNUSER1_DISPLAY__ ? SIGNUSER1_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : SIGNUSER1)}", "value" : "${currentUser}" } ] }, { "md" : 4, "body" : [ { "name" : "SIGNTIME1", "label" : "签发日期1", "required" : true, "disabled" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DETAILS2", "label" : "安全方面奖罚情况", "required" : true, "disabled" : true, "type" : "input-table", "id" : "eg-DETAILS2", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "REWARDNAME", "label" : "奖项名称", "quickEdit" : { "name" : "REWARDNAME", "required" : true, "type" : "input-text" } }, { "name" : "FILENUM", "label" : "文件号", "quickEdit" : { "name" : "FILENUM", "type" : "input-text" } }, { "name" : "APPROVEDATE", "label" : "批复日期", "quickEdit" : { "name" : "APPROVEDATE", "type" : "input-date" } }, { "name" : "MONEY", "label" : "奖罚金额(元)", "quickEdit" : { "name" : "MONEY", "required" : true, "type" : "input-number", "precision" : 2, "min" : -9.999999999E9, "max" : 9.999999999E9, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "98de8887-fb1d-4fef-ac3a-ec08581f7f8d", "editgridField" : "DETAILS2", "scriptKey" : "dd24c181-fa50-4979-b3c6-37ecb3b2f09e", "changedField" : "MONEY", "row" : "${__rendererData}", "parent" : { "DETAILS2" : "${__rendererData.DETAILS2 || DETAILS2}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-DETAILS2", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "SIGNUSER2", "label" : "奖罚单签发人2", "type" : "static", "tpl" : "${SIGNUSER2_DISPLAY__ ? SIGNUSER2_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : SIGNUSER2)}", "value" : "${currentUser}" } ] }, { "md" : 4, "body" : [ { "name" : "SIGNTIME2", "label" : "签发日期2", "required" : true, "disabled" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DETAILS3", "label" : "劳务方面奖罚情况", "required" : true, "disabled" : true, "type" : "input-table", "id" : "eg-DETAILS3", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "REWARDNAME", "label" : "奖项名称", "quickEdit" : { "name" : "REWARDNAME", "required" : true, "type" : "input-text" } }, { "name" : "FILENUM", "label" : "文件号", "quickEdit" : { "name" : "FILENUM", "type" : "input-text" } }, { "name" : "APPROVEDATE", "label" : "批复日期", "quickEdit" : { "name" : "APPROVEDATE", "type" : "input-date" } }, { "name" : "MONEY", "label" : "奖罚金额(元)", "quickEdit" : { "name" : "MONEY", "required" : true, "type" : "input-number", "precision" : 2, "min" : -9.999999999E9, "max" : 9.999999999E9, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "98de8887-fb1d-4fef-ac3a-ec08581f7f8d", "editgridField" : "DETAILS3", "scriptKey" : "dd24c181-fa50-4979-b3c6-37ecb3b2f09e", "changedField" : "MONEY", "row" : "${__rendererData}", "parent" : { "DETAILS3" : "${__rendererData.DETAILS3 || DETAILS3}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-DETAILS3", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "SIGNUSER3", "label" : "奖罚单签发人3", "type" : "static", "tpl" : "${SIGNUSER3_DISPLAY__ ? SIGNUSER3_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : SIGNUSER3)}", "value" : "${currentUser}" } ] }, { "md" : 4, "body" : [ { "name" : "SIGNTIME3", "label" : "签发日期3", "required" : true, "disabled" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DETAILS4", "label" : "合同履约情况", "required" : true, "type" : "input-table", "id" : "eg-DETAILS4", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "REWARDNAME", "label" : "奖项名称", "quickEdit" : { "name" : "REWARDNAME", "required" : true, "type" : "input-text" } }, { "name" : "FILENUM", "label" : "文件号", "quickEdit" : { "name" : "FILENUM", "type" : "input-text" } }, { "name" : "APPROVEDATE", "label" : "批复日期", "quickEdit" : { "name" : "APPROVEDATE", "type" : "input-date" } }, { "name" : "MONEY", "label" : "奖罚金额(元)", "quickEdit" : { "name" : "MONEY", "required" : true, "type" : "input-number", "precision" : 2, "min" : -9.999999999E9, "max" : 9.999999999E9, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "98de8887-fb1d-4fef-ac3a-ec08581f7f8d", "editgridField" : "DETAILS4", "scriptKey" : "dd24c181-fa50-1114-b3c6-37ecb3b2f09e", "changedField" : "MONEY", "row" : "${__rendererData}", "parent" : { "DETAILS4" : "${__rendererData.DETAILS4 || DETAILS4}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-DETAILS4", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } } ], "needConfirm" : false } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "SIGNUSER4", "label" : "奖罚单签发人4", "type" : "static", "tpl" : "${SIGNUSER4_DISPLAY__ ? SIGNUSER4_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : SIGNUSER4)}", "value" : "${currentUser}" } ] }, { "md" : 4, "body" : [ { "name" : "SIGNTIME4", "label" : "签发日期4", "required" : true, "disabled" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 4, "body" : [ { "name" : "MONEY", "label" : "金额", "disabled" : true, "type" : "input-number", "precision" : 2 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 8, "body" : [ { "name" : "CNMONEY", "label" : "中文金额", "disabled" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DOCUMENT", "label" : "附件", "disabled" : true, "type" : "input-file", "receiver" : "/api/file/upload?tableName=PM_REWARDSANDPUNISHMENTS&businessKey=${PM_REWARDSANDPUNISHMENTS_ID}", "downloadUrl" : "/api/file/${id}", "multiple" : true, "staticOn" : "${__readonly}", "joinValues" : false, "extractValue" : false } ] } ] }, { "name" : "PM_REWARDSANDPUNISHMENTS_ID", "label" : "主键", "hidden" : true, "type" : "input-text" } ], "actions" : [ ] } }