机构审核-审核历史-变更类型的数据:展示审核状态及驳回原因

This commit is contained in:
1378012178@qq.com 2026-02-27 10:01:58 +08:00
parent eaffde6370
commit c86db8b08f
1 changed files with 31 additions and 22 deletions

View File

@ -38,6 +38,8 @@
</a-table> </a-table>
</a-col> </a-col>
</a-row> </a-row>
<JFormContainer :disabled="izAuditHis">
<template #detail>
<a-form style="margin-top: 14px;height: 100px;" ref="formRef" layout="horizontal" :model="formData" <a-form style="margin-top: 14px;height: 100px;" ref="formRef" layout="horizontal" :model="formData"
:label-col="labelCol" :wrapper-col="wrapperCol"> :label-col="labelCol" :wrapper-col="wrapperCol">
<a-row :gutter="16"> <a-row :gutter="16">
@ -57,6 +59,8 @@
</a-col> </a-col>
</a-row> </a-row>
</a-form> </a-form>
</template>
</JFormContainer>
</div> </div>
</template> </template>
@ -65,6 +69,7 @@ import { ref, reactive, computed, onMounted } from 'vue';
import { Table as ATable, Input, Row, Col, Form } from 'ant-design-vue'; import { Table as ATable, Input, Row, Col, Form } from 'ant-design-vue';
import { applyObj } from '../OrgModifyInfo.data' import { applyObj } from '../OrgModifyInfo.data'
import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue'; import JImageUpload from '/@/components/Form/src/jeecg/components/JImageUpload.vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import { upInfoAudit, getHisModifyInfo } from '../OrgModifyInfo.api'; import { upInfoAudit, getHisModifyInfo } from '../OrgModifyInfo.api';
import { useMessage } from '/@/hooks/web/useMessage'; import { useMessage } from '/@/hooks/web/useMessage';
import { initDictOptions } from '/@/utils/dict'; import { initDictOptions } from '/@/utils/dict';
@ -169,9 +174,10 @@ const setRowClassName = (record) => {
return record.d2 !== record.d3 && record.d1 !== 'createTime' ? 'highlight-row' : ''; return record.d2 !== record.d3 && record.d1 !== 'createTime' ? 'highlight-row' : '';
}; };
function show(data) { const izAuditHis = ref(true)
console.log("🌊 ~ show ~ data:", data)
function show(data) {
izAuditHis.value = false
// idpkIdformData // idpkIdformData
const idRecord = data.find(item => item.d1 === 'id'); const idRecord = data.find(item => item.d1 === 'id');
const pkIdRecord = data.find(item => item.d1 === 'pkId'); const pkIdRecord = data.find(item => item.d1 === 'pkId');
@ -194,8 +200,8 @@ function show(data) {
} }
async function hisShow(record) { async function hisShow(record) {
izAuditHis.value = true
let data = await getHisModifyInfo(record) let data = await getHisModifyInfo(record)
console.log("🌊 ~ show ~ data:", data)
// idpkIdformData // idpkIdformData
const idRecord = data.find(item => item.d1 === 'id'); const idRecord = data.find(item => item.d1 === 'id');
@ -210,6 +216,9 @@ async function hisShow(record) {
} }
formData.comName = data.find(item => item.d1 === 'comName').d2; formData.comName = data.find(item => item.d1 === 'comName').d2;
formData.openId = data.find(item => item.d1 === 'openId').d2; formData.openId = data.find(item => item.d1 === 'openId').d2;
//
formData.status = data.find(item => item.d1 === 'status').d3;
formData.content = data.find(item => item.d1 === 'content').d3;
tableData.value = data.map(item => ({ tableData.value = data.map(item => ({
...item, ...item,
// null/undefined // null/undefined