zhangguidong 2 years ago
parent
commit
1b2a345f2f
2 changed files with 24 additions and 28 deletions
  1. 0 4
      app/data/controller/shop/Goods.php
  2. 24 24
      app/data/view/shop/goods/form.html

+ 0 - 4
app/data/controller/shop/Goods.php

@@ -196,10 +196,6 @@ class Goods extends Controller
                 'stock_total'     => $item['stock'],
                 'price_market'    => $item['market'],
                 'price_selling'   => $item['selling'],
-                'number_virtual'  => $item['virtual'],
-                'number_express'  => $item['express'],
-                'reward_balance'  => $item['balance'],
-                'reward_integral' => $item['integral'],
                 'status'          => $item['status'] ? 1 : 0,
                 'admin_id'        => $data['admin_id']
             ], 'goods_spec', [

+ 24 - 24
app/data/view/shop/goods/form.html

@@ -223,11 +223,11 @@
                     <th class="text-center nowrap pointer" data-tips-text="批量设置商品SKU" ng-click="batchSet('sku',null,'请输入商品SKU代码')" width="12%"><b>商品SKU</b> <i class="layui-icon">&#xe63c;</i></th>
                     <th class="text-center nowrap pointer" data-tips-text="批量设置市场价格" ng-click="batchSet('market',2,'请输入商品市场价格')" width="10%"><b>市场价格</b> <i class="layui-icon">&#xe63c;</i></th>
                     <th class="text-center nowrap pointer" data-tips-text="批量设置销售价格" ng-click="batchSet('selling',2,'请输入商品市销售价格')" width="10%"><b>销售价格</b> <i class="layui-icon">&#xe63c;</i></th>
-                    <th class="text-center nowrap pointer" data-tips-text="批量设置奖励余额" ng-click="batchSet('balance',2,'请输入赠送账户余额')" width="10%"><b>奖励余额</b> <i class="layui-icon">&#xe63c;</i></th>
-                    <th class="text-center nowrap pointer layui-hide" data-tips-text="批量设置奖励积分" ng-click="batchSet('integral',0,'请输入赠送用户积分')" width="10%"><b>奖励积分</b> <i class="layui-icon">&#xe63c;</i></th>
-                    <th class="text-center nowrap pointer" data-tips-text="批量设置虚拟销量" ng-click="batchSet('virtual',0,'请输入虚拟销量数值')" width="10%"><b>虚拟销量</b> <i class="layui-icon">&#xe63c;</i></th>
+<!--                    <th class="text-center nowrap pointer" data-tips-text="批量设置奖励余额" ng-click="batchSet('balance',2,'请输入赠送账户余额')" width="10%"><b>奖励余额</b> <i class="layui-icon">&#xe63c;</i></th>-->
+<!--                    <th class="text-center nowrap pointer layui-hide" data-tips-text="批量设置奖励积分" ng-click="batchSet('integral',0,'请输入赠送用户积分')" width="10%"><b>奖励积分</b> <i class="layui-icon">&#xe63c;</i></th>-->
+<!--                    <th class="text-center nowrap pointer" data-tips-text="批量设置虚拟销量" ng-click="batchSet('virtual',0,'请输入虚拟销量数值')" width="10%"><b>虚拟销量</b> <i class="layui-icon">&#xe63c;</i></th>-->
                     <th class="text-center nowrap pointer" data-tips-text="批量设置库存" ng-click="batchSet('stock',0,'请输入库存数值')" width="10%"><b>库存</b> <i class="layui-icon">&#xe63c;</i></th>
-                    <th class="text-center nowrap pointer" data-tips-text="批量设置快递计件" ng-click="batchSet('express',0,'请输入快递计费基数')" width="10%"><b>快递计件</b> <i class="layui-icon">&#xe63c;</i></th>
+<!--                    <th class="text-center nowrap pointer" data-tips-text="批量设置快递计件" ng-click="batchSet('express',0,'请输入快递计费基数')" width="10%"><b>快递计件</b> <i class="layui-icon">&#xe63c;</i></th>-->
                     <th class="text-center nowrap pointer" width="08%"><b>销售状态</b></th>
                 </tr>
                 </thead>
@@ -249,31 +249,31 @@
                             <input class="layui-input border-0 padding-left-0 text-center" ng-blur="rows[0].selling=setValue(rows[0].key,'selling',$event.target.value,'(parseFloat(_)||0).toFixed(2)')" ng-model="rows[0].selling">
                         </label>
                     </td>
-                    <td class="padding-0">
-                        <label class="padding-0 margin-0">
-                            <input class="layui-input border-0 padding-left-0 text-center" ng-blur="rows[0].balance=setValue(rows[0].key,'balance',$event.target.value,'(parseFloat(_)||0).toFixed(2)')" ng-model="rows[0].balance">
-                        </label>
-                    </td>
-                    <td class="padding-0 layui-hide">
-                        <label class="padding-0 margin-0">
-                            <input class="layui-input border-0 padding-left-0 text-center" ng-blur="rows[0].integral=setValue(rows[0].key,'integral',$event.target.value,'(parseInt(_)||0)')" ng-model="rows[0].integral">
-                        </label>
-                    </td>
-                    <td class="padding-0">
-                        <label class="padding-0 margin-0">
-                            <input class="layui-input border-0 padding-left-0 text-center" ng-blur="rows[0].virtual=setValue(rows[0].key,'virtual',$event.target.value,'(parseInt(_)||0)')" ng-model="rows[0].virtual">
-                        </label>
-                    </td>
+<!--                    <td class="padding-0">-->
+<!--                        <label class="padding-0 margin-0">-->
+<!--                            <input class="layui-input border-0 padding-left-0 text-center" ng-blur="rows[0].balance=setValue(rows[0].key,'balance',$event.target.value,'(parseFloat(_)||0).toFixed(2)')" ng-model="rows[0].balance">-->
+<!--                        </label>-->
+<!--                    </td>-->
+<!--                    <td class="padding-0 layui-hide">-->
+<!--                        <label class="padding-0 margin-0">-->
+<!--                            <input class="layui-input border-0 padding-left-0 text-center" ng-blur="rows[0].integral=setValue(rows[0].key,'integral',$event.target.value,'(parseInt(_)||0)')" ng-model="rows[0].integral">-->
+<!--                        </label>-->
+<!--                    </td>-->
+<!--                    <td class="padding-0">-->
+<!--                        <label class="padding-0 margin-0">-->
+<!--                            <input class="layui-input border-0 padding-left-0 text-center" ng-blur="rows[0].virtual=setValue(rows[0].key,'virtual',$event.target.value,'(parseInt(_)||0)')" ng-model="rows[0].virtual">-->
+<!--                        </label>-->
+<!--                    </td>-->
                     <td class="padding-0">
                         <label class="padding-0 margin-0">
                             <input class="layui-input border-0 padding-left-0 text-center" ng-blur="rows[0].virtual=setValue(rows[0].key,'virtual',$event.target.value,'(parseInt(_)||0)')" ng-model="rows[0].stock">
                         </label>
                     </td>
-                    <td class="padding-0">
-                        <label class="padding-0 margin-0">
-                            <input class="layui-input border-0 padding-left-0 text-center" ng-blur="rows[0].express=setValue(rows[0].key,'express',$event.target.value,'(parseInt(_)||0)')" ng-model="rows[0].express">
-                        </label>
-                    </td>
+<!--                    <td class="padding-0">-->
+<!--                        <label class="padding-0 margin-0">-->
+<!--                            <input class="layui-input border-0 padding-left-0 text-center" ng-blur="rows[0].express=setValue(rows[0].key,'express',$event.target.value,'(parseInt(_)||0)')" ng-model="rows[0].express">-->
+<!--                        </label>-->
+<!--                    </td>-->
                     <td class="text-center layui-bg-gray">
                         <label class="think-checkbox margin-0 full-width full-height block">
                             <input lay-ignore ng-model="rows[0].status" type="checkbox">