From 2df958d69e3f242a4bbdb40d55b57dd3283edfa2 Mon Sep 17 00:00:00 2001 From: guoyue Date: Tue, 27 Sep 2022 14:06:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=EF=BC=9A=E8=83=BD?= =?UTF-8?q?=E5=8A=9B=E7=94=B3=E8=AF=B7--=E8=BF=87=E6=9C=9F=E7=BB=99?= =?UTF-8?q?=E5=87=BA=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/personalCenter/components/MyApply.vue | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/front/src/views/personalCenter/components/MyApply.vue b/front/src/views/personalCenter/components/MyApply.vue index 2540017e..e0d49a4a 100644 --- a/front/src/views/personalCenter/components/MyApply.vue +++ b/front/src/views/personalCenter/components/MyApply.vue @@ -134,6 +134,8 @@ import { useRouter } from 'vue-router' import { message } from 'ant-design-vue' import ApplyDetails from '@/views/personalCenter/components/ApplyDetails' import mybus from '@/myplugins/mybus' +import * as moment from 'moment' + const router = useRouter() let typeList = ref([ '能力申请', @@ -218,12 +220,22 @@ const delObj = ref({}) const taskId = ref('') const backUrl = ref(window.SITE_CONFIG.apiURL + '/') const refObj = ref({}) + const showDetail = (item) => { - // getProcDefBizRoute(item.processDefinitionId) + // 西海岸-申请时间过期,提示 + if (isXiHaiAn) { + if (item.expireDate) { + let diff = moment().diff(moment(item.expireDate), 'seconds') + if (diff > 0) { + return message.error('当前申请已过期!') + } + } + } if (typeName.value == '能力申请' && item.applyFlag) { getByApplyFlag(item.applyFlag).then((res) => { if (res.data.code == 0) { - refObj.value = res.data.data + refObj.value = res.data.data; + detailsVisible.value = true processDefinitionName.value = item.processDefinitionName businessKey.value = item.businessKey