master
飘泊客 11 months ago
parent e7e385994c
commit 891ed17ad8

@ -94,8 +94,21 @@ const columns: ProColumns[] = [
},
{
title: '客户名称',
width: 120,
dataIndex: 'customName'
},
{
title: '客户类型',
dataIndex: 'customType',
width: 80,
customRender: ({ record }: any) => {
if (record.customType == 0) {
return h('div', 'A型')
} else if (record.customType == 1) {
return h('div', 'B型')
}
}
},
{
title: '联系方式',
width: 100,

@ -9,6 +9,10 @@
:width="650"
@cancel="handleClose"
>
<a-tabs centered>
<a-tab-pane v-if="formModel.customType === 0" key="1" tab="A类型客户" />
<a-tab-pane v-if="formModel.customType === 1" key="2" tab="B类型客户" force-render />
</a-tabs>
<a-form
:model="formModel"
:label-col="{ sm: { span: 24 }, md: { span: 8 } }"
@ -76,8 +80,8 @@
@click="toExamine(0)"
>重审</a-button
>
<a-button
v-if="formModel.enrollStatus == 1"
<a-button
v-if="formModel.enrollStatus == 1 && formModel.customType == 0"
type="primary"
html-type="submit"
style="margin-left: 10px"
@ -96,7 +100,7 @@ import type { FormRequestMapping } from '@/hooks/form'
import { overrideProperties } from '@/utils/bean-utils'
import { message } from 'ant-design-vue'
import { updateCustomerAudit } from '@/api/geopoliticalCustomers/index'
import { useAdminForm, useFormAction, FormAction, labelCol, wrapperCol } from '@/hooks/form'
import { useAdminForm, useFormAction, FormAction, wrapperCol } from '@/hooks/form'
import { useUserStore } from '@/stores/user-store'
import { doRequest } from '@/utils/axios/request'
import { getCustomDetails } from '@/api/geopoliticalCustomers'
@ -330,4 +334,10 @@ defineExpose({
right: 3px;
font-size: 15px;
}
//a-tabs
::v-deep .ant-tabs-top > .ant-tabs-nav {
margin: 0 0 25px 0;
line-height: 0.5715;
}
</style>

Loading…
Cancel
Save