Compare commits

..

No commits in common. "4829305a4464a215b69bc97151d1eded69cf8ae2" and "8c9680d36449788561ea5b5e501d0e5980255611" have entirely different histories.

2 changed files with 2 additions and 43 deletions

View File

@ -24,27 +24,9 @@ $w = new Order($secretKey);
// 获取工单数据 // 获取工单数据
$response = $w->getProductOrder('SN5436745676543'); $response = $w->getProductOrder('SN5436745676543');
// 加工工单原木材种
$w->getWoodTypeOptions([
'company_id' => 1
]);
// 加工工单加工等级
$w->getProductionLevelOptions([
'company_id' => 1
]);
// 创建加工工单 // 创建加工工单
$response = $w->createProductOrder([ $response = $w->createProductOrder([
'company_id' => 1, 'cube_plan' => 32.23,
'wood_type_id' => 1,
'wood_level_id' => 1,
'spec_thickness' => 12,
'spec_width' => 22,
'spec_length' => 38,
'number_width' => 12,
'number_height' => 22,
'number_pcs' => 10,
'owner' => 'ykxiao' 'owner' => 'ykxiao'
]); ]);
``` ```

View File

@ -106,29 +106,6 @@ class Order
return $this->sendRequest('production.status', $data); return $this->sendRequest('production.status', $data);
} }
/**
* 加工工单原木材种
* @return mixed|string
* @throws GuzzleException
* @throws HttpException
* @throws InvalidArgumentException
*/
public function getWoodTypeOptions($data)
{
return $this->baseFun($data, 'Wood.types');
}
/**
* 加工等级
* @return mixed|string
* @throws GuzzleException
* @throws HttpException
* @throws InvalidArgumentException
*/
public function getProductionLevelOptions($data)
{
return $this->baseFun($data, 'production.levels');
}
/** /**
* 加工工单创建 * 加工工单创建
* @return mixed|string * @return mixed|string