|
|
|
|
@ -42,10 +42,17 @@ v-else-if="scope.row.images" :src="parseFirstImage(scope.row.images)"
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<el-pagination
|
|
|
|
|
v-show="total > 0" v-model:current-page="queryParams.pageNo" v-model:page-size="queryParams.pageSize"
|
|
|
|
|
:background="true" :page-sizes="[10, 20, 30, 50, 100]" :pager-count="7" :total="total"
|
|
|
|
|
class="mt-15px mb-15px flex justify-end" layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
@size-change="handleSizeChange" @current-change="handleCurrentChange" />
|
|
|
|
|
v-show="total > 0" v-model:current-page="queryParams.pageNo" v-model:page-size="queryParams.pageSize"
|
|
|
|
|
:background="true" :page-sizes="[10, 20, 30, 50, 100]" :pager-count="7" :total="total"
|
|
|
|
|
class="mt-15px mb-15px flex justify-end" layout="total, sizes, prev, pager, next, jumper"
|
|
|
|
|
@size-change="handleSizeChange" @current-change="handleCurrentChange" />
|
|
|
|
|
|
|
|
|
|
<div v-if="String(jobStatus) === '4'" class="mt-10px text-14px">
|
|
|
|
|
<span>{{ t('MoldManagement.MoldWorkOrderInquiry.jobStatus') }}:</span>
|
|
|
|
|
<dict-tag :type="'job_status'" :value="jobStatus" />
|
|
|
|
|
<span class="ml-20px">取消原因:</span>
|
|
|
|
|
<span>{{ cancelReason || '-' }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<template #footer>
|
|
|
|
|
<el-button @click="dialogVisible = false">{{ t('MoldManagement.TicketResultDialog.cancel') }}</el-button>
|
|
|
|
|
@ -70,6 +77,8 @@ const submitLoading = ref(false)
|
|
|
|
|
const list = ref<TicketResultVO[]>([])
|
|
|
|
|
const total = ref(0)
|
|
|
|
|
const managementId = ref<number | undefined>(undefined)
|
|
|
|
|
const jobStatus = ref<string | number | undefined>(undefined)
|
|
|
|
|
const cancelReason = ref<string | undefined>(undefined)
|
|
|
|
|
const decisionMap = reactive<Record<string, '1' | '2' | undefined>>({})
|
|
|
|
|
const imageMap = reactive<Record<string, string>>({})
|
|
|
|
|
|
|
|
|
|
@ -78,10 +87,12 @@ const queryParams = reactive({
|
|
|
|
|
pageSize: 10
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const open = async (options: { managementId: number; title?: string }) => {
|
|
|
|
|
const open = async (options: { managementId: number; title?: string; jobStatus?: string | number; cancelReason?: string }) => {
|
|
|
|
|
dialogVisible.value = true
|
|
|
|
|
dialogTitle.value = options.title || t('MoldManagement.TicketResultDialog.moduleName')
|
|
|
|
|
managementId.value = options.managementId
|
|
|
|
|
jobStatus.value = options.jobStatus
|
|
|
|
|
cancelReason.value = options.cancelReason
|
|
|
|
|
for (const key of Object.keys(decisionMap)) delete decisionMap[key]
|
|
|
|
|
for (const key of Object.keys(imageMap)) delete imageMap[key]
|
|
|
|
|
queryParams.pageNo = 1
|
|
|
|
|
|