|
|
@ -30,6 +30,8 @@ import type { ApprovalParam, SimilarityPictureSortParam } from '/#/api'
|
|
|
|
import bgLoading from '@/assets/images/bg-loading.png'
|
|
|
|
import bgLoading from '@/assets/images/bg-loading.png'
|
|
|
|
import { useKeydown } from '@/hooks/event/useKeydown'
|
|
|
|
import { useKeydown } from '@/hooks/event/useKeydown'
|
|
|
|
import { useDataHeaderStore } from '@/store/modules/DataHeader'
|
|
|
|
import { useDataHeaderStore } from '@/store/modules/DataHeader'
|
|
|
|
|
|
|
|
import CheckingTaskModal from '@/views/home/content/modal/CheckingTaskModal.vue'
|
|
|
|
|
|
|
|
import {getLastCheckNox,removeCheckDuplicate,getCheckDuplicateStatus,getCheckDuplicateStatusx} from "@/api/home/main"
|
|
|
|
|
|
|
|
|
|
|
|
const batch = ref(false) // 批量审批状态
|
|
|
|
const batch = ref(false) // 批量审批状态
|
|
|
|
const selectItems = ref<any[]>([])
|
|
|
|
const selectItems = ref<any[]>([])
|
|
|
@ -41,7 +43,9 @@ const bgLoadingImg = ref(bgLoading)
|
|
|
|
const imgbigshow = ref(true)
|
|
|
|
const imgbigshow = ref(true)
|
|
|
|
const isInitLoading = ref(0)
|
|
|
|
const isInitLoading = ref(0)
|
|
|
|
const haeaderstore=useDataHeaderStore()
|
|
|
|
const haeaderstore=useDataHeaderStore()
|
|
|
|
|
|
|
|
const checkingTaskModalRef = ref(null)
|
|
|
|
|
|
|
|
const checkTaskStatus = ref(null) // 1.执行中 2.执行完毕 3.执行失败
|
|
|
|
|
|
|
|
const checkDuplicateNo = ref('')
|
|
|
|
function changeimgbigshow() {
|
|
|
|
function changeimgbigshow() {
|
|
|
|
imgbigshow.value = !imgbigshow.value
|
|
|
|
imgbigshow.value = !imgbigshow.value
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -375,12 +379,23 @@ useKeydown('k k', () => {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
useKeydown('right', forwardHandler)
|
|
|
|
useKeydown('right', forwardHandler)
|
|
|
|
useKeydown('left', backHandler)
|
|
|
|
useKeydown('left', backHandler)
|
|
|
|
|
|
|
|
async function init() {
|
|
|
|
|
|
|
|
let result = await getLastCheckNox()
|
|
|
|
|
|
|
|
if(result.data){
|
|
|
|
|
|
|
|
let res=await getCheckDuplicateStatusx({checkDuplicateNo:result.data})
|
|
|
|
|
|
|
|
if(res.data.status==1){
|
|
|
|
|
|
|
|
const checkingTaskModal = checkingTaskModalRef.value as any
|
|
|
|
|
|
|
|
checkingTaskModal.showModal()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
onUnmounted(() => {
|
|
|
|
onUnmounted(() => {
|
|
|
|
workStore.reset()
|
|
|
|
workStore.reset()
|
|
|
|
document.removeEventListener('keydown', onEsc)
|
|
|
|
document.removeEventListener('keydown', onEsc)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
document.addEventListener('keydown', onEsc)
|
|
|
|
document.addEventListener('keydown', onEsc)
|
|
|
|
|
|
|
|
init()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
function immersionHandler() {
|
|
|
|
function immersionHandler() {
|
|
|
|
// class="wrapper"
|
|
|
|
// class="wrapper"
|
|
|
@ -601,6 +616,24 @@ function handleRejectdubiousfileyd(pictureid) {
|
|
|
|
onNegativeClick: () => {},
|
|
|
|
onNegativeClick: () => {},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 检查查重状态
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 取消查重任务
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
function cancel() {
|
|
|
|
|
|
|
|
if (checkTaskStatus.value === 1) {
|
|
|
|
|
|
|
|
removeCheckDuplicate(checkDuplicateNo.value).then((res) => {
|
|
|
|
|
|
|
|
if (res.code === 'OK') {
|
|
|
|
|
|
|
|
checkDuplicateNo.value = ''
|
|
|
|
|
|
|
|
checkTaskStatus.value = null
|
|
|
|
|
|
|
|
message.success('查重任务取消成功')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// 监听审核不通过弹窗
|
|
|
|
// 监听审核不通过弹窗
|
|
|
|
function onRejectDialog(visible) {
|
|
|
|
function onRejectDialog(visible) {
|
|
|
|
rejectDialog.value = visible
|
|
|
|
rejectDialog.value = visible
|
|
|
@ -773,19 +806,19 @@ defineExpose({
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<SvgIcon
|
|
|
|
<SvgIcon
|
|
|
|
v-if="[1].includes(taskDetailInfo.historyStates)"
|
|
|
|
v-if="[1].includes(taskDetailInfo.historyStates)"
|
|
|
|
style="cursor: pointer; margin-left: 10px"
|
|
|
|
style="cursor: pointer;"
|
|
|
|
name="t1"
|
|
|
|
name="t1"
|
|
|
|
@click.stop="handleApproveMainImage"
|
|
|
|
@click.stop="handleApproveMainImage"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<SvgIcon
|
|
|
|
<SvgIcon
|
|
|
|
v-if="[1].includes(taskDetailInfo.historyStates)"
|
|
|
|
v-if="[1].includes(taskDetailInfo.historyStates)"
|
|
|
|
style="cursor: pointer; margin-left: 30px"
|
|
|
|
style="cursor: pointer;"
|
|
|
|
name="t2"
|
|
|
|
name="t2"
|
|
|
|
@click.stop="handleRejectMainImage"
|
|
|
|
@click.stop="handleRejectMainImage"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<SvgIcon
|
|
|
|
<SvgIcon
|
|
|
|
v-if="[1].includes(taskDetailInfo.historyStates)"
|
|
|
|
v-if="[1].includes(taskDetailInfo.historyStates)"
|
|
|
|
style="cursor: pointer; margin-left: 20px; margin-right:10px"
|
|
|
|
style="cursor: pointer; "
|
|
|
|
name="t9"
|
|
|
|
name="t9"
|
|
|
|
@click.stop="handleRejectdubiousfileyd(taskDetailInfo.id)"
|
|
|
|
@click.stop="handleRejectdubiousfileyd(taskDetailInfo.id)"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -943,20 +976,21 @@ defineExpose({
|
|
|
|
<div v-show="overTask && overTask.id === item.id" class="action"
|
|
|
|
<div v-show="overTask && overTask.id === item.id" class="action"
|
|
|
|
:style="item?.historyStates === 2||item?.historyStates ===3?'background:transparent':''">
|
|
|
|
:style="item?.historyStates === 2||item?.historyStates ===3?'background:transparent':''">
|
|
|
|
<SvgIcon
|
|
|
|
<SvgIcon
|
|
|
|
|
|
|
|
|
|
|
|
v-if="item.historyStates === 1"
|
|
|
|
v-if="item.historyStates === 1"
|
|
|
|
style="cursor: pointer; margin-left: 10px"
|
|
|
|
style="cursor: pointer;width:50px;height:50px"
|
|
|
|
name="t1"
|
|
|
|
name="t1"
|
|
|
|
@click.stop="approvalHandler"
|
|
|
|
@click.stop="approvalHandler"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<SvgIcon
|
|
|
|
<SvgIcon
|
|
|
|
v-if="[1].includes(item.historyStates)"
|
|
|
|
v-if="[1].includes(item.historyStates)"
|
|
|
|
style="cursor: pointer; margin-left: 30px"
|
|
|
|
style="cursor: pointer;width:50px;height:50px "
|
|
|
|
name="t2"
|
|
|
|
name="t2"
|
|
|
|
@click.stop="singleRejectHandler(item)"
|
|
|
|
@click.stop="singleRejectHandler(item)"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<SvgIcon
|
|
|
|
<SvgIcon
|
|
|
|
v-if="[1].includes(item.historyStates)"
|
|
|
|
v-if="[1].includes(item.historyStates)"
|
|
|
|
style="cursor: pointer; margin-left: 20px; margin-right:10px"
|
|
|
|
style="cursor: pointer;width:50px;height:50px "
|
|
|
|
name="t9"
|
|
|
|
name="t9"
|
|
|
|
@click.stop="handleRejectdubiousfileyd(item.pictureid)"
|
|
|
|
@click.stop="handleRejectdubiousfileyd(item.pictureid)"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
@ -983,6 +1017,7 @@ defineExpose({
|
|
|
|
@show="onRejectDialog"
|
|
|
|
@show="onRejectDialog"
|
|
|
|
@success="reloadDetailInfo"
|
|
|
|
@success="reloadDetailInfo"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
<CheckingTaskModal ref="checkingTaskModalRef" @cancel="cancel" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -1177,7 +1212,9 @@ defineExpose({
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
border-radius: 8px;
|
|
|
|
border-radius: 8px;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
// justify-content: center;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: space-around;
|
|
|
|
background: linear-gradient(
|
|
|
|
background: linear-gradient(
|
|
|
|
180deg,
|
|
|
|
180deg,
|
|
|
|
rgba(0, 0, 0, 0) 0%,
|
|
|
|
rgba(0, 0, 0, 0) 0%,
|
|
|
@ -1488,7 +1525,7 @@ defineExpose({
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
border-radius: 8px;
|
|
|
|
border-radius: 8px;
|
|
|
|
align-items: center;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
justify-content: space-around;
|
|
|
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.44) 88%);
|
|
|
|
background: linear-gradient(180deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.44) 88%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|