30 lines
945 B
JavaScript
30 lines
945 B
JavaScript
|
/* ******************* youhong.ai 丰田纺织流程代码块 可选择流程中的字段配置流程标题生成规则******************* */
|
||
|
|
||
|
$(() => {
|
||
|
let workflowTitleConfig = {
|
||
|
workflowId: '44',
|
||
|
titleFieldName: 'field-1',
|
||
|
rules: [{
|
||
|
type: RulesType.CURRENT_DATE
|
||
|
},
|
||
|
{
|
||
|
type: RulesType.FIX_STRING,
|
||
|
value: '-'
|
||
|
}, {
|
||
|
type: RulesType.FIELD_VALUE,
|
||
|
fieldName: 'mc'
|
||
|
}, {
|
||
|
type: RulesType.FIELD_VALUE,
|
||
|
fieldName: 'sjid'
|
||
|
}, {
|
||
|
type: RulesType.RANDOM,
|
||
|
length: 5
|
||
|
}, {
|
||
|
type: RulesType.RANDOM,
|
||
|
length: 5
|
||
|
}]
|
||
|
}
|
||
|
new ConfigWorkflowTitle(workflowTitleConfig).init()
|
||
|
})
|
||
|
/* ******************* 可选择流程中的字段配置流程标题生成规则 end ******************* */
|