Browse Source

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

wufeng 2 years ago
parent
commit
3bd7c41080
1 changed files with 19 additions and 0 deletions
  1. 19 0
      app/admin/controller/StandingBook.php

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

@@ -70,6 +70,25 @@ class StandingBook extends Base
 
         $res = Db::name('standing_book')
             ->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();
 
         return app_show(0, '请求成功', $res);