$(function () { IPLATUI.EFSelect = { "result-0-customId": { select: function (e) { var dataItem = e.dataItem; var valueField = dataItem['valueField']; var textField = dataItem['textField']; if (valueField) { textField = textField.indexOf("-") > -1 ? textField.split("-")[1] : textField; $("#result-0-customName").val(textField); } else { $("#result-0-customName").val(""); } } } } IPLATUI.EFGrid = { "result": { pageable: false, exportGrid: false, toolbarConfig: { hidden: false, }, columns: [], loadComplete: function (grid) { }, onSuccess: function (e) { } } }; // 确认 $('#SAVE').on('click', save); // 键盘按键 downKeyUp(); }) /** * 保存 */ let save = function () { let careDate = $("#result-0-careDate").val(); if (isBlank(careDate)) { message("关怀日期不能为空"); return; } let careWay = $("#result-0-careWay").val(); if (isBlank(careWay)) { message("关怀方式不能为空"); return; } let careType = $("#result-0-careType").val(); if (isBlank(careType)) { message("关怀类型不能为空"); return; } JSUtils.confirm("确定对数据做\"保存\"操作? ", { ok: function () { JSUtils.submitGridsData("", "HGFW002B", "save", true, function (res) { if (res.status > -1) { parent.JSColorbox.setValueCallback(res); } else { message(res.msg); } }); } }); }