Merge remote-tracking branch 'origin/main'

This commit is contained in:
z 2025-03-01 10:00:33 +08:00
commit 0a90c406b3

View File

@ -673,16 +673,36 @@ const handleSelectedProjectOrder = (arr: ProjectOrderVO[]) => {
};
const parentMethod = async () => {
//
const isOverdue = dataList.value.projectOrderSubs.some(sub => {
let overdueTime = null; //
let projectName = null; //
const isOverdue = dataList.value.projectOrderSubs.some(sub => {
if (sub.changeEndTime) {
const isOverdueSub = sub.blankDate > sub.changeEndTime ||
sub.twoDimDate > sub.changeEndTime ||
sub.threeDimDate > sub.changeEndTime;
// sub sub.changeEndTime overdueTime
if (isOverdueSub) {
overdueTime = sub.changeEndTime;
projectName = sub.projectSubName;
}
return isOverdueSub;
}
return false;
});
/* const isOverdue = dataList.value.projectOrderSubs.some(sub => {
if (sub.changeEndTime) {
return sub.blankDate > sub.changeEndTime ||
sub.twoDimDate > sub.changeEndTime ||
sub.threeDimDate > sub.changeEndTime;
}
return false;
});
}); */
if (isOverdue) {
message.error("本次插活已经超过要求设计结束日期,无法插活");
message.error(projectName+",超过要求设计结束日期-"+formatDate(overdueTime,'YYYY-MM-DD')+",不允许插活");
return; //
}
dialogVisible.value = false;