shish 2 سال پیش
والد
کامیت
4246ae5d90
2فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 7 0
      app-ghs/controllers/ExpendController.php
  2. 2 1
      common/components/dict.php

+ 7 - 0
app-ghs/controllers/ExpendController.php

@@ -13,6 +13,13 @@ use Yii;
 class ExpendController extends BaseController
 {
 
+    //类型
+    public function actionGetTypeList()
+    {
+        $list = dict::getDict('expendTypeMap');
+        util::success(['list' => $list]);
+    }
+
     public function actionList()
     {
         $where = [];

+ 2 - 1
common/components/dict.php

@@ -452,9 +452,10 @@ class dict
             'hs' => 3,//伙食
             'fz' => 4,//房租
             'qt' => 5,//其它
+            'wp' => 6,
         ],
         'expendTypeMap' => [
-            0 => '店租', 1 => '水电', 2 => '物业', 3 => '伙食', 4 => '房租', 5 => '其它',
+            0 => '店租', 1 => '水电', 2 => '物业', 3 => '伙食', 4 => '房租', 5 => '其它', 6 => '物品',
         ],
 
     ];