|
|
@@ -52,4 +52,20 @@ class WastageController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //列表
|
|
|
+ public function actionList()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $where = [];
|
|
|
+ $where['shopId'] = $this->shopId;
|
|
|
+ $list = StockWastageOrderClass::getOrderList($where);
|
|
|
+ util::success($list);
|
|
|
+ }
|
|
|
+
|
|
|
+ public function actionDetail()
|
|
|
+ {
|
|
|
+ $orderSn = Yii::$app->request->get('orderSn', '');
|
|
|
+ $orderData = StockWastageOrderClass::getOrderDetail($orderSn, $this->shopId);
|
|
|
+ util::success($orderData);
|
|
|
+ }
|
|
|
}
|