跨设备表单
跨设备表单的自定义操作权限控制表达式
${row.getValue("wf_status")==0 && row.getValue("wf_creator_user_inner")==userId}
iif(${wf_rule_id}=='43',true,false) iif(${wf_rule_id}=="43",true,${wf_rule_id}=="47",false)
//判断当前登录用户是否包含内部名称为 "role_material_store_manager" 的角色
${userRoleName.contains("role_material_store_manager")}
移动端页面
<div class="model">
<#if row['c_weighpair']==0>
待处理
<#else>
已处理
</#if>
<h3> ${displayValue(findField(parent.MetaData,"c_customerid"),row) ?no_esc}</h3>
<h4> ${displayValue(findField(parent.MetaData,"PlateNo"),row) ?no_esc}</h4>
<h4> ${displayValue(findField(parent.MetaData,"CreateDate"),row) ?no_esc}</h4>
<h5 class="module_right_top">${displayValue(findField(parent.MetaData,"StorageTime"),row) ?no_esc }</h5>
</div>
参数值表达式
${scanCode.toString()==""?"":scanCode.substring(0,scanCode.indexOf("_",0))}
前端表达式
${c_rp_dept_type}=='9' && ${norecrecuser_details}>0
// 颜色
iif(daysBetween(toDay(),${wf_req_complete_time})<=0,"red",daysBetween(toDay(),${wf_req_complete_time})<=2,"yellow",daysBetween(toDay(),${wf_req_complete_time})<=7,"green","black")
虚拟字段的表达式
${execSql(dbContext,'select is_distribute from wf_rules_step where wf_rules_step.rule_id='.concat(row.getValue("wf_rule_id")).concat(' and step_id=(SELECT step_id_plan FROM wf_logger WHERE rule_id=').concat(row.getValue("wf_rule_id")).concat(' and wf_id=').concat(row.getValue("wf_id")).concat(' and user_inner_to=\'').concat(userId).concat('\' and is_newly=1'))}
${execSql(dbContext,'SELECT count(*) as h FROM wf_logger WHERE rule_id='.concat(row.getValue("wf_rule_id")).concat(' and wf_id=').concat(row.getValue("wf_id")).concat(' and user_inner_to=\'').concat(userId).concat('\' and is_newly=1'))}
${isEmpty(row.getValue("c_wf_id_exists"))?'不存在':'存在'}
所管组织根节点
${execSql(dbContext,'select IFNULL(c_manage_org_inners,org_inner_name) as manage_org from sys_users where user_inner=\''.concat(userId).concat('\''))}
保存校验
${wf_specify_recorg}==1 && ${c_receive_org_inner}==''
提示信息要加引号
字段自动赋值
${execSql(dbContext,"select productManager from lcz_product_module where guid=".concat(row.getValue("productModule")))}
工作流
初始化配置,流程标题
乐创者工单-${mainRow.getValue("guid")}-${execSql(dbContext,"select orderType from lcz_order_type where guid=".concat(row.getValue("orderType")))}
提交校验设置
${isEmpty(mainRow.getValue("reqbugNum")) && v_transTo==0}
${execSql(dbContext,'select count(*) as t from lcz_work_order_req where orderId='.concat(mainRow.getValue("guid")))=='0' && v_transTo==0}
提交后事件
后端表达式
${v_transTo=='0'?mainRow.getValue("orderType"):v_transTo}
${v_transTo.equals('0')?mainRow.getValue("orderType"):v_transTo}
若要赋予 null,则类型为表达式,内容为: ${''}
作者:林 创建时间:2024-01-04 14:27
最后编辑:林 更新时间:2025-04-24 13:55
最后编辑:林 更新时间:2025-04-24 13:55
