Browse Source

商机报价校验提示更改

zhuth 7 years ago
parent
commit
3cd47c2aa4
1 changed files with 6 additions and 2 deletions
  1. 6 2
      frontend/saas-web/app/view/sale/b2b/QuoteWin.js

+ 6 - 2
frontend/saas-web/app/view/sale/b2b/QuoteWin.js

@@ -60,8 +60,12 @@ Ext.define('saas.view.sale.b2b.QuoteWin', {
                     for (var x = 0; x < gridData.length; x++) {
                         var d = gridData[x];
                         var idx = d.get('no');
-                        if (!d.get('lapQty') || !d.get('price')) {
-                            saas.util.BaseUtil.showErrorToast('序号为' + idx + '的行梯度单价有误');
+                        if (!d.get('lapQty')) {
+                            saas.util.BaseUtil.showErrorToast('序号为' + idx + '的行梯度有误');
+                            return false;
+                        }
+                        if(!d.get('price')) {
+                            saas.util.BaseUtil.showErrorToast('序号为' + idx + '的行单价有误');
                             return false;
                         }
                     }