1.优化天眼查比对供应商资质逻辑

S
This commit is contained in:
weiyunlong 2025-04-23 11:23:24 +08:00
parent d80b3b9e8a
commit d3ed34bdfa
1 changed files with 10 additions and 9 deletions

View File

@ -72,9 +72,6 @@ public class TycQzSupplierFormPlugin extends AbstractFormPlugin {
this.getView().showMessage(ResManager.loadKDString("请先保存", "ImportRegSupplierList_2", "repc-resm-formplugin", new Object[0])); this.getView().showMessage(ResManager.loadKDString("请先保存", "ImportRegSupplierList_2", "repc-resm-formplugin", new Object[0]));
evt.setCancel(true); evt.setCancel(true);
} }
} }
} }
@ -89,6 +86,10 @@ public class TycQzSupplierFormPlugin extends AbstractFormPlugin {
if (this.checkIsCanDo(args)) { if (this.checkIsCanDo(args)) {
this.showPreaudit(args); this.showPreaudit(args);
} }
this.getView().invokeOperation("save");//调用保存
}
if ("query_tyc".equals(operateKey)) {
this.getView().invokeOperation("save");//调用保存
} }
} }
@ -108,12 +109,12 @@ public class TycQzSupplierFormPlugin extends AbstractFormPlugin {
} }
DynamicObject resm_regsupplier = BusinessDataServiceHelper.loadSingle(pkValue, "resm_regsupplier"); DynamicObject resm_regsupplier = BusinessDataServiceHelper.loadSingle(pkValue, "resm_regsupplier");
if ("preaudit".equals(operateKey) && resm_regsupplier != null) { // if ("preaudit".equals(operateKey) && resm_regsupplier != null) {
DynamicObjectCollection qeug_infocheckentry = resm_regsupplier.getDynamicObjectCollection("qeug_infocheckentry"); // DynamicObjectCollection qeug_infocheckentry = resm_regsupplier.getDynamicObjectCollection("qeug_infocheckentry");
if (qeug_infocheckentry.size() > 0) { // if (qeug_infocheckentry.size() > 0) {
return; // 如果存在核对项直接返回 // return; // 如果存在核对项直接返回
} // }
} // }
showPreaudits(resm_regsupplier);//比对天眼查数据 showPreaudits(resm_regsupplier);//比对天眼查数据
this.getView().invokeOperation("refresh"); this.getView().invokeOperation("refresh");
} }