{ "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" : 6, "body" : [ { "name" : "FORMNO", "label" : "盘点单号", "required" : true, "type" : "input-text", "maxLength" : 50 } ] }, { "md" : 6, "body" : [ { "name" : "STOREHOUSEINFOID", "label" : "盘店仓库", "type" : "static", "tpl" : "${STOREHOUSEINFOID_DISPLAY__ ? STOREHOUSEINFOID_DISPLAY__ : (STORENAME ? STORENAME : STOREHOUSEINFOID)}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "PAPERDATE", "label" : "账面日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] }, { "md" : 6, "body" : [ { "name" : "INVENTORYSTARTDATE", "label" : "盘点开始日期", "required" : true, "type" : "input-date", "value" : "${now}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 6, "body" : [ { "name" : "ATTNNAME", "label" : "经办人", "type" : "static", "tpl" : "${ATTNNAME_DISPLAY__ ? ATTNNAME_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : ATTNNAME)}", "value" : "${currentUser}" } ] }, { "md" : 6, "body" : [ { "name" : "DEPARTID", "label" : "部门", "required" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/SYS_DEPART/list?perPage=500", "value" : "${currentDepart}" } ] } ] }, { "type" : "grid", "columns" : [ { "md" : 12, "body" : [ { "name" : "REMARK", "label" : "备注", "type" : "textarea" } ] } ] } ] }, { "title" : "材料明细", "body" : [ { "name" : "INVENTORYDETAILS", "label" : "材料盘点明细", "required" : true, "type" : "input-table", "id" : "eg-INVENTORYDETAILS", "addable" : false, "removable" : false, "staticOn" : "${__readonly}", "columns" : [ { "name" : "MATERIALCODE", "label" : "材料编码", "quickEdit" : { "name" : "MATERIALCODE", "disabled" : true, "type" : "input-text" } }, { "name" : "MATERIALID", "label" : "材料名称", "type" : "tpl", "tpl" : "${MATERIALID_DISPLAY__ ? MATERIALID_DISPLAY__ : MATERIALID}", "quickEdit" : false }, { "name" : "SPECIFICATIONS", "label" : "规格", "quickEdit" : { "name" : "SPECIFICATIONS", "disabled" : true, "type" : "input-text" } }, { "name" : "PAPERPURCHASENUM", "label" : "账面数量", "quickEdit" : { "name" : "PAPERPURCHASENUM", "required" : true, "disabled" : true, "type" : "input-number", "precision" : 4 } }, { "name" : "UNIT", "label" : "单位", "quickEdit" : { "name" : "UNIT", "disabled" : true, "type" : "select", "clearable" : true, "source" : "/api/picker/PM_UNITLIST/list?perPage=500" } }, { "name" : "UNITPRICE", "label" : "单价(元)", "quickEdit" : { "name" : "UNITPRICE", "disabled" : true, "type" : "input-number", "precision" : 2 } }, { "name" : "INVENTORYPURCHASENUM", "label" : "盘点数量", "quickEdit" : { "name" : "INVENTORYPURCHASENUM", "required" : true, "type" : "input-number", "precision" : 4, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "c32c7f0b-35f9-4d89-acc0-08af3bf3c9e3", "editgridField" : "INVENTORYDETAILS", "scriptKey" : "17f1ac69-62ca-4f6c-bc53-c19c793cba67", "changedField" : "INVENTORYPURCHASENUM", "row" : "${__rendererData}", "parent" : { "INVENTORYDETAILS" : "${__rendererData.INVENTORYDETAILS || INVENTORYDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-INVENTORYDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "ADJUSTMENTIMPORTPURCHASENUM", "label" : "调整入库数量", "quickEdit" : { "name" : "ADJUSTMENTIMPORTPURCHASENUM", "type" : "input-number", "precision" : 4, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "c32c7f0b-35f9-4d89-acc0-08af3bf3c9e3", "editgridField" : "INVENTORYDETAILS", "scriptKey" : "17f1ac69-62ca-4f6c-bc53-c19c793cba67", "changedField" : "ADJUSTMENTIMPORTPURCHASENUM", "row" : "${__rendererData}", "parent" : { "INVENTORYDETAILS" : "${__rendererData.INVENTORYDETAILS || INVENTORYDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-INVENTORYDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "ADJUSTMENTCOLLARPURCHASENUM", "label" : "调整出库数量", "quickEdit" : { "name" : "ADJUSTMENTCOLLARPURCHASENUM", "type" : "input-number", "precision" : 4, "onEvent" : { "change" : { "actions" : [ { "actionType" : "ajax", "outputVar" : "egRow", "args" : { "api" : { "method" : "post", "url" : "/api/script/execute-editgrid-row", "data" : { "templateId" : "c32c7f0b-35f9-4d89-acc0-08af3bf3c9e3", "editgridField" : "INVENTORYDETAILS", "scriptKey" : "17f1ac69-62ca-4f6c-bc53-c19c793cba67", "changedField" : "ADJUSTMENTCOLLARPURCHASENUM", "row" : "${__rendererData}", "parent" : { "INVENTORYDETAILS" : "${__rendererData.INVENTORYDETAILS || INVENTORYDETAILS}" } } } } }, { "actionType" : "setValue", "componentId" : "eg-INVENTORYDETAILS", "args" : { "index" : "${index}", "value" : "${egRow.rowSetValues}" } }, { "actionType" : "setValue", "componentId" : "eip4-edit-form", "args" : { "value" : "${egRow.parentSetValues}" } } ] } } } }, { "name" : "INVENTORYLOSEPURCHASENUM", "label" : "盘亏数量", "quickEdit" : { "name" : "INVENTORYLOSEPURCHASENUM", "disabled" : true, "type" : "input-number", "precision" : 4 } }, { "name" : "REASON", "label" : "原因", "quickEdit" : { "name" : "REASON", "type" : "input-text" } } ], "needConfirm" : false }, { "name" : "PM_TURNOVERMATERIALBUYINVENTORY_ID", "label" : "主键", "hidden" : true, "type" : "input-text" }, { "name" : "INVENTORYENDDATE", "label" : "盘点结束日期", "type" : "input-date", "hidden" : true }, { "name" : "INVENTORYSTATUS", "label" : "盘点状态", "required" : true, "hidden" : true, "type" : "select", "clearable" : true, "source" : "/api/poc/dict/MATERIAL_INVENTORYSTATUS", "value" : "2" } ] } ] } ], "actions" : [ ] } }