Commit c7499957379f5112bf711463cd8fd200a2471b05

Authored by yvan.ni
1 parent ce6e93ea

虚拟商品的库存的问题,和起订量的问题的优化

packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo.js
... ... @@ -3205,10 +3205,13 @@ Page({
3205 3205 if(getApp().is_virtual(th.data.sele_g) && th.data.sales_rules >= 2){
3206 3206 e.data.data.pageData[i].CanOutQty=100000;
3207 3207 }
3208   -
3209 3208 }
3210 3209 e.his_cate_num = his_cate_num;
3211   -
  3210 + if(th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'
  3211 + && getApp().is_virtual(th.data.sele_g) && th.data.sales_rules >= 2)
  3212 + {
  3213 + th.setData({'def_pick_store.CanOutQty':100000})
  3214 + }
3212 3215  
3213 3216 //如果有开启距离的功能,没有设置默认门店,要用最近的门店作为默认门店
3214 3217 if (dd.lat && (!th.data.def_pick_store || JSON.stringify(th.data.def_pick_store) == '{}') && th.data.bconfig && th.data.bconfig.is_sort_storage) {
... ...
pages/goods/goodsInfo/goodsInfo.js
... ... @@ -3671,8 +3671,14 @@ Page({
3671 3671 e.data.data.pageData[i].CanOutQty=100000;
3672 3672 }
3673 3673 }
  3674 +
3674 3675 e.his_cate_num = his_cate_num;
3675 3676  
  3677 + if(th.data.def_pick_store && JSON.stringify(th.data.def_pick_store) != '{}'
  3678 + && getApp().is_virtual(th.data.sele_g) && th.data.sales_rules >= 2){
  3679 + th.setData({'def_pick_store.CanOutQty':100000})
  3680 + }
  3681 +
3676 3682 //如果有开启距离的功能,没有设置默认门店,要用最近的门店作为默认门店
3677 3683 if (dd.lat && (!th.data.def_pick_store || JSON.stringify(th.data.def_pick_store) == '{}') && th.data.bconfig && th.data.bconfig.is_sort_storage) {
3678 3684 th.setData({
... ...