|
|
|
@ -1,5 +1,14 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { chunk, clone } from 'lodash-es'
|
|
|
|
|
import { getAllfieldList, getfieldList } from '@/api/home/filter'
|
|
|
|
|
import { audit } from '@/api/task/task'
|
|
|
|
|
import { getTaskDetailInfo, getTaskDetailPictureList } from '@/api/work/work'
|
|
|
|
|
import { useTask } from '@/store/modules/task'
|
|
|
|
|
import { useUser } from '@/store/modules/user'
|
|
|
|
|
import { isEmpty } from '@/utils'
|
|
|
|
|
import { hideDownload } from '@/utils/image'
|
|
|
|
|
import emitter from '@/utils/mitt'
|
|
|
|
|
import _ from 'lodash'
|
|
|
|
|
import { clone } from 'lodash-es'
|
|
|
|
|
import { useDialog, useMessage } from 'naive-ui'
|
|
|
|
|
import { computed, onUnmounted, reactive, ref, unref, watch } from 'vue'
|
|
|
|
|
import BatchModal from '../modal/BatchModal.vue'
|
|
|
|
@ -18,6 +27,7 @@ import emitter from '@/utils/mitt'
|
|
|
|
|
import type { ApprovalParam, PictureSortParam } from '/#/api'
|
|
|
|
|
import { formatToDateHMS } from '@/utils/dateUtil'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const batch = ref(false)
|
|
|
|
|
const selectItems = ref<any[]>([])
|
|
|
|
|
const message = useMessage()
|
|
|
|
@ -29,50 +39,47 @@ const CustomSettingModalRef = ref(null)
|
|
|
|
|
const taskTableData = ref<any[]>([])
|
|
|
|
|
|
|
|
|
|
const sortBy: PictureSortParam = {
|
|
|
|
|
orderbyname: 'asc',
|
|
|
|
|
orderbyvalue: 'fromuptime',
|
|
|
|
|
}
|
|
|
|
|
orderbyname: "asc",
|
|
|
|
|
orderbyvalue: "fromuptime",
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function setBatch(value: boolean) {
|
|
|
|
|
if (totalCount.value === 0)
|
|
|
|
|
return
|
|
|
|
|
if (totalCount.value === 0) return;
|
|
|
|
|
|
|
|
|
|
batch.value = value
|
|
|
|
|
batch.value = value;
|
|
|
|
|
if (value === false) {
|
|
|
|
|
selectItems.value.forEach(item => (item.checked = false))
|
|
|
|
|
selectItems.value.length = 0
|
|
|
|
|
selectItems.value.forEach((item) => (item.checked = false));
|
|
|
|
|
selectItems.value.length = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function onCheckChange(checked: any, item: any) {
|
|
|
|
|
const index = selectItems.value.indexOf(item)
|
|
|
|
|
item.checked = checked
|
|
|
|
|
const index = selectItems.value.indexOf(item);
|
|
|
|
|
item.checked = checked;
|
|
|
|
|
|
|
|
|
|
if (index === -1 && checked)
|
|
|
|
|
selectItems.value.push(item)
|
|
|
|
|
else selectItems.value.splice(index, 1)
|
|
|
|
|
if (index === -1 && checked) selectItems.value.push(item);
|
|
|
|
|
else selectItems.value.splice(index, 1);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const showActions = computed(() => {
|
|
|
|
|
return selectItems.value.length > 0 && batch
|
|
|
|
|
})
|
|
|
|
|
return selectItems.value.length > 0 && batch;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const taskpagination = reactive({
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
})
|
|
|
|
|
const taskStore = useTask()
|
|
|
|
|
const overTask = ref<any>(null)
|
|
|
|
|
const taskDetailInfo = ref<any>({})
|
|
|
|
|
const taskDetailPictureList = ref<any[]>([])
|
|
|
|
|
const userStore = useUser()
|
|
|
|
|
const imageRef = ref<ComponentElRef | null>()
|
|
|
|
|
let processItems: any[] = []
|
|
|
|
|
});
|
|
|
|
|
const taskStore = useTask();
|
|
|
|
|
const overTask = ref<any>(null);
|
|
|
|
|
const taskDetailInfo = ref<any>({});
|
|
|
|
|
const taskDetailPictureList = ref<any[]>([]);
|
|
|
|
|
const userStore = useUser();
|
|
|
|
|
const imageRef = ref<ComponentElRef | null>();
|
|
|
|
|
let processItems: any[] = [];
|
|
|
|
|
|
|
|
|
|
// states:1未提交,2待审批,3通过,4不通过
|
|
|
|
|
function validate(items: any[]) {
|
|
|
|
|
if (items.length === 0)
|
|
|
|
|
return '至少选中一个任务'
|
|
|
|
|
if (items.length === 0) return "至少选中一个任务";
|
|
|
|
|
|
|
|
|
|
// const useInfo = userStore.getUserInfo
|
|
|
|
|
// const username = useInfo.loginname
|
|
|
|
@ -89,114 +96,115 @@ function validate(items: any[]) {
|
|
|
|
|
// return '审批人不一致'
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
return null
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function approvalHandler(items?: any) {
|
|
|
|
|
let cloneItem: any
|
|
|
|
|
if (batch.value) { processItems = selectItems.value }
|
|
|
|
|
else if (overTask.value) {
|
|
|
|
|
cloneItem = clone(overTask.value)
|
|
|
|
|
processItems = [cloneItem]
|
|
|
|
|
let cloneItem: any;
|
|
|
|
|
if (batch.value) {
|
|
|
|
|
processItems = selectItems.value;
|
|
|
|
|
} else if (overTask.value) {
|
|
|
|
|
cloneItem = clone(overTask.value);
|
|
|
|
|
processItems = [cloneItem];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (items !== undefined && !(items instanceof PointerEvent))
|
|
|
|
|
processItems = items
|
|
|
|
|
processItems = items;
|
|
|
|
|
|
|
|
|
|
const msg = validate(processItems)
|
|
|
|
|
const msg = validate(processItems);
|
|
|
|
|
|
|
|
|
|
if (msg !== null) {
|
|
|
|
|
message.error(msg)
|
|
|
|
|
return
|
|
|
|
|
message.error(msg);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dialog.info({
|
|
|
|
|
title: '确认提示',
|
|
|
|
|
content: '确认给该任务审批为【通过】吗?',
|
|
|
|
|
positiveText: '确定',
|
|
|
|
|
negativeText: '取消',
|
|
|
|
|
title: "确认提示",
|
|
|
|
|
content: "确认给该任务审批为【通过】吗?",
|
|
|
|
|
positiveText: "确定",
|
|
|
|
|
negativeText: "取消",
|
|
|
|
|
onPositiveClick: () => {
|
|
|
|
|
approval()
|
|
|
|
|
approval();
|
|
|
|
|
},
|
|
|
|
|
onNegativeClick: () => { },
|
|
|
|
|
})
|
|
|
|
|
onNegativeClick: () => {},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function rejectHandler(items?: any) {
|
|
|
|
|
let cloneItem: any
|
|
|
|
|
if (batch.value) { processItems = selectItems.value }
|
|
|
|
|
else if (overTask.value) {
|
|
|
|
|
cloneItem = clone(overTask.value)
|
|
|
|
|
processItems = [cloneItem]
|
|
|
|
|
let cloneItem: any;
|
|
|
|
|
if (batch.value) {
|
|
|
|
|
processItems = selectItems.value;
|
|
|
|
|
} else if (overTask.value) {
|
|
|
|
|
cloneItem = clone(overTask.value);
|
|
|
|
|
processItems = [cloneItem];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (items !== undefined && !(items instanceof PointerEvent))
|
|
|
|
|
processItems = items
|
|
|
|
|
processItems = items;
|
|
|
|
|
|
|
|
|
|
const msg = validate(processItems)
|
|
|
|
|
const msg = validate(processItems);
|
|
|
|
|
|
|
|
|
|
if (msg !== null) {
|
|
|
|
|
message.error(msg)
|
|
|
|
|
return
|
|
|
|
|
message.error(msg);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const modal = unref(confrimModalRef)! as any
|
|
|
|
|
modal.showModal()
|
|
|
|
|
const modal = unref(confrimModalRef)! as any;
|
|
|
|
|
modal.showModal();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function approval() {
|
|
|
|
|
const formIds: string[] = processItems.map(item => item.id)
|
|
|
|
|
const taskIds: string[] = processItems.map(item => item.taskId)
|
|
|
|
|
const tasknames: string[] = processItems.map(item => item.taskname)
|
|
|
|
|
const formIds: string[] = processItems.map((item) => item.id);
|
|
|
|
|
const taskIds: string[] = processItems.map((item) => item.taskId);
|
|
|
|
|
const tasknames: string[] = processItems.map((item) => item.taskname);
|
|
|
|
|
|
|
|
|
|
const param: ApprovalParam = {
|
|
|
|
|
formid: formIds,
|
|
|
|
|
taskId: taskIds,
|
|
|
|
|
approvd: true,
|
|
|
|
|
taskComment: 'approval',
|
|
|
|
|
taskComment: "approval",
|
|
|
|
|
taskname: tasknames,
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
doAudit(param)
|
|
|
|
|
doAudit(param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function doAudit(param: any) {
|
|
|
|
|
audit(param).then((res) => {
|
|
|
|
|
const { code } = res
|
|
|
|
|
processItems.length = 0
|
|
|
|
|
if (code === 'OK')
|
|
|
|
|
emitter.emit('refresh')
|
|
|
|
|
else message.error(res.message)
|
|
|
|
|
})
|
|
|
|
|
const { code } = res;
|
|
|
|
|
processItems.length = 0;
|
|
|
|
|
if (code === "OK") emitter.emit("refresh");
|
|
|
|
|
else message.error(res.message);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function reject(idOrDesc: string, backId: string, isOther: boolean) {
|
|
|
|
|
const formIds: string[] = processItems.map(item => item.id)
|
|
|
|
|
const taskIds: string[] = processItems.map(item => item.taskId)
|
|
|
|
|
const tasknames: string[] = processItems.map(item => item.taskname)
|
|
|
|
|
const formIds: string[] = processItems.map((item) => item.id);
|
|
|
|
|
const taskIds: string[] = processItems.map((item) => item.taskId);
|
|
|
|
|
const tasknames: string[] = processItems.map((item) => item.taskname);
|
|
|
|
|
|
|
|
|
|
const param: ApprovalParam = {
|
|
|
|
|
formid: formIds,
|
|
|
|
|
taskId: taskIds,
|
|
|
|
|
approvd: false,
|
|
|
|
|
taskComment: idOrDesc,
|
|
|
|
|
taskname: isOther ? tasknames : ['其他'],
|
|
|
|
|
}
|
|
|
|
|
taskname: isOther ? tasknames : ["其他"],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
doAudit(param)
|
|
|
|
|
doAudit(param);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showModal(modalRef: any) {
|
|
|
|
|
const modal = unref(modalRef)! as any
|
|
|
|
|
modal.showModal()
|
|
|
|
|
const modal = unref(modalRef)! as any;
|
|
|
|
|
modal.showModal();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function forwardHandler() {
|
|
|
|
|
taskStore.forward()
|
|
|
|
|
taskStore.forward();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function backHandler() {
|
|
|
|
|
taskStore.back()
|
|
|
|
|
taskStore.back();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
watch(
|
|
|
|
@ -205,29 +213,48 @@ watch(
|
|
|
|
|
const packageid = taskStore.getPackageid
|
|
|
|
|
const taskId = taskStore.getActiveId
|
|
|
|
|
|
|
|
|
|
if (isEmpty(taskId))
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
const listData = []
|
|
|
|
|
taskDetailInfo.value = await getTaskDetailInfo(taskId, packageid)
|
|
|
|
|
const reviewType = 3 // 类型
|
|
|
|
|
const res = await getAllfieldList(reviewType)
|
|
|
|
|
const fieldList = (res as any)?.data
|
|
|
|
|
const showFieldData = taskDetailInfo.value.ocrPicture
|
|
|
|
|
const showFieldKeys = Object.keys(showFieldData)
|
|
|
|
|
for (const i in showFieldKeys) {
|
|
|
|
|
const key = showFieldKeys[i]
|
|
|
|
|
const currentData = fieldList.find(v => v.name == key)
|
|
|
|
|
if (currentData) {
|
|
|
|
|
const item = {
|
|
|
|
|
label: currentData.fieldDesc,
|
|
|
|
|
value: taskDetailInfo.value.ocrPicture[key],
|
|
|
|
|
key: currentData.name,
|
|
|
|
|
}
|
|
|
|
|
listData.push(item)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
taskTableData.value = chunk(listData, 2)
|
|
|
|
|
if (isEmpty(taskId)) return;
|
|
|
|
|
const useInfo = userStore.getUserInfo;
|
|
|
|
|
|
|
|
|
|
let listData = [];
|
|
|
|
|
taskDetailInfo.value = await getTaskDetailInfo(taskId, packageid);
|
|
|
|
|
const reviewType = 3; //类型
|
|
|
|
|
let res = await getAllfieldList(reviewType);
|
|
|
|
|
let fieldList = (res as any)?.data;
|
|
|
|
|
res = await getfieldList(reviewType, useInfo.id);
|
|
|
|
|
let userFieldList = (res as any)?.data.userFieldFixed;
|
|
|
|
|
console.log(userFieldList,'userFieldList')
|
|
|
|
|
fieldList.map((v) => {
|
|
|
|
|
if (userFieldList.indexOf(v.name) > -1) {
|
|
|
|
|
let item = {
|
|
|
|
|
label: v.fieldDesc,
|
|
|
|
|
value: taskDetailInfo.value.ocrPicture[v.name],
|
|
|
|
|
key: v.name,
|
|
|
|
|
};
|
|
|
|
|
listData.push(item);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// TODO mock备份 确认逻辑无误后删除
|
|
|
|
|
// let showFieldData = taskDetailInfo.value.ocrPicture;
|
|
|
|
|
// let showFieldKeys = Object.keys(showFieldData);
|
|
|
|
|
// for (let i in showFieldKeys) {
|
|
|
|
|
// let key = showFieldKeys[i];
|
|
|
|
|
// let hasKey = userFieldList.indexOf(key) > -1;
|
|
|
|
|
// if (hasKey) {
|
|
|
|
|
// let currentData = fieldList.find((v) => v.name == key);
|
|
|
|
|
// if (currentData) {
|
|
|
|
|
// console.log(fieldList, key, "currentData");
|
|
|
|
|
// console.log(currentData, "currentData222");
|
|
|
|
|
// let item = {
|
|
|
|
|
// label: currentData.fieldDesc,
|
|
|
|
|
// value: taskDetailInfo.value.ocrPicture[key],
|
|
|
|
|
// key: currentData.name,
|
|
|
|
|
// };
|
|
|
|
|
// listData.push(item);
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
taskTableData.value = _.chunk(listData, 2);
|
|
|
|
|
if (!isEmpty(packageid)) {
|
|
|
|
|
const { data, total } = await getTaskDetailPictureList(
|
|
|
|
|
packageid,
|
|
|
|
@ -237,61 +264,56 @@ watch(
|
|
|
|
|
taskDetailPictureList.value = data
|
|
|
|
|
totalCount.value = total
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
taskDetailPictureList.value.length = 0
|
|
|
|
|
totalCount.value = 0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
const currentTaskId = computed(() => {
|
|
|
|
|
const index = taskStore.getCurrentIndex
|
|
|
|
|
return taskStore.getApprovalList[index]?.formid || ''
|
|
|
|
|
})
|
|
|
|
|
const index = taskStore.getCurrentIndex;
|
|
|
|
|
return taskStore.getApprovalList[index]?.formid || "";
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function overTaskHandle() {
|
|
|
|
|
const item = taskDetailInfo.value
|
|
|
|
|
const item = taskDetailInfo.value;
|
|
|
|
|
|
|
|
|
|
if (validate([item]) == null && batch.value === false)
|
|
|
|
|
overTask.value = item
|
|
|
|
|
if (validate([item]) == null && batch.value === false) overTask.value = item;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function leaveTaskHandler() {
|
|
|
|
|
overTask.value = null
|
|
|
|
|
overTask.value = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function showActionsModal() {
|
|
|
|
|
const modal = unref(CustomSettingModalRef)! as any
|
|
|
|
|
modal.showModal()
|
|
|
|
|
const modal = unref(CustomSettingModalRef)! as any;
|
|
|
|
|
modal.showModal();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
|
|
taskStore.reset()
|
|
|
|
|
})
|
|
|
|
|
taskStore.reset();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const mark = computed(() => {
|
|
|
|
|
return taskDetailInfo.value.iztrueorfalse === null ? '未标记' : '已标记'
|
|
|
|
|
})
|
|
|
|
|
return taskDetailInfo.value.iztrueorfalse === null ? "未标记" : "已标记";
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
function immersionHandler() {
|
|
|
|
|
taskStore.updateImmersion()
|
|
|
|
|
taskStore.updateImmersion();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function previewHandler(event: MouseEvent) {
|
|
|
|
|
event.stopImmediatePropagation()
|
|
|
|
|
event.stopPropagation()
|
|
|
|
|
event.stopImmediatePropagation();
|
|
|
|
|
event.stopPropagation();
|
|
|
|
|
|
|
|
|
|
if (imageRef.value && (imageRef.value as any).src)
|
|
|
|
|
(imageRef.value as any).mergedOnClick()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function getPercent(pictureid: string) {
|
|
|
|
|
const { ocpictureid, pictureresult } = taskDetailInfo.value
|
|
|
|
|
const index = ocpictureid.split(',').indexOf(String(pictureid))
|
|
|
|
|
const results = pictureresult.split(',')
|
|
|
|
|
const percent = results[index] || '0'
|
|
|
|
|
const val = Number.parseFloat(percent)
|
|
|
|
|
return `${val}%`
|
|
|
|
|
const { ocpictureid, pictureresult } = taskDetailInfo.value;
|
|
|
|
|
const index = ocpictureid.split(",").indexOf(String(pictureid));
|
|
|
|
|
const results = pictureresult.split(",");
|
|
|
|
|
const percent = results[index] || "0";
|
|
|
|
|
const val = Number.parseFloat(percent);
|
|
|
|
|
return `${val}%`;
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
@ -314,12 +336,21 @@ function getPercent(pictureid: string) {
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right">
|
|
|
|
|
<div v-show="!showActions" style="display: flex;align-items: center;" @click="setBatch(true)">
|
|
|
|
|
<div
|
|
|
|
|
v-show="!showActions"
|
|
|
|
|
style="display: flex; align-items: center"
|
|
|
|
|
@click="setBatch(true)"
|
|
|
|
|
>
|
|
|
|
|
<div class="btn">
|
|
|
|
|
<SvgIcon style="margin-right: 6px;" size="14" name="tf" />
|
|
|
|
|
<SvgIcon style="margin-right: 6px" size="14" name="tf" />
|
|
|
|
|
批量审批
|
|
|
|
|
</div>
|
|
|
|
|
<SvgIcon style="cursor: pointer;" size="20" name="immersion-model" @click="immersionHandler" />
|
|
|
|
|
<SvgIcon
|
|
|
|
|
style="cursor: pointer"
|
|
|
|
|
size="20"
|
|
|
|
|
name="immersion-model"
|
|
|
|
|
@click="immersionHandler"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-show="showActions" class="batch">
|
|
|
|
|
<n-button text @click="setBatch(false)">
|
|
|
|
@ -328,11 +359,14 @@ function getPercent(pictureid: string) {
|
|
|
|
|
</template>
|
|
|
|
|
返回
|
|
|
|
|
</n-button>
|
|
|
|
|
<div style="cursor: pointer;margin-left: 16px;" @click.stop="rejectHandler">
|
|
|
|
|
<div
|
|
|
|
|
style="cursor: pointer; margin-left: 16px"
|
|
|
|
|
@click.stop="rejectHandler"
|
|
|
|
|
>
|
|
|
|
|
<SvgIcon width="64" height="28" name="a1" />
|
|
|
|
|
</div>
|
|
|
|
|
<SvgIcon size="24" name="vs" />
|
|
|
|
|
<div style="cursor: pointer;" @click.stop="approvalHandler">
|
|
|
|
|
<div style="cursor: pointer" @click.stop="approvalHandler">
|
|
|
|
|
<SvgIcon width="64" height="28" name="a2" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
@ -340,13 +374,27 @@ function getPercent(pictureid: string) {
|
|
|
|
|
</div>
|
|
|
|
|
<div class="wrapper-detail">
|
|
|
|
|
<div
|
|
|
|
|
class="left" :style="{ 'background-image': `url(${taskDetailInfo?.ocrPicture?.imgurl})` }"
|
|
|
|
|
@mouseover="overTaskHandle" @mouseleave="leaveTaskHandler" @click="previewHandler"
|
|
|
|
|
class="left"
|
|
|
|
|
:style="{
|
|
|
|
|
'background-image': `url(${taskDetailInfo?.ocrPicture?.imgurl})`,
|
|
|
|
|
}"
|
|
|
|
|
@mouseover="overTaskHandle"
|
|
|
|
|
@mouseleave="leaveTaskHandler"
|
|
|
|
|
@click="previewHandler"
|
|
|
|
|
>
|
|
|
|
|
<div v-show="overTask" class="action">
|
|
|
|
|
<SvgIcon style="cursor: pointer;" width="168" height="48" name="r6" @click.stop="approvalHandler" />
|
|
|
|
|
<SvgIcon
|
|
|
|
|
style="cursor: pointer;margin-left: 30px;" width="168" height="48" name="r7"
|
|
|
|
|
style="cursor: pointer"
|
|
|
|
|
width="168"
|
|
|
|
|
height="48"
|
|
|
|
|
name="r6"
|
|
|
|
|
@click.stop="approvalHandler"
|
|
|
|
|
/>
|
|
|
|
|
<SvgIcon
|
|
|
|
|
style="cursor: pointer; margin-left: 30px"
|
|
|
|
|
width="168"
|
|
|
|
|
height="48"
|
|
|
|
|
name="r7"
|
|
|
|
|
@click.stop="rejectHandler"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
@ -363,10 +411,18 @@ function getPercent(pictureid: string) {
|
|
|
|
|
<SvgIcon v-show="taskDetailInfo?.states === 3" width="134" height="129" name="p2" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mark">
|
|
|
|
|
<SvgIcon v-show="taskDetailInfo?.iztrueorfalse === 0" size="128" name="jia" />
|
|
|
|
|
<SvgIcon
|
|
|
|
|
v-show="taskDetailInfo?.iztrueorfalse === 0"
|
|
|
|
|
size="128"
|
|
|
|
|
name="jia"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="mark">
|
|
|
|
|
<SvgIcon v-show="taskDetailInfo?.iztrueorfalse === 1" size="128" name="zhen" />
|
|
|
|
|
<SvgIcon
|
|
|
|
|
v-show="taskDetailInfo?.iztrueorfalse === 1"
|
|
|
|
|
size="128"
|
|
|
|
|
name="zhen"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="info">
|
|
|
|
|
<n-grid x-gap="12" y-gap="10" :cols="12">
|
|
|
|
@ -376,7 +432,7 @@ function getPercent(pictureid: string) {
|
|
|
|
|
</span>
|
|
|
|
|
</n-gi>
|
|
|
|
|
<n-gi span="8" class="gi2">
|
|
|
|
|
<span style="font-size: bold;font-size: 18px;">{{ mark }}</span>
|
|
|
|
|
<span style="font-size: bold; font-size: 18px">{{ mark }}</span>
|
|
|
|
|
<span>审批状态</span>
|
|
|
|
|
</n-gi>
|
|
|
|
|
<n-gi span="4" class="gi1">
|
|
|
|
@ -385,7 +441,9 @@ function getPercent(pictureid: string) {
|
|
|
|
|
</span>
|
|
|
|
|
</n-gi>
|
|
|
|
|
<n-gi span="8" class="gi2">
|
|
|
|
|
<span style="font-size: bold;font-size: 18px;">{{ totalCount }}</span>
|
|
|
|
|
<span style="font-size: bold; font-size: 18px">{{
|
|
|
|
|
totalCount
|
|
|
|
|
}}</span>
|
|
|
|
|
<span>相似匹配</span>
|
|
|
|
|
</n-gi>
|
|
|
|
|
</n-grid>
|
|
|
|
@ -394,8 +452,12 @@ function getPercent(pictureid: string) {
|
|
|
|
|
<SvgIcon color="#FFF" size="16" name="time" />
|
|
|
|
|
<span>{{ formatToDateHMS(taskDetailInfo.createdate || 0) }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: none;">
|
|
|
|
|
<n-image ref="imageRef" :img-props="{ onClick: hideDownload }" :src="taskDetailInfo?.ocrPicture?.imgurl" />
|
|
|
|
|
<div style="display: none">
|
|
|
|
|
<n-image
|
|
|
|
|
ref="imageRef"
|
|
|
|
|
:img-props="{ onClick: hideDownload }"
|
|
|
|
|
:src="taskDetailInfo?.ocrPicture?.imgurl"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right">
|
|
|
|
@ -403,13 +465,22 @@ function getPercent(pictureid: string) {
|
|
|
|
|
<div class="header">
|
|
|
|
|
<span>相似图片({{ totalCount }})</span>
|
|
|
|
|
<SvgIcon
|
|
|
|
|
style="margin-right: 20px;cursor: pointer;" name="max" size="24"
|
|
|
|
|
style="margin-right: 20px; cursor: pointer"
|
|
|
|
|
name="max"
|
|
|
|
|
size="24"
|
|
|
|
|
@click="showModal(batchModalRef)"
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="list">
|
|
|
|
|
<div v-for="(item, index) in taskDetailPictureList" :key="index" class="item">
|
|
|
|
|
<div class="img-wrapper" :style="{ 'background-image': `url(${item.thumburl})` }" />
|
|
|
|
|
<div
|
|
|
|
|
v-for="(item, index) in taskDetailPictureList"
|
|
|
|
|
:key="index"
|
|
|
|
|
class="item"
|
|
|
|
|
>
|
|
|
|
|
<div
|
|
|
|
|
class="img-wrapper"
|
|
|
|
|
:style="{ 'background-image': `url(${item.thumburl})` }"
|
|
|
|
|
/>
|
|
|
|
|
<div class="check">
|
|
|
|
|
<n-checkbox
|
|
|
|
|
v-show="batch"
|
|
|
|
@ -430,9 +501,7 @@ function getPercent(pictureid: string) {
|
|
|
|
|
|
|
|
|
|
<div class="info-header">
|
|
|
|
|
<div class="left_box">
|
|
|
|
|
<div class="title">
|
|
|
|
|
填报信息
|
|
|
|
|
</div>
|
|
|
|
|
<div class="title">填报信息</div>
|
|
|
|
|
<SvgIcon size="12" name="collapse" />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="right_box" @click="showActionsModal">
|
|
|
|
@ -442,7 +511,7 @@ function getPercent(pictureid: string) {
|
|
|
|
|
</div>
|
|
|
|
|
<n-tabs type="line" animated>
|
|
|
|
|
<n-tab-pane name="task-info" tab="任务信息">
|
|
|
|
|
<TaskTable :data="taskDetailInfo" :task-table-data="taskTableData" />
|
|
|
|
|
<TaskTable :data="taskDetailInfo" :taskTableData="taskTableData" />
|
|
|
|
|
</n-tab-pane>
|
|
|
|
|
<n-tab-pane name="picture-info" tab="图片信息">
|
|
|
|
|
<PictureTable :data="taskDetailInfo" />
|
|
|
|
@ -450,7 +519,11 @@ function getPercent(pictureid: string) {
|
|
|
|
|
<n-tab-pane name="history" tab="历史审查" />
|
|
|
|
|
</n-tabs>
|
|
|
|
|
<ConfrimModal ref="confrimModalRef" @commit="reject" />
|
|
|
|
|
<BatchModal ref="batchModalRef" @reject="rejectHandler" @approval="approvalHandler" />
|
|
|
|
|
<BatchModal
|
|
|
|
|
ref="batchModalRef"
|
|
|
|
|
@reject="rejectHandler"
|
|
|
|
|
@approval="approvalHandler"
|
|
|
|
|
/>
|
|
|
|
|
<CustomSettingModal ref="CustomSettingModalRef" :review-type="3" />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
@ -508,7 +581,7 @@ function getPercent(pictureid: string) {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
color: #FFF;
|
|
|
|
|
color: #fff;
|
|
|
|
|
margin-right: 6px;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
@ -578,7 +651,7 @@ function getPercent(pictureid: string) {
|
|
|
|
|
background: rgba(216, 216, 216, 0.4);
|
|
|
|
|
border-radius: 7px;
|
|
|
|
|
padding: 10px;
|
|
|
|
|
color: #FFF;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.time {
|
|
|
|
@ -586,7 +659,7 @@ function getPercent(pictureid: string) {
|
|
|
|
|
z-index: 3;
|
|
|
|
|
left: 2%;
|
|
|
|
|
bottom: 2%;
|
|
|
|
|
color: #FFF;
|
|
|
|
|
color: #fff;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
@ -600,7 +673,7 @@ function getPercent(pictureid: string) {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: left;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.check{
|
|
|
|
|