预付款单&员工借款单-动态表单优化

This commit is contained in:
李贵强 2025-03-19 17:02:54 +08:00
parent 33b7b1f6fe
commit c31f9238b5
2 changed files with 7 additions and 0 deletions

View File

@ -67,6 +67,8 @@ public class ClaimBillButtonAssPlugin extends AbstractFormPlugin implements Plug
map.put("Apikey",apiKey);
//收款认领单单号
map.put("billNumber",this.getModel().getValue("claimno"));
//资金组织
map.put("org",this.getModel().getValue("org"));
FormShowParameter showParameter = new FormShowParameter();
//需要打开单据的标识
showParameter.setFormId(FEE_CONTROL);

View File

@ -66,6 +66,11 @@ public class FeeControlApiPlugin extends AbstractFormPlugin implements Plugin {
public void afterBindData(EventObject e) {
super.afterBindData(e);
FormShowParameter showParameter = this.getView().getFormShowParameter();
JSONObject org = showParameter.getCustomParam("org");
String idStr = org.getString("id");
Long id = Long.parseLong(idStr);
this.getModel().setValue("shjh_orgfield",id);
this.getView().updateView("shjh_orgfield");
String apiKey = showParameter.getCustomParam("Apikey");
if (LOAN_API.equals(apiKey)) {
//关联员工借款单按钮进来隐藏供应商