|
|
@@ -23,6 +23,8 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi',"cupload"], function |
|
|
document.getElementById('bankCardName').value = tools.getCookie('bankCardName'); |
|
|
document.getElementById('bankCardName').value = tools.getCookie('bankCardName'); |
|
|
document.getElementById('idCard').value = tools.getCookie('idCardNum'); |
|
|
document.getElementById('idCard').value = tools.getCookie('idCardNum'); |
|
|
document.getElementById('payeePaymentLines').value = tools.getCookie('payeePaymentLines'); |
|
|
document.getElementById('payeePaymentLines').value = tools.getCookie('payeePaymentLines'); |
|
|
|
|
|
document.getElementById('accountType').value = tools.getCookie('accountType'); |
|
|
|
|
|
document.getElementById('bankType').value = tools.getCookie('bankType'); |
|
|
tools.doGet(webDeptType+"/bank_account_type", {}, module.accountType, true); |
|
|
tools.doGet(webDeptType+"/bank_account_type", {}, module.accountType, true); |
|
|
tools.doGet(webDeptType+"/bank_type_all", {}, module.bankType, true); |
|
|
tools.doGet(webDeptType+"/bank_type_all", {}, module.bankType, true); |
|
|
//项目基本信息 |
|
|
//项目基本信息 |
|
|
@@ -38,7 +40,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi',"cupload"], function |
|
|
var bankType = '' |
|
|
var bankType = '' |
|
|
if(tools.getCookie('bankType') != undefined && tools.getCookie('bankType') != 'null' && tools.getCookie('bankType') != ''){ |
|
|
if(tools.getCookie('bankType') != undefined && tools.getCookie('bankType') != 'null' && tools.getCookie('bankType') != ''){ |
|
|
bankType = content.filter(function (e) { return e.dictValue == tools.getCookie('bankType'); })[0].dictLabel; |
|
|
bankType = content.filter(function (e) { return e.dictValue == tools.getCookie('bankType'); })[0].dictLabel; |
|
|
document.getElementById('bankType').value = bankType; |
|
|
|
|
|
|
|
|
document.getElementById('bankTypeText').value = bankType; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@@ -49,7 +51,7 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi',"cupload"], function |
|
|
var content = data.data; |
|
|
var content = data.data; |
|
|
if(tools.getCookie('accountType') != undefined){ |
|
|
if(tools.getCookie('accountType') != undefined){ |
|
|
var accountType = content.filter(function (e) { return e.dictValue == tools.getCookie('accountType'); })[0].dictLabel; |
|
|
var accountType = content.filter(function (e) { return e.dictValue == tools.getCookie('accountType'); })[0].dictLabel; |
|
|
document.getElementById('accountType').value = accountType; |
|
|
|
|
|
|
|
|
document.getElementById('accountTypeText').value = accountType; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@@ -250,8 +252,25 @@ define(['jquery', "template", "Tools", 'swiper', 'itemsApi',"cupload"], function |
|
|
tools.initTips('身份证号不可为空', 'right', $('#idCard')[0], 2000) |
|
|
tools.initTips('身份证号不可为空', 'right', $('#idCard')[0], 2000) |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
|
if (idCard == '') { |
|
|
|
|
|
$('#idCard')[0].focus() |
|
|
|
|
|
tools.initTips('身份证号不可为空', 'right', $('#idCard')[0], 2000) |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
let array = [] |
|
|
|
|
|
$('#cupload-3').find('input').each(function() { |
|
|
|
|
|
if($(this).val()!=''){ |
|
|
|
|
|
array.push($(this).val()) |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
if(array.length<1){ |
|
|
|
|
|
$('#cupload-3')[0].focus() |
|
|
|
|
|
tools.initTips('请上传相关凭证', 'right', $('#cupload-3')[0], 2000) |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
else{ |
|
|
|
|
|
return true; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
module.toTips = function(data){ |
|
|
module.toTips = function(data){ |
|
|
console.log(data) |
|
|
console.log(data) |
|
|
|