|
|
|
@ -1,4 +1,13 @@
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
|
|
|
|
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 { formatToDateHMS } from '@/utils/dateUtil'
|
|
|
|
|
|
|
|
import { hideDownload } from '@/utils/image'
|
|
|
|
|
|
|
|
import emitter from '@/utils/mitt'
|
|
|
|
import { chunk, clone } from 'lodash-es'
|
|
|
|
import { chunk, clone } from 'lodash-es'
|
|
|
|
import { useDialog, useMessage } from 'naive-ui'
|
|
|
|
import { useDialog, useMessage } from 'naive-ui'
|
|
|
|
import { computed, onUnmounted, reactive, ref, unref, watch } from 'vue'
|
|
|
|
import { computed, onUnmounted, reactive, ref, unref, watch } from 'vue'
|
|
|
|
@ -7,17 +16,7 @@ import ConfrimModal from '../modal/ConfrimModal.vue'
|
|
|
|
import CustomSettingModal from '../modal/CustomSettingModal.vue'
|
|
|
|
import CustomSettingModal from '../modal/CustomSettingModal.vue'
|
|
|
|
import PictureTable from './PictureTable.vue'
|
|
|
|
import PictureTable from './PictureTable.vue'
|
|
|
|
import TaskTable from './TaskTable.vue'
|
|
|
|
import TaskTable from './TaskTable.vue'
|
|
|
|
import emitter from '@/utils/mitt'
|
|
|
|
|
|
|
|
import { hideDownload } from '@/utils/image'
|
|
|
|
|
|
|
|
import { isEmpty } from '@/utils'
|
|
|
|
|
|
|
|
import { useUser } from '@/store/modules/user'
|
|
|
|
|
|
|
|
import { useTask } from '@/store/modules/task'
|
|
|
|
|
|
|
|
import { getTaskDetailInfo, getTaskDetailPictureList } from '@/api/work/work'
|
|
|
|
|
|
|
|
import { audit } from '@/api/task/task'
|
|
|
|
|
|
|
|
import { getAllfieldList, getfieldList } from '@/api/home/filter'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import type { ApprovalParam, PictureSortParam } from '/#/api'
|
|
|
|
import type { ApprovalParam, PictureSortParam } from '/#/api'
|
|
|
|
import { formatToDateHMS } from '@/utils/dateUtil'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const batch = ref(false)
|
|
|
|
const batch = ref(false)
|
|
|
|
const selectItems = ref<any[]>([])
|
|
|
|
const selectItems = ref<any[]>([])
|
|
|
|
@ -208,18 +207,9 @@ function backHandler() {
|
|
|
|
taskStore.back()
|
|
|
|
taskStore.back()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
watch(
|
|
|
|
async function getTableData() {
|
|
|
|
() => [taskStore.activeId],
|
|
|
|
|
|
|
|
async (newValue, oldValue) => {
|
|
|
|
|
|
|
|
const packageid = taskStore.getPackageid
|
|
|
|
|
|
|
|
const taskId = taskStore.getActiveId
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isEmpty(taskId))
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
const useInfo = userStore.getUserInfo
|
|
|
|
const useInfo = userStore.getUserInfo
|
|
|
|
|
|
|
|
|
|
|
|
const listData = []
|
|
|
|
const listData = []
|
|
|
|
taskDetailInfo.value = await getTaskDetailInfo(taskId, packageid)
|
|
|
|
|
|
|
|
const reviewType = 3 // 类型
|
|
|
|
const reviewType = 3 // 类型
|
|
|
|
let res = await getAllfieldList(reviewType)
|
|
|
|
let res = await getAllfieldList(reviewType)
|
|
|
|
const fieldList = (res as any)?.data
|
|
|
|
const fieldList = (res as any)?.data
|
|
|
|
@ -236,6 +226,19 @@ watch(
|
|
|
|
listData.push(item)
|
|
|
|
listData.push(item)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
taskTableData.value = chunk(listData, 2)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
watch(
|
|
|
|
|
|
|
|
() => [taskStore.activeId],
|
|
|
|
|
|
|
|
async (newValue, oldValue) => {
|
|
|
|
|
|
|
|
const packageid = taskStore.getPackageid
|
|
|
|
|
|
|
|
const taskId = taskStore.getActiveId
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isEmpty(taskId))
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
taskDetailInfo.value = await getTaskDetailInfo(taskId, packageid)
|
|
|
|
|
|
|
|
getTableData()
|
|
|
|
// TODO mock备份 确认逻辑无误后删除
|
|
|
|
// TODO mock备份 确认逻辑无误后删除
|
|
|
|
// let showFieldData = taskDetailInfo.value.ocrPicture;
|
|
|
|
// let showFieldData = taskDetailInfo.value.ocrPicture;
|
|
|
|
// let showFieldKeys = Object.keys(showFieldData);
|
|
|
|
// let showFieldKeys = Object.keys(showFieldData);
|
|
|
|
@ -256,7 +259,6 @@ watch(
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
taskTableData.value = chunk(listData, 2)
|
|
|
|
|
|
|
|
if (!isEmpty(packageid)) {
|
|
|
|
if (!isEmpty(packageid)) {
|
|
|
|
const { data, total } = await getTaskDetailPictureList(
|
|
|
|
const { data, total } = await getTaskDetailPictureList(
|
|
|
|
packageid,
|
|
|
|
packageid,
|
|
|
|
@ -529,7 +531,7 @@ function getPercent(pictureid: string) {
|
|
|
|
@reject="rejectHandler"
|
|
|
|
@reject="rejectHandler"
|
|
|
|
@approval="approvalHandler"
|
|
|
|
@approval="approvalHandler"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<CustomSettingModal ref="CustomSettingModalRef" :review-type="3" />
|
|
|
|
<CustomSettingModal ref="CustomSettingModalRef" :review-type="3" @on-ok="getTableData" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
|