shish 2 ani în urmă
părinte
comite
8f0e403297

+ 15 - 0
app-ghs/controllers/CustomController.php

@@ -24,6 +24,21 @@ use Yii;
 class CustomController extends BaseController
 {
 
+    //供货商给客户充值 ssh 20240309
+    public function actionRecharge()
+    {
+        $staff = $this->shopAdmin;
+        if (isset($staff->finance) == false || $staff->finance == 0) {
+            util::fail('请让财务充值');
+        }
+        $get = Yii::$app->request->get();
+        $amount = $get['amount'] ?? 0;
+        if ($amount <= 0) {
+            util::fail('充值金额需要大于0');
+        }
+        util::complete('充值成功');
+    }
+
     //生成货位号 ssh 20231215
     public function actionCreateSeatSn()
     {

+ 1 - 1
app-ghs/controllers/ExpendController.php

@@ -46,7 +46,7 @@ class ExpendController extends BaseController
     {
         $staff = $this->shopAdmin;
         if (isset($staff->finance) == false || $staff->finance == 0) {
-            util::fail('没有权限报销');
+            util::fail('请让财务操作');
         }
 
         $get = Yii::$app->request->get();