Просмотр исходного кода

注释 增量与起订量概念

zhaoxiaohai 3 лет назад
Родитель
Сommit
661018091d

+ 3 - 3
packageA/contract/modules/product/list/index.js

@@ -18,8 +18,8 @@ Component({
                 item = this.data.list[index];
             switch (name) {
                 case "qty":
-                    // item[name] = detail;
-                    if (detail < item.orderminqty) {
+                    item.qty = detail;
+                    /* if (detail < item.orderminqty) {
                         item.qty = item.orderminqty == 0 ? 1 : item.orderminqty;
                     } else {
                         item.qty = detail
@@ -33,7 +33,7 @@ Component({
                                 item.qty = detail - remainder + item.orderaddqty;
                             }
                         };
-                    }
+                    } */
                     //改变数量 现数量*现价
                     item.amount = (item.price * item.qty).toFixed(2);
                     break;

+ 0 - 1
packageA/contract/modules/product/list/index.wxml

@@ -24,7 +24,6 @@
                 </view>
                 <view class="subfield">
                     <text class="line-1" style="margin-right: 6rpx;">牌价:{{item.marketprice||' --'}}</text>
-                    <text class="line-1" style="margin-right: 6rpx;">起订量:{{item.orderminqty||'1'}} 增量:{{item.orderaddqty||'--'}}</text>
                 </view>
             </view>
             <view class="delete" data-item="{{item}}" catchtap="deleteProduct">

+ 3 - 2
packageA/offers/modules/product/list/index.js

@@ -18,7 +18,7 @@ Component({
                 item = this.data.list[index];
             switch (name) {
                 case "qty":
-                    if (detail < item.orderminqty) {
+                    /* if (detail < item.orderminqty) {
                         item.qty = item.orderminqty == 0 ? 1 : item.orderminqty;
                     } else {
                         item.qty = detail
@@ -32,7 +32,8 @@ Component({
                                 item.qty = detail - remainder + item.orderaddqty;
                             }
                         };
-                    }
+                    } */
+                    item.qty = detail;
                     //改变数量 现数量*现价
                     item.amount = (item.price * item.qty).toFixed(2);
                     break;

+ 0 - 1
packageA/offers/modules/product/list/index.wxml

@@ -24,7 +24,6 @@
                 </view>
                 <view class="subfield">
                     <text class="line-1" style="margin-right: 6rpx;">牌价:{{item.marketprice||' --'}}</text>
-                    <text class="line-1" style="margin-right: 6rpx;">起订量:{{item.orderminqty||'1'}} 增量:{{item.orderaddqty||'--'}}</text>
                 </view>
             </view>
             <view class="delete" data-item="{{item}}" catchtap="deleteProduct">