web开发--分录物料F7设置默认分类标准原创
金蝶云社区-余路生
余路生
7人赞赏了该文章 178次浏览 未经作者许可,禁止转载编辑于2023年02月10日 19:03:10

需求:分录的物料F7需要修改默认的分类标准,如下图

上传图片


方法如下:
1、添加F7打开前事件

上传图片


2、编写代码

上传图片

代码:

beforeOpen:function(options){        		
		waf(options.target).wafPromptSpecial_Material("option","lastGroupStandard","aVgJygEgEADgAABEfwAAAZeb4R8="); 
			waf(options.target).wafPromptSpecial_Material("option","treeRoot",{
                                   		                                                              id : "aVgJygEgEADgAABEfwAAAZeb4R8=",
                                  			                                                      name : "全部",
                                    		                                                              isParent : true,
                                    			                                                      isRoot : true,
                                    			                                                      standardType : 0});
        }


效果:

上传图片


表头物料F7修改可参考:https://vip.kingdee.com/article/290448426498345216?productLineId=8

赞 7