Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
xuhaihui 2025-11-28 14:06:54 +08:00
commit 31f67bd356
1 changed files with 9 additions and 3 deletions

View File

@ -55,11 +55,13 @@ public class EquipmentCostSplitFormPluginExt extends EquipmentCardListPlugin{
DynamicObjectCollection costSplitList = this.getModel().getEntryEntity("settlesplitentity");
costSplitList.clear();
DynamicObject settleSplit = null;
if (this.getModel().getValue("project") == null) {
DynamicObject period = (DynamicObject)this.getModel().getValue("splitperiod");
if (period== null) {
this.getView().showTipNotification(ResManager.loadKDString("请选择期间!", "EquipmentCostSplitFormPlugin_2", "ec-eceq-formplugin", new Object[0]));
}else if (this.getModel().getValue("project") == null) {
this.getView().showTipNotification(ResManager.loadKDString("工程项目不能为空。", "EquipmentCostSplitFormPlugin_2", "ec-eceq-formplugin", new Object[0]));
} else {
DynamicObject project = (DynamicObject)this.getModel().getValue("project");
DynamicObject period = (DynamicObject)this.getModel().getValue("splitperiod");
QFilter qFilter = new QFilter("project", "=", project.getPkValue());
QFilter qFilter1 = new QFilter("id", "<>", this.getModel().getDataEntity().getPkValue());
DynamicObject[] equipCostSpiltList = BusinessDataServiceHelper.load("eceq_costsplit", "settlesplitentity,settlesplitentity.settleid", new QFilter[]{qFilter, qFilter1});
@ -227,7 +229,10 @@ public class EquipmentCostSplitFormPluginExt extends EquipmentCardListPlugin{
DynamicObject[] loadsettle = BusinessDataServiceHelper.load("eceq_settle", "",
new QFilter[]{new QFilter("org", "=", org.getLong("id"))
, new QFilter("period", "=", splitperiod.getLong("id")),
new QFilter("billstatus", "=", "C").or(new QFilter("billstatus", "=", "B"))});
new QFilter("billstatus", "=", "C")
.or(new QFilter("billstatus", "=", "B"))
,new QFilter("zcgj_depreciable","=",true)});
if(loadsettle.length == 0){
//eceq_settle
DynamicObject eceqsettle =BusinessDataServiceHelper.newDynamicObject("eceq_settle");//设备费用结算
@ -243,6 +248,7 @@ public class EquipmentCostSplitFormPluginExt extends EquipmentCardListPlugin{
eceqsettle.set("creator",currentUserId);
eceqsettle.set("billname",org.getString("name")+"设备折旧费");
eceqsettle.set("billstatus","C");
eceqsettle.set("zcgj_depreciable",true);
int i=0;
DynamicObjectCollection entryentity = eceqsettle.getDynamicObjectCollection("entryentity");//设备结算分录
BigDecimal allAmount = BigDecimal.ZERO;