@steedos-labs/plugin-workflow 3.0.1-beta.3 → 3.0.1-beta.4

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.
@@ -90,7 +90,7 @@ amis_schema: |-
90
90
  ]
91
91
  }
92
92
  },
93
- "hiddenOn": "!(record.box === 'outbox' && record.state === 'pending')"
93
+ "hiddenOn": "!( (record.box === 'outbox' || record.box === 'pending') && record.state === 'pending')"
94
94
  }
95
95
  ],
96
96
  "regions": [
@@ -19,7 +19,7 @@ amis_schema: |-
19
19
  "body": [
20
20
  {
21
21
  "type": "tpl",
22
- "tpl": "确认退回至提交申请?",
22
+ "tpl": "确认退回至上一步?",
23
23
  "inline": true,
24
24
  "wrapperComponent": "h2",
25
25
  "id": "u:4d2fdd40be81",
@@ -101,8 +101,7 @@ amis_schema: |-
101
101
  "weight": 0
102
102
  }
103
103
  },
104
- "hiddenOn": "!(record.step && (record.step.step_type === 'submit' || record.step.step_type == 'sign' || record.step.step_type === 'counterSign') )",
105
- "hidden": "typeof this.hiddenOn === \"string\" ? 2 : 1"
104
+ "hiddenOn": "!(record.step && (record.step.step_type === 'submit' || record.step.step_type == 'sign' || record.step.step_type === 'counterSign') && record.box == 'inbox' && record.approve && record.approve.type != 'cc')"
106
105
  }
107
106
  ],
108
107
  "regions": [
@@ -440,11 +440,11 @@
440
440
  return payload;
441
441
  `,
442
442
  requestAdaptor: `
443
- const filters = ${_.replace(field.filters, /_.pluck/g, '_.map')};
444
- const url = ${field.url}
443
+ const filters = \`${_.replace(field.filters, /_.pluck/g, '_.map')}\`;
444
+ const url = \`${field.url}\`;
445
445
  if(filters){
446
446
  console.log('filters', filters);
447
- const joinKey = field.url.indexOf('?') > 0 ? '&' : '?';
447
+ const joinKey = url.indexOf('?') > 0 ? '&' : '?';
448
448
  if(filters.startsWith('function(') || filters.startsWith('function (')){
449
449
  const argsName = ${JSON.stringify(argsName)};
450
450
  const fun = eval('_fun='+filters);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-labs/plugin-workflow",
3
- "version": "3.0.1-beta.3",
3
+ "version": "3.0.1-beta.4",
4
4
  "main": "package.service.js",
5
5
  "license": "MIT",
6
6
  "scripts": {