添加用户 校验手机号

main
yanzai 5 months ago
parent 0ff7b4b890
commit c0a9eebbef

@ -634,10 +634,12 @@ class ReportController extends Controller
$res = $peis::Post('体检报告查询', $hospital->id, [ $res = $peis::Post('体检报告查询', $hospital->id, [
"电话号码" => "", "电话号码" => "",
"证件号码" => $id_number, "证件号码" => $id_number,
"体检号" => '' "体检号" => '',
"包含内部信息"=>true
])['data']; ])['data'];
$list = []; $list = [];
foreach ($res as $item) { foreach ($res as $item) {
if($item['体检状态']=='隐藏显示') continue;
$list[] = [ $list[] = [
'id' => $item['体检号'], 'id' => $item['体检号'],
'title' => explode('T', $item['登记时间'])[0] . ' 体检报告', 'title' => explode('T', $item['登记时间'])[0] . ' 体检报告',

@ -40,6 +40,33 @@ class UserPersonController extends Controller
$relationship = $request->post('relationship'); $relationship = $request->post('relationship');
$marriage = $request->post('marriage'); $marriage = $request->post('marriage');
$default = $request->post('default'); $default = $request->post('default');
$hospital = $request->post('hospital');
$peis = new PEISApiController();
$res = $peis::Post('体检报告查询', $hospital, [
"电话号码" => "",
"证件号码" => $id_number,
"体检号" => "",
"包含内部信息"=>true
]);
if(isset($res['data']) and count($res['data'])>0){
if($res['data'][0]['电话号码']<>$phone){
Yo::error_echo(200099);
}
}else{
//获取三方报告
$sanfang_res = $peis::Post('三方体检报告查询', $hospital, [
"电话号码" => "",
"证件号码" => $id_number,
"报告Id" => ''
])['data'];
if(count($sanfang_res)==0){
Yo::error_echo(200098);
}
}
$user_person_default_count = UserPerson::where('user', Login::$info->id) $user_person_default_count = UserPerson::where('user', Login::$info->id)
->where('del', 2)->where('default', 1)->count(); ->where('del', 2)->where('default', 1)->count();
if ($user_person_default_count == 0) $default = 1; if ($user_person_default_count == 0) $default = 1;

@ -144,4 +144,6 @@ return [
200095 => '验证码无效', 200095 => '验证码无效',
200096 => '短信发送失败', 200096 => '短信发送失败',
200097 => '请选择生日', 200097 => '请选择生日',
200098 => '该用户暂无体检信息,请稍后再试',
200099 => '请输入体检时预留的手机号',
]; ];

@ -3,7 +3,7 @@ let report_url_ = "https://hssbajkyy.sixinyun.com";
let h5_url_ = "https://hssbajkyy.sixinyun.com"; let h5_url_ = "https://hssbajkyy.sixinyun.com";
const dev = 0; const dev = 0;
if (dev === 1) { if (dev === 1) {
url_ = "http://sixintijian"; url_ = "http://hengshuiboai";
report_url_ = "http://192.168.31.106:5173"; report_url_ = "http://192.168.31.106:5173";
h5_url_ = "http://192.168.31.106:5173"; h5_url_ = "http://192.168.31.106:5173";
} }

@ -6,7 +6,7 @@ let url_ = "https://hssbajkyy.sixinyun.com";
let chat_url = "https://hssbajkyy.sixinyun.com" let chat_url = "https://hssbajkyy.sixinyun.com"
const dev =0 const dev =0
if (dev === 1) { if (dev === 1) {
url_ = "http://sixintijian" url_ = "http://hengshuiboai"
chat_url = "http://192.168.31.106:5173" chat_url = "http://192.168.31.106:5173"
} }
export const ReportUrl = (data) => { export const ReportUrl = (data) => {

@ -27,7 +27,7 @@
default: '0' default: '0'
} }
}); });
onShow(() => { onShow(() => {
UserPersonCount() UserPersonCount()
UserPersonInfo() UserPersonInfo()
setTitle() setTitle()
@ -227,6 +227,7 @@ const sendSmsFunc = async () => {
}) })
} }
const saveClick = async () => { const saveClick = async () => {
user_person_info.value.hospital= uni.getStorageSync('HOSPITAL_ID')
if(tongyi.value!='tongyi'){ if(tongyi.value!='tongyi'){
uni.showToast({ uni.showToast({
title: "请阅读并同意用户协议", title: "请阅读并同意用户协议",
@ -362,6 +363,7 @@ const sendSmsFunc = async () => {
<text class="blue_text_wrapper">隐私协议</text> <text class="blue_text_wrapper">隐私协议</text>
</view> </view>
</view> </view>
<view class="tishi">提示请录入检查时留存的手机号</view>
<view @click="saveClick()" class="add_button_wrapper">保存</view> <view @click="saveClick()" class="add_button_wrapper">保存</view>
<view class="blank_wrapper"></view> <view class="blank_wrapper"></view>
</view> </view>
@ -375,6 +377,12 @@ const sendSmsFunc = async () => {
} }
</style> </style>
<style scoped> <style scoped>
.tishi{
padding-left: 40rpx;
margin-top: 20rpx;
color: #ff5500;
font-weight: 700;
}
.break_block_wrapper { .break_block_wrapper {
height: 30rpx; height: 30rpx;
} }

Loading…
Cancel
Save