优化供应商画像显示,优化注册携带到潜在

This commit is contained in:
weiyunlong 2024-12-05 18:28:05 +08:00
parent 04429b95d3
commit 579b47fc8d
3 changed files with 15 additions and 2 deletions

View File

@ -37,6 +37,7 @@ public class PortraitBasicsFormPlugin extends AbstractFormPlugin {
String qeug_source = supplier1.getString("qeug_source");//供应商来源 String qeug_source = supplier1.getString("qeug_source");//供应商来源
Date qeug_begin = supplier1.getDate("qeug_begin");//营业期限(起始) Date qeug_begin = supplier1.getDate("qeug_begin");//营业期限(起始)
Date qeug_end = supplier1.getDate("qeug_end");//营业期限(终止) Date qeug_end = supplier1.getDate("qeug_end");//营业期限(终止)
Date qeug_logoff = supplier1.getDate("qeug_logoff");//注销日期
this.getView().getModel().setValue("qeug_controllingperson", qeug_controllingperses); this.getView().getModel().setValue("qeug_controllingperson", qeug_controllingperses);
@ -51,6 +52,7 @@ public class PortraitBasicsFormPlugin extends AbstractFormPlugin {
this.getView().getModel().setValue("qeug_source", qeug_source); this.getView().getModel().setValue("qeug_source", qeug_source);
this.getView().getModel().setValue("qeug_begin", qeug_begin); this.getView().getModel().setValue("qeug_begin", qeug_begin);
this.getView().getModel().setValue("qeug_end", qeug_end); this.getView().getModel().setValue("qeug_end", qeug_end);
this.getView().getModel().setValue("qeug_logoff", qeug_logoff);
this.getView().updateView("qeug_controllingperson"); this.getView().updateView("qeug_controllingperson");
this.getView().updateView("qeug_regnumber"); this.getView().updateView("qeug_regnumber");
this.getView().updateView("qeug_orgnumber"); this.getView().updateView("qeug_orgnumber");
@ -63,6 +65,7 @@ public class PortraitBasicsFormPlugin extends AbstractFormPlugin {
this.getView().updateView("qeug_source"); this.getView().updateView("qeug_source");
this.getView().updateView("qeug_begin"); this.getView().updateView("qeug_begin");
this.getView().updateView("qeug_end"); this.getView().updateView("qeug_end");
this.getView().updateView("qeug_logoff");
// this.getView().updateView(); // this.getView().updateView();
} }

View File

@ -34,7 +34,7 @@ public class PushOASupplierOPPlugin extends AbstractOperationServicePlugIn {
public void afterExecuteOperationTransaction(AfterOperationArgs e){ public void afterExecuteOperationTransaction(AfterOperationArgs e){
super.afterExecuteOperationTransaction(e); super.afterExecuteOperationTransaction(e);
//todo:定时任务推送所有供应商 变更审核操作之后推送供应商 //todo:定时任务推送所有供应商 变更审核||供应商审核||资质预审审核操作之后推送供应商
String operationKey = e.getOperationKey(); String operationKey = e.getOperationKey();
if ("audit".equals(operationKey)) { if ("audit".equals(operationKey)) {

View File

@ -3,6 +3,8 @@ package shkd.repc.resm.opplugin;
import kd.bos.dataentity.entity.DynamicObject; import kd.bos.dataentity.entity.DynamicObject;
import kd.bos.entity.plugin.AbstractOperationServicePlugIn; import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
import kd.bos.entity.plugin.args.AfterOperationArgs; import kd.bos.entity.plugin.args.AfterOperationArgs;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.BusinessDataServiceHelper; import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.bos.servicehelper.operation.SaveServiceHelper; import kd.bos.servicehelper.operation.SaveServiceHelper;
import shkd.utils.DobeDWUtils; import shkd.utils.DobeDWUtils;
@ -37,7 +39,15 @@ public class RegisteredFinishregOPPlugin extends AbstractOperationServicePlugIn
regSupplier.set("qeug_linkman",resp_registered.getString("qeug_linkman"));//外部联系人 regSupplier.set("qeug_linkman",resp_registered.getString("qeug_linkman"));//外部联系人
// regSupplier.set("recommender",resp_registered.getDynamicObject("recommender"));//外部联系人 // regSupplier.set("recommender",resp_registered.getDynamicObject("recommender"));//外部联系人
regSupplier.set("qeug_recommender",resp_registered.getString("qeug_recommender"));//内部推荐人 String qeugRecommender = resp_registered.getString("qeug_recommender");//内部推荐人
QFilter qFilter = new QFilter("name", QCP.equals, qeugRecommender);
DynamicObject bos_user = BusinessDataServiceHelper.loadSingle("bos_user", new QFilter[]{qFilter});
if (null != bos_user) {
regSupplier.set("recommender",bos_user);//内部推荐人(基础资料)
}
regSupplier.set("qeug_recommender",qeugRecommender);
regSupplier.set("qeug_begin",resp_registered.getDate("qeug_begin"));//营业期限(起始)
regSupplier.set("qeug_end",resp_registered.getDate("qeug_end"));//营业期限(终止)
SaveServiceHelper.save(new DynamicObject[]{regSupplier}); SaveServiceHelper.save(new DynamicObject[]{regSupplier});
DobeDWUtils.saveLog("注册供应商", DobeDWUtils.saveLog("注册供应商",
"注册供应商",null, null, "注册供应商",null, null,