更新 WEB 预约增加 无证件号,无预约项目的 接口

main
鹿和sa0ChunLuyu 1 year ago
parent 3d22b924ce
commit b6cd4ce892

@ -517,7 +517,8 @@
ComboGetList: "/api/Web/ComboGetList",
BuyInfo: "/api/Web/BuyInfo",
Create: "/api/Web/Create",
GetDayPlanList: "/api/H5/GetDayPlanList"
GetDayPlanList: "/api/H5/GetDayPlanList",
CreateYuYueOrder: "/api/Web/CreateYuYueOrder"
};
const $api = (key) => {
return api_map[key];
@ -891,10 +892,6 @@
window.$message().error('请输入手机号')
return false
}
if (input_data.value.id_number === '') {
window.$message().error('请输入证件号')
return false
}
return true
}
const planDialogShowClick = () => {
@ -940,8 +937,9 @@
const createOrderClick = async () => {
let item_ids = getSelectItemIds();
let combo_id = select_data.value.combo;
let create_type = true
if (item_ids.length === 0 && !combo_id) {
return window.$message().error('预约内容为空')
create_type = false
}
if (!plan_data.value.active) {
return window.$message().error('请选择预约号源')
@ -950,7 +948,10 @@
if (!check) {
return
}
const response = await axios.post($api("Create"), {
if (input_data.value.id_number === '') {
create_type = false
}
const response = await axios.post($api(!!create_type ? "Create" : 'CreateYuYueOrder'), {
type: 1,
hospital: input_data.value.hospital,
combo_id: combo_id,

Loading…
Cancel
Save