删除校验
parent
dbf4045f16
commit
8e63adf037
src/main/resources/static/assets/js
|
@ -328,189 +328,6 @@ $(function () {
|
|||
};
|
||||
});
|
||||
|
||||
//立项表填写检查
|
||||
function checkIfFillIn() {
|
||||
var name = $("#name").val();
|
||||
var startTime = $("#startDate").val();
|
||||
var endTime = $("#endDate").val();
|
||||
var underwrittenMode = $("#underwrittenMode").val();
|
||||
var collaborator = $("#collaborator").val();
|
||||
var advanceInterestAmount = $("#advanceInterestAmount").val();
|
||||
var advancePeakAmount = $("#advancePeakAmount").val();
|
||||
var contractAmount = $("#contractAmount").val();
|
||||
var grossProfit = $("#grossProfit").val();
|
||||
var grossProfitMargin = $("#grossProfitMargin").val();
|
||||
var huizhiProductAmount = $("#huizhiProductAmount").val();
|
||||
var huazhiProductAmount = $("#huazhiProductAmount").val();
|
||||
var huasanProductAmount = $("#huasanProductAmount").val();
|
||||
var ziguangOtherAmount = $("#ziguangOtherAmount").val();
|
||||
// var industryScenario = $("#industryScenario").val();
|
||||
var customer = $("#customer").val();
|
||||
var terminalCustomer = $("#terminalCustomer").val();
|
||||
var valueRisk = $("#valueRisk").val();
|
||||
var principal = $("#principal").val();
|
||||
|
||||
// var incomeDeviceTaxInclude = $("#incomeDeviceTaxInclude").val();
|
||||
// var incomeDeviceTaxExclude = $("#incomeDeviceTaxExclude").val();
|
||||
// var incomeEngineerTaxInclude = $("#incomeEngineerTaxInclude").val();
|
||||
// var incomeEngineerTaxExclude = $("#incomeEngineerTaxExclude").val();
|
||||
// var incomeServiceTaxInclude = $("#incomeServiceTaxInclude").val();
|
||||
// var incomeServiceTaxExclude = $("#incomeServiceTaxExclude").val();
|
||||
// var costPurchaseDeviceTaxInclude = $("#costPurchaseDeviceTaxInclude").val();
|
||||
// var costPurchaseDeviceTaxExclude = $("#costPurchaseDeviceTaxExclude").val();
|
||||
// var costPurchaseBuildTaxInclude = $("#costPurchaseBuildTaxInclude").val();
|
||||
// var costPurchaseBuildTaxExclude = $("#costPurchaseBuildTaxExclude").val();
|
||||
// var costPurchaseServiceTaxInclude = $("#costPurchaseServiceTaxInclude").val();
|
||||
// var costPurchaseServiceTaxExclude = $("#costPurchaseServiceTaxExclude").val();
|
||||
// var costPurchaseOtherTaxInclude = $("#costPurchaseOtherTaxInclude").val();
|
||||
// var costPurchaseOtherTaxExclude = $("#costPurchaseOtherTaxExclude").val();
|
||||
// var costCompanyManageTaxExclude = $("#costCompanyManageTaxExclude ").val();
|
||||
// var costProjectManageTaxExclude = $("#costProjectManageTaxExclude ").val();
|
||||
// var costOtherOtherTaxInclude = $("#costOtherOtherTaxInclude").val();
|
||||
// var costOtherOtherTaxExclude = $("#costOtherOtherTaxExclude").val();
|
||||
|
||||
if (name.length <= 0) {
|
||||
window.confirm('项目名称不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
checkName();
|
||||
if (result == 1) {
|
||||
window.confirm('项目名称已存在');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (startTime.length <= 0) {
|
||||
window.confirm('项目计划开始时间不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (endTime.length <= 0) {
|
||||
window.confirm('项目计划结束时间不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (startTime > endTime) {
|
||||
window.confirm('开始日期应早于结束日期');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
// if (projectNo.length <= 0) {
|
||||
// window.confirm('项目编号不能为空');
|
||||
// check = 1;
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// checkProjectNo();
|
||||
// if (projectNoResult == 1) {
|
||||
// window.confirm('项目编号已存在');
|
||||
// check = 1;
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (underwrittenMode == 1 && (collaborator == undefined || collaborator.length <= 0)) {
|
||||
window.confirm('合作对象不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (underwrittenMode > 2 && (advanceInterestAmount == undefined || advanceInterestAmount.length <= 0)) {
|
||||
window.confirm('垫资利息不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (underwrittenMode > 2 && (advancePeakAmount == undefined || advancePeakAmount.length <= 0)) {
|
||||
window.confirm('垫资峰值不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (contractAmount == undefined || contractAmount.length <= 0) {
|
||||
window.confirm('合同金额不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (grossProfit == undefined || grossProfit.length <= 0) {
|
||||
window.confirm('项目毛利不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (grossProfitMargin == undefined || grossProfitMargin.length <= 0) {
|
||||
window.confirm('项目毛利率不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (huizhiProductAmount == undefined || huizhiProductAmount.length <= 0) {
|
||||
window.confirm('汇智产品金额不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (huazhiProductAmount == undefined || huazhiProductAmount.length <= 0) {
|
||||
window.confirm('华智产品金额不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (huasanProductAmount == undefined || huasanProductAmount.length <= 0) {
|
||||
window.confirm('华三产品金额不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (ziguangOtherAmount == undefined || ziguangOtherAmount.length <= 0) {
|
||||
window.confirm('其他产品金额不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
// if (industryScenario == undefined || industryScenario.length <= 0) {
|
||||
// window.confirm('行业应用场景不能为空');
|
||||
// check = 1;
|
||||
// return;
|
||||
// }
|
||||
|
||||
// if (mainContractCollectionTerms == undefined || mainContractCollectionTerms.length <= 0) {
|
||||
// window.confirm('主合同收款条款不能为空');
|
||||
// check = 1;
|
||||
// return;
|
||||
// }
|
||||
|
||||
if (customer == undefined || customer.length <= 0) {
|
||||
window.confirm('客户名称不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (terminalCustomer == undefined || terminalCustomer.length <= 0) {
|
||||
window.confirm('最终用户名称不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (valueRisk == undefined || valueRisk.length <= 0) {
|
||||
window.confirm('价值及风险不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
|
||||
if (principal == undefined || principal.length <= 0) {
|
||||
window.confirm('项目负责人不能为空');
|
||||
check = 1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断是否重名
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue