{ "type" : "page", "title" : "项目人员工资编辑页面", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "PRJNUMBER", "label" : "实名制项目", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/0d674631-7a53-44b0-bb41-6aa201ede8ec/list", "labelField" : "_label", "valueField" : "_id", "modalMode" : "dialog", "modalSize" : "lg", "pickerSchema" : { "mode" : "table", "headerToolbar" : [ { "type" : "search-box", "name" : "q", "placeholder" : "输入关键字搜索" } ], "footerToolbar" : [ "pagination" ] } } ] }, { "md" : 6, "body" : [ { "name" : "CONSTRUCTCOMP", "label" : "施工企业", "required" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "PAYMENTDATE", "label" : "工资月份", "required" : true, "type" : "input-date" } ] }, { "md" : 6, "body" : [ { "name" : "BANKNAME", "label" : "银行名称", "required" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "PAYROLLNAME", "label" : "工资单名称", "required" : true, "type" : "input-text" } ] }, { "md" : 6, "body" : [ { "name" : "CREATEBY", "label" : "创建人", "disabled" : true, "type" : "input-text", "value" : "${currentUser}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "WORKERS", "label" : "人员", "type" : "input-table", "id" : "eg-WORKERS", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "NAME", "label" : "姓名", "quickEdit" : { "name" : "NAME", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/d4ff4352-5cfb-452b-a069-262ba2446a38/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" : "0f917d92-25dc-47a5-a50a-12c921379c4c", "editgridField" : "WORKERS", "scriptKey" : "a52ecf3b-5bbd-4c1f-a4b0-26992309907e", "changedField" : "NAME", "row" : "${__rendererData}", "parent" : { "WORKERS" : "${__rendererData.WORKERS || WORKERS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-WORKERS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "KQTS", "label" : "当月考勤天", "quickEdit" : { "name" : "KQTS", "type" : "input-number", "precision" : 0, "step" : 1 } }, { "name" : "LJJE", "label" : "累计拟发金额", "quickEdit" : { "name" : "LJJE", "type" : "input-number", "precision" : 2 } }, { "name" : "YFJE", "label" : "应发金额", "quickEdit" : { "name" : "YFJE", "type" : "input-number", "precision" : 2 } }, { "name" : "NFJE", "label" : "拟发金额", "quickEdit" : { "name" : "NFJE", "type" : "input-number", "precision" : 2 } }, { "name" : "MEMO", "label" : "备注", "quickEdit" : { "name" : "MEMO", "type" : "input-text" } } ], "needConfirm" : false } ] } ] }, { "name" : "GB_WORKERPAYMENT_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "ISPAY", "label" : "已发放", "disabled" : true, "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/YESNO", "value" : "0" } ], "actions" : [ ] } }