团检 选人bug

main
yanzai 10 months ago
parent 225308c1aa
commit 1b8e7afcc8

@ -37,14 +37,38 @@ const configRef = (e) => {
getPersonList(); getPersonList();
} }
}; };
const getUserInfo = async () => {
const response = await $api("UserInfo");
$response(response, () => {
// $store.user = response.data.info
$store.setUser(response.data.info);
$store.setYytjInfo({}); //
let buyinfo=$store.getBuyInfo()
buyinfo.person_id=response.data.info.person_id
$store.setBuyInfo(buyinfo);
// uni.$lu.toast("");
// uni.navigateBack({
// delta: 1,
// });
});
};
const choosePersonClick = async (info) => { const choosePersonClick = async (info) => {
uni.showLoading();
const response1 = await $api("SetDefaultPerson", {
person_id: info.id,
});
$response(response1, () => {
getUserInfo();
});
// ID // ID
const response = await $api("GetGroupUnit", { const response = await $api("GetGroupUnit", {
hospital_id: $store.save.hospital, hospital_id: $store.save.hospital,
id_number: info.id_number, id_number: info.id_number,
phone: info.phone, phone: info.phone,
}); });
uni.hideLoading();
$response(response, () => { $response(response, () => {
unitList.value = response.data.unit; unitList.value = response.data.unit;
if (response.data.unit.length > 1) { if (response.data.unit.length > 1) {

Loading…
Cancel
Save