@steedos-widgets/amis-lib 6.10.23 → 6.10.24
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.
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/index.cjs.js +2 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/workflow/approve.d.ts +2 -2
- package/dist/types/workflow/flow.d.ts +2 -2
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -1519,7 +1519,7 @@ inline:true,wrapperComponent:"",id:"u:0a85de51480f"}],id:"u:bf75adfb544e",md:"au
|
|
|
1519
1519
|
autoFill:{"new_next_step":"${step}","next_users":null},"source":{"url":"/api/workflow/v2/nextStep?judge=${new_judge}","headers":{"Authorization":"Bearer ${context.tenantId},${context.authToken}"},"method":"post","messages":{},"requestAdaptor":"\n let { judge } = api.data; \n const ctx = api.data.context;\n if(!judge){\n judge='approved'\n };\n const formValues = context._scoped.getComponentById(\"instance_form\").getValues();\n api.data = {\n flowVersionId: ctx.flowVersion._id,\n instanceId: ctx._id,\n flowId: ctx.flow._id,\n step: ctx.step,\n judge: judge,\n values: formValues\n };\n return api;\n ","adaptor":"\n if(payload.error){\n SteedosUI.notification.error({message: payload.error});\n return {\n status: 0,\n data: {}\n }\n }\n payload.data = {\n value: payload.nextSteps.length === 1 ? payload.nextSteps[0]._id : null, \n options: _.map(payload.nextSteps, (item)=>{\n return {\n label: item.name, \n value: item._id,\n step: item\n }\n })\n };\n return payload;\n ","data":{// "&": "$$",
|
|
1520
1520
|
"context":"${context}","$scopeId":"${scopeId}","judge":"${new_judge}"}},"onEvent":{"change":{"weight":0,"actions":_toConsumableArray(nextStepChangeEvents)}}}],id:"u:4d3a884b437c"}],id:"u:016c56efe5fd",className:"b-a b-1x m-none p-xs",subFormMode:""});}},_callee25);}));return function getNextStepInput(_x258,_x259){return _ref28.apply(this,arguments);};}();//TODO 只有一个处理人时,默认选中,禁止修改. 部分情况不需要显示下一步处理人
|
|
1521
1521
|
var getNextStepUsersInput=/*#__PURE__*/function(){var _ref29=_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee26(instance,nextStepUserChangeEvents){var _instance$approve2;return _regenerator().w(function(_context26){while(1)switch(_context26.n){case 0:if(!(((_instance$approve2=instance.approve)===null||_instance$approve2===void 0?void 0:_instance$approve2.type)=='cc')){_context26.n=1;break;}return _context26.a(2);case 1:return _context26.a(2,{type:"grid",columns:[{body:[{type:"tpl",tpl:i18next__default["default"].t('frontend_workflow_next_users'),//"处理人",
|
|
1522
|
-
inline:true,wrapperComponent:"",id:"u:3203cc281b3c"}],id:"u:8eece76a9e4c",md:"auto",valign:"middle"},{body:[{type:"steedos-select-user",label:"",name:"next_users",hiddenOn:"this.new_next_step.deal_type != 'pickupAtRuntime' || this.new_next_step.step_type == 'counterSign'",required:true,"onEvent":{"change":{"weight":0,"actions":_toConsumableArray(nextStepUserChangeEvents)}}},{type:"steedos-select-user",label:"",name:"next_users",hiddenOn:"this.new_next_step.deal_type != 'pickupAtRuntime' || this.new_next_step.step_type != 'counterSign'",required:true,multiple:true,"onEvent":{"change":{"weight":0,"actions":_toConsumableArray(nextStepUserChangeEvents)}}},{type:"list-select",label:"",name:"next_users",id:"u:next_users",required:true,hiddenOn:"this.new_next_step.deal_type == 'pickupAtRuntime' || this.new_next_step.step_type != 'counterSign'",multiple:true,"source":{"url":"${context.rootUrl}/api/workflow/v2/nextStepUsers?next_step=${next_step}","method":"post","sendOn":"!!this.new_next_step && this.new_next_step.step_type != 'end'","headers":{"Authorization":"Bearer ${context.tenantId},${context.authToken}"},"messages":{},"requestAdaptor":"\nconst { next_step, $scopeId } = api.data;\nconst formValues = context._scoped.getComponentById(\"instance_form\").getValues();\n\napi.data = {\n instanceId: api.data.context._id,\n nextStepId: next_step._id,\n values: formValues\n}\n\n\n return api;","adaptor":"\n if(payload.error){\n SteedosUI.notification.error({message: payload.error});\n return {\n status: 0,\n data: {}\n }\n }\n payload.data = {\n value: payload.nextStepUsers.length === 1 ? payload.nextStepUsers[0].id : null, \n options: payload.nextStepUsers\n }; \n return payload;","data":{"&":"$$","$scopeId":"$scopeId","context":"${context}","next_step":"${new_next_step}"}},"labelField":"name","valueField":"id",value:'${new_next_step.approver_users}',"joinValues":false,"extractValue":true,"onEvent":{"change":{"weight":0,"actions":_toConsumableArray(nextStepUserChangeEvents)}}},{type:"list-select",label:"",name:"next_users",id:"u:next_users",required:true,hiddenOn:"this.new_next_step.deal_type === 'pickupAtRuntime' || this.new_next_step.step_type == 'counterSign'",multiple:false,"source":{"url":"${context.rootUrl}/api/workflow/v2/nextStepUsers?next_step=${next_step}","method":"post","sendOn":"!!this.new_next_step && this.new_next_step.step_type != 'end'","headers":{"Authorization":"Bearer ${context.tenantId},${context.authToken}"},"messages":{},"requestAdaptor":"\nconst { next_step, $scopeId } = api.data;\nconst formValues = context._scoped.getComponentById(\"instance_form\").getValues();\n\napi.data = {\n instanceId: api.data.context._id,\n nextStepId: next_step._id,\n values: formValues\n}\n\n\n return api;","adaptor":"\n if(payload.error){\n SteedosUI.notification.error({message: payload.error});\n return {\n status: 0,\n data: {}\n }\n }\n payload.data = {\n value: payload.nextStepUsers.length === 1 ? payload.nextStepUsers[0].id : null, \n options: payload.nextStepUsers\n }; \n return payload;","data":{"&":"$$","$scopeId":"$scopeId","context":"${context}","next_step":"${new_next_step}"}},"labelField":"name","valueField":"id",value:'${new_next_step.approver_users}',"joinValues":false,"extractValue":true,"onEvent":{"change":{"weight":0,"actions":_toConsumableArray(nextStepUserChangeEvents)}}}// {
|
|
1522
|
+
inline:true,wrapperComponent:"",id:"u:3203cc281b3c"}],id:"u:8eece76a9e4c",md:"auto",valign:"middle"},{body:[{type:"steedos-select-user",label:"",name:"next_users",id:"u:next_users",hiddenOn:"this.new_next_step.deal_type != 'pickupAtRuntime' || this.new_next_step.step_type == 'counterSign'",required:true,"onEvent":{"change":{"weight":0,"actions":_toConsumableArray(nextStepUserChangeEvents)}}},{type:"steedos-select-user",label:"",name:"next_users",id:"u:next_users",hiddenOn:"this.new_next_step.deal_type != 'pickupAtRuntime' || this.new_next_step.step_type != 'counterSign'",required:true,multiple:true,"onEvent":{"change":{"weight":0,"actions":_toConsumableArray(nextStepUserChangeEvents)}}},{type:"list-select",label:"",name:"next_users",id:"u:next_users",required:true,hiddenOn:"this.new_next_step.deal_type == 'pickupAtRuntime' || this.new_next_step.step_type != 'counterSign'",multiple:true,"source":{"url":"${context.rootUrl}/api/workflow/v2/nextStepUsers?next_step=${next_step}","method":"post","sendOn":"!!this.new_next_step && this.new_next_step.step_type != 'end'","headers":{"Authorization":"Bearer ${context.tenantId},${context.authToken}"},"messages":{},"requestAdaptor":"\nconst { next_step, $scopeId } = api.data;\nconst formValues = context._scoped.getComponentById(\"instance_form\").getValues();\n\napi.data = {\n instanceId: api.data.context._id,\n nextStepId: next_step._id,\n values: formValues\n}\n\n\n return api;","adaptor":"\n if(payload.error){\n SteedosUI.notification.error({message: payload.error});\n return {\n status: 0,\n data: {}\n }\n }\n payload.data = {\n value: payload.nextStepUsers.length === 1 ? payload.nextStepUsers[0].id : null, \n options: payload.nextStepUsers\n }; \n return payload;","data":{"&":"$$","$scopeId":"$scopeId","context":"${context}","next_step":"${new_next_step}"}},"labelField":"name","valueField":"id",value:'${new_next_step.approver_users}',"joinValues":false,"extractValue":true,"onEvent":{"change":{"weight":0,"actions":_toConsumableArray(nextStepUserChangeEvents)}}},{type:"list-select",label:"",name:"next_users",id:"u:next_users",required:true,hiddenOn:"this.new_next_step.deal_type === 'pickupAtRuntime' || this.new_next_step.step_type == 'counterSign'",multiple:false,"source":{"url":"${context.rootUrl}/api/workflow/v2/nextStepUsers?next_step=${next_step}","method":"post","sendOn":"!!this.new_next_step && this.new_next_step.step_type != 'end'","headers":{"Authorization":"Bearer ${context.tenantId},${context.authToken}"},"messages":{},"requestAdaptor":"\nconst { next_step, $scopeId } = api.data;\nconst formValues = context._scoped.getComponentById(\"instance_form\").getValues();\n\napi.data = {\n instanceId: api.data.context._id,\n nextStepId: next_step._id,\n values: formValues\n}\n\n\n return api;","adaptor":"\n if(payload.error){\n SteedosUI.notification.error({message: payload.error});\n return {\n status: 0,\n data: {}\n }\n }\n payload.data = {\n value: payload.nextStepUsers.length === 1 ? payload.nextStepUsers[0].id : null, \n options: payload.nextStepUsers\n }; \n return payload;","data":{"&":"$$","$scopeId":"$scopeId","context":"${context}","next_step":"${new_next_step}"}},"labelField":"name","valueField":"id",value:'${new_next_step.approver_users}',"joinValues":false,"extractValue":true,"onEvent":{"change":{"weight":0,"actions":_toConsumableArray(nextStepUserChangeEvents)}}}// {
|
|
1523
1523
|
// type: "steedos-select-user",
|
|
1524
1524
|
// label: "",
|
|
1525
1525
|
// name: "next_users",
|