shish пре 2 година
родитељ
комит
cea7db4e7c
2 измењених фајлова са 4 додато и 3 уклоњено
  1. 1 1
      app-ghs/controllers/ExpendController.php
  2. 3 2
      common/components/dict.php

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

@@ -88,7 +88,7 @@ class ExpendController extends BaseController
     //类型列表 ssh 20240308
     public function actionGetTypeList()
     {
-        $list = dict::getDict('expendTypeMap');
+        $list = dict::getDict('expendTypeList');
         util::success(['list' => $list]);
     }
 

+ 3 - 2
common/components/dict.php

@@ -452,9 +452,11 @@ class dict
             'hs' => 3,//伙食
             'fz' => 4,//房租
             'qt' => 5,//其它
-            'wp' => 6,
         ],
         'expendTypeMap' => [
+            0 => '店租', 1 => '水电', 2 => '物业', 3 => '伙食', 4 => '房租', 5 => '其它', 6 => '物品',
+        ],
+        'expendTypeList' => [
             ['id' => 6, 'name' => '物品'],
             ['id' => 0, 'name' => '店租'],
             ['id' => 1, 'name' => '水电'],
@@ -463,7 +465,6 @@ class dict
             ['id' => 4, 'name' => '房租'],
             ['id' => 5, 'name' => '其它'],
         ],
-
     ];
 
     //取配置文件的值