|
|
@@ -11,107 +11,107 @@
|
|
|
:loading="loading"
|
|
|
@click="submit">删除客户资料</a-button>
|
|
|
</template>
|
|
|
- <a-form class="inlineForm"
|
|
|
- :form="form"
|
|
|
- @submit="handleSearch">
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="客户类型">
|
|
|
- <span class="white">{{ selectedRow.userinfotype === '2' ? '企业' : '个人' }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="企业名称">
|
|
|
- <span class="white">{{ formatValue(selectedRow.customername) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="企业简称">
|
|
|
- <span class="white">{{ formatValue(selectedRow.nickname) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="证件类型">
|
|
|
- <span class="white">{{ formatValue(selectedRow.cardtypename) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="法定代表人">
|
|
|
- <span class="white">{{ formatValue(selectedRow.legalpersonname) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="证件号码">
|
|
|
- <span class="white">{{ formatValue(selectedRow.cardnum) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="纳税人识别号">
|
|
|
- <span class="white">{{ formatValue(selectedRow.taxpayernum) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="营业执照">
|
|
|
- <a class="blue">查看附件</a>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系人">
|
|
|
- <span class="white">{{ formatValue(selectedRow.contactname) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系人手机号">
|
|
|
- <span class="white">{{ formatValue(selectedRow.mobile) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="联系电话">
|
|
|
- <span class="white">{{ formatValue(selectedRow.telphone) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- <a-col :span="12">
|
|
|
- <a-form-item label="状态">
|
|
|
- <span class="green">{{ formatValue(getStatusName(selectedRow.status)) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="通讯地址">
|
|
|
- <span class="white">{{ formatValue(selectedRow.address) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- <a-row :gutter="24">
|
|
|
- <a-col :span="24">
|
|
|
- <a-form-item label="备注">
|
|
|
- <span class="white">{{ formatValue(selectedRow.remark) }}</span>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form>
|
|
|
+ <a-form class="inlineForm"
|
|
|
+ :form="form"
|
|
|
+ @submit="handleSearch">
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="客户类型">
|
|
|
+ <span class="white">{{ selectedRow.userinfotype === '2' ? '企业' : '个人' }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="企业名称">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.customername) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="企业简称">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.nickname) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="证件类型">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.cardtypename) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="法定代表人">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.legalpersonname) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="证件号码">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.cardnum) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="纳税人识别号">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.taxpayernum) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="营业执照">
|
|
|
+ <a class="blue">查看附件</a>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="联系人">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.contactname) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="联系人手机号">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.mobile) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="联系电话">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.telphone) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="12">
|
|
|
+ <a-form-item label="状态">
|
|
|
+ <span class="green">{{ formatValue(getStatusName(selectedRow.status)) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="通讯地址">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.address) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row :gutter="24">
|
|
|
+ <a-col :span="24">
|
|
|
+ <a-form-item label="备注">
|
|
|
+ <span class="white">{{ formatValue(selectedRow.remark) }}</span>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form>
|
|
|
</a-modal>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import {defineComponent, PropType, ref} from 'vue';
|
|
|
+import { defineComponent, PropType, ref } from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
-import {deleteUserInfo} from "@/views/information/custom/compoments/setup";
|
|
|
-import {QueryCustomInfoType} from "@/services/go/ermcp/customInfo/interface";
|
|
|
-import {formatValue} from "@/common/methods";
|
|
|
-import {getStatusName} from "@/views/information/custom/setup";
|
|
|
-import {Modal} from "ant-design-vue";
|
|
|
+import { deleteUserInfo } from '@/views/information/custom/compoments/setup';
|
|
|
+import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
|
|
|
+import { formatValue } from '@/common/methods';
|
|
|
+import { getStatusName } from '@/views/information/custom/setup';
|
|
|
+import { Modal } from 'ant-design-vue';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'recover-custom',
|
|
|
@@ -122,16 +122,20 @@ export default defineComponent({
|
|
|
default: {},
|
|
|
},
|
|
|
},
|
|
|
- setup(props) {
|
|
|
+ setup(props, context) {
|
|
|
const { visible, cancel } = closeModal('custom_info_btn_delete');
|
|
|
- const {loading, deleteCustomerInfo} = deleteUserInfo();
|
|
|
- function submit(){
|
|
|
+ const { loading, deleteCustomerInfo } = deleteUserInfo();
|
|
|
+ function submit() {
|
|
|
Modal.confirm({
|
|
|
title: '是否确认删除客户资料',
|
|
|
okText: '确认删除',
|
|
|
cancelText: '取消',
|
|
|
onOk() {
|
|
|
- deleteCustomerInfo(props.selectedRow.userid, cancel)
|
|
|
+ deleteCustomerInfo(props.selectedRow.userid).then(() => {
|
|
|
+ cancel();
|
|
|
+ // 通知上层 刷新数据
|
|
|
+ context.emit('refresh');
|
|
|
+ });
|
|
|
},
|
|
|
onCancel() {
|
|
|
console.log('Cancel');
|