@steedos/standard-process-approval 2.5.19 → 2.5.20-beta.10

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.
@@ -137,30 +137,19 @@ fields:
137
137
  time_triggers.$.date_field:
138
138
  label: 日期字段
139
139
  type: lookup
140
+ reference_to: object_fields
141
+ reference_to_field: name
142
+ enable_enhanced_lookup: false
140
143
  depend_on:
141
144
  - object_name
142
- optionsFunction: !!js/function |
143
- function (values) {
144
- console.log('values: ', values);
145
- const object_name = values.object_name;
146
- const options = [];
147
- if (object_name) {
148
- var object = Creator.getObject(object_name);
149
- var objectLabel = object.label;
150
- var fields = object.fields;
151
- for(const key in fields) {
152
- if (Object.hasOwnProperty.call(fields, key)) {
153
- const f = fields[key]
154
- if (!f.hidden && (f.type == 'datetime' || f.type == 'date')) {
155
- options.push({
156
- label: objectLabel + ': ' + f.label,
157
- value: f.name
158
- })
159
- }
160
- }
161
- }
145
+ filtersFunction: !<tag:yaml.org,2002:js/function> |-
146
+ function (filters, values) {
147
+ const objectName = values.object_name;
148
+ if(objectName){
149
+ return [['object', '=', objectName], ['type', '=', ['datetime','date']]]
150
+ }else{
151
+ return ['_id', '=', 'no']
162
152
  }
163
- return options
164
153
  }
165
154
  time_triggers.$.updates_field_actions:
166
155
  type: lookup
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos/standard-process-approval",
3
- "version": "2.5.19",
3
+ "version": "2.5.20-beta.10",
4
4
  "main": "package.service.js",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -10,10 +10,10 @@
10
10
  "steedos"
11
11
  ],
12
12
  "dependencies": {
13
- "@steedos/process": "2.5.19"
13
+ "@steedos/process": "2.5.20-beta.10"
14
14
  },
15
15
  "description": "steedos package",
16
16
  "repository": {},
17
17
  "license": "MIT",
18
- "gitHead": "f45f110239267697485b421285e61ca020e4779b"
18
+ "gitHead": "42a5b30eb9031f18283b2b10f1983ede714d7f49"
19
19
  }