修改采购详情 websocket测试 POST /api/restaurant_machine/purchase/update 请求示例 ``` { "id": 1, "purchaseNo": "123456", "supplier": "张三", "companyId": 1, "employee": { "id": 1, "employeeName": "李四", "employeeNumber": "1234", "phone": "1300000000", "companyId": 1, "position": "1", "salary": "8000", "profitSharing": "0.5", "profitSharingTime": "2021-09-13 16:18:56", "status": 1, "sex": 1, "birthday": "1995-07-14 16:19:09", "idCard": "51269519950714254x", "remarks": "111", "createdTime": "2021-09-16 16:19:49", "updateTime": "2021-09-16 16:19:53" }, "purchasePrice": null, "purchaseTime": "2021-09-16 16:07:30", "createdTime": "2021-09-16 16:07:20", "updateTime": "2021-09-16 16:07:23", "details": [ { "id": 1, "name": "土豆", "unit": "千克", "weight": 120, "amount": 15680.00, "purchaseId": 1, "wareId": 1, "createdTime": "2021-09-16 16:07:57" }, { "id": 2, "name": "青椒", "unit": "千克", "weight": 120, "amount": 5858.00, "purchaseId": 1, "wareId": 2, "createdTime": "2021-09-17 09:44:04" } ] } 说明 / 示例 { "total": 0, "code": 0, "message": "success" }
``` { "id": 1, "purchaseNo": "123456", "supplier": "张三", "companyId": 1, "employee": { "id": 1, "employeeName": "李四", "employeeNumber": "1234", "phone": "1300000000", "companyId": 1, "position": "1", "salary": "8000", "profitSharing": "0.5", "profitSharingTime": "2021-09-13 16:18:56", "status": 1, "sex": 1, "birthday": "1995-07-14 16:19:09", "idCard": "51269519950714254x", "remarks": "111", "createdTime": "2021-09-16 16:19:49", "updateTime": "2021-09-16 16:19:53" }, "purchasePrice": null, "purchaseTime": "2021-09-16 16:07:30", "createdTime": "2021-09-16 16:07:20", "updateTime": "2021-09-16 16:07:23", "details": [ { "id": 1, "name": "土豆", "unit": "千克", "weight": 120, "amount": 15680.00, "purchaseId": 1, "wareId": 1, "createdTime": "2021-09-16 16:07:57" }, { "id": 2, "name": "青椒", "unit": "千克", "weight": 120, "amount": 5858.00, "purchaseId": 1, "wareId": 2, "createdTime": "2021-09-17 09:44:04" } ] }