123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- <template>
- <a-modal
- v-model:open="open"
- title="查看回执"
- centered
- width="90%"
- >
- <div class="result-detail">
- <a-page-header
- >
- <template #tags>
- <a-tag :color="formData.status == 3 ? 'green' : 'red'">{{ $TOOL.dictTypeData('djzt', formData.status) }}</a-tag>
- <a-tooltip :title="resultList[resultList.length - 1]?.result">
- <InfoCircleOutlined />
- </a-tooltip>
- </template>
- </a-page-header>
- <a-table
- style="margin-top: 10px"
- bordered
- :dataSource="resultList"
- :columns="[
- {title: '单据类型',dataIndex: 'applyType',key: 'applyType'},
- {title: '审核状态',dataIndex: 'status',key: 'status'},
- {title: '申请人',dataIndex: 'applicant',key: 'applicant'},
- {title: '审核人',dataIndex: 'applyMan',key: 'applyMan'},
- {title: '审核时间',dataIndex: 'checkTime',key: 'checkTime'},
- {title: '审核结果回执',dataIndex: 'result',key: 'result'},
- ]"
- :pagination="false"
- >
- </a-table>
- </div>
- <template #footer></template>
- </a-modal>
- </template>
- <script setup name="enterpriseDetail">
- import tool from '@/utils/tool'
- import {cloneDeep} from 'lodash-es'
- // 抽屉状态
- const open = ref(false)
- const emit = defineEmits({successful: null})
- const formRef = ref()
- // 表单数据
- const formData = ref({})
- const resultList = ref([])
- import qyImg from '@/views/yqyc/zero/enterprise-qualification/qy.png'
- import qySecondlineHzdTzApi from "@/api/yqyc/qySecondLineHzdTzApi";
- // 打开抽屉
- const onOpen = (record, view = false) => {
- open.value = true
- if (record) {
- formData.value = Object.assign({}, record)
- qySecondlineHzdTzApi.qysecondlinehfdlistGetListByHfdId({id: record.id}).then(res => {
- resultList.value = res
- })
- }
- }
- // 关闭抽屉
- const onClose = () => {
- formRef.value.resetFields()
- formData.value = {}
- open.value = false
- }
- // 抛出函数
- defineExpose({
- onOpen
- })
- </script>
- <style lang="less" scoped>
- .goods-detail {
- max-height: 800px;
- overflow-y: auto;
- }
- </style>
|