Преглед изворни кода

抹平收款限制10元以内

plf пре 4 година
родитељ
комит
017f5c2553

+ 4 - 0
src/main/webapp/WEB-INF/views/modules/order/newOrderList.jsp

@@ -643,6 +643,10 @@
                         title: "确认提示", width: 500, height: 400, buttons: {"确定": '1', "取消": '-1'},
                         submit: function (v, h, f) {
                             if ('1' == v) {
+                                if ((Number(data.payTotalFee) - Number(data.associateAmount)) > 10) {
+                                    alertx("订单剩余应收金额大于¥10.00,不能抹平!");
+                                    return false;
+                                }
                                 var content = document.getElementsByName("auditNote")[0].value;
                                 if (content == '' || content == null) {
                                     document.getElementById('noteError').style.display = 'block';

+ 4 - 0
src/main/webapp/WEB-INF/views/modules/order/orderDetail.jsp

@@ -920,6 +920,10 @@
                     title: "确认提示", width: 500, height: 400, buttons: {"确定": '1', "取消": '-1'},
                     submit: function (v, h, f) {
                         if ('1' == v) {
+                            if ((Number(data.payTotalFee) - Number(data.associateAmount)) > 10) {
+                                alertx("订单剩余应收金额大于¥10.00,不能抹平!");
+                                return false;
+                            }
                             var content = document.getElementsByName("auditNote")[0].value;
                             if (content == '' || content == null) {
                                 document.getElementById('noteError').style.display = 'block';