|
|
@@ -1,128 +1,131 @@
|
|
|
<template>
|
|
|
- <!-- 审核客户资料-->
|
|
|
- <a-modal class="custom_info_btn_check"
|
|
|
- title="审核客户资料"
|
|
|
- v-model:visible="visible"
|
|
|
- @cancel="cancel"
|
|
|
- width="890px">
|
|
|
- <template #footer>
|
|
|
- <a-button key="submit"
|
|
|
- type="primary"
|
|
|
- @click="cancel">取消</a-button>
|
|
|
- <a-button key="submit"
|
|
|
- type="primary"
|
|
|
- :loading="loading"
|
|
|
- @click="submit">审核通过</a-button>
|
|
|
- <a-button key="submit"
|
|
|
- type="primary"
|
|
|
- :loading="loading"
|
|
|
- @click="refuseSubmit">审核拒绝</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">{{ getCardTypeName(selectedRow.cardtype) }}</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="营业执照">
|
|
|
- <div class="upload">
|
|
|
- <div class="look">查看附件</div>
|
|
|
- </div>
|
|
|
- </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>
|
|
|
+ <!-- 审核客户资料-->
|
|
|
+ <a-modal class="custom_info_btn_check"
|
|
|
+ title="审核客户资料"
|
|
|
+ v-model:visible="visible"
|
|
|
+ @cancel="cancel"
|
|
|
+ width="890px">
|
|
|
+ <template #footer>
|
|
|
+ <a-button key="submit"
|
|
|
+ type="primary"
|
|
|
+ @click="cancel">取消
|
|
|
+ </a-button>
|
|
|
+ <a-button key="submit"
|
|
|
+ type="primary"
|
|
|
+ :loading="loading"
|
|
|
+ @click="submit">审核通过
|
|
|
+ </a-button>
|
|
|
+ <a-button key="submit"
|
|
|
+ type="primary"
|
|
|
+ :loading="loading"
|
|
|
+ @click="refuseSubmit">审核拒绝
|
|
|
+ </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">{{ getCardTypeName(selectedRow.cardtype) }}</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="营业执照">
|
|
|
+ <div class="upload">
|
|
|
+ <div class="look">查看附件</div>
|
|
|
+ </div>
|
|
|
+ </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 { closeModal } from '@/common/setup/modal/index';
|
|
|
-import { ModifyUserInfoReq, QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
|
|
|
-import { formatValue } from '@/common/methods';
|
|
|
-import { getCardTypeName, getStatusName } from '@/views/information/custom/setup';
|
|
|
-import { cancelCustomInfo, checkCustomInfo } from '@/views/information/custom/compoments/setup';
|
|
|
-import { UserInfoCheckMangeReq } from '@/services/proto/accountinfo/interface';
|
|
|
-import { getSelectedAccountId, getUserId } from '@/services/bus/account';
|
|
|
-import {Modal} from "ant-design-vue";
|
|
|
+import {defineComponent, PropType, ref} from 'vue';
|
|
|
+import {closeModal} from '@/common/setup/modal/index';
|
|
|
+import {ModifyUserInfoReq, QueryCustomInfoType} from '@/services/go/ermcp/customInfo/interface';
|
|
|
+import {formatValue} from '@/common/methods';
|
|
|
+import {getCardTypeName, getStatusName} from '@/views/information/custom/setup';
|
|
|
+import {cancelCustomInfo, checkCustomInfo} from '@/views/information/custom/compoments/setup';
|
|
|
+import {UserInfoCheckMangeReq} from '@/services/proto/accountinfo/interface';
|
|
|
+import {getSelectedAccountId, getUserId} from '@/services/bus/account';
|
|
|
+import {message, Modal} from "ant-design-vue";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'custom_info_btn_check',
|
|
|
@@ -133,15 +136,16 @@ export default defineComponent({
|
|
|
default: {},
|
|
|
},
|
|
|
},
|
|
|
- setup(props) {
|
|
|
- const { loading, checkCustomerInfo } = checkCustomInfo();
|
|
|
- const { visible, cancel } = closeModal('custom_info_btn_check');
|
|
|
+ setup(props, context) {
|
|
|
+ const {loading, checkCustomerInfo} = checkCustomInfo();
|
|
|
+ const {visible, cancel} = closeModal('custom_info_btn_check');
|
|
|
const req: UserInfoCheckMangeReq = {
|
|
|
audituserid: getUserId(),
|
|
|
userid: props.selectedRow.userid,
|
|
|
auditflag: 1,
|
|
|
remark: '',
|
|
|
};
|
|
|
+
|
|
|
// 审核通过
|
|
|
function submit() {
|
|
|
Modal.confirm({
|
|
|
@@ -152,13 +156,22 @@ export default defineComponent({
|
|
|
console.log('OK');
|
|
|
req.auditflag = 1;
|
|
|
req.userid = props.selectedRow.userid;
|
|
|
- checkCustomerInfo(req, cancel);
|
|
|
+ checkCustomerInfo(req)
|
|
|
+ .then(res => {
|
|
|
+ message.success(res)
|
|
|
+ context.emit('refresh');
|
|
|
+ cancel();
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ message.error(err)
|
|
|
+ })
|
|
|
},
|
|
|
onCancel() {
|
|
|
console.log('Cancel');
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
// 审核拒绝
|
|
|
function refuseSubmit() {
|
|
|
Modal.confirm({
|
|
|
@@ -169,13 +182,22 @@ export default defineComponent({
|
|
|
console.log('OK');
|
|
|
req.auditflag = 2;
|
|
|
req.userid = props.selectedRow.userid;
|
|
|
- checkCustomerInfo(req, cancel);
|
|
|
+ checkCustomerInfo(req)
|
|
|
+ .then(res => {
|
|
|
+ message.success(res)
|
|
|
+ context.emit('refresh');
|
|
|
+ cancel();
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ message.error(err)
|
|
|
+ })
|
|
|
},
|
|
|
onCancel() {
|
|
|
console.log('Cancel');
|
|
|
},
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
return {
|
|
|
visible,
|
|
|
cancel,
|