付款计划表保存草稿增加时间校验
parent
4348997e74
commit
4dba9a69cb
|
@ -90,7 +90,19 @@ $(function () {
|
||||||
$("#saveDraft").click(function () {
|
$("#saveDraft").click(function () {
|
||||||
$("#saveDraft").attr('disabled', true);
|
$("#saveDraft").attr('disabled', true);
|
||||||
$("#collaboratorUrl").val($("#collaboratorUrl_span").text());
|
$("#collaboratorUrl").val($("#collaboratorUrl_span").text());
|
||||||
|
// 时间必填校验
|
||||||
|
var timeValue = $(".input-changeable-pay-time");
|
||||||
|
var timeFlag = true
|
||||||
|
timeValue.each((index, element) => {
|
||||||
|
if ($(element).val().length != 10)
|
||||||
|
timeFlag = false
|
||||||
|
})
|
||||||
|
if (timeFlag == false) {
|
||||||
|
layuiAlert('付款计划表中付款时间为必填')
|
||||||
|
$("#saveDraft").attr('disabled', false);
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
// checkIfFillIn();
|
// checkIfFillIn();
|
||||||
// if(!checkprojectPlan()){
|
// if(!checkprojectPlan()){
|
||||||
// $("#saveDraft").attr('disabled', false);
|
// $("#saveDraft").attr('disabled', false);
|
||||||
|
@ -218,6 +230,18 @@ $(function () {
|
||||||
$("#saveApprove").attr('disabled', false);
|
$("#saveApprove").attr('disabled', false);
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// 时间必填校验
|
||||||
|
var timeValue = $(".input-changeable-pay-time");
|
||||||
|
var timeFlag = true
|
||||||
|
timeValue.each((index, element) => {
|
||||||
|
if ($(element).val().length != 10)
|
||||||
|
timeFlag = false
|
||||||
|
})
|
||||||
|
if (timeFlag == false) {
|
||||||
|
layuiAlert('付款计划表中付款时间为必填')
|
||||||
|
$("#saveApprove").attr('disabled', false);
|
||||||
|
return
|
||||||
|
}
|
||||||
checkIfFillIn();
|
checkIfFillIn();
|
||||||
if (check === 1) {
|
if (check === 1) {
|
||||||
$("#saveApprove").attr('disabled', false);
|
$("#saveApprove").attr('disabled', false);
|
||||||
|
@ -543,6 +567,7 @@ function checkIfFillIn() {
|
||||||
check = 1;
|
check = 1;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue