Browse Source

订单提交主辅数量判断不能都为空

master
chenxuhui 7 years ago
parent
commit
90ffa921eb
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      pages/order/detail/detail.js
  2. +2
    -2
      pages/order/newBill/newBill.js

+ 2
- 2
pages/order/detail/detail.js View File

@ -545,9 +545,9 @@ Page({
}) })
return; return;
} }
if (dmo.Details[i].UnitNum == null) {
if (dmo.Details[i].UnitNum == null && dmo.Details[i].SecondNumber == null) {
wx.showToast({ wx.showToast({
title: '报货数量不能为空',
title: '请输入报货数量/重量',
}) })
return; return;
} }


+ 2
- 2
pages/order/newBill/newBill.js View File

@ -464,9 +464,9 @@ Page({
}) })
return; return;
} }
if (dmo.Details[i].UnitNum == null) {
if (dmo.Details[i].UnitNum == null && dmo.Details[i].SecondNumber == null) {
wx.showToast({ wx.showToast({
title: '报货数量不能为空',
title: '请输入报货数量/重量',
}) })
return; return;
} }


Loading…
Cancel
Save