From 149a4f21c685c33415bfb1ca71d55e4511afe104 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 06 Jan 2021 18:58:20 +0800
Subject: [PATCH] modify
---
zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/order-form.html | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 50 insertions(+), 2 deletions(-)
diff --git a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/order-form.html b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/order-form.html
index 32fa43e..2e32d03 100644
--- a/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/order-form.html
+++ b/zq-erp/src/main/resources/templates/views/admin/hive/beautySalon/order-form.html
@@ -461,7 +461,23 @@
<el-col class="paymethod" :span="15">
<el-row>
<ul>
- <li v-for="(item, index) in payMethods" :class="{active : item.isActive}">{{item.value}}</li>
+ <div v-for="(item, index) in payMethods">
+ <el-popover
+ :disabled="item.type != 1"
+ placement="bottom"
+ width="200"
+ trigger="click">
+ <el-tree :data="moneyCards"
+ show-checkbox
+ default-expand-all
+ node-key="id"
+ ref="tree"
+ highlight-current
+ :props="defaultProps">
+ </el-tree>
+ <li :class="{active : item.isActive}" @click="payMethodSelect(item, index)" slot="reference">{{item.value}}</li>
+ </el-popover>
+ </div>
</ul>
</el-row>
</el-col>
@@ -563,7 +579,26 @@
},],
achieveList: [],
//会员可用的充值卡
- moneyCards: [],
+ moneyCards: [
+ {
+ id: 1,
+ label: '一级 1',
+ children: [{
+ id: 4,
+ label: '二级 1-1',
+ children: []
+ }]
+ },
+ {
+ id: 2,
+ label: '一级 2',
+ children: [{
+ id: 3,
+ label: '二级 2-1',
+ children: []
+ }]
+ }
+ ],
//门店信息
shopInfo: {},
@@ -582,6 +617,10 @@
/******搜索表格数据END********/
dialogSettleVisible : true,
+ defaultProps: {
+ children: 'children',
+ label: 'label'
+ }
},
@@ -1109,6 +1148,15 @@
},
+ payMethodSelect(item, index) {
+ this.$nextTick(function () {
+ if (item.isActive) {
+ Vue.set(item,'isActive',false);
+ } else {
+ Vue.set(item,'isActive',true);
+ }
+ });
+ }
}
})
--
Gitblit v1.9.1