错误响应:
{"requestid":"xx","code":"processInstanceInvalidParameter","message":"审批实例参数错误"}
以下为调用参数和对应模板的结构,只有出库数量是必填的,我想知道提示「审批实例参数错误」的依据是什么?
接口: https://api.dingtalk.com/v1.0/workflow/processInstances
请求体:
{
"formComponentValues": [
{
"name": "出库数量",
"value": "48"
}
],
"originatorUserId": "xxxxxx",
"processCode": "xxxxx"
}
对应模板表单结构:
{
"result":{
"schemaContent":{
"icon":"common",
"title":"设备出库登记审批",
"items":[
{
"componentName":"TextField",
"props":{
"staffStatusEnabled":false,
"holidayOptions":[],
"bizAlias":"",
"id":"TextField-IH4T9JQ9",
"label":"设备类型",
"placeholder":"",
"push":{}
}
},
{
"componentName":"TextField",
"props":{
"staffStatusEnabled":false,
"holidayOptions":[],
"bizAlias":"",
"id":"TextField_1J4FL8RPPKDC0",
"label":"设备型号",
"placeholder":"请输入",
"required":false,
"push":{}
}
},
{
"componentName":"DDDateField",
"props":{
"staffStatusEnabled":false,
"unit":"天",
"holidayOptions":[],
"format":"yyyy-MM-dd",
"bizAlias":"",
"id":"DDDateField_1T99PBW4877K0",
"label":"出库时间",
"placeholder":"请选择",
"required":false,
"push":{}
}
},
{
"componentName":"TextField",
"props":{
"staffStatusEnabled":false,
"holidayOptions":[],
"bizAlias":"",
"id":"TextField_216IWPAEVB8G0",
"label":"出库人",
"placeholder":"",
"required":false,
"push":{}
}
},
{
"componentName":"TextField",
"props":{
"staffStatusEnabled":false,
"holidayOptions":[],
"bizAlias":"",
"id":"TextField_1TOFHMIKW1B40",
"label":"关联客户",
"placeholder":"请输入",
"required":false,
"push":{}
}
},
{
"componentName":"TextField",
"props":{
"staffStatusEnabled":false,
"holidayOptions":[],
"bizAlias":"",
"id":"TextField_1BMK5A5ZOLWG0",
"label":"出库数量",
"placeholder":"请输入",
"required":true,
"push":{}
}
},
{
"componentName":"TextField",
"props":{
"staffStatusEnabled":false,
"holidayOptions":[],
"bizAlias":"",
"id":"TextField_1X38X0QRMTFK0",
"label":"出库预估金额(合计)",
"placeholder":"请输入",
"required":false,
"push":{}
}
},
{
"componentName":"TextField",
"props":{
"staffStatusEnabled":false,
"holidayOptions":[],
"bizAlias":"",
"id":"TextField_SKLYQZCPRC00",
"label":"关联项目",
"placeholder":"请输入",
"required":false,
"push":{}
}
},
{
"componentName":"TextField",
"props":{
"staffStatusEnabled":false,
"holidayOptions":[],
"bizAlias":"",
"id":"TextField_H0NNOTKYTQO0",
"label":"项目成本中心",
"placeholder":"请输入",
"required":false,
"push":{}
}
},
{
"componentName":"TextareaField",
"props":{
"staffStatusEnabled":false,
"holidayOptions":[],
"id":"TextareaField-IH4T9JQK",
"label":"备注",
"placeholder":"请输入",
"push":{}
}
}
]
},
"name":"设备出库登记审批"
}
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。