|
|
@@ -13,6 +13,12 @@ class WastageController extends BaseController
|
|
|
//新增损耗
|
|
|
public function actionCreateOrder()
|
|
|
{
|
|
|
+
|
|
|
+ $shopAdmin = $this->shopAdmin;
|
|
|
+ if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
|
|
|
+ util::fail('超管才能结帐');
|
|
|
+ }
|
|
|
+
|
|
|
$post = Yii::$app->request->post();
|
|
|
$post['shopId'] = $this->shopId;
|
|
|
$post['sjId'] = $this->sjId;
|