|
|
@@ -113,9 +113,11 @@
|
|
|
import {defineComponent, PropType, ref} from 'vue';
|
|
|
import { closeModal } from '@/common/setup/modal/index';
|
|
|
import { Modal } from 'ant-design-vue';
|
|
|
-import {QueryCustomInfoType} from "@/services/go/ermcp/customInfo/interface";
|
|
|
+import {ModifyUserInfoApplyReq, QueryCustomInfoType} from "@/services/go/ermcp/customInfo/interface";
|
|
|
import {formatValue} from "@/common/methods";
|
|
|
import {getStatusName} from "@/views/information/custom/setup";
|
|
|
+import {cancelCustomInfo} from "@/views/information/custom/compoments/setup";
|
|
|
+import {getUserId} from "@/services/bus/account";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'custom_info_btn_cancel',
|
|
|
@@ -126,11 +128,11 @@ export default defineComponent({
|
|
|
default: {},
|
|
|
},
|
|
|
},
|
|
|
- setup() {
|
|
|
+ setup(props) {
|
|
|
const { visible, cancel } = closeModal('custom_info_btn_cancel');
|
|
|
- const loading = ref<boolean>(false);
|
|
|
+ const {loading, ModifyUserInfo} = cancelCustomInfo()
|
|
|
function submit() {
|
|
|
- // loading.value = true;
|
|
|
+ loading.value = true;
|
|
|
Modal.confirm({
|
|
|
title: '是否确认撤销客户资料',
|
|
|
content: '是否撤销',
|
|
|
@@ -138,9 +140,18 @@ export default defineComponent({
|
|
|
cancelText: '取消',
|
|
|
onOk() {
|
|
|
console.log('OK');
|
|
|
+ const req : ModifyUserInfoApplyReq = {
|
|
|
+ userid: getUserId(),//用户ID
|
|
|
+ userinfotype: Number(props.selectedRow.userinfotype), //用户信息类型 - 1:个人 2:企业 (必填)
|
|
|
+ username: props.selectedRow.customername, //用户姓名 (必填) 用的企业名称
|
|
|
+ userstate: 1, //开户状态 - 1:未提交 2: 待初审 3:初审拒绝 4:待复审 5:复审拒绝 6:测评不通过 (必填)
|
|
|
+ customername: props.selectedRow.customername, //客户名称(企业名称) (必填)
|
|
|
+ }
|
|
|
+ ModifyUserInfo(req)
|
|
|
},
|
|
|
onCancel() {
|
|
|
console.log('Cancel');
|
|
|
+ loading.value = false;
|
|
|
},
|
|
|
class: 'test',
|
|
|
});
|
|
|
@@ -150,6 +161,7 @@ export default defineComponent({
|
|
|
// }, 2000);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
return {
|
|
|
visible,
|
|
|
cancel,
|