回答:var boxes = _g().getWidgetsByName("box");var value = 2;if (typeof(boxes) != "undefined") { for (i = 0; i < boxes.length; i++) { if (boxes.getValue() == true) { var ro = FR.cellStr2ColumnRow(boxes.options.location).row; var col = 7; var v1 = _g().getWidgetByCell(FR.columnRow2CellStr({ col: 8, row: ro })).getValue(); if (v1.length == 0) { FR.Msg.alert("警告", "请填写原因"); } else { _g().setCellValue(0, col, ro, value); } } }} else { if (boxes.getValue() == true) { var row = FR.cellStr2ColumnRow(boxes.options.location).row; var col = 7; var v1 = _g().getWidgetByCell(FR.columnRow2CellStr({ col: 8, row: ro })).getValue(); if (v1.length == 0) { FR.Msg.alert("警告", "请填写原因"); } else { _g().setCellValue(0, col, ro, value); } }}
1
1
15
10
没有更多