Browse Source

添加客户基本信息

dujinyan 7 years ago
parent
commit
a58697cf6b

+ 2 - 2
watero-rst-web/src/main/webapp/WEB-INF/views/customer/save_customer_info.ftl

@@ -764,7 +764,6 @@
         var writeSupplyPrice = document.getElementById("writeSupplyPrice").value;//手动输入价格
         if(writeSupplyPrice != null && writeSupplyPrice !=""){
             writeSupplyPrice = toDecimal2(writeSupplyPrice);
-            alert(writeSupplyPrice);
             supplyPrice = writeSupplyPrice;
         }
         var accountPeriod = document.getElementById("accountPeriod").value;
@@ -971,7 +970,8 @@
         }
         //开票信息
         var ticketOpeningInfo = {};
-        if(customerBasicInfo.cooperativeState != "1"){
+        var isOpenTicket = $("input[name='isOpenTicket']:checked").val();
+        if(customerBasicInfo.cooperativeState != "1" && isOpenTicket != "1"){
             ticketOpeningInfo.ticketType = $("[name='ticketType']").val();
             ticketOpeningInfo.accountOpeningBranch = $("[name='ticketAccountOpeningBranch']").val();
             ticketOpeningInfo.ticketOpeningAccount = $("[name='ticketOpeningAccount']").val();