|
|
@@ -475,7 +475,12 @@ |
|
|
|
this.city = data.data; |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true,duration:500, |
|
|
|
type: 'error', |
|
|
|
message: data.msg |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -496,7 +501,12 @@ |
|
|
|
if (data.flag) { |
|
|
|
this.area = data.data; |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true,duration:500, |
|
|
|
type: 'error', |
|
|
|
message: data.msg |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -603,7 +613,12 @@ |
|
|
|
if (data.flag) { |
|
|
|
this.province = data.data; |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true,duration:500, |
|
|
|
type: 'error', |
|
|
|
message: data.msg |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -626,7 +641,12 @@ |
|
|
|
this.tableData = data.data.list; |
|
|
|
this.total = data.data.total; |
|
|
|
} else { |
|
|
|
this.$message.error(response.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true,duration:500, |
|
|
|
type: 'error', |
|
|
|
message: response.msg |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -640,9 +660,19 @@ |
|
|
|
axios.post("/hotel.php/order_main/addMemo", this.addMemo).then((response) => { |
|
|
|
let data = response.data; |
|
|
|
if (data.flag) { |
|
|
|
this.$message.success("添加成功"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true,duration:500, |
|
|
|
type: 'success', |
|
|
|
message: "添加成功" |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$message.error(response.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true,duration:500, |
|
|
|
type: 'error', |
|
|
|
message: "response.msg" |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -661,7 +691,12 @@ |
|
|
|
|
|
|
|
this.memoList = data.data.list; |
|
|
|
} else { |
|
|
|
this.$message.error(response.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true,duration:500, |
|
|
|
type: 'error', |
|
|
|
message: "response.msg" |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -683,9 +718,19 @@ |
|
|
|
let data = response.data; |
|
|
|
if (data.flag) { |
|
|
|
this.tableData[index].hot_seq=val |
|
|
|
this.$message.success("设置成功"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true,duration:500, |
|
|
|
type: 'success', |
|
|
|
message: "设置成功" |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$message.error(response.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true,duration:500, |
|
|
|
type: 'error', |
|
|
|
message: "response.msg" |
|
|
|
}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
|