付款计划表保存草稿增加时间校验

dev_2.0.2
‘wangjiuyun 2024-12-20 16:45:10 +08:00
parent 4348997e74
commit 4dba9a69cb
1 changed files with 25 additions and 0 deletions

View File

@ -90,7 +90,19 @@ $(function () {
$("#saveDraft").click(function () {
$("#saveDraft").attr('disabled', true);
$("#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();
// if(!checkprojectPlan()){
// $("#saveDraft").attr('disabled', false);
@ -218,6 +230,18 @@ $(function () {
$("#saveApprove").attr('disabled', false);
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();
if (check === 1) {
$("#saveApprove").attr('disabled', false);
@ -543,6 +567,7 @@ function checkIfFillIn() {
check = 1;
return;
}
}
/**