|
@@ -2,18 +2,18 @@
|
|
|
|
|
|
|
|
import {BaseResponse, commonSearch_go, commonUpdate_go} from '@/goServiceAPI/index';
|
|
import {BaseResponse, commonSearch_go, commonUpdate_go} from '@/goServiceAPI/index';
|
|
|
import APP from '@/services';
|
|
import APP from '@/services';
|
|
|
-import { QueryCustomInfoEnum } from './type';
|
|
|
|
|
|
|
+import {QueryCustomInfoEnum} from './type';
|
|
|
import {AddUserInfoApplyReq, ModifyUserInfoApplyReq, QueryCustomInfoType} from "./interface";
|
|
import {AddUserInfoApplyReq, ModifyUserInfoApplyReq, QueryCustomInfoType} from "./interface";
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 查询客户资料
|
|
* 查询客户资料
|
|
|
* @param MemberUserID 所属机构用户ID
|
|
* @param MemberUserID 所属机构用户ID
|
|
|
* @param queryType 查询类型(1:未提交 2:待审核 3:正常 4:停用)
|
|
* @param queryType 查询类型(1:未提交 2:待审核 3:正常 4:停用)
|
|
|
- * @returns
|
|
|
|
|
|
|
+ * @returns
|
|
|
*/
|
|
*/
|
|
|
export function QueryCustomInfo(queryType: QueryCustomInfoEnum): Promise<QueryCustomInfoType[]> {
|
|
export function QueryCustomInfo(queryType: QueryCustomInfoEnum): Promise<QueryCustomInfoType[]> {
|
|
|
const MemberUserID = APP.get('userAccount').memberuserid;
|
|
const MemberUserID = APP.get('userAccount').memberuserid;
|
|
|
- return commonSearch_go('/Ermcp/QueryUserInfo', { MemberUserID, queryType })
|
|
|
|
|
|
|
+ return commonSearch_go('/Ermcp/QueryUserInfo', {MemberUserID, queryType})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
throw new Error(`查询客户资料: ${err.message}`);
|
|
throw new Error(`查询客户资料: ${err.message}`);
|
|
|
})
|
|
})
|
|
@@ -25,7 +25,7 @@ export function QueryCustomInfo(queryType: QueryCustomInfoEnum): Promise<QueryCu
|
|
|
* @constructor
|
|
* @constructor
|
|
|
*/
|
|
*/
|
|
|
export function QueryAddUserInfoApply(userInfoApply: AddUserInfoApplyReq): Promise<BaseResponse> {
|
|
export function QueryAddUserInfoApply(userInfoApply: AddUserInfoApplyReq): Promise<BaseResponse> {
|
|
|
- return commonUpdate_go('/Erms3/AddUserInfoApply', userInfoApply )
|
|
|
|
|
|
|
+ return commonUpdate_go('/Erms3/AddUserInfoApply', userInfoApply)
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
throw new Error(`新增客户申请: ${err.message}`);
|
|
throw new Error(`新增客户申请: ${err.message}`);
|
|
|
})
|
|
})
|
|
@@ -37,7 +37,7 @@ export function QueryAddUserInfoApply(userInfoApply: AddUserInfoApplyReq): Promi
|
|
|
* @constructor
|
|
* @constructor
|
|
|
*/
|
|
*/
|
|
|
export function QueryModifyUserInfoApply(userInfoApply: ModifyUserInfoApplyReq): Promise<BaseResponse> {
|
|
export function QueryModifyUserInfoApply(userInfoApply: ModifyUserInfoApplyReq): Promise<BaseResponse> {
|
|
|
- return commonUpdate_go('/Erms3/ModifyUserInfoApply', userInfoApply )
|
|
|
|
|
|
|
+ return commonUpdate_go('/Erms3/ModifyUserInfoApply', userInfoApply)
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
throw new Error(`修改客户申请: ${err.message}`);
|
|
throw new Error(`修改客户申请: ${err.message}`);
|
|
|
})
|
|
})
|