From e9c0af3fc026823ca54f206bbe8c2666ed5013cd Mon Sep 17 00:00:00 2001 From: k94314517 <8417338+k94314517@user.noreply.gitee.com> Date: 星期五, 23 二月 2024 20:06:38 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- company/src/components/enterprise/additionSubtractionApplication.vue | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/company/src/components/enterprise/additionSubtractionApplication.vue b/company/src/components/enterprise/additionSubtractionApplication.vue index 623e54c..c807afd 100644 --- a/company/src/components/enterprise/additionSubtractionApplication.vue +++ b/company/src/components/enterprise/additionSubtractionApplication.vue @@ -184,7 +184,7 @@ import { all } from '@/api/business/solutions' import { getDetail } from '@/api/business/insuranceApply' import { create, getChangeCountCyclePriceVO } from '@/api/business/applyChange' - import { getDate } from '@/utils/util' + import { getDate, compareDates, getTomorrow } from '@/utils/util' export default { name: 'additionSubtractionApplication', extends: BaseOpera, @@ -286,11 +286,22 @@ this.form.solutionsName = res.solutionsName this.pickerOptions = { disabledDate(time) { - // - 8.64e7 - if (getDate()) { - + // 褰撳墠鏃ユ湡澶т簬绛変簬鐢熸晥鏃ユ湡骞朵笖鏈�鍚庝竴娆℃搷浣滄椂闂寸瓑浜庣┖ + if ([1,3].includes(compareDates(getDate(), res.startTime)) && !res.lastChangeDate) { + return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(getTomorrow()).getTime() + // 褰撳墠鏃ユ湡灏忎簬鐢熸晥鏃ユ湡骞朵笖鏈�鍚庝竴娆℃搷浣滄椂闂寸瓑浜庣┖ + } else if (compareDates(getDate(), res.startTime) === 2 && !res.lastChangeDate) { + return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(res.startTime).getTime() + // 鏈�鍚庝竴娆℃搷浣滄椂闂存湁鍊� + } else if (res.lastChangeDate) { + // 褰撳墠鏃ユ湡澶т簬鏈�鍚庝竴娆℃搷浣滄椂闂� + if ([1,3].includes(compareDates(getDate(), res.lastChangeDate))) { + return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(getTomorrow()).getTime() + // 褰撳墠鏃堕棿灏忎簬鏈�鍚庝竴娆℃搷浣滄椂闂� + } else if (compareDates(getDate(), res.lastChangeDate) === 2) { + return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(res.lastChangeDate).getTime() + } } - return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(res.lastChangeDate ? res.lastChangeDate : res.startTime).getTime() } }; // this.changeSolution1(res.solutionId) @@ -485,7 +496,7 @@ this.$message.warning('璇烽�夋嫨鍛樺伐') return } - this.$refs.confirmJobType.open('纭宸ョ', { solutionId: this.form.solutionId }) + this.$refs.confirmJobType.open('纭宸ョ', { solutionId: this.item.newVersionSolutionId }) }, // 鏌ヨ鍏ㄩ儴鏂规 getCompany() { -- Gitblit v1.9.3