|
|
@@ -95,14 +95,6 @@ class CheckOrderController extends BaseController
|
|
|
if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
|
|
|
util::fail('超管才能盘点');
|
|
|
}
|
|
|
-
|
|
|
- //限制花大苪文员修改库存
|
|
|
- if (in_array($this->mainId, [8164])) {
|
|
|
- if (in_array($this->adminId, [10771, 26263, 4])) {
|
|
|
- util::fail('不能修改哦');
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
$post = Yii::$app->request->post();
|
|
|
$post['sjId'] = $this->sjId;
|
|
|
$post['shopId'] = $this->shopId;
|
|
|
@@ -183,6 +175,14 @@ class CheckOrderController extends BaseController
|
|
|
if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
|
|
|
util::fail('超管才能操作');
|
|
|
}
|
|
|
+
|
|
|
+ //限制花大苪文员修改库存
|
|
|
+ if (in_array($this->mainId, [8164])) {
|
|
|
+ if (in_array($this->adminId, [10771, 26263, 4])) {
|
|
|
+ util::fail('不能修改哦');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$ghsItemInfo = $post['itemInfo'] ?? '';
|
|
|
if (empty($ghsItemInfo)) {
|
|
|
util::fail('请选择花材');
|