|
|
@@ -17,7 +17,11 @@ class StockOutController extends BaseController
|
|
|
//入库单一键出库 ssh 20231207
|
|
|
public function actionOneKeyStockOut()
|
|
|
{
|
|
|
- $post = Yii::$app->request->post();
|
|
|
+ if (Yii::$app->request->isGet) {
|
|
|
+ $post = Yii::$app->request->get();
|
|
|
+ } elseif (Yii::$app->request->isPost) {
|
|
|
+ $post = Yii::$app->request->post();
|
|
|
+ }
|
|
|
$orderSn = $post['orderSn'] ?? '';
|
|
|
$in = StockInOrderClass::getByCondition(['orderSn' => $orderSn], true);
|
|
|
if (empty($in)) {
|