支出财务确认单增加工序必填校验

This commit is contained in:
哈哈哈丿 2025-07-04 10:54:58 +08:00
parent a4bb31c6e8
commit bfd1fc3ef4
1 changed files with 11 additions and 0 deletions

View File

@ -135,6 +135,17 @@ public class OutContractFinaceConfirmePlugin extends AbstractBillPlugIn impleme
this.getModel().setValue("zcgj_accounttype",null,rowIndex); this.getModel().setValue("zcgj_accounttype",null,rowIndex);
} }
} }
}else if(StringUtils.equals(name, "zcgj_accounttype")){
DynamicObject newValue = (DynamicObject)changeData.getNewValue();
int rowIndex = changeData.getRowIndex();
if(newValue!=null){
String number = newValue.getString("number");
if(StringUtils.equals(number, "FL001")){//生成成本
this.getView().setEnable(true, rowIndex, "zcgj_cbs");
}else{
this.getView().setEnable(false, rowIndex, "zcgj_cbs");
}
}
} }