leisure-core 0.4.27 → 0.4.29
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 +3 -0
- package/le-commission-cp/index.js +7 -0
- package/le-commission-cp/src/main.vue +131 -0
- package/le-cp/src/sub.vue +13 -1
- package/le-distribution-category/src/main.vue +3 -1
- package/le-distribution-category/src/sub.vue +5 -1
- package/le-mpurl/src/main.vue +13 -6
- package/le-user/src/sub.vue +4 -3
- package/package.json +1 -1
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,131 @@
|
|
|
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
|
+
methods: {
|
|
104
|
+
current_change({ currentPage }) {
|
|
105
|
+
this.searchData.pageNo = currentPage;
|
|
106
|
+
this.commissionSumList();
|
|
107
|
+
},
|
|
108
|
+
clickList() {
|
|
109
|
+
this.searchData.pageNo = 1;
|
|
110
|
+
this.commissionSumList();
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
list() {
|
|
114
|
+
let params = this.searchData;
|
|
115
|
+
list(params).then((res) => {});
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
</script>
|
|
120
|
+
<style lang="scss" scoped>
|
|
121
|
+
.yeClass {
|
|
122
|
+
padding-left: 10px;
|
|
123
|
+
/* margin-top: 10px; */
|
|
124
|
+
background-color: #f2f6fc;
|
|
125
|
+
height: 40px;
|
|
126
|
+
line-height: 40px;
|
|
127
|
+
font-size: 13px;
|
|
128
|
+
display: flex;
|
|
129
|
+
justify-content: space-between;
|
|
130
|
+
}
|
|
131
|
+
</style>
|
package/le-cp/src/sub.vue
CHANGED
|
@@ -28,10 +28,13 @@
|
|
|
28
28
|
</el-form-item>
|
|
29
29
|
<el-form-item v-rfooter>
|
|
30
30
|
<div style="display: flex">
|
|
31
|
+
<div v-if="!form.cp_link_nick" class="warning-text">
|
|
32
|
+
必须绑定联系人,未绑定,无法统计佣金
|
|
33
|
+
</div>
|
|
31
34
|
<el-button type="primary" @click="onSubmit">保存</el-button>
|
|
32
35
|
<le-button-qr
|
|
33
36
|
:qrCodeUrl="qrcode"
|
|
34
|
-
:fileName="form.
|
|
37
|
+
:fileName="form.cp_name"
|
|
35
38
|
@qrMake="makeQrcode"
|
|
36
39
|
></le-button-qr>
|
|
37
40
|
<el-button @click="close()">取消</el-button>
|
|
@@ -160,3 +163,12 @@ export default {
|
|
|
160
163
|
},
|
|
161
164
|
};
|
|
162
165
|
</script>
|
|
166
|
+
<style scoped>
|
|
167
|
+
.warning-text {
|
|
168
|
+
color: red;
|
|
169
|
+
font-size: 20px;
|
|
170
|
+
font-weight: bold;
|
|
171
|
+
padding-left: 20px;
|
|
172
|
+
width: 500px;
|
|
173
|
+
}
|
|
174
|
+
</style>
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
</el-form-item>
|
|
7
7
|
</el-form>
|
|
8
8
|
<el-table :data="tableData" border row-key="id" stripe style="width: 100%">
|
|
9
|
-
<el-table-column prop="cname" label="
|
|
9
|
+
<el-table-column prop="cname" label="分销类别" width="180">
|
|
10
|
+
</el-table-column>
|
|
11
|
+
<el-table-column prop="ccode" label="分销代码" width="80">
|
|
10
12
|
</el-table-column>
|
|
11
13
|
<el-table-column prop="crate1" label="佣金比例"> </el-table-column>
|
|
12
14
|
<!-- <el-table-column prop="crate2" label="二级佣金比例"> </el-table-column> -->
|
|
@@ -6,9 +6,12 @@
|
|
|
6
6
|
label-position="left"
|
|
7
7
|
label-width="110px"
|
|
8
8
|
>
|
|
9
|
-
<el-form-item label="
|
|
9
|
+
<el-form-item label="分销名称" prop="cname">
|
|
10
10
|
<el-input v-model="form.cname"></el-input>
|
|
11
11
|
</el-form-item>
|
|
12
|
+
<el-form-item label="分销代码" prop="ccode">
|
|
13
|
+
<el-input v-model="form.ccode"></el-input>
|
|
14
|
+
</el-form-item>
|
|
12
15
|
<el-form-item label="佣金比例" prop="crate1">
|
|
13
16
|
<el-input-number
|
|
14
17
|
v-model="form.crate1"
|
|
@@ -56,6 +59,7 @@ export default {
|
|
|
56
59
|
trigger: "blur",
|
|
57
60
|
},
|
|
58
61
|
],
|
|
62
|
+
ccode: [{ required: true, message: "请输入分销代码", trigger: "blur" }],
|
|
59
63
|
crate1: [
|
|
60
64
|
{ required: true, message: "请输入一级佣金比例", trigger: "blur" },
|
|
61
65
|
],
|
package/le-mpurl/src/main.vue
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
<el-table-column prop="code" label="编码" width="50"> </el-table-column>
|
|
12
12
|
<el-table-column prop="mp_path" label="小程序页面" width="150">
|
|
13
13
|
</el-table-column>
|
|
14
|
+
<el-table-column prop="title" label="标题" width="150"> </el-table-column>
|
|
14
15
|
<el-table-column prop="mp_param" label="参数" width="50"> </el-table-column>
|
|
15
16
|
<el-table-column prop="wx_url" label="微信url" width="100">
|
|
16
17
|
</el-table-column>
|
|
@@ -56,12 +57,18 @@ export default {
|
|
|
56
57
|
let code = row.code;
|
|
57
58
|
let param = {};
|
|
58
59
|
param.code = code;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
param.isForce = true;
|
|
61
|
+
getMpLink(param)
|
|
62
|
+
.then((res) => {
|
|
63
|
+
let url = res.data.data;
|
|
64
|
+
if (url) {
|
|
65
|
+
this.list();
|
|
66
|
+
this.$message.success("生成成功");
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
.catch((err) => {
|
|
70
|
+
this.$message.error("生成失败");
|
|
71
|
+
});
|
|
65
72
|
},
|
|
66
73
|
},
|
|
67
74
|
};
|
package/le-user/src/sub.vue
CHANGED
|
@@ -86,8 +86,9 @@
|
|
|
86
86
|
<div style="display: flex">
|
|
87
87
|
<el-button type="info" @click="close()">取消</el-button>
|
|
88
88
|
<le-button-qr
|
|
89
|
+
v-if="ruleUserForm.utype == 2"
|
|
89
90
|
:qrCodeUrl="qrcode"
|
|
90
|
-
:fileName="ruleUserForm.id"
|
|
91
|
+
:fileName="ruleUserForm.nick ?? ruleUserForm.id"
|
|
91
92
|
@qrMake="makeQrcode"
|
|
92
93
|
></le-button-qr>
|
|
93
94
|
<le-button type="primary" text="保存" @click="save"></le-button>
|
|
@@ -212,11 +213,11 @@ export default {
|
|
|
212
213
|
} else {
|
|
213
214
|
this.$message.error(res.data.info);
|
|
214
215
|
}
|
|
215
|
-
this.close();
|
|
216
|
+
// this.close();
|
|
216
217
|
});
|
|
217
218
|
} else {
|
|
218
219
|
console.log("error submit!!");
|
|
219
|
-
this.close();
|
|
220
|
+
// this.close();
|
|
220
221
|
}
|
|
221
222
|
});
|
|
222
223
|
},
|