点击业务查询中是否可做收获通知(PurOrderBillList)添加"已审核"

This commit is contained in:
pan-houxiang 2025-12-22 15:26:15 +08:00
parent d50d9e9503
commit e10068528a
1 changed files with 8 additions and 1 deletions

View File

@ -21,11 +21,13 @@ import java.util.Set;
* 获取选中行单据分录遍历对比分录每条数据的 "数量" "关联数量" 字段如果每一条都相等则将是否可做收货通知 置为 false
*/
public class PurOrderBillUpdatasfkzshListPlugin extends AbstractListPlugin implements Plugin {
@Override
public void itemClick(ItemClickEvent evt) {
super.itemClick(evt);
String itemKey = evt.getItemKey();
if ("biz_sfkzsh".equals(itemKey)) {
StringBuilder msg = new StringBuilder();
BillList billList = this.getView().getControl("billlistap");
// 获取选中行集合
ListSelectedRowCollection selectedRows = billList.getSelectedRows();
@ -58,9 +60,14 @@ public class PurOrderBillUpdatasfkzshListPlugin extends AbstractListPlugin imple
SaveServiceHelper.save(new DynamicObject[]{bill});
}
else {
this.getView().showTipNotification("单据【"+billNo+"】未审核");
}
}
msg.append(billNo).append(",");
}
}
if (msg.length() > 0) {
msg.deleteCharAt(msg.length() - 1);
this.getView().showTipNotification("单据【"+msg+"】未审核,不能更新【是否可做收获通知】");
}
}
}
}