|
|
@@ -37,15 +37,6 @@ class StockInController extends BaseController
|
|
|
public function actionConfirmOrder()
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
-
|
|
|
- $shopAdmin = $this->shopAdmin;
|
|
|
- $roleId = $shopAdmin['roleId'] ?? 0;
|
|
|
- $role = AdminRoleClass::getById($roleId);
|
|
|
- $roleName = $role['roleName'] ?? '';
|
|
|
- if ($roleName == '员工') {
|
|
|
- util::fail('您没有权限操作哦');
|
|
|
- }
|
|
|
-
|
|
|
$orderSn = $get['orderSn'];
|
|
|
StockInOrderClass::confirmOrder($orderSn, $this->shopId, $this->adminId);
|
|
|
util::complete("出库成功");
|