-
-
+
{{ format(item.sendTime, "dd") }}
@@ -172,7 +193,9 @@ console.log(tabList);
{{ item.titile }}
-
审批节点:{{ item.tag.sendUserName }}
+
+ 审批节点:{{ item.tag.sendUserName }}
+
审批状态:{{ getStateText(item.tag.states) }}
@@ -186,11 +209,13 @@ console.log(tabList);
{{ format(item.sendTime, "yyyy-MM-dd HH:mm:ss") }}
-
查看
+
+ 查看
+
- 查看更多
![]()
+ 查看更多
@@ -457,4 +482,5 @@ console.log(tabList);
// ::v-deep(.n-divider:not(.n-divider--vertical)) {
// margin-top: 12px;
// margin-bottom: 12px;
-// }
+// }
+
diff --git a/src/views/task/aside/Aside.vue b/src/views/task/aside/Aside.vue
index d837b8d..e3297ec 100644
--- a/src/views/task/aside/Aside.vue
+++ b/src/views/task/aside/Aside.vue
@@ -10,6 +10,7 @@ import {
unref,
watch,
} from 'vue'
+import { useRoute, useRouter } from 'vue-router'
import CustomFieldModal from '../modal/CustomFieldModal.vue'
import AdvanceFilter from '../../home/aside/comp/AdvanceFilter.vue'
import { FilterModalVue } from '../../home/aside/comp/modals'
@@ -17,22 +18,21 @@ import NewFilterModalVue from '../modal/NewFilterModal.vue'
import TaskList from './TaskList.vue'
import type { AsideEntity } from '@/config/aside'
import { useUser } from '@/store/modules/user'
-import { getAllfieldList, getfieldList } from '@/api/home/filter'
+import { getAllfieldList, getConditionList, getfieldList } from '@/api/home/filter'
import { useTaskStore } from '@/store/modules/task'
import emitter from '@/utils/mitt'
import { useConfig } from '@/store/modules/asideConfig'
-import { getConditionList } from "@/api/home/filter";
-import type { FilterSearchParam } from "/#/api";
-import { useRoute } from 'vue-router'
+import type { FilterSearchParam } from '/#/api'
const route = useRoute()
-const searchContent = route.query.searchContent as string;
+const router = useRouter()
+const searchContent = route.query.searchContent as string
const CustomFieldModalRef = ref(null)
const collapse = ref(false)
const taskStore = useTaskStore()
const taskListRef: any = ref(null)
-const AdvanceFilterRef: any = ref(null);
+const AdvanceFilterRef: any = ref(null)
// 展示字段
const showFieldList = ref
([])
const search = ref('')
@@ -79,6 +79,8 @@ function setShowSearch(value: boolean) {
if (!value) {
search.value = ''
taskListRef.value.search('')
+ if (searchContent)
+ router.replace(route.path)
}
showSearch.value = value
}
@@ -115,6 +117,7 @@ async function getshowFieldList() {
}
showFieldList.value.push(item)
}
+ return v
})
}
else {
@@ -129,39 +132,40 @@ async function getshowFieldList() {
}
showFieldList.value.push(item)
}
+ return v
})
}
}
onMounted(() => {
getshowFieldList()
- window.addEventListener("keydown", handleKeydown);
+ window.addEventListener('keydown', handleKeydown)
init()
})
async function init() {
try {
const searchParam: FilterSearchParam = {
- search_searchname: { value: "", op: "like", type: "string" },
- };
- const result = await getConditionList(1, searchParam, 2);
- const { data } = result;
+ search_searchname: { value: '', op: 'like', type: 'string' },
+ }
+ const result = await getConditionList(1, searchParam, 2)
+ const { data } = result
if (data[0]) {
- AdvanceFilterRef.value.setCurrentlySelectedAdvanced(data[0].searchname);
+ AdvanceFilterRef.value.setCurrentlySelectedAdvanced(data[0].searchname)
setTimeout(() => {
filterHandler(data[0].id)
- }, 1000);
- //filterHandler(data[0].id);
+ }, 1000)
+ // filterHandler(data[0].id);
}
// pagination.pageNo += 1
-
- } catch (error) {
- return [];
- } finally {
}
- //currentlySelectedAdvanced.value="邱霞"
+ catch (error) {
+ return []
+ }
+ // currentlySelectedAdvanced.value="邱霞"
}
function handleKeydown(event) {
- if (event.key === "s") setShowSearch(true)
+ if (event.key === 's')
+ setShowSearch(true)
}
// 滚动容器,让key对应模块处于可视区域
function scrollHandler(key: string) {
@@ -191,8 +195,8 @@ function newFilterOk() {
filterModalRef.value.query(
filterModalRef.value.pagination.page,
filterModalRef.value.pagination.pageSize,
- );
- filterModalRef.value.showModal();
+ )
+ filterModalRef.value.showModal()
}
onBeforeMount(async () => {
configStore.fetchConfig()
@@ -206,31 +210,37 @@ defineExpose({
setAsideItemName,
})
-const initSerach = () => {
+function initSerach() {
if (searchContent) {
- setShowSearch(true);
- const id_param = searchContent.match(/-\d+-/);
+ setShowSearch(true)
+ const id_param = searchContent.match(/-\d+-/)
if (id_param) {
- search.value = id_param[0].slice(1, -1);
- inputHandler(id_param[0].slice(1, -1));
+ search.value = id_param[0].slice(1, -1)
+ inputHandler(id_param[0].slice(1, -1))
}
}
}
-initSerach();
+initSerach()
-const handleOk = (item: any) => {
+function handleOk(item: any) {
if (item) {
- AdvanceFilterRef.value.setCurrentlySelectedAdvanced(item.searchname);
- filterHandler(item.id);
- } else {
- AdvanceFilterRef.value.setCurrentlySelectedAdvanced("高级筛选");
- filterHandler("");
+ AdvanceFilterRef.value.setCurrentlySelectedAdvanced(item.searchname)
+ filterHandler(item.id)
}
-};
+ else {
+ AdvanceFilterRef.value.setCurrentlySelectedAdvanced('高级筛选')
+ filterHandler('')
+ }
+}
-
+
@@ -259,24 +269,55 @@ const handleOk = (item: any) => {
-->
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/src/views/task/content/Content.vue b/src/views/task/content/Content.vue
index 503fcb1..f507af0 100644
--- a/src/views/task/content/Content.vue
+++ b/src/views/task/content/Content.vue
@@ -154,10 +154,7 @@ function handleKeydown(event) {
// 清除已经设置的定时器(如果有的话)
clearTimeout(keyPressTimer)
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
return
}
@@ -191,10 +188,7 @@ function handleKeydown(event) {
// 清除已经设置的定时器(如果有的话)
clearTimeout(keyPressTimer)
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
return
}
@@ -321,9 +315,10 @@ function approvalHandler(items?: any) {
},
})
}
-function approvalHandlerx(item?: any) {
- console.log(item)
-}
+// function approvalHandlerx(item?: any) {
+// console.log(item);
+// alert(1);
+// }
function singleRejectHandlex(item?: any) {
console.log(item)
const modal = unref(notPassModalRef)! as any
@@ -422,26 +417,31 @@ async function getTableData() {
fieldList.forEach((v) => {
if (userFieldList.includes(v.name)) {
let locationobj = { address: '' }
- if (v.name == 'location')
- locationobj = JSON.parse(taskDetailInfo.value.ocrPicture[v.name])
-
+ if (v.name == 'location') {
+ locationobj = JSON.parse(
+ taskDetailInfo.value.ocrPicture ? taskDetailInfo.value.ocrPicture[v.name] : '{}',
+ )
+ }
const item = {
label: v.fieldDesc,
value:
v.name == 'location'
? locationobj.address
- : taskDetailInfo.value.ocrPicture[v.name],
+ : taskDetailInfo.value.ocrPicture
+ ? taskDetailInfo.value.ocrPicture[v.name]
+ : '',
key: v.name,
blue: blueList.includes(v.fieldDesc),
}
listData.push(item)
}
+ return v
})
taskTableData.value = chunk(listData, 2)
}
async function getImgList() {
- if (!isEmpty(taskDetailInfo.value.ocrPicture.id)) {
+ if (!isEmpty(taskDetailInfo.value.ocrPicture?.id)) {
const { data, total } = await getSimilarityList({
...taskpagination,
...sortBy,
@@ -534,9 +534,7 @@ function notPassSuccess(param) {
function reloadList(param, text) {
// 修改左侧状态
const id = currentTaskId()
- const hasCurrentId = param.flowTaskInfoList.find(
- item => item.formId === id,
- )
+ const hasCurrentId = param.flowTaskInfoList.find(item => item.formId === id)
finalStore.setListKey()
if (hasCurrentId)
emit('setAsideItemName', text)
@@ -609,8 +607,7 @@ function checkBottom() {
const scrollTop = window.pageYOffset || document.documentElement.scrollTop
// 获取视口的内部高度
- const clientHeight
- = window.innerHeight || document.documentElement.clientHeight
+ const clientHeight = window.innerHeight || document.documentElement.clientHeight
// 获取整个文档的高度
const scrollHeight = document.documentElement.scrollHeight
@@ -680,18 +677,8 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
任务ID:{{ taskDetailInfo.fromtaskname }}
-
-
+
+
@@ -887,25 +874,13 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
>
-
+
-
+
-
+
@@ -915,11 +890,7 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
-
+
@@ -938,38 +909,23 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
- {{ totalCount }}张
-
+ {{ totalCount }}张
相似匹配
-
+
- {{
- taskDetailInfo?.ocrPicture?.photoDateTimestamp ?? "-"
- }}
+ {{ taskDetailInfo?.ocrPicture?.photoDateTimestamp ?? "-" }}
-
+
{{
taskDetailInfo?.ocrPicture?.submitDateTimestamp
- ? formatToDateHMS(
- Number(taskDetailInfo.ocrPicture.submitDateTimestamp),
- )
+ ? formatToDateHMS(Number(taskDetailInfo.ocrPicture.submitDateTimestamp))
: "-"
}}
@@ -1071,12 +1027,7 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
>
-
+
{{
item.photoDateTimestamp
? formatToDateHMS(Number(item.photoDateTimestamp))
@@ -1084,12 +1035,7 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
}}
-
+
{{
item.submitDateTimestamp
? formatToDateHMS(Number(item.submitDateTimestamp))
@@ -1117,7 +1063,7 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
width: 20vw;
"
>
-
+
{{ taskDetailInfo.fromtaskname }}
@@ -1181,16 +1127,10 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
{{ item[0].value }}
-
+
{{ item[0].label }}
-
+
{{ item[0].value }}
时间排序
-
-
+
+
相似度排序
-
-
+
+
@@ -1355,12 +1271,7 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
>
-
+
{{
item.photoDateTimestamp
? formatToDateHMS(Number(item.photoDateTimestamp))
@@ -1368,12 +1279,7 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
}}
-
+
{{
item.submitDateTimestamp
? formatToDateHMS(Number(item.submitDateTimestamp))
@@ -1381,10 +1287,7 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
}}
-
+
{{ item.similarityScore }}%
@@ -1471,16 +1374,8 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
-->
-
-
+
+
@@ -2189,11 +2084,7 @@ function sortHandler(orderby: 'similarityScore' | 'createdate') {
.small-mark {
width: 100%;
height: 53px;
- 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%);
border-radius: 0px 8px 8px 8px;
position: absolute;
left: 0;
diff --git a/src/views/task/modal/CustomFieldModal.vue b/src/views/task/modal/CustomFieldModal.vue
index 6d389bb..9addcb7 100644
--- a/src/views/task/modal/CustomFieldModal.vue
+++ b/src/views/task/modal/CustomFieldModal.vue
@@ -31,7 +31,13 @@ const allCount = computed(() => {
})
const selectCount = computed(() => {
- return `显示字段(共${onList.value.length}个)`
+ let baseNum = 0
+ offList.value.forEach((item) => {
+ if (item.fix)
+ baseNum++
+ })
+ return `显示字段(共${baseNum + onList.value.length}个)`
+ // return `显示字段(共${onList.value.length}个)`
})
const show = ref(false)
@@ -196,6 +202,11 @@ function clearDragSource() {
return item.fix === true
})
onShowList.value = cloneDeep(onList.value)
+ offList.value = offList.value.map(item => ({
+ ...item,
+ checked: item.fix,
+ }))
+ offShowList.value = cloneDeep(offList.value)
}
function removeHandler(id: string) {
diff --git a/src/views/task/modal/NewFilterModal.vue b/src/views/task/modal/NewFilterModal.vue
index c001d87..dabb6d4 100644
--- a/src/views/task/modal/NewFilterModal.vue
+++ b/src/views/task/modal/NewFilterModal.vue
@@ -1,107 +1,107 @@
基本信息
+ >基本信息