From 8b856182ddb6d0438a39217bd7acdfd06b51b4e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Wed, 21 Jun 2017 23:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E-=E9=9B=B6=E5=94=AE=E9=80=80?= =?UTF-8?q?=E8=B4=A7=E7=9A=84=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/js/pages/materials/in_out.js | 10 +- .../pages/materials/retail_back_list.jsp | 369 ++++++++++-------- 2 files changed, 217 insertions(+), 162 deletions(-) diff --git a/src/main/webapp/js/pages/materials/in_out.js b/src/main/webapp/js/pages/materials/in_out.js index 16308a3f..7e2f3ac6 100644 --- a/src/main/webapp/js/pages/materials/in_out.js +++ b/src/main/webapp/js/pages/materials/in_out.js @@ -429,7 +429,7 @@ var footer =$("#depotHeadFM .datagrid-footer"); var input = ".datagrid-editable-input"; body.find("[field='OperNumber']").find(input).val(1); - if(listSubType == "零售") { + if(listSubType == "零售" || listSubType == "零售退货") { body.find("[field='UnitPrice']").find(input).val(retailPrice); body.find("[field='AllPrice']").find(input).val(retailPrice); allPrice = retailPrice; @@ -446,7 +446,7 @@ }); TotalPrice = TotalPrice + allPrice; footer.find("[field='AllPrice']").find("div").text((TotalPrice).toFixed(2)); - if(listSubType == "零售"){ + if(listSubType == "零售" || listSubType == "零售退货") { $("#ChangeAmount, #getAmount").val((TotalPrice).toFixed(2)); $("#backAmount").val(0); } @@ -979,7 +979,7 @@ }); TotalPrice = TotalPrice + UnitPrice*OperNumber; footer.find("[field='AllPrice']").find("div").text((TotalPrice).toFixed(2)); - if(listSubType == "零售"){ + if(listSubType == "零售" || listSubType == "零售退货") { $("#ChangeAmount, #getAmount").val((TotalPrice).toFixed(2)); $("#backAmount").val(0); } @@ -1054,7 +1054,7 @@ }); TotalPrice = TotalPrice + UnitPrice*OperNumber; footer.find("[field='AllPrice']").find("div").text((TotalPrice).toFixed(2)); - if(listSubType == "零售"){ + if(listSubType == "零售" || listSubType == "零售退货") { $("#ChangeAmount, #getAmount").val((TotalPrice).toFixed(2)); $("#backAmount").val(0); } @@ -1072,7 +1072,7 @@ }); TotalPrice = TotalPrice + AllPrice; footer.find("[field='AllPrice']").find("div").text((TotalPrice).toFixed(2)); - if(listSubType == "零售"){ + if(listSubType == "零售" || listSubType == "零售退货") { $("#ChangeAmount, #getAmount").val((TotalPrice).toFixed(2)); $("#backAmount").val(0); } diff --git a/src/main/webapp/pages/materials/retail_back_list.jsp b/src/main/webapp/pages/materials/retail_back_list.jsp index e1de3cc6..0fc1d03f 100644 --- a/src/main/webapp/pages/materials/retail_back_list.jsp +++ b/src/main/webapp/pages/materials/retail_back_list.jsp @@ -6,164 +6,219 @@ %> -
-