费用报销二开扩展--web端报销单编辑页面费用类型只想显示名称

栏目:eas cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-22浏览:1

费用报销二开扩展--web端报销单编辑页面费用类型只想显示名称

1 问题描述

web端费用报销单分录费用类型只想显示名称


2 解决方法

需要扩展标准的expenseF7格式化方法,

代码如下

waf.defineCustomeClass("cellformatter.expenseF7", cellformatter.f7, 

    { format: function(cellval, rwd) { 

     if (!rwd || typeof(cellval) == "string") return cellval; 

     if (bizCollBillBase.isShowExpenseLongName()) { 

         this.opts.colModel.formatoptions = {displayFormat: "{displayName}"}; } 

    else { 

         this.opts.colModel.formatoptions = {displayFormat: "{name}"}; 

         return cellformatter.f7.prototype.format.call(this, cellval, rwd);  } 

 });


实现效果

5 参考资料(可选)

以下为二开相关参考知识: 

1、 WAF2参考:http://waf2.kingdee.com:6888/waf2help/ 

2、 费用报销二开参考:

https://vip.kingdee.com/school/detail/164751528979361024?productLineId=8&lang=zh-CN




费用报销二开扩展--web端报销单编辑页面费用类型只想显示名称

1 问题描述web端费用报销单分录费用类型只想显示名称2 解决方法需要扩展标准的expenseF7格式化方法,代码如下waf.defineCustomeClass("ce...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息