Procházet zdrojové kódy

commit 提交客户资料相关

yu.jie před 4 roky
rodič
revize
13510d3d26

+ 8 - 0
src/utils/storage/base64/index.ts

@@ -15,3 +15,11 @@ export function toBase64(str: string): string {
 export function parseBase64(str: string): string {
     return JSON.parse(decodeURIComponent(atob(str)));
 }
+
+/**
+ * base64编码
+ * @param str
+ */
+export function toBase64String(str: string): string {
+    return btoa(str)
+}

+ 2 - 1
src/views/platinum/platinum_customer_info/compoments/add/index.vue

@@ -307,6 +307,7 @@ import UploadImg from '@/common/components/uploadImg/index.vue';
 import { getUploadImg } from '@/common/setup/upload';
 import { CustomerInfoOperateReq } from '@/services/proto/accountinfo/interface';
 import { initData } from '@/common/methods';
+import {toBase64, toBase64String} from "@/utils/storage/base64";
 
 export default defineComponent({
     name: 'add-custom',
@@ -342,7 +343,7 @@ export default defineComponent({
                     operatetype: 1,
                     areaid: param.areaid as number,
                     logincode: param.logincode,
-                    loginpwd: param.loginpwd,
+                    loginpwd: toBase64String(toBase64String(param.loginpwd)),
                     username: param.username, // 必填
                     userid: getUserId(), // 写死 必填
                     userinfotype: Number(param.userinfotype),

+ 3 - 2
src/views/platinum/platinum_customer_info/compoments/common-detail/index.vue

@@ -21,19 +21,20 @@ import { formatValue } from '@/common/methods';
 import { getCardTypeEnumItemName } from '@/common/constants/enumsName';
 import { Des, DescriptionsList, handleDesList } from '@/common/components/commonDes';
 import { handlePreviewImg } from '@/common/setup/upload';
+import {QhjCustomer} from "@/services/go/ermcp/qhj/interface";
 
 export default defineComponent({
     name: 'custom-detail-desc',
     components: { Des },
     props: {
         selectedRow: {
-            type: Object as PropType<QueryCustomInfoType>,
+            type: Object as PropType<QhjCustomer>,
             default: {},
         },
     },
     setup(props) {
         function isPersonal() {
-            return props.selectedRow.userinfotype === '1';
+            return props.selectedRow.userinfotype === 1;
         }
         const { desList, getDesList } = handleDesList();
         // 预览附件

+ 2 - 1
src/views/platinum/platinum_customer_info/compoments/controlModal/index.vue

@@ -36,13 +36,14 @@ import Recover from '../recover/index.vue';
 import Disable from '../disable/index.vue';
 import Cancel from '../cancel/index.vue';
 import Check from '../check/index.vue';
+import {QhjCustomer} from "@/services/go/ermcp/qhj/interface";
 
 export default defineComponent({
     name: 'custom-control-modal',
     components: { Detail, Delete, Add, Modify, Recover, Disable, Cancel, Check },
     props: {
         selectedRow: {
-            type: Object as PropType<QueryCustomInfoType>,
+            type: Object as PropType<QhjCustomer>,
             default: {},
         },
     },

+ 2 - 1
src/views/platinum/platinum_customer_info/compoments/detail/index.vue

@@ -22,13 +22,14 @@ import { defineComponent, PropType, ref } from 'vue';
 import { closeModal } from '@/common/setup/modal/index';
 import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
 import Detail from '../common-detail/index.vue';
+import {QhjCustomer} from "@/services/go/ermcp/qhj/interface";
 
 export default defineComponent({
     name: 'custom-detail',
     components: { Detail },
     props: {
         selectedRow: {
-            type: Object as PropType<QueryCustomInfoType>,
+            type: Object as PropType<QhjCustomer>,
             default: {},
         },
     },

+ 1 - 1
src/views/platinum/platinum_customer_info/list/normal-use/index.vue

@@ -18,7 +18,7 @@
           <BtnList :btnList="forDataBtn" />
         </template>
         <template #userinfotype="{ text }">
-          <a>{{ text === '2' ? '企业' : '个人' }}</a>
+          <a>{{ text === 2 ? '企业' : '个人' }}</a>
         </template>
         <template #status="{ text }">
           <a>{{ getStatusName(text) }}</a>

+ 1 - 1
src/views/platinum/platinum_customer_info/list/stop-use/index.vue

@@ -18,7 +18,7 @@
           <BtnList :btnList="forDataBtn" />
         </template>
         <template #userinfotype="{ text }">
-          <a>{{ text === '2' ? '企业' : '个人' }}</a>
+          <a>{{ text === 2 ? '企业' : '个人' }}</a>
         </template>
         <template #status="{ text }">
           <a>{{ getStatusName(text) }}</a>