From 71733488cb435b48b3d2724664232e2b9e926253 Mon Sep 17 00:00:00 2001 From: nizongfeng Date: Tue, 7 Feb 2023 17:18:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/view/receipt_order/index.html | 139 ++++++++++++++++++++---- 1 file changed, 116 insertions(+), 23 deletions(-) diff --git a/application/admin/view/receipt_order/index.html b/application/admin/view/receipt_order/index.html index 775192d..4d84fdf 100755 --- a/application/admin/view/receipt_order/index.html +++ b/application/admin/view/receipt_order/index.html @@ -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:"保存成功"}); }); }