dever 3 年之前
父节点
当前提交
f9411a2c8f
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      service/agent/assets/pc/html/setMemberGoods.html
  2. 2 0
      service/agent/lib/Set.php

+ 1 - 1
service/agent/assets/pc/html/setMemberGoods.html

@@ -40,7 +40,7 @@
                             <tr>
                                 <th lay-data="{field:'id'}">商品编码</th>
                                 <th lay-data="{field:'name'}">商品名称</th>
-                                <th lay-data="{field:'price', edit: 'text'}">销售价(元)</th>
+                                <th lay-data="{field:'price', edit: 'text'}">价(元)</th>
                                 <th lay-data="{field:'number', edit: 'text'}">更改数量</th>
                                 <th lay-data="{field:'operation'}">操作</th>
                             </tr>

+ 2 - 0
service/agent/lib/Set.php

@@ -90,6 +90,8 @@ class Set
                     if ($table == 'agent/member_goods') {
                         $info['num'] = $info['total_num'] - $info['sell_num'];
                         if ($info['sku_id'] > 0) {
+                            $code = Dever::db('card/code')->find($info['sku_id']);
+                            $data[1]['children'][$k]['price'] = $code['total_cash'];
                             $data[1]['children'][$k]['id'] = $v['id'] . '-' . $info['sku_id'] . '_2';
                         }
                     }