From e23c8975e6bb0934cb5db46a94d0f83c9739d9ab Mon Sep 17 00:00:00 2001 From: 935090232@qq.com <ak473600000> Date: Sun, 20 Mar 2022 16:33:17 +0800 Subject: [PATCH] 重构:套餐项目 --- zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html | 42 +++++++++++++++++++++++++++++++++++------- 1 files changed, 35 insertions(+), 7 deletions(-) diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html index 1982dfd..f496dba 100644 --- a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html +++ b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/orderXq-form.html @@ -212,8 +212,10 @@ label="单价"> </el-table-column> <el-table-column - prop="count" label="可退数量"> + <template slot-scope="scope"> + {{scope.row.count- scope.row.refundCount}} + </template> </el-table-column> <el-table-column label="退款单价"> <template slot-scope="scope"> @@ -314,9 +316,22 @@ prop="zkTotal" label="收款"> </el-table-column> + <el-table-column - prop="payMethod" - label="支付方式"> + label="支付方式" + width="130"> + <template slot-scope="scope"> + <el-select v-model="scope.row.payMethod" + placeholder="请选择支付方式"> + <el-option + v-for="item in itemSimplePayMethods" + :key="item.value" + :label="item.label" + :value="item.value" + :disabled="item.disabled"> + </el-option> + </el-select> + </template> </el-table-column> <el-table-column prop="t3" @@ -406,6 +421,10 @@ <el-table-column prop="payMethod" label="支付方式"> + </el-table-column> + <el-table-column + prop="cardName" + label="储值卡名称"> </el-table-column> <el-table-column prop="flowNo" @@ -501,6 +520,13 @@ isRefund : false, isReturnAchieve : false, totalRefund : "", + itemSimplePayMethods:[{ + value: '现金', + label:'现金', + },{ + value: '划扣', + label:'划扣', + }], payMethods: [{ value: '现金支付', img: '/images/pay/cash.png', @@ -659,7 +685,7 @@ } } - item.achaeveList = achieveList; + item.achieveList = achieveList; } if (item.returnStore) { item.isReturnStore = 'Y'; @@ -690,7 +716,9 @@ callback: function (data) { _this.isRefund = false; _this.dialogSettleVisible = false; - _this.queryOrderDetailData(_this.data.oldOrderId); + var param = {}; + param.id = _this.data.oldOrderId; + _this.queryOrderDetailData(param); } }); @@ -763,7 +791,7 @@ _this.dialogSettleVisible = true; }, calOrderTotalFormatter(row, column) { - return row.count * row.zkPrice; + return (row.count * row.zkPrice).toFixed(2); }, getVipMoneyCards() { let _this = this; @@ -974,7 +1002,7 @@ title: "打印订单", area: ['250px', '550px'], maxmin: true, - content: [basePath + '/admin/redirect/hive/beautySalon/print-order?id=' + id] + content: [basePath + '/admin/order/printOrder?id=' + id] }); }, handleClick() { -- Gitblit v1.9.1