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