收款单的收款人变更后,非客商,触发下推标记更新

This commit is contained in:
yuxueliang0813 2025-07-04 19:02:30 +08:00
parent ed60ab6be3
commit 63145a1c92
2 changed files with 16 additions and 6 deletions

View File

@ -68,11 +68,16 @@ public class JHSSOAuthHandler implements ThirdSSOAuthHandler {
//查看返回值是不是我们项目组的人员如果是得使用用户名登录否则用工号
if(isprojectgroup(numOrName)){
result.setUserType(UserProperType.UserName);
//用户信息标识
result.setUser(numOrName);
}else{
result.setUserType(UserProperType.WorkerNumber);
//用户信息标识
result.setUser(numOrName);
if("xuzhijun".equals(numOrName)){
result.setUser("administrator");
}
}
//用户信息标识
result.setUser(numOrName);
result.setSucess(true);
}

View File

@ -157,8 +157,10 @@ public class RecBillFromPlugin extends AbstractFormPlugin implements Plugin {
} else if (StringUtils.equals(fieldKey, "payer")) {
//监听付款人id
//一次性客户/一次性供应商时设置默认值
DynamicObjectCollection entryEntity = this.getModel().getEntryEntity("entry");
String type = (String) this.getModel().getValue(RecFieldsInfo.PAYER_TYPE);
if ("bd_customer".equals(type) || "bd_supplier".equals(type)) {
//付款人是客商
Object value = this.getModel().getValue("payer");
if (null != value) {
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(value, type);
@ -179,7 +181,6 @@ public class RecBillFromPlugin extends AbstractFormPlugin implements Plugin {
iskdqbqz = true;
}
}
DynamicObjectCollection entryEntity = this.getModel().getEntryEntity("entry");
if(iskdqbqz){
for (int i = 0; i < entryEntity.size(); i++) {
this.getModel().setValue("shjh_needpushbill", false, i);//不需要下推清账单
@ -210,10 +211,14 @@ public class RecBillFromPlugin extends AbstractFormPlugin implements Plugin {
this.getModel().setValue("shjh_closingstatus", "A", i);//无需金蝶清账
}
}
this.getView().updateView();
}else{
//付款人不是客商 直接设为不需要下推
for (int i = 0; i < entryEntity.size(); i++) {
this.getModel().setValue("shjh_needpushbill", false, i);//不需要下推清账单
this.getModel().setValue("shjh_closingstatus", "A", i);//无需金蝶清账
}
}
this.getView().updateView();
}else if (StringUtils.equals(fieldKey, "shjh_bizsmall")) {
//监听业务小类
//付款人类型=客户或者其他都可以根据业务小类的清账方式来判断