更新医生列表

main
yanzai 1 year ago
parent a043cef78c
commit de9e50171a

@ -5,6 +5,7 @@ namespace App\Http\Controllers\API\H5;
use App\Http\Controllers\API\AspNetZhuanController;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
class DoctorController extends Controller
{
@ -15,6 +16,9 @@ class DoctorController extends Controller
$hospital = request('hospital');
$month = request('month');
$doctor_id = request('doctor_id');
$person_id = request('person_id');
if(!isset($person_id)) return \Yz::echoError1("用户id缺失");
$personInfo=DB::table('web_user_person')->where('id',$person_id)->first();
$hospital_map = [
'h1' => '6',
@ -51,19 +55,28 @@ class DoctorController extends Controller
"data" => $datesArray,
"action" => "1"
]);
// return \Yz::Return(true,"",$res);
// return \Yz::Return(true,"",['data'=>$res]);
$list = [];
$keshi=[
'A0030090'=>'内科',
'A0030091'=>'妇科',
'A0030102'=>'外科'
];
$keshi_sex_list=[
'A0030116'=>'2',
'A0030106'=>'1'
];
if ($res['code'] == '200' && count($res['yisheng']) != 0) {
foreach ($res['yisheng'] as $key => $value) {
$keshiname='';
$keshi_sex='';
if(isset($keshi[$value['KSID']])){
$keshiname=$keshi[$value['KSID']];
}
if(isset($keshi_sex_list[$value['KSID']])){
$keshi_sex=$keshi_sex_list[$value['KSID']];
}
if($keshi_sex==$personInfo->sex){
$list[] = [
'head_img' => 'data:image/jpeg;base64,' . $value['U_IMG'],
'name' => $value['U_NAME'],
@ -72,9 +85,13 @@ class DoctorController extends Controller
'hospital' => '',
'time' => $value['U_GDPB'],
'desc' => $value['U_JIANJIE'],
'keshiname'=>$keshiname
'keshiname'=>$keshiname,
'keshi_id'=>$value['KSID'],
'keshi_sex'=>$keshi_sex,
];
}
}
}
$paiban=[];
$dates=[];

@ -12,6 +12,7 @@ import { useStore } from "@/store";
const $store = useStore();
let dqDate = ref("");
let yytjInfo = ref({}); //
let buy_info=ref({});
const $props = defineProps({
date: {
type: String,
@ -28,6 +29,7 @@ const mountedAction = () => {
uni.showLoading({
title: "加载中",
});
buy_info.value= $store.getBuyInfo();
yytjInfo.value = $store.getYytjInfo();
yytjInfo.value = {
doctor_date: "",
@ -48,7 +50,8 @@ const getdoctorList = async () => {
let obj = {
hospital: $store.save.hospital,
date: dqDate.value,
month:$props.month
month:$props.month,
person_id:buy_info.value.person_id
};
const response = await $api("DoctorGetList", obj);
$response(response, () => {

@ -123,7 +123,7 @@
yytjInfo.value.doctor_date = e.fulldate;
$store.setYytjInfo(yytjInfo.value);
uni.navigateTo({
url: '/pages/main/combo/combo?keshi_name='+DoctorInfo.value.keshiname
url: '/pages/main/combo/combo?keshi_name='+DoctorInfo.value.keshiname+'&keshi_sex='+DoctorInfo.value.keshi_sex
})
}
const changerl = (e) => {
@ -164,7 +164,8 @@
let obj = {
hospital: $store.save.hospital,
month:month,
doctor_id:yytjInfo.value.doctor_id?yytjInfo.value.doctor_id:null
doctor_id:yytjInfo.value.doctor_id?yytjInfo.value.doctor_id:null,
person_id:buyInfo.value.person_id
};
uni.showLoading({
title: "加载中",

Loading…
Cancel
Save