This commit is contained in:
parent
895c0c8c62
commit
18c14241cb
File diff suppressed because it is too large
Load Diff
|
@ -55,6 +55,7 @@ const searchSecurityUnitId = debounce(async () => {
|
||||||
const res = await axios.get(`https://www.hnjinglian.cn:5678/common/querySecurityNumberByIdCard?idCard=${_formParams.idCard}`)
|
const res = await axios.get(`https://www.hnjinglian.cn:5678/common/querySecurityNumberByIdCard?idCard=${_formParams.idCard}`)
|
||||||
if (res.data?.data?.hasOwnProperty('bayzh')) {
|
if (res.data?.data?.hasOwnProperty('bayzh')) {
|
||||||
_formParams.securityNumber = res.data.data.bayzh
|
_formParams.securityNumber = res.data.data.bayzh
|
||||||
|
_formParams.name = res.data.name
|
||||||
message.success(res.data.message)
|
message.success(res.data.message)
|
||||||
} else {
|
} else {
|
||||||
message.error('未查询到保安证件号')
|
message.error('未查询到保安证件号')
|
||||||
|
@ -64,6 +65,7 @@ const searchSecurityUnitId = debounce(async () => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.data?.hasOwnProperty('bayzh')) {
|
if (res.data?.hasOwnProperty('bayzh')) {
|
||||||
_formParams.securityNumber = res.data.bayzh
|
_formParams.securityNumber = res.data.bayzh
|
||||||
|
_formParams.name = res.data.name
|
||||||
message.success(res.message)
|
message.success(res.message)
|
||||||
} else {
|
} else {
|
||||||
message.error('未查询到保安证件号')
|
message.error('未查询到保安证件号')
|
||||||
|
@ -125,7 +127,7 @@ const saveOrUpdateEnterprisesUnit = (callback: Function, params, type: string) =
|
||||||
telephone: {
|
telephone: {
|
||||||
type: 'input',
|
type: 'input',
|
||||||
label: '手机号',
|
label: '手机号',
|
||||||
required: true,
|
// required: true,
|
||||||
},
|
},
|
||||||
sex: {
|
sex: {
|
||||||
type: 'radioGroup',
|
type: 'radioGroup',
|
||||||
|
|
Loading…
Reference in New Issue