|
|
@@ -466,9 +466,18 @@ |
|
|
|
axios.post("/hotel.php/order_main/setFinanceMemo", param).then((response) => { |
|
|
|
let data = response.data; |
|
|
|
if (data.flag) { |
|
|
|
this.$message.success("备注成功"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'success', |
|
|
|
message: '备注成功' |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$message.error(response.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:response.msg}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -486,22 +495,38 @@ |
|
|
|
if (data.flag) { |
|
|
|
this.fileTable = data.data |
|
|
|
} else { |
|
|
|
this.$message.error(response.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:response.msg}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleExceed(files, fileList) { |
|
|
|
this.$message.warning(`当前限制选择 1 个文件`); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'warning', |
|
|
|
message:`当前限制选择 1 个文件`}); |
|
|
|
}, |
|
|
|
fileSubmit(){ |
|
|
|
if (this.fileList.length==0) { |
|
|
|
this.$message.error(`请选择文件`); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:`请选择文件`}); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if (this.fileData["name"]=="") { |
|
|
|
this.$message.error(`请输入名称标识`); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:`请输入名称标识`}); |
|
|
|
return false; |
|
|
|
} |
|
|
|
let file = this.fileList[0].response.data.url; |
|
|
@@ -512,7 +537,11 @@ |
|
|
|
this.fileList=[] |
|
|
|
this.showFile(this.fileData["id"]) |
|
|
|
} else { |
|
|
|
this.$message.error(response.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:response.msg}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -583,7 +612,11 @@ |
|
|
|
this.total = data.data.total; |
|
|
|
console.log(this.tableData); |
|
|
|
} else { |
|
|
|
this.$message.error(response.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:response.msg}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -617,14 +650,26 @@ |
|
|
|
let data = response.data; |
|
|
|
console.log(this.tableData); |
|
|
|
if (data.flag) { |
|
|
|
this.$message.success("保存成功"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'success', |
|
|
|
message:"保存成功"}); |
|
|
|
this.editShow = false; |
|
|
|
this.getData(1); |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:data.msg}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
this.$message.error("保存失败"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:"保存失败"}); |
|
|
|
console.log(error); |
|
|
|
}); |
|
|
|
}, |
|
|
@@ -637,19 +682,35 @@ |
|
|
|
axios.post("/hotel.php/receipt_order/setStatus", info).then( (response)=> { |
|
|
|
let data = response.data; |
|
|
|
if (data.flag) { |
|
|
|
this.$message.success("保存成功"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'success', |
|
|
|
message:"保存成功"}); |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:data.msg}); |
|
|
|
this.getData(this.search.pageNum) |
|
|
|
} |
|
|
|
|
|
|
|
}).catch(function (error) { |
|
|
|
this.$message.error("保存失败"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:"保存失败"}); |
|
|
|
console.log(error); |
|
|
|
this.getData(this.search.pageNum) |
|
|
|
}); |
|
|
|
}).catch(() => { |
|
|
|
this.$message.success("已取消"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'success', |
|
|
|
message:"已取消"}); |
|
|
|
this.getData(this.search.pageNum) |
|
|
|
}) |
|
|
|
|
|
|
@@ -672,7 +733,11 @@ |
|
|
|
this.orderMainTotal = data.data.total; |
|
|
|
console.log(this.orderMainList); |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:data.msg}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -686,11 +751,19 @@ |
|
|
|
axios.post("/hotel.php/receipt_order/addOrderMain", param).then((response) => { |
|
|
|
let data = response.data; |
|
|
|
if (data.flag) { |
|
|
|
this.$message.success("保存成功"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'success', |
|
|
|
message:"保存成功"}); |
|
|
|
this.getOrderMainData(this.orderMainListSearch.pageNum) |
|
|
|
this.getData(this.search.pageNum) |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message: data.msg}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -716,11 +789,19 @@ |
|
|
|
axios.post("/hotel.php/receipt_order/removeOrderMain", param).then((response) => { |
|
|
|
let data = response.data; |
|
|
|
if (data.flag) { |
|
|
|
this.$message.success("移除成功"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'success', |
|
|
|
message:"移除成功"}); |
|
|
|
this.getOrderMainData(this.orderMainListSearch.pageNum) |
|
|
|
this.getData(this.search.pageNum) |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message: data.msg}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
@@ -738,16 +819,28 @@ |
|
|
|
axios.post("/hotel.php/receipt_order/delAll", param).then((response) => { |
|
|
|
let data = response.data; |
|
|
|
if (data.flag) { |
|
|
|
this.$message.success("移除成功"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'success', |
|
|
|
message:"移除成功"}); |
|
|
|
this.getData(this.search.pageNum) |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'error', |
|
|
|
message:data.msg}); |
|
|
|
} |
|
|
|
}).catch(function (error) { |
|
|
|
console.log(error); |
|
|
|
}); |
|
|
|
}).catch(() => { |
|
|
|
this.$message.info("保存成功"); |
|
|
|
this.$message({ |
|
|
|
offset:0, |
|
|
|
showClose:true, |
|
|
|
type: 'success', |
|
|
|
message:"保存成功"}); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|