diff --git a/src/views/worksheet/components/PhotoWall.vue b/src/views/worksheet/components/PhotoWall.vue
new file mode 100644
index 0000000..2ed8321
--- /dev/null
+++ b/src/views/worksheet/components/PhotoWall.vue
@@ -0,0 +1,491 @@
+
+
+
+
+
+
+ 任务包图片
+
+
+
+ 时间排序
+
+
+
+
+ 相似度排序
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.photoDateTimestamp ? formatToDateHMS(Number(item.photoDateTimestamp) ||
+ 0) : '-'
+ }}
+
+
+
+ {{ item.submitDateTimestamp ? formatToDateHMS(Number(item.submitDateTimestamp)
+ || 0) : '-'
+ }}
+
+
+
+
+
+
+
+
+ {{ item?.maxSimilarity && Number(item?.maxSimilarity).toFixed(0) }}%
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
From 94e6b79e875c940f20007d16e1e91e2b0449c776 Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Tue, 2 Apr 2024 18:22:42 +0800
Subject: [PATCH 10/22] =?UTF-8?q?feat:=20=E6=9B=B4=E6=94=B9=E7=BB=BC?=
=?UTF-8?q?=E5=90=88=E6=90=9C=E7=B4=A2title=E5=8F=8A=E5=9B=BE=E5=AE=A1?=
=?UTF-8?q?=E5=BC=B9=E6=A1=86icon?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/icons/error_icon.svg | 17 +++++++++++++++++
src/components/Search/Search.vue | 2 +-
src/views/worksheet/modal/ApprovalModal.vue | 2 +-
3 files changed, 19 insertions(+), 2 deletions(-)
create mode 100644 src/assets/icons/error_icon.svg
diff --git a/src/assets/icons/error_icon.svg b/src/assets/icons/error_icon.svg
new file mode 100644
index 0000000..d772a90
--- /dev/null
+++ b/src/assets/icons/error_icon.svg
@@ -0,0 +1,17 @@
+
+
\ No newline at end of file
diff --git a/src/components/Search/Search.vue b/src/components/Search/Search.vue
index ebd6294..b26a1d9 100644
--- a/src/components/Search/Search.vue
+++ b/src/components/Search/Search.vue
@@ -31,7 +31,7 @@ async function handlerSearch(value) {
if (res.code === 'OK') {
state.resultList = [
{
- title: 'AI工单管理',
+ title: '图审审批管理',
path: 'worksheet',
data: res.data.ai,
},
diff --git a/src/views/worksheet/modal/ApprovalModal.vue b/src/views/worksheet/modal/ApprovalModal.vue
index 1170e4b..5aabc13 100644
--- a/src/views/worksheet/modal/ApprovalModal.vue
+++ b/src/views/worksheet/modal/ApprovalModal.vue
@@ -142,7 +142,7 @@ defineExpose({
#AI任务包{{ detail.packageId }}
- error 重复图片({{
+ 重复图片({{
detail.similarComplete || 0
}})
From 08e74159c08e5ee89135dff1b4a8bd418fb4f66b Mon Sep 17 00:00:00 2001
From: lizijiee <562949697@qq.com>
Date: Tue, 2 Apr 2024 18:22:56 +0800
Subject: [PATCH 11/22] =?UTF-8?q?feat:=20=E4=B8=8D=E9=80=9A=E8=BF=87?=
=?UTF-8?q?=E7=8A=B6=E6=80=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/worksheet/components/PictureInfo.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/views/worksheet/components/PictureInfo.vue b/src/views/worksheet/components/PictureInfo.vue
index a312527..5a001ca 100644
--- a/src/views/worksheet/components/PictureInfo.vue
+++ b/src/views/worksheet/components/PictureInfo.vue
@@ -26,10 +26,10 @@ const propertys = computed(() => {
任务ID:{{ taskDetailInfo.taskname }}
From ab9e50ff0c8a7fa72e79aec7967fe321bbc04dda Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Tue, 2 Apr 2024 18:40:05 +0800
Subject: [PATCH 12/22] =?UTF-8?q?fix:=20=E9=A6=96=E9=A1=B5=E9=AB=98?=
=?UTF-8?q?=E7=BA=A7=E7=AD=9B=E9=80=89=E6=90=9C=E7=B4=A2=E5=8A=9F=E8=83=BD?=
=?UTF-8?q?=E4=B8=8E=E5=8F=B3=E4=BE=A7=E6=95=B0=E6=8D=AE=E8=81=94=E5=8A=A8?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/home/aside/comp/Search.vue | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/views/home/aside/comp/Search.vue b/src/views/home/aside/comp/Search.vue
index 53a80ad..df4acad 100644
--- a/src/views/home/aside/comp/Search.vue
+++ b/src/views/home/aside/comp/Search.vue
@@ -58,6 +58,7 @@ const searchName = () => {
const close = () => {
searchKeyword.value = "";
+ configStore.setSearchValue(searchKeyword.value);
emit('close');
}
From 6d1b319acfdd1a4d21c82e3fafc73ffe794c764d Mon Sep 17 00:00:00 2001
From: liushilong <2224574157@qq.com>
Date: Tue, 2 Apr 2024 20:18:27 +0800
Subject: [PATCH 13/22] =?UTF-8?q?feat:=20=E5=9B=BE=E5=AE=A1=E5=AE=A1?=
=?UTF-8?q?=E6=89=B9=E6=94=B9=E4=B8=BA=E5=9B=BE=E6=A3=80=E5=AE=A1=E6=89=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Search/Search.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/Search/Search.vue b/src/components/Search/Search.vue
index b26a1d9..729f970 100644
--- a/src/components/Search/Search.vue
+++ b/src/components/Search/Search.vue
@@ -31,7 +31,7 @@ async function handlerSearch(value) {
if (res.code === 'OK') {
state.resultList = [
{
- title: '图审审批管理',
+ title: '图检审批',
path: 'worksheet',
data: res.data.ai,
},
From 84fea70b5b7b8ab17ae0900f2405ac05f82b00ce Mon Sep 17 00:00:00 2001
From: lizijiee <562949697@qq.com>
Date: Tue, 2 Apr 2024 20:25:50 +0800
Subject: [PATCH 14/22] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E4=B8=BB?=
=?UTF-8?q?=E5=9B=BE=E6=B5=81=E7=A8=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/worksheet/content/Content.vue | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue
index 01b09d3..1919492 100644
--- a/src/views/worksheet/content/Content.vue
+++ b/src/views/worksheet/content/Content.vue
@@ -294,6 +294,10 @@ function rejectHandler() {
const modal = unref(notPassModalRef)! as any
modal.showModal(selectItems.value)
}
+function detailRejectHandler() {
+ const modal = unref(notPassModalRef)! as any
+ modal.showModal([taskDetailInfo.value])
+}
function singleRejectHandler(item) {
const modal = unref(notPassModalRef)! as any
modal.showModal([item])
@@ -482,7 +486,7 @@ function reloadList() {
-
+
From 8237e77973bc48599593175912a2ba6e3dbde075 Mon Sep 17 00:00:00 2001
From: lizijiee <562949697@qq.com>
Date: Tue, 2 Apr 2024 20:48:06 +0800
Subject: [PATCH 15/22] =?UTF-8?q?feat:=20100=E7=99=BE=E5=88=86=E5=8F=B7?=
=?UTF-8?q?=E9=A2=9C=E8=89=B2=E6=94=B9=E6=88=90=E7=BA=A2=E8=89=B2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/worksheet/content/Content.vue | 46 +++++++++++--------------
1 file changed, 21 insertions(+), 25 deletions(-)
diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue
index 1919492..c0ac090 100644
--- a/src/views/worksheet/content/Content.vue
+++ b/src/views/worksheet/content/Content.vue
@@ -533,10 +533,9 @@ function reloadList() {
-
-
+
- {{ item?.maxSimilarity && Number(item?.maxSimilarity).toFixed(0) }}%
+ {{ item?.maxSimilarity && Number(item?.maxSimilarity).toFixed(0) }}%
@@ -967,29 +966,26 @@ function reloadList() {
.percent {
position: absolute;
- text-align: center;
- z-index: 3;
- right: 17px;
- top: 2px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 35px;
+ height: 18px;
+ opacity: 0.9;
+ background: #6f92fd;
+ border-radius: 6px 0px 6px 0px;
+ z-index: 5;
+ right: 12px;
+ top: 15px;
color: #fff;
-
- .val {
- position: absolute;
- left: 0;
- top: 0;
- display: block;
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 12px;
- font-family: PingFang SC, PingFang SC-Semibold;
- font-weight: Semibold;
- text-align: left;
- color: #ffffff;
- line-height: 24px;
- }
+ font-size: 14px;
+ }
+ .percent-unit {
+ font-size: 8px;
+ margin-top: 4px;
+ }
+ .percent-red{
+ background: #ff4e4f;
}
.pass-status {
From 5638e1a4162357a4db42a183bcb27523e9cf6da1 Mon Sep 17 00:00:00 2001
From: lizijiee <562949697@qq.com>
Date: Tue, 2 Apr 2024 21:11:50 +0800
Subject: [PATCH 16/22] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4taskId=E4=B8=BA?=
=?UTF-8?q?taskchildpictureid?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/worksheet/content/Content.vue | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue
index c0ac090..0737451 100644
--- a/src/views/worksheet/content/Content.vue
+++ b/src/views/worksheet/content/Content.vue
@@ -13,7 +13,7 @@ import emitter from '@/utils/mitt';
import { useInfiniteScroll } from "@vueuse/core";
import { format } from 'date-fns';
import imagesloaded from "imagesloaded";
-import { clone, debounce, pickBy } from "lodash-es";
+import { clone, cloneDeep, debounce, pickBy } from "lodash-es";
import { useDialog, useMessage } from "naive-ui";
import { computed, onUnmounted, onUpdated, reactive, ref, unref, watch } from "vue";
import PictureInfo from "../components/PictureInfo.vue";
@@ -296,8 +296,11 @@ function rejectHandler() {
}
function detailRejectHandler() {
const modal = unref(notPassModalRef)! as any
- modal.showModal([taskDetailInfo.value])
+ const params = cloneDeep(taskDetailInfo.value)
+ params.id = params.taskchildpictureid
+ modal.showModal([params])
}
+
function singleRejectHandler(item) {
const modal = unref(notPassModalRef)! as any
modal.showModal([item])
@@ -324,6 +327,7 @@ function approvalHandler(items?: any) {
}
else if (overTask.value) {
cloneItem = clone(overTask.value)
+ cloneItem.id = cloneItem.taskchildpictureid
processItems = [cloneItem]
}
// 任务包图片 => 点击 => 通过/不通过按钮
From c0aa814aec657022c1fcab9e43524f6ebfea095b Mon Sep 17 00:00:00 2001
From: lizijiee <562949697@qq.com>
Date: Tue, 2 Apr 2024 21:52:59 +0800
Subject: [PATCH 17/22] =?UTF-8?q?feat:=20=E4=BB=BB=E5=8A=A1=E5=8C=85?=
=?UTF-8?q?=E5=9B=BE=E7=89=87=E7=82=B9=E5=87=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../{PhotoWall.vue => PictureWall.vue} | 0
src/views/worksheet/content/Content.vue | 54 ++++++++++++++++++-
2 files changed, 52 insertions(+), 2 deletions(-)
rename src/views/worksheet/components/{PhotoWall.vue => PictureWall.vue} (100%)
diff --git a/src/views/worksheet/components/PhotoWall.vue b/src/views/worksheet/components/PictureWall.vue
similarity index 100%
rename from src/views/worksheet/components/PhotoWall.vue
rename to src/views/worksheet/components/PictureWall.vue
diff --git a/src/views/worksheet/content/Content.vue b/src/views/worksheet/content/Content.vue
index 0737451..6072447 100644
--- a/src/views/worksheet/content/Content.vue
+++ b/src/views/worksheet/content/Content.vue
@@ -320,7 +320,7 @@ function reject(idOrDesc: string, backId: string, isOther: boolean) {
doAudit(param)
}
-function approvalHandler(items?: any) {
+function detailApprovalHandler(items?: any){
let cloneItem: any
if (batch.value) {
processItems = selectItems.value
@@ -371,6 +371,56 @@ function approvalHandler(items?: any) {
onNegativeClick: () => { },
})
}
+function approvalHandler(items?: any) {
+ 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]
+
+ const msg = validate(processItems)
+
+ if (msg !== null) {
+ message.error(msg)
+ return
+ }
+
+ const list: any = []
+ processItems.forEach((item) => {
+ list.push({
+ formId: item.id,
+ taskId: item.taskId,
+ taskName: item.fromTaskName,
+ })
+ })
+
+ const param = {
+ result: true,
+ comment: '',
+ disposeType: '',
+ disposeTypeId: '',
+ failCauseId: '',
+ failCauseName: '',
+ flowTaskInfoList: list,
+ }
+
+ dialog.info({
+ title: '确认提示',
+ content: '确认给该任务审批为【通过】吗?',
+ positiveText: '确定',
+ negativeText: '取消',
+ onPositiveClick: () => {
+ doAudit(param)
+ },
+ onNegativeClick: () => { },
+ })
+}
function doAudit(param: any) {
audit(param).then((res) => {
@@ -489,7 +539,7 @@ function reloadList() {
-
+
From b281600df60ba56a2fd6082b027c8731c11cf445 Mon Sep 17 00:00:00 2001
From: Dragon <>
Date: Tue, 2 Apr 2024 22:15:23 +0800
Subject: [PATCH 18/22] =?UTF-8?q?=E7=9B=B8=E4=BC=BC=E5=9B=BE=E5=B1=95?=
=?UTF-8?q?=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/final/content/Content.vue | 689 ++++++++++++++--------------
src/views/task/modal/BatchModal.vue | 159 ++++---
2 files changed, 445 insertions(+), 403 deletions(-)
diff --git a/src/views/final/content/Content.vue b/src/views/final/content/Content.vue
index 24f68fa..6ac61ce 100644
--- a/src/views/final/content/Content.vue
+++ b/src/views/final/content/Content.vue
@@ -1,6 +1,6 @@