Просмотр исходного кода

1 合同签署增加港澳通行证支持
2 服务端错误信息显示增加错误码显示

Handy_Cao 1 год назад
Родитель
Сommit
a0966682a9

+ 2 - 1
src/business/user/account.ts

@@ -265,7 +265,8 @@ export function useRequestCreateFlowByTemplateDirectly(memberId?: number) {
                 data.personInfo = {
                     idCardNumber: decryptAES(userInfo.cardnum),
                     mobile: userInfo.mobile2,
-                    name: userInfo.customername
+                    name: userInfo.customername,
+                    idCardType: userInfo.cardtypeid ?? 0
                 }
             } else {
                 data.organizationInfo = {

+ 1 - 1
src/packages/sbyj/views/account/certification/Index.vue

@@ -53,7 +53,7 @@ import { shallowRef, onMounted } from 'vue'
 import { CellGroup, Button, Field, Form, FormInstance, showFailToast, FieldRule, Image } from 'vant'
 import { fullloading, dialog } from '@/utils/vant';
 import { getFileUrl, getIdCardAge } from '@/filters';
-import { getCerTypePersonList } from "@/constants/account";
+import { getCerTypePersonList } from "@/constants/account"
 import { useRequest } from '@/hooks/request'
 import { queryTencentUsereSignRecords, requestCheckCardNum } from '@/services/api/account';
 import { addAuthReq } from '@/business/user/account';

+ 2 - 0
src/packages/sbyj/views/account/protocol/Index.vue

@@ -7,6 +7,7 @@
             <CellGroup inset>
                 <Cell title="姓名" :value="userInfo.customername" />
                 <Cell title="手机号码" :value="userInfo.mobile2" />
+                <Cell title="证件类型" :value="getCerTypePersonName(userInfo.cardtypeid)" />
                 <Cell title="证件号码" :value="decryptAES(userInfo.cardnum)" />
                 <Cell title="签署机构" :value="signId" />
             </CellGroup>
@@ -26,6 +27,7 @@ import { fullloading } from '@/utils/vant';
 import { useNavigation } from '@mobile/router/navigation'
 import { requestInitTencentESS } from '@/services/api/account'
 import { useRequestCreateFlowByTemplateDirectly } from '@/business/user/account'
+import { getCerTypePersonName } from "@/constants/account"
 import { decryptAES } from '@/services/websocket/package/crypto'
 import plus from '@/utils/h5plus'
 

+ 1 - 1
src/services/http/index.ts

@@ -266,7 +266,7 @@ export default new (class {
                     return Promise.resolve(res)
                 }
                 const { getErrorInfoByCode } = useErrorInfoStore()
-                const msg = getErrorInfoByCode(res.RetCode ?? res.Status)
+                const msg = getErrorInfoByCode(res.RetCode ?? res.Status) + `[${res.RetCode}]`
                 const error = String(res.RetDesc || res.RetCode || res.Status)
                 return Promise.reject(msg ?? error)
             }

+ 2 - 0
src/types/model/user.d.ts

@@ -349,6 +349,8 @@ declare namespace Model {
         mobile?: string
         /// 姓名
         name?: string
+        /// 证件类型 0-身份证 1-港澳通行证
+        idCardType?: number
     }
 
     /// 通过合同名和模板 id 直接发起签署流程 - 请求