{ "type" : "page", "title" : "物资合同登记关联评审编辑", "body" : { "type" : "form", "id" : "eip4-edit-form", "title" : "", "mode" : "horizontal", "horizontal" : { "leftFixed" : 120 }, "body" : [ { "type" : "tabs", "tabs" : [ { "title" : "物资合同", "body" : [ { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "PM_MATERIALCONTRACTREVIEWID", "label" : "物资合同评审", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/9b4a5f42-6b9b-4e99-8fe9-0280cf5beb43/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" : "CONTRACTNAME", "label" : "合同名称", "required" : true, "type" : "input-text" } ] }, { "md" : 5, "body" : [ { "name" : "CONTRACTNUMBER", "label" : "合同编号", "required" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "CONTRACTTYPE", "label" : "合同类型", "required" : true, "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/MATERIALCONTRACTTYPE" } ] }, { "md" : 5, "body" : [ { "name" : "CONTRACTCATEGORY", "label" : "合同类别", "required" : true, "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/CONTRACTCATEGORY" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "CONTRACTFORM", "label" : "合同形式", "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/CONTRACTFORM" } ] }, { "md" : 5, "body" : [ { "name" : "SIGNUPTIME", "label" : "签约日期", "required" : true, "type" : "input-date" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "CONTRACTMONEY", "label" : "合同价款(元)", "required" : true, "type" : "input-number", "precision" : 2, "min" : 0.0, "max" : 9.999999999E9 } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "PM_PROJECTID", "label" : "工程名称", "type" : "static", "tpl" : "${PM_PROJECTID_DISPLAY__ ? PM_PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PM_PROJECTID)}", "value" : "${currentProject}" } ] }, { "md" : 5, "body" : [ { "name" : "FIRSTPARTY", "label" : "甲方", "required" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "ORGID", "label" : "(分)公司", "required" : true, "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/SYS_ORG/list?perPage=500" } ] }, { "md" : 5, "body" : [ { "name" : "MATERIALNAME", "label" : "物资供应商", "type" : "static", "tpl" : "${MATERIALNAME_DISPLAY__ ? MATERIALNAME_DISPLAY__ : (UNITID ? UNITID : MATERIALNAME)}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "OA_CONTACTPERSONINFO_ID", "label" : "联系人", "type" : "select", "clearable" : true, "source" : "/api/picker/OA_CONTACTPERSONINFO/list?perPage=500" } ] }, { "md" : 5, "body" : [ { "name" : "PHONE", "label" : "联系电话", "disabled" : true, "type" : "input-text" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "REMARKS", "label" : "备注", "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 5, "body" : [ { "name" : "STARTDATE", "label" : "开始日期", "required" : true, "type" : "input-date" } ] }, { "md" : 5, "body" : [ { "name" : "ENDDATE", "label" : "结束日期", "required" : true, "type" : "input-date" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "CONTRACTCONTENT", "label" : "合同内容", "required" : true, "type" : "textarea" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "DOCUMENT", "label" : "附件", "type" : "input-file", "receiver" : "/api/file/upload?tableName=PM_MATERIALCONTRACTREGISTER&businessKey=${PM_MATERIALCONTRACTREGISTER_ID}", "downloadUrl" : "/api/file/${id}", "multiple" : true, "staticOn" : "${__readonly}", "joinValues" : false, "extractValue" : false } ] } ] } ] }, { "title" : "物资明细", "body" : [ { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "MATERIALDETAILS", "label" : "物资名称", "type" : "input-table", "id" : "eg-MATERIALDETAILS", "addable" : true, "removable" : true, "staticOn" : "${__readonly}", "columns" : [ { "name" : "MATERIALREPOSITORY", "label" : "物资名称", "quickEdit" : { "name" : "MATERIALREPOSITORY", "required" : true, "type" : "picker", "clearable" : true, "source" : "/api/picker/201b1408-368b-463d-8b66-9123474b0183/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" : "ba8b113f-43dc-4e7d-a24e-e4ace23062a1", "editgridField" : "MATERIALDETAILS", "scriptKey" : "e43e17c2-82f7-486b-b39e-1f482abbb6bc", "changedField" : "MATERIALREPOSITORY", "row" : "${__rendererData}", "parent" : { "MATERIALDETAILS" : "${__rendererData.MATERIALDETAILS || MATERIALDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-MATERIALDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "SPECIFICATIONS", "label" : "规格", "quickEdit" : { "name" : "SPECIFICATIONS", "disabled" : true, "type" : "input-text" } }, { "name" : "UNITID", "label" : "单位", "quickEdit" : { "name" : "UNITID", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/PM_UNITLIST/list?perPage=500" } }, { "name" : "QUANTITY", "label" : "数量", "quickEdit" : { "name" : "QUANTITY", "type" : "input-number", "precision" : 2, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "ba8b113f-43dc-4e7d-a24e-e4ace23062a1", "editgridField" : "MATERIALDETAILS", "scriptKey" : "80928249-f360-4d53-82e4-d485be41579b", "changedField" : "QUANTITY", "row" : "${__rendererData}", "parent" : { "MATERIALDETAILS" : "${__rendererData.MATERIALDETAILS || MATERIALDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-MATERIALDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "UNITPRICE", "label" : "单价(元)", "quickEdit" : { "name" : "UNITPRICE", "type" : "input-number", "precision" : 4, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "ba8b113f-43dc-4e7d-a24e-e4ace23062a1", "editgridField" : "MATERIALDETAILS", "scriptKey" : "92cd38e3-b10a-4480-85e5-c05af706e2ea", "changedField" : "UNITPRICE", "row" : "${__rendererData}", "parent" : { "MATERIALDETAILS" : "${__rendererData.MATERIALDETAILS || MATERIALDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-MATERIALDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "TOTAL", "label" : "合价(元)", "quickEdit" : { "name" : "TOTAL", "type" : "input-number", "precision" : 4 } } ], "needConfirm" : false } ] } ] }, { "name" : "PM_MATERIALCONTRACTREGISTER_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "CONTRACTSTATUS", "label" : "合同状态", "required" : true, "hidden" : true, "type" : "input-number", "precision" : 0, "step" : 1, "value" : "1" }, { "name" : "PROTOCOLTYPE", "label" : "协议类型", "hidden" : true, "type" : "input-number", "precision" : 0, "step" : 1 } ] } ] } ], "actions" : [ ] } }