Commit c77baa59a82dfa7a9b72e16166a7e0f07655a441

Authored by yvan.ni
1 parent 9a5df7a0

要判断默认门店是否存在的优化

pages/goods/goodsInfo/goodsInfo.js
... ... @@ -4213,12 +4213,13 @@ Page({
4213 4213 is_find_def_store = 1;
4214 4214 }
4215 4215  
4216   - //-- 如果库存为0就要重新赋值 --
4217   - def_pick_store.CanOutQty=Qty;
4218   - th.setData({
  4216 + if(def_pick_store){
  4217 + //-- 如果库存为0就要重新赋值 --
  4218 + def_pick_store.CanOutQty=Qty;
  4219 + th.setData({
4219 4220 def_pick_store
4220   - })
4221   -
  4221 + })
  4222 + }
4222 4223  
4223 4224  
4224 4225 } else {
... ...