From e0437d0452badd411685ef7c6c846f5721fd2f7c Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Fri, 18 Feb 2022 11:30:25 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/api_score_meger' into api_score_meger --- zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/cz-form.html | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/cz-form.html b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/cz-form.html index d30d303..174a386 100644 --- a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/cz-form.html +++ b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/cz-form.html @@ -218,6 +218,7 @@ userList: [], treeSelect : [], payMoneys : [], + order:{}, printPaper : false, }, created : function() { @@ -324,8 +325,19 @@ data: _this.cardInfo, url: url, callback: function (data) { + _this.order.id = data.mapInfo.orderId; + if (_this.printPaper) { + _this.$message.success(data.info); _this.print(); + } else { + _this.$message.success({ + message : data.info, + duration : 1000, + onClose() { + _this.closeFrame(); + } + }); } if(parent.myGrid) { @@ -336,7 +348,7 @@ parent.app.vipInfoFn(); } - _this.closeFrame(); + // _this.closeFrame(); } }); } @@ -352,9 +364,9 @@ title: "打印订单", area: ['250px', '550px'], maxmin: true, - content: [basePath + '/admin/redirect/hive/beautySalon/print-order?id=' + this.order.id], + content: [basePath + '/admin/order/printOrder?id=' + this.order.id], cancel: function (index, layero) { - _this.closeFram(); + _this.closeFrame(); } }); } else { -- Gitblit v1.9.1