mirror of
https://github.com/steedos/steedos-platform
synced 2024-11-22 00:01:52 +00:00
#2733 批准步骤中为了保存特殊值去掉 optionsFunction 换成 reference_to_field: xx
This commit is contained in:
parent
ad297b8e9b
commit
a3701f9f36
@ -66,47 +66,15 @@ fields:
|
||||
assigned_approver_roles:
|
||||
type: lookup
|
||||
reference_to: roles
|
||||
reference_to_field: api_name
|
||||
multiple: true
|
||||
group: Select Assigned Approver
|
||||
optionsFunction: !!js/function |
|
||||
function () {
|
||||
|
||||
let selects = ["name", "api_name"]
|
||||
let options = {
|
||||
$select: selects.toString()
|
||||
};
|
||||
let records = Creator.odata.query('roles', options, true);
|
||||
let result = [];
|
||||
records.forEach(function (item) {
|
||||
result.push({
|
||||
label: item.name,
|
||||
value: item.api_name
|
||||
});
|
||||
});
|
||||
return result;
|
||||
}
|
||||
assigned_approver_flow_roles:
|
||||
type: lookup
|
||||
reference_to: flow_roles
|
||||
reference_to_field: api_name
|
||||
multiple: true
|
||||
group: Select Assigned Approver
|
||||
optionsFunction: !!js/function |
|
||||
function () {
|
||||
|
||||
let selects = ["name", "api_name"]
|
||||
let options = {
|
||||
$select: selects.toString()
|
||||
};
|
||||
let records = Creator.odata.query('flow_roles', options, true);
|
||||
let result = [];
|
||||
records.forEach(function (item) {
|
||||
result.push({
|
||||
label: item.name,
|
||||
value: item.api_name
|
||||
});
|
||||
});
|
||||
return result;
|
||||
}
|
||||
assigned_approver_user_field:
|
||||
type: lookup
|
||||
multiple: true
|
||||
@ -163,6 +131,7 @@ fields:
|
||||
multiple: true
|
||||
label: Field Update
|
||||
reference_to: action_field_updates
|
||||
reference_to_field: name
|
||||
depend_on:
|
||||
- process_definition
|
||||
filtersFunction: !!js/function |
|
||||
@ -176,29 +145,13 @@ fields:
|
||||
return "object_name eq '" + object_name + "'";
|
||||
}
|
||||
}
|
||||
optionsFunction: !!js/function |
|
||||
function () {
|
||||
|
||||
let selects = ["name", "label"]
|
||||
let options = {
|
||||
$select: selects.toString()
|
||||
};
|
||||
let records = Creator.odata.query('action_field_updates', options, true);
|
||||
let result = [];
|
||||
records.forEach(function (item) {
|
||||
result.push({
|
||||
label: item.label,
|
||||
value: item.name
|
||||
});
|
||||
});
|
||||
return result;
|
||||
}
|
||||
group: Approval Actions
|
||||
approval_workflow_notifications_actions:
|
||||
type: lookup
|
||||
multiple: true
|
||||
label: Workflow Notification
|
||||
reference_to: workflow_notifications
|
||||
reference_to_field: name
|
||||
depend_on:
|
||||
- process_definition
|
||||
filtersFunction: !!js/function |
|
||||
@ -212,29 +165,13 @@ fields:
|
||||
return "object_name eq '" + object_name + "'";
|
||||
}
|
||||
}
|
||||
optionsFunction: !!js/function |
|
||||
function () {
|
||||
|
||||
let selects = ["name", "label"]
|
||||
let options = {
|
||||
$select: selects.toString()
|
||||
};
|
||||
let records = Creator.odata.query('workflow_notifications', options, true);
|
||||
let result = [];
|
||||
records.forEach(function (item) {
|
||||
result.push({
|
||||
label: item.label,
|
||||
value: item.name
|
||||
});
|
||||
});
|
||||
return result;
|
||||
}
|
||||
group: Approval Actions
|
||||
rejection_updates_field_actions:
|
||||
type: lookup
|
||||
multiple: true
|
||||
label: Field Update
|
||||
reference_to: action_field_updates
|
||||
reference_to_field: name
|
||||
depend_on:
|
||||
- process_definition
|
||||
filtersFunction: !!js/function |
|
||||
@ -248,29 +185,13 @@ fields:
|
||||
return "object_name eq '" + object_name + "'";
|
||||
}
|
||||
}
|
||||
optionsFunction: !!js/function |
|
||||
function () {
|
||||
|
||||
let selects = ["name", "label"]
|
||||
let options = {
|
||||
$select: selects.toString()
|
||||
};
|
||||
let records = Creator.odata.query('action_field_updates', options, true);
|
||||
let result = [];
|
||||
records.forEach(function (item) {
|
||||
result.push({
|
||||
label: item.label,
|
||||
value: item.name
|
||||
});
|
||||
});
|
||||
return result;
|
||||
}
|
||||
group: Rejection Actions
|
||||
rejection_workflow_notifications_actions:
|
||||
type: lookup
|
||||
multiple: true
|
||||
label: Workflow Notification
|
||||
reference_to: workflow_notifications
|
||||
reference_to_field: name
|
||||
depend_on:
|
||||
- process_definition
|
||||
filtersFunction: !!js/function |
|
||||
@ -284,23 +205,6 @@ fields:
|
||||
return "object_name eq '" + object_name + "'";
|
||||
}
|
||||
}
|
||||
optionsFunction: !!js/function |
|
||||
function () {
|
||||
|
||||
let selects = ["name", "label"]
|
||||
let options = {
|
||||
$select: selects.toString()
|
||||
};
|
||||
let records = Creator.odata.query('workflow_notifications', options, true);
|
||||
let result = [];
|
||||
records.forEach(function (item) {
|
||||
result.push({
|
||||
label: item.label,
|
||||
value: item.name
|
||||
});
|
||||
});
|
||||
return result;
|
||||
}
|
||||
group: Rejection Actions
|
||||
form:
|
||||
beforeInsert:
|
||||
|
Loading…
Reference in New Issue
Block a user