diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index 3879be4..99039f2 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -3,137 +3,141 @@ :show-footer="true"> @@ -178,7 +182,6 @@ import depts from "@/assets/config/directory/depts.json"; import {apiConfig} from "@/assets/config/apiConfig.ts"; - const height = ref(470) const certTypeList = ref( Object.entries(psnCertTypes) @@ -305,8 +308,20 @@ const socialCardUpdate = (e: any) => { edit_data.value.certNo = e.data.baseinfo.certno edit_data.value.age = Math.floor(e.data.baseinfo.age) tableData.value = e.data.insuinfo - if(edit_data.value.certNo){ - + if (edit_data.value.certNo) { + post('vip/vip/list', { + keyword: edit_data.value.certNo, + page: 1, + pageSize: 50 + }).then((res: any) => { + edit_data.value.name = res.list[0].name + edit_data.value.gender = res.list[0].sex + edit_data.value.phone = res.list[0].phone + edit_data.value.certType = Number(res.list[0].certType) + edit_data.value.certNo = res.list[0].certNo + edit_data.value.memo = res.list[0].remark + edit_data.value.visitType = 1 + }) } } nextTick(() => {