master
parent
a4a38816d3
commit
120818ce4b
|
|
@ -27,3 +27,6 @@ export const HomeMenu: AppTypes.Menu = {
|
||||||
sort: 0,
|
sort: 0,
|
||||||
tier: 1,
|
tier: 1,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
export const showAuditStatus = true
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ import DisposeRecodeDetail from '@/pages/dispose-recode/DisposeRecodeDetail.vue'
|
||||||
import DisposeRecodeApi from '@/pages/dispose-recode/dispose-recode-api.ts'
|
import DisposeRecodeApi from '@/pages/dispose-recode/dispose-recode-api.ts'
|
||||||
import Times from '@/common/utils/times.ts'
|
import Times from '@/common/utils/times.ts'
|
||||||
import times, { FMT } from '@/common/utils/times.ts'
|
import times, { FMT } from '@/common/utils/times.ts'
|
||||||
|
import { showAuditStatus } from '@/common/app/contants.ts'
|
||||||
|
|
||||||
const disposeRecodeDetail = ref<InstanceType<typeof DisposeRecodeDetail> | null>(null)
|
const disposeRecodeDetail = ref<InstanceType<typeof DisposeRecodeDetail> | null>(null)
|
||||||
const chartOption = reactive<Echarts.Option>({
|
const chartOption = reactive<Echarts.Option>({
|
||||||
|
|
@ -59,7 +60,9 @@ const formGroup = useFormGroup<DisposeRecodeTypes.SearchParam>({
|
||||||
keywords: [ '' ],
|
keywords: [ '' ],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
const datasource = ref<DisposeRecodeTypes.DisposeRecodeData[]>()
|
const datasource = ref<DisposeRecodeTypes.DisposeRecodeData[]>()
|
||||||
|
|
||||||
const columns: TableColumn[] = [
|
const columns: TableColumn[] = [
|
||||||
{
|
{
|
||||||
title: '来源地',
|
title: '来源地',
|
||||||
|
|
@ -110,18 +113,24 @@ const columns: TableColumn[] = [
|
||||||
dataKey: 'timeOutStatusTxt',
|
dataKey: 'timeOutStatusTxt',
|
||||||
customCell: 'timeOutStatus',
|
customCell: 'timeOutStatus',
|
||||||
},
|
},
|
||||||
{
|
]
|
||||||
|
if (showAuditStatus) {
|
||||||
|
columns.push({
|
||||||
title: '审查状态',
|
title: '审查状态',
|
||||||
dataKey: 'auditStatusTxt',
|
dataKey: 'auditStatusTxt',
|
||||||
customCell: 'auditStatus',
|
customCell: 'auditStatus',
|
||||||
},
|
}, {
|
||||||
{
|
|
||||||
title: '操作',
|
title: '操作',
|
||||||
key: 'action',
|
key: 'action',
|
||||||
customCell: 'action',
|
customCell: 'action',
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
columns.push({
|
||||||
|
title: '操作',
|
||||||
|
key: 'action',
|
||||||
|
customCell: 'action',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
]
|
|
||||||
|
|
||||||
const pagination = reactive<TablePagination>({
|
const pagination = reactive<TablePagination>({
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
pageSize: 3,
|
pageSize: 3,
|
||||||
|
|
@ -188,6 +197,7 @@ function renderChart() {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
searchHandler()
|
searchHandler()
|
||||||
renderChart()
|
renderChart()
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
import { useFormGroup } from '@idux/cdk'
|
import { useFormGroup } from '@idux/cdk'
|
||||||
import DisposeRecodeApi from '@/pages/dispose-recode/dispose-recode-api.ts'
|
import DisposeRecodeApi from '@/pages/dispose-recode/dispose-recode-api.ts'
|
||||||
import Toast from '@/components/toast'
|
import Toast from '@/components/toast'
|
||||||
|
import { showAuditStatus } from '@/common/app/contants.ts'
|
||||||
|
|
||||||
const show = ref(false)
|
const show = ref(false)
|
||||||
const ins = ref<HTMLElement | null>(null)
|
const ins = ref<HTMLElement | null>(null)
|
||||||
|
|
@ -109,8 +110,8 @@ defineExpose({
|
||||||
<p class="detail-item"><span>出场时间:</span><span>{{ data.outTime ?? '-' }}</span></p>
|
<p class="detail-item"><span>出场时间:</span><span>{{ data.outTime ?? '-' }}</span></p>
|
||||||
<p class="detail-item"><span>消纳场名称:</span><span>{{ data.disposalSite ?? '-' }}</span></p>
|
<p class="detail-item"><span>消纳场名称:</span><span>{{ data.disposalSite ?? '-' }}</span></p>
|
||||||
<p class="detail-item"><span>超时状态:</span><span>{{ data.timeOutStatusTxt ?? '-' }}</span></p>
|
<p class="detail-item"><span>超时状态:</span><span>{{ data.timeOutStatusTxt ?? '-' }}</span></p>
|
||||||
<p class="detail-item"><span>审查状态:</span><span>{{ data.auditStatusTxt ?? '-' }}</span></p>
|
<p v-if="showAuditStatus" class="detail-item"><span>审查状态:</span><span>{{ data.auditStatusTxt ?? '-' }}</span></p>
|
||||||
<p class="detail-item"><span>问题描述:</span><span>{{ data.problemDesc ?? '-' }}</span></p>
|
<p v-if="showAuditStatus" class="detail-item"><span>问题描述:</span><span>{{ data.problemDesc ?? '-' }}</span></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="dispose-recode-detail-img-title">车辆照片</div>
|
<div class="dispose-recode-detail-img-title">车辆照片</div>
|
||||||
<div class="dispose-recode-detail-img">
|
<div class="dispose-recode-detail-img">
|
||||||
|
|
@ -150,7 +151,7 @@ defineExpose({
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<IxPopconfirm v-if="data.auditStatus === 'DaiShenHe'" icon="whitelist" placement="top" title="审查" @ok="auditHandler">
|
<IxPopconfirm v-if="showAuditStatus &&data.auditStatus === 'DaiShenHe'" icon="whitelist" placement="top" title="审查" @ok="auditHandler">
|
||||||
<IxButton mode="primary">审查</IxButton>
|
<IxButton mode="primary">审查</IxButton>
|
||||||
<template #content>
|
<template #content>
|
||||||
<IxForm :control="auditData" layout="inline">
|
<IxForm :control="auditData" layout="inline">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue