|
@@ -171,6 +171,10 @@
|
|
<div class="formControls col-1 col-sm-1">
|
|
<div class="formControls col-1 col-sm-1">
|
|
<span class="select-box">
|
|
<span class="select-box">
|
|
<select name="channelCategory" id="channelCategory" class="select">
|
|
<select name="channelCategory" id="channelCategory" class="select">
|
|
|
|
+ <option value="1">电商</option>
|
|
|
|
+ <option value="2">特殊渠道</option>
|
|
|
|
+ <option value="3">线下</option>
|
|
|
|
+ <option value="4">海外</option>
|
|
</select>
|
|
</select>
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
@@ -334,7 +338,7 @@
|
|
<div class="row cl">
|
|
<div class="row cl">
|
|
<label class="form-label col-5 col-sm-5"></label>
|
|
<label class="form-label col-5 col-sm-5"></label>
|
|
<div class="formControls col-5 col-sm-5 skin-minimal">
|
|
<div class="formControls col-5 col-sm-5 skin-minimal">
|
|
- <span class="c-red"><button type="button" style="cursor:pointer; float: inherit;height: 35px;margin-right: 30px;margin-bottom: 10px;margin-top: 20px;" class="my-btn-search" onclick="addCustomerBasicInfo();">确认修改</button></span>
|
|
|
|
|
|
+ <span class="c-red"><button type="button" style="cursor:pointer; float: inherit;height: 35px;margin-right: 30px;margin-bottom: 10px;margin-top: 20px;" class="my-btn-search" onclick="addCustomerBasicInfo();">确认提交</button></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
@@ -353,7 +357,7 @@
|
|
initProvince();
|
|
initProvince();
|
|
|
|
|
|
/*初始化渠道类别(大类)*/
|
|
/*初始化渠道类别(大类)*/
|
|
- initChannelCategory();
|
|
|
|
|
|
+ /*initChannelCategory();*/
|
|
|
|
|
|
/*初始化销售产品(大类)*/
|
|
/*初始化销售产品(大类)*/
|
|
initPromotingProducts();
|
|
initPromotingProducts();
|
|
@@ -565,7 +569,7 @@
|
|
if (data.returnCode == 200) {
|
|
if (data.returnCode == 200) {
|
|
for(var i=0;i<data.returnMsg.supplyPriceList.length;i++){
|
|
for(var i=0;i<data.returnMsg.supplyPriceList.length;i++){
|
|
var supplyPriceInfo = data.returnMsg.supplyPriceList[i];
|
|
var supplyPriceInfo = data.returnMsg.supplyPriceList[i];
|
|
- html += '<option value="'+ supplyPriceInfo.colorPrice +'">'+ supplyPriceInfo.colorPrice +'</option>';
|
|
|
|
|
|
+ html += '<option value="'+ supplyPriceInfo.colorPrice/100 +'">'+ supplyPriceInfo.colorPrice/100 +'</option>';
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
html = '';
|
|
html = '';
|
|
@@ -590,9 +594,6 @@
|
|
|
|
|
|
/*保存对接联系人信息到列表*/
|
|
/*保存对接联系人信息到列表*/
|
|
function toAddDockedContactInfo() {
|
|
function toAddDockedContactInfo() {
|
|
- //var dockedContactInfoList = new Array();
|
|
|
|
- //document.getElementById("contactListId").innerHTML = "";
|
|
|
|
- //$("#contactListId").innerHTML = "";
|
|
|
|
var contactName = document.getElementById("contactName").value;
|
|
var contactName = document.getElementById("contactName").value;
|
|
var contactPhone = document.getElementById("contactPhone").value;
|
|
var contactPhone = document.getElementById("contactPhone").value;
|
|
var contactType = document.getElementById("contactType").value;
|
|
var contactType = document.getElementById("contactType").value;
|
|
@@ -608,11 +609,11 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(contactType == "" || contactType == null ){
|
|
if(contactType == "" || contactType == null ){
|
|
- alert("职位/身份不能为空");
|
|
|
|
|
|
+ layer.msg("职位/身份不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(contactEmail == "" || contactEmail == null ){
|
|
if(contactEmail == "" || contactEmail == null ){
|
|
- alert("联系邮箱不能为空");
|
|
|
|
|
|
+ layer.msg("联系邮箱不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//var operation = "删除";
|
|
//var operation = "删除";
|
|
@@ -649,6 +650,8 @@
|
|
var channelType = document.getElementById("channelType").value;
|
|
var channelType = document.getElementById("channelType").value;
|
|
var channelName = document.getElementById("channelName").value;
|
|
var channelName = document.getElementById("channelName").value;
|
|
var promotingProducts = document.getElementById("promotingProducts").value;
|
|
var promotingProducts = document.getElementById("promotingProducts").value;
|
|
|
|
+ var myselect=document.getElementById("promotingProducts");
|
|
|
|
+ var promotingProductsText = myselect.options[myselect.selectedIndex].text;
|
|
var supplyPrice = document.getElementById("supplyPrice").value;
|
|
var supplyPrice = document.getElementById("supplyPrice").value;
|
|
var writeSupplyPrice = document.getElementById("writeSupplyPrice").value;//手动输入价格
|
|
var writeSupplyPrice = document.getElementById("writeSupplyPrice").value;//手动输入价格
|
|
if(writeSupplyPrice != null && writeSupplyPrice !=""){
|
|
if(writeSupplyPrice != null && writeSupplyPrice !=""){
|
|
@@ -663,25 +666,26 @@
|
|
accountPeriod = "两个月";
|
|
accountPeriod = "两个月";
|
|
}
|
|
}
|
|
if(channelCategory == "" || channelCategory == null ){
|
|
if(channelCategory == "" || channelCategory == null ){
|
|
- alert("渠道类别不能为空");
|
|
|
|
|
|
+ layer.msg("渠道类别不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(channelType == "" || channelType == null ){
|
|
if(channelType == "" || channelType == null ){
|
|
- alert("渠道类型不能为空");
|
|
|
|
|
|
+ layer.msg("渠道类型不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(channelName == "" || channelName == null ){
|
|
if(channelName == "" || channelName == null ){
|
|
- alert("渠道平台/名称不能为空");
|
|
|
|
|
|
+ layer.msg("渠道平台/名称不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(promotingProducts == "" || promotingProducts == null ){
|
|
if(promotingProducts == "" || promotingProducts == null ){
|
|
- alert("销售产品不能为空");
|
|
|
|
|
|
+ layer.msg("销售产品不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(supplyPrice == "" || supplyPrice == null ){
|
|
if(supplyPrice == "" || supplyPrice == null ){
|
|
- alert("供货价格不能为空");
|
|
|
|
|
|
+ layer.msg("供货价格不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ var promotingProductsHtml = '<input type="hidden" value="'+promotingProducts+'">';
|
|
//var operation = "删除";
|
|
//var operation = "删除";
|
|
var operation = "<a href='javascript:;' onclick='deleteChannelSale(this)' name='deleteChannelSale'>删除</a>";
|
|
var operation = "<a href='javascript:;' onclick='deleteChannelSale(this)' name='deleteChannelSale'>删除</a>";
|
|
row = document.getElementById("saleTable").insertRow();
|
|
row = document.getElementById("saleTable").insertRow();
|
|
@@ -693,7 +697,7 @@
|
|
cell = row.insertCell();
|
|
cell = row.insertCell();
|
|
cell.innerHTML=channelName;
|
|
cell.innerHTML=channelName;
|
|
cell = row.insertCell();
|
|
cell = row.insertCell();
|
|
- cell.innerHTML=promotingProducts;
|
|
|
|
|
|
+ cell.innerHTML=promotingProductsHtml+promotingProductsText;
|
|
cell = row.insertCell();
|
|
cell = row.insertCell();
|
|
cell.innerHTML=supplyPrice;
|
|
cell.innerHTML=supplyPrice;
|
|
cell = row.insertCell();
|
|
cell = row.insertCell();
|
|
@@ -719,19 +723,19 @@
|
|
customerBasicInfo.customerRemarks = $("[name='customerRemarks']").val();
|
|
customerBasicInfo.customerRemarks = $("[name='customerRemarks']").val();
|
|
customerBasicInfo.customerStatus = "2";
|
|
customerBasicInfo.customerStatus = "2";
|
|
if(customerBasicInfo.customerName == "" || customerBasicInfo.customerName == null ){
|
|
if(customerBasicInfo.customerName == "" || customerBasicInfo.customerName == null ){
|
|
- alert("客户名称不能为空");
|
|
|
|
|
|
+ layer.msg("客户名称不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(customerBasicInfo.customerIndustry == "" || customerBasicInfo.customerIndustry == null ){
|
|
if(customerBasicInfo.customerIndustry == "" || customerBasicInfo.customerIndustry == null ){
|
|
- alert("客户行业不能为空");
|
|
|
|
|
|
+ layer.msg("客户行业不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(customerBasicInfo.customerProvinceCode == "" || customerBasicInfo.customerProvinceCode == null ){
|
|
if(customerBasicInfo.customerProvinceCode == "" || customerBasicInfo.customerProvinceCode == null ){
|
|
- alert("客户省份不能为空");
|
|
|
|
|
|
+ layer.msg("客户省份不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(customerBasicInfo.customerCityCode == "" || customerBasicInfo.customerCityCode == null ){
|
|
if(customerBasicInfo.customerCityCode == "" || customerBasicInfo.customerCityCode == null ){
|
|
- alert("客户城市不能为空");
|
|
|
|
|
|
+ layer.msg("客户城市不能为空");
|
|
return;
|
|
return;
|
|
}/*if(customerBasicInfo.customerAddress == "" || customerBasicInfo.customerAddress == null ){
|
|
}/*if(customerBasicInfo.customerAddress == "" || customerBasicInfo.customerAddress == null ){
|
|
alert("客户地址不能为空");
|
|
alert("客户地址不能为空");
|
|
@@ -739,49 +743,82 @@
|
|
}*/
|
|
}*/
|
|
//对接联系人信息
|
|
//对接联系人信息
|
|
var dockedContactInfoList = new Array();
|
|
var dockedContactInfoList = new Array();
|
|
- $("#contactListId").find("tr").each(function (){
|
|
|
|
|
|
+ $("#contactListId").find("tr").each(function (index,element){
|
|
|
|
+ var a = $(element).children();
|
|
var dockedContactInfo = {};
|
|
var dockedContactInfo = {};
|
|
- dockedContactInfo.contactName = $("[name='contactName']").val();
|
|
|
|
- dockedContactInfo.contactPhone = $("[name='contactPhone']").val();
|
|
|
|
- dockedContactInfo.contactType = $("[name='contactType']").val();
|
|
|
|
- dockedContactInfo.contactEmail = $("[name='contactEmail']").val();
|
|
|
|
|
|
+ for(var i=0;i<a.length;i++){
|
|
|
|
+ switch(i){
|
|
|
|
+ case 0:
|
|
|
|
+ dockedContactInfo.contactName = a.eq(i).text().trim();
|
|
|
|
+ break;
|
|
|
|
+ case 1:
|
|
|
|
+ dockedContactInfo.contactPhone = a.eq(i).text().trim();
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ dockedContactInfo.contactType = a.eq(i).text().trim();
|
|
|
|
+ break;
|
|
|
|
+ case 3:
|
|
|
|
+ dockedContactInfo.contactEmail = a.eq(i).text().trim();
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
dockedContactInfoList.push(dockedContactInfo);
|
|
dockedContactInfoList.push(dockedContactInfo);
|
|
})
|
|
})
|
|
- if(dockedContactInfoList.length<2){
|
|
|
|
- alert("对接联系人信息不能为空");
|
|
|
|
|
|
+ if(dockedContactInfoList.length<1){
|
|
|
|
+ layer.msg("对接联系人信息不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//var dockedContactInfoListJson = $("#dockedContactInfoJson").val(JSON.stringify(dockedContactInfoList));
|
|
//var dockedContactInfoListJson = $("#dockedContactInfoJson").val(JSON.stringify(dockedContactInfoList));
|
|
//客户销售渠道信息
|
|
//客户销售渠道信息
|
|
var channelSaleInfoList = new Array();
|
|
var channelSaleInfoList = new Array();
|
|
- $("#channelSaleListId").find("tr").each(function (){
|
|
|
|
|
|
+ $("#channelSaleListId").find("tr").each(function (index,element){
|
|
|
|
+ var a = $(element).children();
|
|
var channelSaleInfo = {};
|
|
var channelSaleInfo = {};
|
|
- channelSaleInfo.channelCategory = $("[name='channelCategory']").val();
|
|
|
|
- if(channelSaleInfo.channelCategory == "电商"){
|
|
|
|
- channelSaleInfo.channelCategory = "1";
|
|
|
|
- }else if(channelSaleInfo.channelCategory == "特殊渠道"){
|
|
|
|
- channelSaleInfo.channelCategory = "2";
|
|
|
|
- }else if(channelSaleInfo.channelCategory == "线下"){
|
|
|
|
- channelSaleInfo.channelCategory = "3";
|
|
|
|
- }else if(channelSaleInfo.channelCategory == "海外"){
|
|
|
|
- channelSaleInfo.channelCategory = "4";
|
|
|
|
- }
|
|
|
|
- channelSaleInfo.channelType = $("[name='channelType']").val();
|
|
|
|
- channelSaleInfo.channelName = $("[name='channelName']").val();
|
|
|
|
- channelSaleInfo.promotingProducts = $("[name='promotingProducts']").val();
|
|
|
|
- channelSaleInfo.supplyPrice = $("[name='supplyPrice']").val();
|
|
|
|
- channelSaleInfo.accountPeriod = $("[name='accountPeriod']").val();
|
|
|
|
- if(channelSaleInfo.accountPeriod == "先款"){
|
|
|
|
- channelSaleInfo.accountPeriod = "1";
|
|
|
|
- }else if(channelSaleInfo.accountPeriod == "月结"){
|
|
|
|
- channelSaleInfo.accountPeriod = "2";
|
|
|
|
- }else if(channelSaleInfo.accountPeriod == "两个月"){
|
|
|
|
- channelSaleInfo.accountPeriod = "3";
|
|
|
|
|
|
+ for(var i=0;i<a.length;i++){
|
|
|
|
+ switch(i){
|
|
|
|
+ case 0:
|
|
|
|
+ channelSaleInfo.channelCategory = a.eq(i).text().trim();
|
|
|
|
+ if(channelSaleInfo.channelCategory == "电商"){
|
|
|
|
+ channelSaleInfo.channelCategory = "1";
|
|
|
|
+ }else if(channelSaleInfo.channelCategory == "特殊渠道"){
|
|
|
|
+ channelSaleInfo.channelCategory = "2";
|
|
|
|
+ }else if(channelSaleInfo.channelCategory == "线下"){
|
|
|
|
+ channelSaleInfo.channelCategory = "3";
|
|
|
|
+ }else if(channelSaleInfo.channelCategory == "海外"){
|
|
|
|
+ channelSaleInfo.channelCategory = "4";
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ case 1:
|
|
|
|
+ channelSaleInfo.channelType = a.eq(i).text().trim();
|
|
|
|
+ break;
|
|
|
|
+ case 2:
|
|
|
|
+ channelSaleInfo.channelName = a.eq(i).text().trim();
|
|
|
|
+ break;
|
|
|
|
+ case 3:
|
|
|
|
+ channelSaleInfo.promotingProducts = a.eq(i).text().trim();
|
|
|
|
+ break;
|
|
|
|
+ case 4:
|
|
|
|
+ channelSaleInfo.supplyPrice = a.eq(i).text().trim();
|
|
|
|
+ channelSaleInfo.supplyPrice = channelSaleInfo.supplyPrice * 100;
|
|
|
|
+ break;
|
|
|
|
+ case 5:
|
|
|
|
+ channelSaleInfo.accountPeriod = a.eq(i).text().trim();
|
|
|
|
+ if(channelSaleInfo.accountPeriod == "先款"){
|
|
|
|
+ channelSaleInfo.accountPeriod = "1";
|
|
|
|
+ }else if(channelSaleInfo.accountPeriod == "月结"){
|
|
|
|
+ channelSaleInfo.accountPeriod = "2";
|
|
|
|
+ }else if(channelSaleInfo.accountPeriod == "两个月"){
|
|
|
|
+ channelSaleInfo.accountPeriod = "3";
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
channelSaleInfoList.push(channelSaleInfo);
|
|
channelSaleInfoList.push(channelSaleInfo);
|
|
- })
|
|
|
|
|
|
+
|
|
|
|
+ });
|
|
if(channelSaleInfoList.length<2){
|
|
if(channelSaleInfoList.length<2){
|
|
- alert("客户销售渠道信息不能为空");
|
|
|
|
|
|
+ layer.msg("客户销售渠道信息不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//var channelSaleInfoListJson = $("#channelSaleInfoJson").val(JSON.stringify(channelSaleInfoList));
|
|
//var channelSaleInfoListJson = $("#channelSaleInfoJson").val(JSON.stringify(channelSaleInfoList));
|
|
@@ -792,23 +829,23 @@
|
|
billingInfo.accountNum = $("[name='accountNum']").val();
|
|
billingInfo.accountNum = $("[name='accountNum']").val();
|
|
billingInfo.receivablesName = $("[name='receivablesName']").val();
|
|
billingInfo.receivablesName = $("[name='receivablesName']").val();
|
|
billingInfo.receivablesPhone = $("[name='receivablesPhone']").val();
|
|
billingInfo.receivablesPhone = $("[name='receivablesPhone']").val();
|
|
- if(billingInfo.billAccountOpeningBranch == "" || billingInfo.billAccountOpeningBranch == null ){
|
|
|
|
- alert("开户支行不能为空");
|
|
|
|
|
|
+ if(billingInfo.accountOpeningBranch == "" || billingInfo.accountOpeningBranch == null ){
|
|
|
|
+ layer.msg("开户支行不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(billingInfo.accountName == "" || billingInfo.accountName == null ){
|
|
if(billingInfo.accountName == "" || billingInfo.accountName == null ){
|
|
- alert("账号名称不能为空");
|
|
|
|
|
|
+ layer.msg("账号名称不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(billingInfo.accountNum == "" || billingInfo.accountNum == null ){
|
|
if(billingInfo.accountNum == "" || billingInfo.accountNum == null ){
|
|
- alert("账号不能为空");
|
|
|
|
|
|
+ layer.msg("账号不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(billingInfo.receivablesName == "" || billingInfo.receivablesName == null ){
|
|
if(billingInfo.receivablesName == "" || billingInfo.receivablesName == null ){
|
|
- alert("收款人姓名不能为空");
|
|
|
|
|
|
+ layer.msg("收款人姓名不能为空");
|
|
return;
|
|
return;
|
|
}if(billingInfo.receivablesPhone == "" || billingInfo.receivablesPhone == null ){
|
|
}if(billingInfo.receivablesPhone == "" || billingInfo.receivablesPhone == null ){
|
|
- alert("收款人手机不能为空");
|
|
|
|
|
|
+ layer.msg("收款人手机不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
//开票信息
|
|
//开票信息
|
|
@@ -821,36 +858,36 @@
|
|
ticketOpeningInfo.ticketOpeningPhone = $("[name='ticketOpeningPhone']").val();
|
|
ticketOpeningInfo.ticketOpeningPhone = $("[name='ticketOpeningPhone']").val();
|
|
ticketOpeningInfo.enterpriseAddress = $("[name='enterpriseAddress']").val();
|
|
ticketOpeningInfo.enterpriseAddress = $("[name='enterpriseAddress']").val();
|
|
if(ticketOpeningInfo.ticketType == "1" ){
|
|
if(ticketOpeningInfo.ticketType == "1" ){
|
|
- if(ticketOpeningInfo.ticketAccountOpeningBranch == "" || ticketOpeningInfo.ticketAccountOpeningBranch == null ){
|
|
|
|
- alert("开户支行不能为空");
|
|
|
|
|
|
+ if(ticketOpeningInfo.accountOpeningBranch == "" || ticketOpeningInfo.accountOpeningBranch == null ){
|
|
|
|
+ layer.msg("开户支行不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(ticketOpeningInfo.ticketOpeningAccount == "" || ticketOpeningInfo.ticketOpeningAccount == null ){
|
|
if(ticketOpeningInfo.ticketOpeningAccount == "" || ticketOpeningInfo.ticketOpeningAccount == null ){
|
|
- alert("开票账户不能为空");
|
|
|
|
|
|
+ layer.msg("开票账户不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(ticketOpeningInfo.enterpriseName == "" || ticketOpeningInfo.enterpriseName == null ){
|
|
if(ticketOpeningInfo.enterpriseName == "" || ticketOpeningInfo.enterpriseName == null ){
|
|
- alert("企业名称不能为空");
|
|
|
|
|
|
+ layer.msg("企业名称不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(ticketOpeningInfo.taxpayerIdentificationNum == "" || ticketOpeningInfo.taxpayerIdentificationNum == null ){
|
|
if(ticketOpeningInfo.taxpayerIdentificationNum == "" || ticketOpeningInfo.taxpayerIdentificationNum == null ){
|
|
- alert("纳税人识别号不能为空");
|
|
|
|
|
|
+ layer.msg("纳税人识别号不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(ticketOpeningInfo.ticketOpeningPhone == "" || ticketOpeningInfo.ticketOpeningPhone == null ){
|
|
if(ticketOpeningInfo.ticketOpeningPhone == "" || ticketOpeningInfo.ticketOpeningPhone == null ){
|
|
- alert("开票电话不能为空");
|
|
|
|
|
|
+ layer.msg("开票电话不能为空");
|
|
return;
|
|
return;
|
|
}if(ticketOpeningInfo.enterpriseAddress == "" || ticketOpeningInfo.enterpriseAddress == null ){
|
|
}if(ticketOpeningInfo.enterpriseAddress == "" || ticketOpeningInfo.enterpriseAddress == null ){
|
|
- alert("企业地址不能为空");
|
|
|
|
|
|
+ layer.msg("企业地址不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
if(ticketOpeningInfo.enterpriseName == "" || ticketOpeningInfo.enterpriseName == null ){
|
|
if(ticketOpeningInfo.enterpriseName == "" || ticketOpeningInfo.enterpriseName == null ){
|
|
- alert("企业名称不能为空");
|
|
|
|
|
|
+ layer.msg("企业名称不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if(ticketOpeningInfo.taxpayerIdentificationNum == "" || ticketOpeningInfo.taxpayerIdentificationNum == null ){
|
|
if(ticketOpeningInfo.taxpayerIdentificationNum == "" || ticketOpeningInfo.taxpayerIdentificationNum == null ){
|
|
- alert("纳税人识别号不能为空");
|
|
|
|
|
|
+ layer.msg("纳税人识别号不能为空");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -885,15 +922,16 @@
|
|
success: function(data){
|
|
success: function(data){
|
|
if (data.returnCode == 200) {
|
|
if (data.returnCode == 200) {
|
|
saveStates = "保存成功";
|
|
saveStates = "保存成功";
|
|
- alert(saveStates);
|
|
|
|
|
|
+ layer.msg(saveStates);
|
|
|
|
+ window.location.href= "${path}/admin/customerBasic/listCustomerBasic";
|
|
}else{
|
|
}else{
|
|
saveStates = "保存失败";
|
|
saveStates = "保存失败";
|
|
- alert(saveStates);
|
|
|
|
|
|
+ layer.msg(saveStates);
|
|
}
|
|
}
|
|
},
|
|
},
|
|
error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
error: function(XmlHttpRequest, textStatus, errorThrown){
|
|
saveStates = "保存失败";
|
|
saveStates = "保存失败";
|
|
- alert(saveStates);
|
|
|
|
|
|
+ layer.msg(saveStates);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|