更新 婚检信息

main
鹿和sa0ChunLuyu 1 year ago
parent ec9d74465c
commit cff5643fc6

@ -73,7 +73,7 @@ class AspNetZhuanController extends Controller
public static function GetPersonInfo($data) public static function GetPersonInfo($data)
{ {
$res= self::Post(self::$BaseUrl . '/renyuan.aspx',$data,'获取人员档案'); $res= self::Post(self::$BaseUrl . '/renyuan.aspx',$data,'获取人员档案');
return $res['data']; return $res['data'] ?? false;
} }
//获取报告解读日期和状态 //获取报告解读日期和状态
public static function GetReportAnalysis($data) public static function GetReportAnalysis($data)

@ -23,8 +23,79 @@ class UserController extends Controller
"action" => "1" "action" => "1"
]); ]);
} }
$id_type_map = [
'居民身份证' => '1'
];
$person_info = [
'姓名' => ''
];
if (!!$res) {
$person_info = [
'国籍' => $res['MZ'] == '外国血统' ? '外国' : '中国',
'证件类型' => 1,
'证件号' => $res['ID_No'] ?? '',
'姓名' => $res['Patname'] ?? '',
'生日' => $res['Patbdate'] ? date('Y-m-d', strtotime($res['Patbdate'])) : date('Y-m-d'),
'民族' => $res['MZ'] ?? '',
'现地址省市区' => [
[
'value' => '11',
'text' => '北京市'
],
[
'value' => '1101',
'text' => '市辖区'
],
[
'value' => '110101',
'text' => '东城区'
],
],
'现地址' => $res['Address'] ?? '',
'详细地址省市区' => [
[
'value' => '11',
'text' => '北京市'
],
[
'value' => '1101',
'text' => '市辖区'
],
[
'value' => '110101',
'text' => '东城区'
],
],
'详细地址' => $res['Fulladdress'] ?? '',
'户籍地址省市区' => [
[
'value' => '11',
'text' => '北京市'
],
[
'value' => '1101',
'text' => '市辖区'
],
[
'value' => '110101',
'text' => '东城区'
],
],
'户籍地址' => '',
'工作单位' => "",
'文化程度' => "",
'职业' => "",
'出生地' => "",
'配偶姓名' => "",
'配偶证件类型' => 0,
'配偶证件号' => "",
'血缘关系' => "无",
'邮政编码' => "",
'手机号码' => $res['Mobile'] ?? '',
];
}
return \Yz::Return(true, '获取成功', [ return \Yz::Return(true, '获取成功', [
'info' => $res ?? ['Patid' => ''] 'info' => $person_info
]); ]);
} }
// 获取配置更新时间 // 获取配置更新时间
@ -65,7 +136,6 @@ class UserController extends Controller
]); ]);
} }
} }
} }
//获取名下体检人列表 //获取名下体检人列表
@ -116,10 +186,10 @@ class UserController extends Controller
$person->save_money = $save_money; $person->save_money = $save_money;
$person->coupon_count = $coupon_count; $person->coupon_count = $coupon_count;
return \Yz::Return(true, "查询完成", ['person_info' => $person]); return \Yz::Return(true, "查询完成", ['person_info' => $person]);
} }
public function tttt(){ public function tttt()
{
$XCX = new XCXApiController(); $XCX = new XCXApiController();
$data = [ $data = [
'wxid' => 'oosgJj-SVIxTrm_g1p213tsSHK5g' 'wxid' => 'oosgJj-SVIxTrm_g1p213tsSHK5g'
@ -239,6 +309,5 @@ class UserController extends Controller
// DB::table('web_user_person')->where(['id'=>$p_list[0]->id])->update(['is_default'=>1]); // DB::table('web_user_person')->where(['id'=>$p_list[0]->id])->update(['is_default'=>1]);
// } // }
return true; return true;
} }
} }

@ -42,11 +42,30 @@
}) })
} }
}) })
getUserInfo();
})
}
const getUserInfo = async () => {
uni.showLoading({
title: "加载中",
});
const response = await $api('UserInfo')
uni.hideLoading();
$response(response, () => {
$store.setUser(response.data.info);
getUserHunjian()
})
}
const getUserHunjian = async () => {
const response = await $api('UserHunjian', {
person_id: $store.user.person_id,
})
$response(response, () => {
}) })
} }
// const getAddressData = () => {
// address_data.value = $address
// }
const mountedAction = () => { const mountedAction = () => {
getAddressData() getAddressData()

Loading…
Cancel
Save