Browse Source

台账详情优化,去除部分字段的,

wufeng 2 năm trước cách đây
mục cha
commit
3bd7c41080

+ 19 - 0
app/admin/controller/StandingBook.php

@@ -70,6 +70,25 @@ class StandingBook extends Base
 
 
         $res = Db::name('standing_book')
         $res = Db::name('standing_book')
             ->where('id', $id)
             ->where('id', $id)
+            ->withAttr('outCode', function ($val) {
+                //有可能第一个是,开头
+                return trim($val, ',');
+            })
+            ->withAttr('returnCode', function ($val) {
+                return trim($val, ',');
+            })
+            ->withAttr('thNo', function ($val) {
+                return trim($val, ',');
+            })
+            ->withAttr('returnGoodCode', function ($val) {
+                return trim($val, ',');
+            })
+            ->withAttr('wsm_in_code', function ($val) {
+                return trim($val, ',');
+            })
+            ->withAttr('cgdReturnCode', function ($val) {
+                return trim($val, ',');
+            })
             ->find();
             ->find();
 
 
         return app_show(0, '请求成功', $res);
         return app_show(0, '请求成功', $res);