|
|
@@ -1506,7 +1506,32 @@ export default {
|
|
|
that.$message.success(res.message);
|
|
|
that.$emit("ok", res.result);
|
|
|
} else {
|
|
|
- that.$message.warning(res.message);
|
|
|
+ if (res.message.indexOf("与预约时间有冲突") >= 0) {
|
|
|
+ that.$confirm({
|
|
|
+ title: "提示",
|
|
|
+ content: res.message + "是否确定入住?",
|
|
|
+ onOk: function () {
|
|
|
+ that.model.confirm = true;
|
|
|
+ httpAction(httpurl, that.model, method)
|
|
|
+ .then((res) => {
|
|
|
+ if (res.success) {
|
|
|
+ that.$message.success(res.message);
|
|
|
+ that.$emit("ok", res.result);
|
|
|
+ } else {
|
|
|
+ if (res.message.indexOf("与预约时间有冲突") >= 0) {
|
|
|
+ } else {
|
|
|
+ that.$message.warning(res.message);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .finally(() => {
|
|
|
+ that.confirmLoading = false;
|
|
|
+ });
|
|
|
+ },
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ that.$message.warning(res.message);
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
.finally(() => {
|