leisure-core 0.4.28 → 0.4.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -37,6 +37,7 @@ import LeUpload from "./le-upload/index.js";
37
37
  import LePromotions from "./le-promotions/index.js";
38
38
  import LePromotionsActivities from "./le-promotions-activities/index.js";
39
39
  import LeCommission from "./le-commission/index.js";
40
+ import LeCommissionCp from "./le-commission-cp/index.js";
40
41
  import LeMpurl from "./le-mpurl/index.js";
41
42
  import { LeHelp, LeHelpDetail } from "./le-help/index.js";
42
43
  import LeDistribution from "./le-distribution/index.js";
@@ -82,6 +83,7 @@ const components = [
82
83
  LePromotions,
83
84
  LePromotionsActivities,
84
85
  LeCommission,
86
+ LeCommissionCp,
85
87
  LeMpurl,
86
88
  LeHelp,
87
89
  LeHelpDetail,
@@ -198,6 +200,7 @@ export default {
198
200
  LePromotions,
199
201
  LePromotionsActivities,
200
202
  LeCommission,
203
+ LeCommissionCp,
201
204
  LeMpurl,
202
205
  LeHelp,
203
206
  LeHelpDetail,
@@ -0,0 +1,7 @@
1
+ import LeCommissionCp from "./src/main.vue";
2
+
3
+ LeCommissionCp.install = function (Vue) {
4
+ Vue.component(LeCommissionCp.name, LeCommissionCp);
5
+ };
6
+
7
+ export default LeCommissionCp;
@@ -0,0 +1,136 @@
1
+ <template>
2
+ <div>
3
+ <div class="divSearch">
4
+ <el-form :inline="true" :model="searchData">
5
+ <el-form-item label="酒店名称">
6
+ <el-input
7
+ v-model="searchData.cname"
8
+ placeholder="酒店名称"
9
+ ></el-input>
10
+ </el-form-item>
11
+ <el-form-item label="手机号">
12
+ <el-input
13
+ v-model="searchData.cphone"
14
+ placeholder="联系人手机号"
15
+ ></el-input>
16
+ </el-form-item>
17
+ <el-form-item label="订单号">
18
+ <el-input v-model="searchData.ono" placeholder="订单号"></el-input>
19
+ </el-form-item>
20
+ <el-form-item>
21
+ <el-button type="primary" @click="clickList">查询</el-button>
22
+ </el-form-item>
23
+ </el-form>
24
+ </div>
25
+ <vxe-table :data="tableData" align="center" border stripe>
26
+ <vxe-column field="cname" title="酒店名称"> </vxe-column>
27
+ <vxe-column field="cphone" title="手机号"> </vxe-column>
28
+ <vxe-column field="ono" title="订单号"> </vxe-column>
29
+ <vxe-column field="omoney" title="订单金额(元)">
30
+ <template slot-scope="scope">
31
+ <span>¥{{ formatMoney(scope.row.omoney) }}</span>
32
+ </template>
33
+ </vxe-column>
34
+ <vxe-column align="center" title="佣金(元)">
35
+ <template slot-scope="scope">
36
+ <span>¥{{ formatMoney(scope.row.commissions) }}</span>
37
+ </template>
38
+ </vxe-column>
39
+ <vxe-column align="center" title="交易日期">
40
+ <template slot-scope="scope">
41
+ <span>{{ parseTime(scope.row.cdate) }}</span>
42
+ </template>
43
+ </vxe-column>
44
+ <vxe-column title="操作" align="center" width="220">
45
+ <!-- <template slot-scope="scope">
46
+ <el-button
47
+ type="primary"
48
+ size="small"
49
+ @click="dispListDetail(scope.row)"
50
+ style="margin-right: 2px"
51
+ >
52
+ 详情
53
+ </el-button>
54
+ </template> -->
55
+ </vxe-column>
56
+ </vxe-table>
57
+ <div style="text-align: center; margin-top: 30px; width: 100%">
58
+ <vxe-pager
59
+ align="center"
60
+ :current-page="searchData.pageNo"
61
+ :page-size="10"
62
+ :total="total"
63
+ :layouts="['PrevPage', 'JumpNumber', 'NextPage', 'Total']"
64
+ @page-change="current_change"
65
+ ></vxe-pager>
66
+ </div>
67
+ <!-- <le-dialog-container
68
+ width="90%"
69
+ title="促销详情"
70
+ :showDialog="showListDetails"
71
+ @close="closeDetailsDialog"
72
+ :showFooter="true"
73
+ :showSaveBtn="false"
74
+ >
75
+ <le-commission-sub
76
+ :account="account"
77
+ v-if="showListDetails"
78
+ ></le-commission-sub>
79
+ </le-dialog-container> -->
80
+ </div>
81
+ </template>
82
+ <script>
83
+ import { list } from "@/api/commission_cp";
84
+ // import LeCommissionSub from "./sub.vue";
85
+
86
+ export default {
87
+ name: "le-commission-cp",
88
+ // components: { LeCommissionSub },
89
+ data() {
90
+ return {
91
+ showListDetails: false,
92
+ tableData: [],
93
+ searchData: {
94
+ cname: "",
95
+ cphone: "",
96
+ ono: "",
97
+ pageNo: 1,
98
+ },
99
+ total: 0,
100
+ };
101
+ },
102
+ mounted() {
103
+ this.list();
104
+ },
105
+ methods: {
106
+ current_change({ currentPage }) {
107
+ this.searchData.pageNo = currentPage;
108
+ this.list();
109
+ },
110
+ clickList() {
111
+ this.searchData.pageNo = 1;
112
+ this.list();
113
+ },
114
+
115
+ list() {
116
+ let params = this.searchData;
117
+ list(params).then((res) => {
118
+ this.tableData = res.data.data.list;
119
+ this.total = res.data.data.count;
120
+ });
121
+ },
122
+ },
123
+ };
124
+ </script>
125
+ <style lang="scss" scoped>
126
+ .yeClass {
127
+ padding-left: 10px;
128
+ /* margin-top: 10px; */
129
+ background-color: #f2f6fc;
130
+ height: 40px;
131
+ line-height: 40px;
132
+ font-size: 13px;
133
+ display: flex;
134
+ justify-content: space-between;
135
+ }
136
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.4.28",
3
+ "version": "0.4.30",
4
4
  "description": "leisure-core是leisure-ui-core的简称,是京心数据基于vue2.0开发的一套后台系统框架与js库,包含登录,首页框架等",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",