web报销扩展-费用申请单费用类型条数默认修改

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

web报销扩展-费用申请单费用类型条数默认修改

  1. image.webp

    如图,在web扩展平台打开费用申请单编辑页面,选中费用明细框,在右侧事件一栏点击展开,重写

    entryGridLoadAfter方法为entryGridLoadAfterEx;

  2. image.webp

    image.webp

    点击保存,打开设置可以看到生成好了我们需要的控件方法

  3. image.webp

    image.webp

    image.webp

    先在上图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();

  4. image.webp

    image.webp

    点击保存预览后可以看到这块费用类型默认显示条数改为我们需要的了


web报销扩展-费用申请单费用类型条数默认修改

如图,在web扩展平台打开费用申请单编辑页面,选中费用明细框,在右侧事件一栏点击展开,重写entryGridLoadAfter方法为entryGridLoadAfterE...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息