master
doublekou 11 months ago
commit c6b90e1b62

@ -94,8 +94,21 @@ const columns: ProColumns[] = [
}, },
{ {
title: '客户名称', title: '客户名称',
width: 120,
dataIndex: 'customName' 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: '联系方式', title: '联系方式',
width: 100, width: 100,

@ -1,14 +1,20 @@
<template> <template>
<div ref="refModel">
<a-modal <a-modal
:title="title" :title="title"
:visible="visible" :visible="visible"
:mask-closable="false" :mask-closable="false"
:centered="true" :centered="true"
:body-style="{ paddingBottom: '8px' }" :body-style="{ paddingBottom: '8px', paddingTop: '0px' }"
:confirm-loading="submitLoading" :confirm-loading="submitLoading"
:width="650" :width="650"
:get-container="() => $refs.refModel"
@cancel="handleClose" @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 <a-form
:model="formModel" :model="formModel"
:label-col="{ sm: { span: 24 }, md: { span: 8 } }" :label-col="{ sm: { span: 24 }, md: { span: 8 } }"
@ -35,7 +41,11 @@
:label-col="{ sm: { span: 24 }, md: { span: 4 } }" :label-col="{ sm: { span: 24 }, md: { span: 4 } }"
:wrapper-col="{ sm: { span: 24 }, md: { span: 20 } }" :wrapper-col="{ sm: { span: 24 }, md: { span: 20 } }"
> >
<a-input v-model:value="formModel.comprehensiveAddress" placeholder="请输入" readonly /> <a-input
v-model:value="formModel.comprehensiveAddress"
placeholder="请输入"
readonly
/>
</a-form-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
@ -77,7 +87,7 @@
>重审</a-button >重审</a-button
> >
<a-button <a-button
v-if="formModel.enrollStatus == 1" v-if="formModel.enrollStatus == 1 && formModel.customType == 0"
type="primary" type="primary"
html-type="submit" html-type="submit"
style="margin-left: 10px" style="margin-left: 10px"
@ -87,6 +97,7 @@
</div> </div>
</template> </template>
</a-modal> </a-modal>
</div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
@ -96,12 +107,13 @@ import type { FormRequestMapping } from '@/hooks/form'
import { overrideProperties } from '@/utils/bean-utils' import { overrideProperties } from '@/utils/bean-utils'
import { message } from 'ant-design-vue' import { message } from 'ant-design-vue'
import { updateCustomerAudit } from '@/api/geopoliticalCustomers/index' 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 { useUserStore } from '@/stores/user-store'
import { doRequest } from '@/utils/axios/request' import { doRequest } from '@/utils/axios/request'
import { getCustomDetails } from '@/api/geopoliticalCustomers' import { getCustomDetails } from '@/api/geopoliticalCustomers'
// //
import 'dayjs/locale/zh-cn' import 'dayjs/locale/zh-cn'
import { $ref } from 'vue/macros'
// import dayjs from 'dayjs' // import dayjs from 'dayjs'
const emits = defineEmits<{ const emits = defineEmits<{
(e: 'submit-success'): void (e: 'submit-success'): void
@ -330,4 +342,14 @@ defineExpose({
right: 3px; right: 3px;
font-size: 15px; font-size: 15px;
} }
//modal
::v-deep .ant-modal-header {
padding: 16px 24px 0px !important;
border-bottom: unset !important;
}
//a-tabs
::v-deep .ant-tabs-top > .ant-tabs-nav {
margin: 0 0 25px 0;
line-height: 0.5715;
}
</style> </style>

Loading…
Cancel
Save