|
|
@@ -9,10 +9,10 @@
|
|
|
@cancel="cancel"
|
|
|
width="890px">
|
|
|
<template #footer>
|
|
|
- <!-- <a-button key="submit"
|
|
|
+ <a-button key="submit"
|
|
|
class="cancelBtn"
|
|
|
@click="submit(1)">保存草稿
|
|
|
- </a-button> -->
|
|
|
+ </a-button>
|
|
|
<a-button key="submit"
|
|
|
type="primary"
|
|
|
:loading="loading"
|
|
|
@@ -282,11 +282,12 @@ import { AllEnums } from '@/services/go/commonService/interface';
|
|
|
import { FormState } from '../add/interface';
|
|
|
import { ValidateErrorEntity } from 'ant-design-vue/es/form/interface';
|
|
|
import { getAddress } from '@/services/go/adress';
|
|
|
-import { AddUserInfoApplyReq } from '@/services/go/ermcp/customInfo/interface';
|
|
|
+import {AddUserInfoApplyReq, ModifyUserInfoApplyReq} from '@/services/go/ermcp/customInfo/interface';
|
|
|
import { getUserId } from '@/services/bus/account';
|
|
|
import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
-import { QueryAddUserInfoApply } from '@/services/go/ermcp/customInfo';
|
|
|
+import {QueryAddUserInfoApply, QueryModifyUserInfoApply} from '@/services/go/ermcp/customInfo';
|
|
|
import { mergeTwoObj } from '@/utils/objHandle';
|
|
|
+import {modifyUserInfo} from "@/views/information/custom/compoments/setup";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'modify-custom',
|
|
|
@@ -323,15 +324,14 @@ export default defineComponent({
|
|
|
.validate()
|
|
|
.then(() => {
|
|
|
const param = toRaw(formState);
|
|
|
- const reqParam: AddUserInfoApplyReq = {
|
|
|
+ const reqParam: ModifyUserInfoApplyReq = {
|
|
|
customername: param.customername, // 必填
|
|
|
- userid: 1, // 写死 必填
|
|
|
+ // userid: param.userid, // 写死 必填
|
|
|
+ userid: 12312,
|
|
|
memberareaid: getUserId(),
|
|
|
userinfotype: Number(param.userinfotype),
|
|
|
username: param.customername,
|
|
|
userstate: OperateType, // 1: 保存草稿 2: 新增
|
|
|
-
|
|
|
- // 以上必填
|
|
|
cardtype: param.cardtype, // 证件类型
|
|
|
cardnum: param.cardnum, // 证件号码
|
|
|
nickname: param.nickname, // 昵称
|
|
|
@@ -342,6 +342,7 @@ export default defineComponent({
|
|
|
cardaddress: param.cardaddress, // 证件地址
|
|
|
cityid: param.cityid, //
|
|
|
districtid: param.districtid, // 地区
|
|
|
+ countryid: 0,
|
|
|
// countryid: param.,9
|
|
|
provinceid: param.provinceid, //省
|
|
|
contactname: param.contactname, // 联系人
|
|
|
@@ -349,7 +350,8 @@ export default defineComponent({
|
|
|
taxpayernum: param.taxpayernum, // 纳税人识别号
|
|
|
email: param.email, // email
|
|
|
};
|
|
|
- requestResultLoadingAndInfo(QueryAddUserInfoApply, reqParam, loading, OperateType === 1 ? ['保存草稿成功', '保存草稿失败:'] : ['新增客户资料成功', '新增客户资料失败:']).then(() => {
|
|
|
+ debugger
|
|
|
+ requestResultLoadingAndInfo(QueryModifyUserInfoApply, reqParam, loading, OperateType === 1 ? ['保存草稿成功', '保存草稿失败:'] : ['新增客户资料成功', '新增客户资料失败:']).then(() => {
|
|
|
cancel();
|
|
|
context.emit('refresh');
|
|
|
});
|