web报销扩展-费用申请单费用类型条数默认修改
如图,在web扩展平台打开费用申请单编辑页面,选中费用明细框,在右侧事件一栏点击展开,重写
entryGridLoadAfter方法为entryGridLoadAfterEx;
点击保存,打开设置可以看到生成好了我们需要的控件方法
先在上图1中加入如下方法:
initEntryExpenseType: function() {
// 初始化分录-费用类型控件
var entryDom = waf("#entries"),
editOptions = entryDom.wafGrid("getColumnProp", "expenseType", "editoptions");
editOptions.subWidgetName = "wafPromptExpenseType";
editOptions.subTagJson = {
billType: _self.getBillType(),
width: 960,
height: 650,
rowNum: 50,
forceToFit: true,
costCenterId: _self.getCostCenterId,
companyId: _self.getCompanyId
};
if (bizCollBillBase.isShowExpenseLongName()) {
editOptions.f7Json.displayFormat = "{number} {displayName}";
} else {
editOptions.f7Json.displayFormat = "{number} {name}";
}
entryDom.wafGrid("setColumnProp", "expenseType", "editoptions", editOptions);
}
再在图二位置加入如下代码:
waf.extend(_public,{
super_entryGridLoadAfter:_self.entryGridLoadAfter
});
最后在我们生成好的entryGridLoadAfterEx方法中加入如下代码:
_public.super_entryGridLoadAfter(data);
_private.initEntryExpenseType();
点击保存预览后可以看到这块费用类型默认显示条数改为我们需要的了
web报销扩展-费用申请单费用类型条数默认修改
本文2024-09-16 22:26:00发表“eas cloud知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-eas-48079.html