|
|
|
@ -1,11 +1,9 @@
|
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
import { audit } from '@/api/task/task';
|
|
|
|
|
import {
|
|
|
|
|
getTaskDetailInfo,
|
|
|
|
|
getTaskDetailPictureList
|
|
|
|
|
getPictureSimilarityList, getTaskDetailInfo
|
|
|
|
|
} from "@/api/work/work";
|
|
|
|
|
import NotPassed from '@/components/Approval/NotPassed.vue';
|
|
|
|
|
import { fieldMap } from "@/config/workorder";
|
|
|
|
|
import { TASK_STATUS_OBJ } from '@/enums/index';
|
|
|
|
|
import { useWorkOrder } from "@/store/modules/workOrder";
|
|
|
|
|
import { isEmpty } from "@/utils";
|
|
|
|
@ -18,6 +16,7 @@ import imagesloaded from "imagesloaded";
|
|
|
|
|
import { clone, 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";
|
|
|
|
|
import ConfrimModal from "../modal/ConfrimModal.vue";
|
|
|
|
|
import type { ApprovalParam, SimilarityPictureSortParam } from "/#/api";
|
|
|
|
|
|
|
|
|
@ -135,7 +134,7 @@ async function featchList() {
|
|
|
|
|
loading.value = true;
|
|
|
|
|
try {
|
|
|
|
|
taskpagination.pageNo += 1;
|
|
|
|
|
const { data, total, pageCount } = await getTaskDetailPictureList(
|
|
|
|
|
const { data, total, pageCount } = await getPictureSimilarityList(
|
|
|
|
|
{ ...taskpagination, ...sortBy, checkDuplicateId: workStore.activeId, pictureId: taskDetailInfo.value.id }
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
@ -487,18 +486,10 @@ function reloadList() {
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 右侧任务 标题信息 -->
|
|
|
|
|
<div class="right">
|
|
|
|
|
<!-- <div class="right">
|
|
|
|
|
<n-scrollbar style="max-height: 100%">
|
|
|
|
|
<n-ellipsis style="max-width: 350px">任务ID:{{ taskDetailInfo.taskname }}</n-ellipsis>
|
|
|
|
|
<div class="tags">
|
|
|
|
|
<!-- <div class="tag tag-submiting" v-if="taskDetailInfo.workStatus == '1'">{{ TASK_STATUS_OBJ[taskDetailInfo.workStatus]
|
|
|
|
|
}}</div>
|
|
|
|
|
<div class="tag tag-submited" v-else-if="taskDetailInfo.workStatus == '2'">已审批</div>
|
|
|
|
|
<div class="tag tag-passed" v-if="taskDetailInfo.historyStates == 2">{{
|
|
|
|
|
TASK_STATUS_OBJ[taskDetailInfo.historyStates] }}</div>
|
|
|
|
|
<div class="tag tag-not-passed" v-else-if="taskDetailInfo.workStatus == 3">{{
|
|
|
|
|
TASK_STATUS_OBJ[taskDetailInfo.historyStates]
|
|
|
|
|
}}</div> -->
|
|
|
|
|
<div class="tag tag-submiting" v-if="taskDetailInfo.historyStates == '1'">待审批</div>
|
|
|
|
|
<div class="tag tag-submited" v-else-if="taskDetailInfo.historyStates == 2 || taskDetailInfo.workStatus == 3">已审批</div>
|
|
|
|
|
<div class="tag tag-passed" v-if="taskDetailInfo.historyStates == 2">{{
|
|
|
|
@ -550,7 +541,8 @@ function reloadList() {
|
|
|
|
|
<span class="property-content">{{ propertys[key] }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</n-scrollbar>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
<PictureInfo :taskDetailInfo="taskDetailInfo"></PictureInfo>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="display: flex; justify-content: space-between; padding: 12px 0px 3px 0">
|
|
|
|
|
<div>
|
|
|
|
@ -670,29 +662,6 @@ function reloadList() {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.right {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
|
width: 118px;
|
|
|
|
|
height: 36px;
|
|
|
|
|
background: linear-gradient(135deg, #5b85f8, #3c6cf0);
|
|
|
|
|
border-radius: 17px;
|
|
|
|
|
box-shadow: 0px 2px 6px 0px rgba(116, 153, 253, 0.3);
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
color: #fff;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.batch {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.font {
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
font-family: PingFang SC, PingFang SC-Medium;
|
|
|
|
|