预付款单&员工借款单-动态表单优化
This commit is contained in:
parent
33b7b1f6fe
commit
c31f9238b5
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)) {
|
||||
//【关联员工借款单】按钮进来,隐藏【供应商】
|
||||
|
|
|
|||
Loading…
Reference in New Issue