|
|
@ -128,30 +128,31 @@ useKeydown('right', forwardHandler)
|
|
|
|
useKeydown('left', backHandler)
|
|
|
|
useKeydown('left', backHandler)
|
|
|
|
useKeydown('p p', () => {
|
|
|
|
useKeydown('p p', () => {
|
|
|
|
const item = taskDetailInfo.value
|
|
|
|
const item = taskDetailInfo.value
|
|
|
|
if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) {
|
|
|
|
if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) {
|
|
|
|
overTask.value = null
|
|
|
|
overTask.value = null
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (validate([item]) == null && batch.value === false)
|
|
|
|
if (validate([item]) == null && batch.value === false)
|
|
|
|
overTask.value = item
|
|
|
|
overTask.value = item
|
|
|
|
// 执行想要的操作
|
|
|
|
// 执行想要的操作
|
|
|
|
approvalHandler()
|
|
|
|
approvalHandler()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
useKeydown('x x', () => {
|
|
|
|
useKeydown('x x', () => {
|
|
|
|
const item = taskDetailInfo.value
|
|
|
|
const item = taskDetailInfo.value
|
|
|
|
if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) {
|
|
|
|
if (item?.userapprove?.statshis === 2 || item?.userapprove?.statshis == 3) {
|
|
|
|
overTask.value = null
|
|
|
|
overTask.value = null
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (validate([item]) == null && batch.value === false)
|
|
|
|
if (validate([item]) == null && batch.value === false)
|
|
|
|
overTask.value = item
|
|
|
|
overTask.value = item
|
|
|
|
// 执行想要的操作
|
|
|
|
// 执行想要的操作
|
|
|
|
const modal = unref(notPassModalRef)! as any
|
|
|
|
const modal = unref(notPassModalRef)! as any
|
|
|
|
modal.showModal([taskDetailInfo.value])
|
|
|
|
modal.showModal([taskDetailInfo.value])
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function setBatch(value: boolean) {
|
|
|
|
function setBatch(value: boolean) {
|
|
|
|
// if (totalCount.value === 0)
|
|
|
|
// if (totalCount.value === 0)
|
|
|
|
// return
|
|
|
|
// return
|
|
|
@ -309,10 +310,6 @@ async function handleDragEnd(event, item) {
|
|
|
|
getTableData()
|
|
|
|
getTableData()
|
|
|
|
getImgList()
|
|
|
|
getImgList()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
|
|
|
|
message.error(res.message)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
taskStore.setInFile(false)
|
|
|
|
taskStore.setInFile(false)
|
|
|
|
taskStore.setInFile(item.pictureId)
|
|
|
|
taskStore.setInFile(item.pictureId)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -330,10 +327,6 @@ async function addSuspicious() {
|
|
|
|
setBatch(false)
|
|
|
|
setBatch(false)
|
|
|
|
getTableData()
|
|
|
|
getTableData()
|
|
|
|
getImgList()
|
|
|
|
getImgList()
|
|
|
|
const searchParams = new URLSearchParams(window.location.search)
|
|
|
|
|
|
|
|
const type = searchParams.get('type')
|
|
|
|
|
|
|
|
if (type)
|
|
|
|
|
|
|
|
router.push({ name: 'final', query: { type } })
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
message.error(res.message)
|
|
|
|
message.error(res.message)
|
|
|
@ -361,8 +354,8 @@ async function getTableData() {
|
|
|
|
fieldList.forEach((v) => {
|
|
|
|
fieldList.forEach((v) => {
|
|
|
|
if (userFieldList.includes(v.name)) {
|
|
|
|
if (userFieldList.includes(v.name)) {
|
|
|
|
let locationobj = { address: '' }
|
|
|
|
let locationobj = { address: '' }
|
|
|
|
|
|
|
|
|
|
|
|
if (v.name == 'location' && taskDetailInfo.value.ocrPicture[v.name] != null && taskDetailInfo.value.ocrPicture[v.name] != 'null') {
|
|
|
|
if (v.name == 'location'&& taskDetailInfo.value.ocrPicture[v.name]!=null&& taskDetailInfo.value.ocrPicture[v.name]!="null") {
|
|
|
|
locationobj = JSON.parse(
|
|
|
|
locationobj = JSON.parse(
|
|
|
|
taskDetailInfo.value.ocrPicture ? taskDetailInfo.value.ocrPicture[v.name] : {},
|
|
|
|
taskDetailInfo.value.ocrPicture ? taskDetailInfo.value.ocrPicture[v.name] : {},
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -425,7 +418,7 @@ function showActionsModal() {
|
|
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
|
onUnmounted(() => {
|
|
|
|
taskStore.reset()
|
|
|
|
taskStore.reset()
|
|
|
|
window.removeEventListener('scroll', checkBottom)
|
|
|
|
window.removeEventListener('scroll', checkBottom)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
function immersionHandler() {
|
|
|
|
function immersionHandler() {
|
|
|
@ -434,8 +427,7 @@ function immersionHandler() {
|
|
|
|
toggleFullScreen()
|
|
|
|
toggleFullScreen()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
useKeydown('k k', () => {
|
|
|
|
useKeydown('k k', () => {
|
|
|
|
if (isFullScreen.value)
|
|
|
|
if (isFullScreen.value) return
|
|
|
|
return
|
|
|
|
|
|
|
|
isFullScreen.value = true
|
|
|
|
isFullScreen.value = true
|
|
|
|
fetchData()
|
|
|
|
fetchData()
|
|
|
|
window.addEventListener('scroll', checkBottom)
|
|
|
|
window.addEventListener('scroll', checkBottom)
|
|
|
@ -498,13 +490,13 @@ function reloadList(param, text) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function goBack() {
|
|
|
|
function goBack() {
|
|
|
|
const searchParams = new URLSearchParams(window.location.search)
|
|
|
|
const searchParams = new URLSearchParams(window.location.search);
|
|
|
|
const type = searchParams.get('type')
|
|
|
|
const type = searchParams.get('type');
|
|
|
|
if (type)
|
|
|
|
if(type){
|
|
|
|
router.push({ name: 'final', query: { type } })
|
|
|
|
router.push({ name: 'final', query: { type: type} })
|
|
|
|
|
|
|
|
}else{
|
|
|
|
else
|
|
|
|
router.back()
|
|
|
|
router.back()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function switchBatch() {
|
|
|
|
function switchBatch() {
|
|
|
@ -626,9 +618,6 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
|
|
|
|
sortBy.orderType = sortBy.orderType === 'asc' ? 'desc' : 'asc'
|
|
|
|
sortBy.orderType = sortBy.orderType === 'asc' ? 'desc' : 'asc'
|
|
|
|
refreshHandler()
|
|
|
|
refreshHandler()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function nodrage() {
|
|
|
|
|
|
|
|
message.error('已审批无法移入可疑文件夹中!')
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
@ -886,7 +875,7 @@ function nodrage() {
|
|
|
|
<div class="time-item">
|
|
|
|
<div class="time-item">
|
|
|
|
<SvgIcon class="svg-time" color="#FFF" size="16" name="camera-time" />
|
|
|
|
<SvgIcon class="svg-time" color="#FFF" size="16" name="camera-time" />
|
|
|
|
|
|
|
|
|
|
|
|
<span>{{ taskDetailInfo?.ocrPicture?.photoDateTimestamp ?? "- -" }}</span>
|
|
|
|
<span>{{ taskDetailInfo?.ocrPicture?.photoDateTimestamp ?? "-" }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="time-item time-item2">
|
|
|
|
<div class="time-item time-item2">
|
|
|
|
<SvgIcon class="svg-time" color="#FFF" size="16" name="submit-time" />
|
|
|
|
<SvgIcon class="svg-time" color="#FFF" size="16" name="submit-time" />
|
|
|
@ -894,7 +883,7 @@ function nodrage() {
|
|
|
|
<span>{{
|
|
|
|
<span>{{
|
|
|
|
taskDetailInfo?.ocrPicture?.submitDateTimestamp
|
|
|
|
taskDetailInfo?.ocrPicture?.submitDateTimestamp
|
|
|
|
? formatToDateHMS(Number(taskDetailInfo.ocrPicture.submitDateTimestamp))
|
|
|
|
? formatToDateHMS(Number(taskDetailInfo.ocrPicture.submitDateTimestamp))
|
|
|
|
: "- -"
|
|
|
|
: "-"
|
|
|
|
}}</span>
|
|
|
|
}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -959,8 +948,9 @@ function nodrage() {
|
|
|
|
class="item"
|
|
|
|
class="item"
|
|
|
|
draggable="true"
|
|
|
|
draggable="true"
|
|
|
|
@dragend="
|
|
|
|
@dragend="
|
|
|
|
item.historyStates === 1 ? handleDragEnd(event, item) : nodrage()
|
|
|
|
(event) => {
|
|
|
|
|
|
|
|
handleDragEnd(event, item);
|
|
|
|
|
|
|
|
}
|
|
|
|
"
|
|
|
|
"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
@ -997,7 +987,7 @@ function nodrage() {
|
|
|
|
<span>{{
|
|
|
|
<span>{{
|
|
|
|
item.photoDateTimestamp
|
|
|
|
item.photoDateTimestamp
|
|
|
|
? formatToDateHMS(Number(item.photoDateTimestamp))
|
|
|
|
? formatToDateHMS(Number(item.photoDateTimestamp))
|
|
|
|
: "- -"
|
|
|
|
: "-"
|
|
|
|
}}</span>
|
|
|
|
}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="time-item time-item2">
|
|
|
|
<div class="time-item time-item2">
|
|
|
@ -1005,7 +995,7 @@ function nodrage() {
|
|
|
|
<span>{{
|
|
|
|
<span>{{
|
|
|
|
item.submitDateTimestamp
|
|
|
|
item.submitDateTimestamp
|
|
|
|
? formatToDateHMS(Number(item.submitDateTimestamp))
|
|
|
|
? formatToDateHMS(Number(item.submitDateTimestamp))
|
|
|
|
: "- -"
|
|
|
|
: "-"
|
|
|
|
}}</span>
|
|
|
|
}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -1183,9 +1173,9 @@ function nodrage() {
|
|
|
|
class="item"
|
|
|
|
class="item"
|
|
|
|
draggable="true"
|
|
|
|
draggable="true"
|
|
|
|
@dragend="
|
|
|
|
@dragend="
|
|
|
|
|
|
|
|
(event) => {
|
|
|
|
item.historyStates === 1 ? handleDragEnd(event, item) : nodrage()
|
|
|
|
handleDragEnd(event, item);
|
|
|
|
|
|
|
|
}
|
|
|
|
"
|
|
|
|
"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
<div
|
|
|
@ -1240,7 +1230,7 @@ function nodrage() {
|
|
|
|
<span>{{
|
|
|
|
<span>{{
|
|
|
|
item.photoDateTimestamp
|
|
|
|
item.photoDateTimestamp
|
|
|
|
? formatToDateHMS(Number(item.photoDateTimestamp))
|
|
|
|
? formatToDateHMS(Number(item.photoDateTimestamp))
|
|
|
|
: "- -"
|
|
|
|
: "-"
|
|
|
|
}}</span>
|
|
|
|
}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="time-item time-item2">
|
|
|
|
<div class="time-item time-item2">
|
|
|
@ -1248,7 +1238,7 @@ function nodrage() {
|
|
|
|
<span>{{
|
|
|
|
<span>{{
|
|
|
|
item.submitDateTimestamp
|
|
|
|
item.submitDateTimestamp
|
|
|
|
? formatToDateHMS(Number(item.submitDateTimestamp))
|
|
|
|
? formatToDateHMS(Number(item.submitDateTimestamp))
|
|
|
|
: "- -"
|
|
|
|
: "-"
|
|
|
|
}}</span>
|
|
|
|
}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -1564,7 +1554,6 @@ function nodrage() {
|
|
|
|
left: 0;
|
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 0;
|
|
|
|
z-index: 0;
|
|
|
|
border-radius: 0 0 8px 8px;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.mark {
|
|
|
|
.mark {
|
|
|
|