添加审批条件

This commit is contained in:
yangjun 2025-06-25 08:46:39 +08:00
parent 8a59c9416b
commit 9c697ef8af
4 changed files with 38 additions and 23 deletions

View File

@ -6,32 +6,21 @@ import { getWeekMonthQuarterYear } from '/@/utils';
import {JVxeTypes, JVxeColumn, JVxeTableInstance} from '/@/components/jeecg/JVxeTable/types' import {JVxeTypes, JVxeColumn, JVxeTableInstance} from '/@/components/jeecg/JVxeTable/types'
//列表数据 //列表数据
export const columns: BasicColumn[] = [ export const columns: BasicColumn[] = [
{
title: '联系电话',
align: "center",
dataIndex: 'tel'
},
{
title: '状态',
align: "center",
dataIndex: 'status',
},
{
title: '审核备注',
align: "center",
dataIndex: 'content',
defaultHidden: true,
},
{
title: '机构是否入驻',
align: "center",
dataIndex: 'izEntry'
},
{ {
title: '咨询人姓名', title: '咨询人姓名',
align: "center", align: "center",
dataIndex: 'name' dataIndex: 'name'
}, },
{
title: '联系电话',
align: "center",
dataIndex: 'tel'
},
// {
// title: '机构是否入驻',
// align: "center",
// dataIndex: 'izEntry'
// },
{ {
title: '性别', title: '性别',
align: "center", align: "center",
@ -149,6 +138,17 @@ export const columns: BasicColumn[] = [
dataIndex: 'contactRelationship', dataIndex: 'contactRelationship',
defaultHidden: true, defaultHidden: true,
}, },
{
title: '状态',
align: "center",
dataIndex: 'status_dictText',
},
{
title: '审核备注',
align: "center",
dataIndex: 'content',
defaultHidden: true,
},
{ {
title: '户口性质', title: '户口性质',
align: "center", align: "center",

View File

@ -179,7 +179,7 @@ import JInput from "/@/components/Form/src/jeecg/components/JInput.vue";
{ {
label: '审批', label: '审批',
onClick: handleEdit.bind(null, record), onClick: handleEdit.bind(null, record),
ifShow: record.status == '0' || record.status == null ifShow: record.status == '1'
}, },
{ {
label: '详情', label: '详情',

View File

@ -4,6 +4,20 @@
<template #detail> <template #detail>
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="NuEmployeesAdvisoryInfoForm"> <a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="NuEmployeesAdvisoryInfoForm">
<a-row> <a-row>
<a-col :span="24">
<SectionDivider :title="'入驻审批'" />
</a-col>
<a-col :span="12">
<a-form-item label="审批" v-bind="validateInfos.status" id="OrgApplyInfoForm-status" name="status">
<j-dict-select-tag type="radio" v-model:value="formData.status" dictCode="org_apply_status" placeholder="请选择审批结果"
allow-clear />
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item label="审核备注" v-bind="validateInfos.content" id="OrgApplyInfoForm-content" name="content">
<a-input v-model:value="formData.content" placeholder="请输入审核备注" allow-clear></a-input>
</a-form-item>
</a-col>
<a-col :span="24"> <a-col :span="24">
<SectionDivider :title="'基本信息'" /> <SectionDivider :title="'基本信息'" />
</a-col> </a-col>
@ -181,6 +195,7 @@
import { saveOrUpdate } from '../NuEmployeesAdvisoryInfo.api'; import { saveOrUpdate } from '../NuEmployeesAdvisoryInfo.api';
import { Form } from 'ant-design-vue'; import { Form } from 'ant-design-vue';
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue'; import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
const props = defineProps({ const props = defineProps({
formDisabled: { type: Boolean, default: false }, formDisabled: { type: Boolean, default: false },
formData: { type: Object, default: () => ({})}, formData: { type: Object, default: () => ({})},

View File

@ -188,7 +188,7 @@ function getTableAction(record) {
label: '审批', label: '审批',
onClick: handleEdit.bind(null, record), onClick: handleEdit.bind(null, record),
auth: 'orgapplyinfo:nu_org_apply_info:edit', auth: 'orgapplyinfo:nu_org_apply_info:edit',
disabled: record.status == '0' || record.status == '2' ifShow: record.status == '1'
}, },
]; ];
} }