[关闭]
@ZSCDumin 2018-12-15T09:20:05.000000Z 字数 1305 阅读 488

红单管理新增接口

接口


红单新增:

测试数据:

保存:POST -> /repoRedTable/add

  1. {
  2. "commonBatchNumber": {
  3. "createPersonId": 1,
  4. "dataType": 6,
  5. "description": "红单管理审批",
  6. "status": -1
  7. },
  8. "details": {
  9. "note": "备注",
  10. "quantityLoss": 11,
  11. "serialNumberId": 1,
  12. "weightLoss": 11
  13. }
  14. }

返回结果

  1. {
  2. "code": 0,
  3. "message": "操作成功",
  4. "data": {
  5. "commonBatchNumber": {
  6. "id": 272,
  7. "batchNumber": "ECT/0B542635D6E6",
  8. "createTime": "2018-12-15 09:07:31",
  9. "createPersonId": 1,
  10. "status": -1,
  11. "dataType": 6,
  12. "isUrgent": null,
  13. "description": "红单管理",
  14. "memo": null
  15. },
  16. "createPersonName": null,
  17. "details": {
  18. "id": 143,
  19. "batchNumberId": 272,
  20. "serialNumberId": 1,
  21. "quantityLoss": 11,
  22. "weightLoss": 11,
  23. "note": "备注"
  24. }
  25. }
  26. }

红单编辑:

编辑> PUT /repoRedTable/update

  1. {
  2. "commonBatchNumber": {
  3. "id": 195,
  4. "batchNumber": "ECT/D593018931E2",
  5. "createPersonId": 1,
  6. "dataType": 6,
  7. "description": "红单管理审批"
  8. },
  9. "details": {
  10. "id": 99,
  11. "note": "备注1",
  12. "quantityLoss": 11,
  13. "serialNumberId": 1,
  14. "weightLoss": 11
  15. }
  16. }

返回结果

  1. {
  2. "code": 0,
  3. "message": "操作成功",
  4. "data": {
  5. "commonBatchNumber": {
  6. "id": 195,
  7. "batchNumber": "ECT/D593018931E2",
  8. "createTime": "2018-12-10 11:04:39",
  9. "createPersonId": 1,
  10. "status": null,
  11. "dataType": 6,
  12. "isUrgent": null,
  13. "description": "红单管理审批",
  14. "memo": null
  15. },
  16. "createPersonName": null,
  17. "details": {
  18. "id": 99,
  19. "batchNumberId": 208,
  20. "serialNumberId": 1,
  21. "quantityLoss": 11,
  22. "weightLoss": 11,
  23. "note": "备注1"
  24. }
  25. }
  26. }

流程保存后送审

POST toDoList/162?dataId=272&isUrgent=0

返回结果

  1. {
  2. "code": 0,
  3. "message": "操作成功",
  4. "data": "ECT/0B542635D6E6任务已交由ECT/D1615D42245C流程进行审批"
  5. }
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注