收款计划表时间校验

dev_2.0.2
‘wangjiuyun 2024-12-30 11:02:54 +08:00
parent 025bfa6ae2
commit f335a780db
1 changed files with 24 additions and 0 deletions

View File

@ -103,6 +103,18 @@ $(function () {
return
}
var timeValue2 = $(".incomePlanTime");
var timeFlag2 = true
timeValue2.each((index, element) => {
if ($(element).val().length != 10)
timeFlag2 = false
})
if (timeFlag2 == false) {
layuiAlert('收款计划表中收款时间为必填')
$("#saveDraft").attr('disabled', false);
return
}
// checkIfFillIn();
// if(!checkprojectPlan()){
// $("#saveDraft").attr('disabled', false);
@ -254,6 +266,18 @@ $(function () {
$("#saveApprove").attr('disabled', false);
return
}
var timeValue2 = $(".incomePlanTime");
var timeFlag2 = true
timeValue2.each((index, element) => {
if ($(element).val().length != 10)
timeFlag2 = false
})
if (timeFlag2 == false) {
layuiAlert('收款计划表中收款时间为必填')
$("#saveDraft").attr('disabled', false);
return
}
checkIfFillIn();
if (check === 1) {
$("#saveApprove").attr('disabled', false);