diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue index dd03454..4d3f03d 100644 --- a/src/views/worksheet/content/Content.vue +++ b/src/views/worksheet/content/Content.vue @@ -225,7 +225,6 @@ const packageName = computed(() => { const index = workStore.getCurrentIndex return workStore.getOrderList[index]?.name || '' }) - async function queryDetail(checkDuplicateId: any) { taskDetailInfo.value = await getTaskDetailInfo(checkDuplicateId) const packageid = workStore.getActiveId @@ -288,7 +287,6 @@ function onEsc(event: KeyboardEvent) { return if (!keys.includes(event.code)) return - if (event.code === 'KeyC') { // 是否有弹窗存在 const modalClasss = [ @@ -313,6 +311,10 @@ function onEsc(event: KeyboardEvent) { // 审核通过、不通过 批量审核弹窗任意一个存在都不进行下面的操作 if (rejectDialog.value || passDialog.value) return + // 只有未审批的数据才可以执行以下操作 1 未审批 2 审核通过 3 审核不通过 + if (taskDetailInfo.value.historyStates !== 1) + return + // 双击p键审核通过 if (code === 'KeyP') { const currentTime = Date.now() @@ -542,8 +544,6 @@ function handleRejectdubiousfileyd(pictureid) { dubiousfileyd({ pictureid }).then(({ code }) => { if (code === 'OK') message.success('加入成功') - - refreshHandler() const packageid = workStore.getActiveId if (isEmpty(packageid)) { listData.value.length = 0