加工单撤回

This commit is contained in:
hongwenwu 2023-09-11 11:21:02 +08:00
parent 4829305a44
commit 13a3da9b4e
2 changed files with 31 additions and 0 deletions

View File

@ -47,6 +47,17 @@ $response = $w->createProductOrder([
'number_pcs' => 10,
'owner' => 'ykxiao'
]);
// 更新加工工单
$response = $w->updateProductOrder([
'id' => 1,
'company_id' => 1,
]);
// 撤回加工工单
$response = $w->revokeProductOrder([
'id' => 1
]);
```
# 回调说明

View File

@ -138,4 +138,24 @@ class Order
{
return $this->sendRequest('production.create', $data);
}
/**
* 加工工单更新
* @return mixed|string
* @throws HttpException|GuzzleException
*/
public function updateProductOrder($data)
{
return $this->sendRequest('production.update', $data);
}
/**
* 加工工单撤回
* @return mixed|string
* @throws HttpException|GuzzleException
*/
public function revokeProductOrder($data)
{
return $this->sendRequest('production.revoke', $data);
}
}