Kirin 3 years ago
parent
commit
5c4cebc73f

+ 5 - 1
app/admin/view/company/goods/bill.php

@@ -74,7 +74,11 @@
                         <p>价格:<font color="red">{{d.price}}</font></p>
                     </script>
                     <script type="text/html" id="in_stock">
-                        {{d.type}}{{d.in_stock}}
+                        {{# if(type == 1){ }}
+                        <b style="color: #00aa00">+{{d.in_stock}}</b>
+                        {{# }else{ }}
+                        <b style="color: #aa0000">-{{d.in_stock}}</b>
+                        {{# } }}
                     </script>
                     <!--操作-->
                     <script type="text/html" id="act">

+ 1 - 1
app/models/system/SystemStoreStockBill.php

@@ -66,7 +66,7 @@ class SystemStoreStockBill extends BaseModel
         $data = $model->page($where['page'], $where['limit'])->order("id desc")->select()->toarray();
         foreach ($data as &$v) {
             $v['store'] = SystemStore::where('id', $v['store_id'])->value('name');
-            $v['type'] = $v['type'] == 1 ? '<b style="color: #00aa00">+</b>' : '<b style="color: #aa0000">+</b>';
+//            $v['type'] = $v['type'] == 1 ? '<b style="color: #00aa00">+</b>' : '<b style="color: #aa0000">+</b>';
         }
         return compact('count', 'data');
     }