diff --git a/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue b/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue index a01a944..914fe64 100644 --- a/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue +++ b/collect_information/src/subPages/projectManager/securityUserForm/securityUserForm.vue @@ -71,7 +71,7 @@ - 姓名:{{ securityNumberByIdCard?.name ? securityNumberByIdCard?.name : '无' }} + 姓名:{{ securityNumberByIdCard.name ? securityNumberByIdCard.name : '无' }} 保安证件号:{{ securityNumberByIdCard?.bayzh ? securityNumberByIdCard?.bayzh : '无' }} 身份证:{{ securityNumberByIdCard?.sfzhm ? securityNumberByIdCard?.sfzhm : '无' }} @@ -90,17 +90,17 @@ import dayjs from 'dayjs' import { SecurityUserFormParams, securityNumberByIdCard } from '@/types/subPages/projectManager/securityUserForm' import { FormInstance } from '@nutui/nutui-taro' import { generateSimpleObjectName, getResignedObjectUrl } from '@/utils' -import {IconFont} from "@nutui/icons-vue-taro"; -const SEX = enumSelectNodes('Sex') +const SEX:any = enumSelectNodes('Sex') const minioBaseUrl = process.env.TARO_APP_MINIO_URL +const BUCKET = process.env.TARO_APP_MINIO_BUCKET const showPicker = ref(false) const Url = ref('') const type = ref<'formInput' | 'QcCodeInput'>(null!) const formData = ref({} as any) const formRef = ref(null!) const visible = ref(false) -const securityNumberByIdCard = ref() +const securityNumberByIdCard = ref() const uploadRef = ref(null) const modelValue = ref('') @@ -144,27 +144,32 @@ useLoad((options) => { const idCardBlur = async (e: any, num: number) => { const value = e.idCard if (value) { - Taro.request({ - url: 'https://www.hnjinglian.cn:5678/common/querySecurityNumberByIdCard', - data: { - idCard: value, - }, - method: 'GET', - success: ({ data }) => { - visible.value = true - securityNumberByIdCard.value = data.data - }, - }) - return + if(BUCKET === 'police-security-dev'){ + Taro.request({ + url: 'https://www.hnjinglian.cn:5678/common/querySecurityNumberByIdCard', + data: { + idCard: value, + }, + method: 'GET', + success: ({ data }) => { + console.log(data.data) + visible.value = true + securityNumberByIdCard.value = data.data + }, + }) + }else{ + const resp = await api.get('/common/querySecurityNumberByIdCard',{ idCard: value}) + visible.value = true + securityNumberByIdCard.value = resp?.data + } } else { visible.value = false - console.log(value) } cardBlur(value, num) } -const cardBlur = (e, num) => { - let value = '' +const cardBlur = (e:any, num:number) => { + let value: string if (num === 0) { value = e } else { diff --git a/collect_information/types/subPages/projectManager/securityUserForm/index.ts b/collect_information/types/subPages/projectManager/securityUserForm/index.ts index a86cb44..970fe07 100644 --- a/collect_information/types/subPages/projectManager/securityUserForm/index.ts +++ b/collect_information/types/subPages/projectManager/securityUserForm/index.ts @@ -4,10 +4,10 @@ export interface SecurityUserFormParams { serviceProjectId: string; name: string | undefined; workPost?: string; - telephone: value | null; - sex: number; + telephone: value | any; + sex: number | any; nativePlace?: string; - idCard: value | null; + idCard: value | any; dateOfBirth?: Date | null; securityNumber?: string; photo?:string; @@ -21,8 +21,8 @@ export interface value{ originalValue?:string } -export interface securityNumberByIdCard{ +export interface securityNumberByIdCard { name: string | undefined - bayzh?: string - sfzhm?: string + bayzh?: string | undefined + sfzhm?: string | undefined } diff --git a/securityManagement/.env.development b/securityManagement/.env.development index 91e16ee..2ebc8d4 100644 --- a/securityManagement/.env.development +++ b/securityManagement/.env.development @@ -1,4 +1,4 @@ -VITE_APP_NAME=超级后台 +VITE_APP_NAME=保安后台 VITE_APP_ENV=development VITE_APP_PORT=1000 VITE_DROP_CONSOLE=false diff --git a/securityManagement/.env.production b/securityManagement/.env.production index 47ef829..253a03f 100644 --- a/securityManagement/.env.production +++ b/securityManagement/.env.production @@ -1,4 +1,4 @@ -VITE_APP_NAME=超级后台 +VITE_APP_NAME=保安后台 VITE_APP_ENV=production VITE_APP_PORT=1001 VITE_DROP_CONSOLE=true diff --git a/securityManagement/package.json b/securityManagement/package.json index c9a6753..219ee71 100644 --- a/securityManagement/package.json +++ b/securityManagement/package.json @@ -1,6 +1,6 @@ { - "name": "supermanagement", - "appName": "超级后台", + "name": "securitymanagement", + "appName": "保安后台", "private": true, "version": "1.0.0", "type": "module", diff --git a/securityManagement/src/views/serviceManagement/index.vue b/securityManagement/src/views/serviceManagement/index.vue index dd36fff..e62124b 100644 --- a/securityManagement/src/views/serviceManagement/index.vue +++ b/securityManagement/src/views/serviceManagement/index.vue @@ -258,6 +258,8 @@ const idNumberDisabled = ref(true) const netType = computed(() => { return formParams.value.type === 'security' ? dictSelectNodes("ServiceProjectTwoType") : dictSelectNodes("UserType" as any) }) + + const formItemOptions = ref>({ name: { type: 'input', @@ -287,10 +289,14 @@ const formItemOptions = ref{ console.log(value) enterprisesUnitId.value = value + }, + filterOption:(input: string, option: any)=>{ + return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0; } } }, diff --git a/securityManagement/src/views/test.vue b/securityManagement/src/views/test.vue index 2f1c317..303d98b 100644 --- a/securityManagement/src/views/test.vue +++ b/securityManagement/src/views/test.vue @@ -1,20 +1,10 @@