master
parent
a4a38816d3
commit
120818ce4b
|
|
@ -27,3 +27,6 @@ export const HomeMenu: AppTypes.Menu = {
|
|||
sort: 0,
|
||||
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 Times 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 chartOption = reactive<Echarts.Option>({
|
||||
|
|
@ -59,7 +60,9 @@ const formGroup = useFormGroup<DisposeRecodeTypes.SearchParam>({
|
|||
keywords: [ '' ],
|
||||
})
|
||||
|
||||
|
||||
const datasource = ref<DisposeRecodeTypes.DisposeRecodeData[]>()
|
||||
|
||||
const columns: TableColumn[] = [
|
||||
{
|
||||
title: '来源地',
|
||||
|
|
@ -110,18 +113,24 @@ const columns: TableColumn[] = [
|
|||
dataKey: 'timeOutStatusTxt',
|
||||
customCell: 'timeOutStatus',
|
||||
},
|
||||
{
|
||||
]
|
||||
if (showAuditStatus) {
|
||||
columns.push({
|
||||
title: '审查状态',
|
||||
dataKey: 'auditStatusTxt',
|
||||
customCell: 'auditStatus',
|
||||
},
|
||||
{
|
||||
}, {
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
customCell: 'action',
|
||||
}
|
||||
]
|
||||
|
||||
})
|
||||
} else {
|
||||
columns.push({
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
customCell: 'action',
|
||||
})
|
||||
}
|
||||
const pagination = reactive<TablePagination>({
|
||||
pageIndex: 1,
|
||||
pageSize: 3,
|
||||
|
|
@ -188,6 +197,7 @@ function renderChart() {
|
|||
})
|
||||
}
|
||||
|
||||
|
||||
onMounted(() => {
|
||||
searchHandler()
|
||||
renderChart()
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
import { useFormGroup } from '@idux/cdk'
|
||||
import DisposeRecodeApi from '@/pages/dispose-recode/dispose-recode-api.ts'
|
||||
import Toast from '@/components/toast'
|
||||
import { showAuditStatus } from '@/common/app/contants.ts'
|
||||
|
||||
const show = ref(false)
|
||||
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.disposalSite ?? '-' }}</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 class="detail-item"><span>问题描述:</span><span>{{ data.problemDesc ?? '-' }}</span></p>
|
||||
<p v-if="showAuditStatus" class="detail-item"><span>审查状态:</span><span>{{ data.auditStatusTxt ?? '-' }}</span></p>
|
||||
<p v-if="showAuditStatus" class="detail-item"><span>问题描述:</span><span>{{ data.problemDesc ?? '-' }}</span></p>
|
||||
</div>
|
||||
<div class="dispose-recode-detail-img-title">车辆照片</div>
|
||||
<div class="dispose-recode-detail-img">
|
||||
|
|
@ -150,7 +151,7 @@ defineExpose({
|
|||
</p>
|
||||
</div>
|
||||
<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>
|
||||
<template #content>
|
||||
<IxForm :control="auditData" layout="inline">
|
||||
|
|
|
|||
Loading…
Reference in New Issue