Compare commits
2 Commits
06a645973e
...
8e972bb2dd
Author | SHA1 | Date |
---|---|---|
hongwenwu | 8e972bb2dd | |
hongwenwu | 13a3da9b4e |
11
README.md
11
README.md
|
@ -57,6 +57,17 @@ $response = $w->createProductOrder([
|
|||
'number_pcs' => 10,
|
||||
'owner' => 'ykxiao'
|
||||
]);
|
||||
|
||||
// 更新加工工单
|
||||
$response = $w->updateProductOrder([
|
||||
'id' => 1,
|
||||
'company_id' => 1,
|
||||
]);
|
||||
|
||||
// 撤回加工工单
|
||||
$response = $w->revokeProductOrder([
|
||||
'id' => 1
|
||||
]);
|
||||
```
|
||||
|
||||
# 回调说明
|
||||
|
|
|
@ -175,4 +175,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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue