cloud-web-corejs 1.0.54-dev.306 → 1.0.54-dev.308
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -936,15 +936,20 @@ identityInfo:身份信息对象
|
|
936
936
|
parentCompanyCode:集团企业编码
|
937
937
|
nowDate:当前时间
|
938
938
|
nowDateStr:当前时间字符串(yyyy-MM-dd HH:mm:ss)
|
939
|
+
nowDayStr:当前天字符串(yyyy-MM-dd)
|
939
940
|
tableName:数据库表名,取表单设计中维护的表名作为参数名称
|
940
941
|
tableField1:数据库表字段名1
|
941
942
|
tableField2:数据库表字段名2
|
942
943
|
tableField3:数据库表字段名3
|
943
944
|
......
|
944
945
|
|
945
|
-
2
|
946
|
+
2、可使用函数:
|
947
|
+
func.orgName(orgId):根据机构id获取机构名称
|
948
|
+
func.convertDate(date, format):时间转换,如当前时间转为当前天字符串,则$\{func.convertDate(nowDate, 'yyyy-MM-dd')\},当前时间转为当前月字符串,则$\{func.convertDate(nowDate, 'yyyy-MM')\}
|
949
|
+
|
950
|
+
3、配置示例
|
946
951
|
比如表名为:pm_product_project,配置如下:
|
947
|
-
$\{wf.starterName\}提交的$\{pm_product_project.product_code\}$\{pm_product_project.product_name\}$\{wf.name\}$\{pm_product_project.sn\}`
|
952
|
+
$\{wf.starterName\}提交的$\{pm_product_project.product_code\}$\{pm_product_project.product_name\}$\{wf.name\}$\{pm_product_project.sn\}$\{func.orgName(pm_product_project.f_sale_org_id)\}$\{nowDayStr\}`
|
948
953
|
};
|
949
954
|
},
|
950
955
|
created() {
|