leisure-core 0.4.51 → 0.4.52
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 +2 -71
- package/le-common-page/src/main.vue +22 -72
- package/le-common-page/src/sub.vue +116 -0
- package/le-media-list/src/main.vue +1 -1
- package/le-role/src/main.vue +5 -5
- package/le-user/src/main.vue +1 -1
- package/package.json +5 -7
- package/le-ad/index.js +0 -7
- package/le-ad/src/main.vue +0 -137
- package/le-ad/src/sub.vue +0 -180
- package/le-ad-space/index.js +0 -7
- package/le-ad-space/src/main.vue +0 -135
- package/le-ad-space/src/sub.vue +0 -119
- package/le-commission/index.js +0 -7
- package/le-commission/src/main.vue +0 -175
- package/le-commission/src/sub.vue +0 -213
- package/le-commission-cp/index.js +0 -7
- package/le-commission-cp/src/main.vue +0 -170
- package/le-company/index.js +0 -7
- package/le-company/src/main.vue +0 -101
- package/le-company/src/sub.vue +0 -111
- package/le-coupon/index.js +0 -17
- package/le-coupon/src/details.vue +0 -196
- package/le-coupon/src/main.vue +0 -193
- package/le-coupon/src/sub.vue +0 -362
- package/le-coupon-give/index.js +0 -7
- package/le-coupon-give/src/main.vue +0 -110
- package/le-cp/index.js +0 -7
- package/le-cp/src/main.vue +0 -166
- package/le-cp/src/sub.vue +0 -174
- package/le-depart/index.js +0 -7
- package/le-depart/src/main.vue +0 -162
- package/le-distribution/index.js +0 -7
- package/le-distribution/src/main.vue +0 -85
- package/le-distribution-category/index.js +0 -7
- package/le-distribution-category/src/main.vue +0 -106
- package/le-distribution-category/src/sub.vue +0 -112
- package/le-integral/index.js +0 -7
- package/le-integral/src/main.vue +0 -198
- package/le-member/index.js +0 -7
- package/le-member/src/main.vue +0 -494
- package/le-member/src/other.vue +0 -240
- package/le-member-level/index.js +0 -7
- package/le-member-level/src/main.vue +0 -93
- package/le-member-level/src/sub.vue +0 -112
- package/le-promotions/index.js +0 -9
- package/le-promotions/src/main.vue +0 -220
- package/le-promotions/src/sub.vue +0 -248
- package/le-promotions-activities/index.js +0 -7
- package/le-promotions-activities/src/main.vue +0 -208
- package/le-promotions-activities/src/sub.vue +0 -212
- package/le-rate/index.js +0 -7
- package/le-rate/src/main.vue +0 -194
- package/le-rate/src/qrinfo.vue +0 -32
- package/le-rate/src/sub.vue +0 -183
- package/le-seting/index.js +0 -7
- package/le-seting/src/main.vue +0 -154
- package/le-user-type/index.js +0 -7
- package/le-user-type/src/main.vue +0 -39
|
@@ -1,213 +0,0 @@
|
|
|
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.account"
|
|
8
|
-
placeholder="导游/分销员账号"
|
|
9
|
-
></el-input>
|
|
10
|
-
</el-form-item>
|
|
11
|
-
<el-form-item label="订单时间">
|
|
12
|
-
<el-date-picker
|
|
13
|
-
v-model="timeArr"
|
|
14
|
-
type="datetimerange"
|
|
15
|
-
value-format="yyyy-MM-dd HH:mm:ss"
|
|
16
|
-
range-separator="至"
|
|
17
|
-
start-placeholder="开始日期"
|
|
18
|
-
end-placeholder="结束日期"
|
|
19
|
-
>
|
|
20
|
-
</el-date-picker>
|
|
21
|
-
</el-form-item>
|
|
22
|
-
<el-form-item>
|
|
23
|
-
<el-button type="primary" @click="clickList">查询</el-button>
|
|
24
|
-
</el-form-item>
|
|
25
|
-
</el-form>
|
|
26
|
-
</div>
|
|
27
|
-
<vxe-table :data="tableData" align="center" border stripe>
|
|
28
|
-
<vxe-column field="account" title="账号"> </vxe-column>
|
|
29
|
-
<vxe-column title="账号类别">
|
|
30
|
-
<template slot-scope="scope">
|
|
31
|
-
<span v-if="scope.row.user_type == 1">导游</span>
|
|
32
|
-
<span v-if="scope.row.user_type == 2">旅行社</span>
|
|
33
|
-
<span v-if="scope.row.user_type == 3">单位促销员</span>
|
|
34
|
-
</template>
|
|
35
|
-
</vxe-column>
|
|
36
|
-
<vxe-column field="phone" title="手机号"></vxe-column>
|
|
37
|
-
<vxe-column title="账号名称">
|
|
38
|
-
<template slot-scope="scope">
|
|
39
|
-
<span v-if="scope.row.depart_name">{{ scope.row.depart_name }}</span>
|
|
40
|
-
<span v-if="scope.row.gname">{{ scope.row.gname }}</span>
|
|
41
|
-
<span v-if="scope.row.aname">{{ scope.row.aname }}</span>
|
|
42
|
-
</template>
|
|
43
|
-
</vxe-column>
|
|
44
|
-
<vxe-column align="center" title="佣金(元)">
|
|
45
|
-
<template slot-scope="scope">
|
|
46
|
-
<span>¥{{ formatMoney(scope.row.commissions) }}</span>
|
|
47
|
-
</template>
|
|
48
|
-
</vxe-column>
|
|
49
|
-
<vxe-column align="center" field="otype" title="订单状态">
|
|
50
|
-
<template slot-scope="scope">
|
|
51
|
-
<span v-if="scope.row.otype == 0">获取佣金</span>
|
|
52
|
-
<span v-if="scope.row.otype == 1">退还佣金</span>
|
|
53
|
-
<span v-if="scope.row.otype == 2">发放佣金</span>
|
|
54
|
-
</template>
|
|
55
|
-
</vxe-column>
|
|
56
|
-
<vxe-column align="center" field="odate" title="订单日期">
|
|
57
|
-
<template slot-scope="scope">
|
|
58
|
-
<span>{{ dateFormat(scope.row.odate) }}</span>
|
|
59
|
-
</template>
|
|
60
|
-
</vxe-column>
|
|
61
|
-
<vxe-column align="center" field="cdate" title="发放日期">
|
|
62
|
-
<template slot-scope="scope">
|
|
63
|
-
<span>{{ dateFormat(scope.row.cdate) }}</span>
|
|
64
|
-
</template>
|
|
65
|
-
</vxe-column>
|
|
66
|
-
<vxe-column title="操作" align="center" width="120">
|
|
67
|
-
<template slot-scope="scope">
|
|
68
|
-
<el-button
|
|
69
|
-
v-if="scope.row.otype != 2"
|
|
70
|
-
type="primary"
|
|
71
|
-
size="small"
|
|
72
|
-
@click="getOder(scope.row)"
|
|
73
|
-
style="margin-right: 2px"
|
|
74
|
-
>
|
|
75
|
-
订单
|
|
76
|
-
</el-button>
|
|
77
|
-
</template>
|
|
78
|
-
</vxe-column>
|
|
79
|
-
</vxe-table>
|
|
80
|
-
<div style="text-align: center; margin-top: 30px; width: 100%">
|
|
81
|
-
<vxe-pager
|
|
82
|
-
align="center"
|
|
83
|
-
:current-page="searchData.pageNo"
|
|
84
|
-
:page-size="10"
|
|
85
|
-
:total="total"
|
|
86
|
-
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'Total']"
|
|
87
|
-
@page-change="current_change"
|
|
88
|
-
></vxe-pager>
|
|
89
|
-
</div>
|
|
90
|
-
<le-dialog-container
|
|
91
|
-
width="80%"
|
|
92
|
-
title="订单详情"
|
|
93
|
-
:showDialog="showDetails"
|
|
94
|
-
@close="closeDetailsDialog"
|
|
95
|
-
:showFooter="true"
|
|
96
|
-
:showSaveBtn="false"
|
|
97
|
-
>
|
|
98
|
-
<le-order-detail
|
|
99
|
-
:rowData="detailRow"
|
|
100
|
-
:orderCanEdit="false"
|
|
101
|
-
v-if="showDetails"
|
|
102
|
-
></le-order-detail>
|
|
103
|
-
</le-dialog-container>
|
|
104
|
-
</div>
|
|
105
|
-
</template>
|
|
106
|
-
<script>
|
|
107
|
-
import { list as commissionList } from "@/api/commission";
|
|
108
|
-
import { select } from "@/api/goods_order";
|
|
109
|
-
import moment from "moment";
|
|
110
|
-
|
|
111
|
-
export default {
|
|
112
|
-
name: "le-commission-sub",
|
|
113
|
-
props: ["account"],
|
|
114
|
-
data() {
|
|
115
|
-
return {
|
|
116
|
-
showDetails: false,
|
|
117
|
-
detailRow: null,
|
|
118
|
-
tableData: [],
|
|
119
|
-
searchData: {
|
|
120
|
-
account: "",
|
|
121
|
-
pageNo: 1,
|
|
122
|
-
date_end: "",
|
|
123
|
-
date_start: "",
|
|
124
|
-
},
|
|
125
|
-
total: 0,
|
|
126
|
-
timeArr: "",
|
|
127
|
-
};
|
|
128
|
-
},
|
|
129
|
-
mounted() {
|
|
130
|
-
this.commissionList();
|
|
131
|
-
},
|
|
132
|
-
methods: {
|
|
133
|
-
judgeBtnIs(item) {
|
|
134
|
-
if (item.commissions > 0) {
|
|
135
|
-
return false;
|
|
136
|
-
}
|
|
137
|
-
return true;
|
|
138
|
-
},
|
|
139
|
-
closeDetailsDialog() {
|
|
140
|
-
this.detailRow = null;
|
|
141
|
-
this.showDetails = false;
|
|
142
|
-
},
|
|
143
|
-
getOder(item) {
|
|
144
|
-
let param = {};
|
|
145
|
-
param.oid = item.oid;
|
|
146
|
-
select(param).then((res) => {
|
|
147
|
-
this.detailRow = res.data.data;
|
|
148
|
-
this.showDetails = true;
|
|
149
|
-
});
|
|
150
|
-
},
|
|
151
|
-
filterParams(obj) {
|
|
152
|
-
var _newPar = {};
|
|
153
|
-
for (var key in obj) {
|
|
154
|
-
if (
|
|
155
|
-
(obj[key] === false || obj[key]) &&
|
|
156
|
-
obj[key].toString().replace(/(^\s*)|(\s*$)/g, "") !== ""
|
|
157
|
-
) {
|
|
158
|
-
_newPar[key] = obj[key];
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
return _newPar;
|
|
162
|
-
},
|
|
163
|
-
current_change({ currentPage }) {
|
|
164
|
-
this.searchData.pageNo = currentPage;
|
|
165
|
-
this.commissionList();
|
|
166
|
-
},
|
|
167
|
-
dateFormat(data) {
|
|
168
|
-
if (data) {
|
|
169
|
-
return moment.unix(data).format("YYYY-MM-DD HH:mm");
|
|
170
|
-
} else return "";
|
|
171
|
-
},
|
|
172
|
-
clickList() {
|
|
173
|
-
this.searchData.pageNo = 1;
|
|
174
|
-
this.commissionList();
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
commissionList() {
|
|
178
|
-
let param = this.getSearchParam();
|
|
179
|
-
if (!param.account || param.account.length <= 0) {
|
|
180
|
-
param.account = this.account;
|
|
181
|
-
}
|
|
182
|
-
commissionList(param).then((response) => {
|
|
183
|
-
this.tableData = response.data.data.list;
|
|
184
|
-
this.total = response.data.data.count;
|
|
185
|
-
});
|
|
186
|
-
},
|
|
187
|
-
getSearchParam() {
|
|
188
|
-
if (this.timeArr && this.timeArr.length == 2) {
|
|
189
|
-
this.searchData.date_start = new Date(this.timeArr[0]).getTime() / 1000;
|
|
190
|
-
this.searchData.date_end = new Date(this.timeArr[1]).getTime() / 1000;
|
|
191
|
-
} else {
|
|
192
|
-
this.searchData.date_start = 0;
|
|
193
|
-
this.searchData.date_end = 0;
|
|
194
|
-
}
|
|
195
|
-
let params = this.filterParams(this.searchData);
|
|
196
|
-
params.account = this.searchData.account;
|
|
197
|
-
return params;
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
};
|
|
201
|
-
</script>
|
|
202
|
-
<style lang="scss" scoped>
|
|
203
|
-
.yeClass {
|
|
204
|
-
padding-left: 10px;
|
|
205
|
-
/* margin-top: 10px; */
|
|
206
|
-
background-color: #f2f6fc;
|
|
207
|
-
height: 40px;
|
|
208
|
-
line-height: 40px;
|
|
209
|
-
font-size: 13px;
|
|
210
|
-
display: flex;
|
|
211
|
-
justify-content: space-between;
|
|
212
|
-
}
|
|
213
|
-
</style>
|
|
@@ -1,170 +0,0 @@
|
|
|
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 v-if="scope.row.cstatus == 0">正常</span>
|
|
42
|
-
<span v-if="scope.row.cstatus == 1">已经核销</span>
|
|
43
|
-
<span v-if="scope.row.cstatus == 2">无效-已经退</span>
|
|
44
|
-
</template>
|
|
45
|
-
</vxe-column>
|
|
46
|
-
<vxe-column align="center" title="来源">
|
|
47
|
-
<template slot-scope="scope">
|
|
48
|
-
<span v-if="scope.row.csource == 0">门票</span>
|
|
49
|
-
<span v-if="scope.row.csource == 1">商城</span>
|
|
50
|
-
</template>
|
|
51
|
-
</vxe-column>
|
|
52
|
-
<vxe-column align="center" title="交易日期">
|
|
53
|
-
<template slot-scope="scope">
|
|
54
|
-
<span>{{ parseTime(scope.row.cdate) }}</span>
|
|
55
|
-
</template>
|
|
56
|
-
</vxe-column>
|
|
57
|
-
<vxe-column title="操作" align="center" width="220">
|
|
58
|
-
<!-- <template slot-scope="scope">
|
|
59
|
-
<el-button
|
|
60
|
-
type="primary"
|
|
61
|
-
size="small"
|
|
62
|
-
@click="dispListDetail(scope.row)"
|
|
63
|
-
style="margin-right: 2px"
|
|
64
|
-
>
|
|
65
|
-
详情
|
|
66
|
-
</el-button>
|
|
67
|
-
</template> -->
|
|
68
|
-
<template slot-scope="scope">
|
|
69
|
-
<el-button
|
|
70
|
-
type="primary"
|
|
71
|
-
size="small"
|
|
72
|
-
@click="hexiao(scope.row)"
|
|
73
|
-
style="margin-right: 2px"
|
|
74
|
-
v-if="scope.row.cstatus == 0"
|
|
75
|
-
>
|
|
76
|
-
核销
|
|
77
|
-
</el-button>
|
|
78
|
-
</template>
|
|
79
|
-
</vxe-column>
|
|
80
|
-
</vxe-table>
|
|
81
|
-
<div style="text-align: center; margin-top: 30px; width: 100%">
|
|
82
|
-
<vxe-pager
|
|
83
|
-
align="center"
|
|
84
|
-
:current-page="searchData.pageNo"
|
|
85
|
-
:page-size="10"
|
|
86
|
-
:total="total"
|
|
87
|
-
:layouts="['PrevPage', 'JumpNumber', 'NextPage', 'Total']"
|
|
88
|
-
@page-change="current_change"
|
|
89
|
-
></vxe-pager>
|
|
90
|
-
</div>
|
|
91
|
-
<!-- <le-dialog-container
|
|
92
|
-
width="90%"
|
|
93
|
-
title="促销详情"
|
|
94
|
-
:showDialog="showListDetails"
|
|
95
|
-
@close="closeDetailsDialog"
|
|
96
|
-
:showFooter="true"
|
|
97
|
-
:showSaveBtn="false"
|
|
98
|
-
>
|
|
99
|
-
<le-commission-sub
|
|
100
|
-
:account="account"
|
|
101
|
-
v-if="showListDetails"
|
|
102
|
-
></le-commission-sub>
|
|
103
|
-
</le-dialog-container> -->
|
|
104
|
-
</div>
|
|
105
|
-
</template>
|
|
106
|
-
<script>
|
|
107
|
-
import { list, hexiao } from "@/api/commission_cp";
|
|
108
|
-
// import LeCommissionSub from "./sub.vue";
|
|
109
|
-
|
|
110
|
-
export default {
|
|
111
|
-
name: "le-commission-cp",
|
|
112
|
-
// components: { LeCommissionSub },
|
|
113
|
-
data() {
|
|
114
|
-
return {
|
|
115
|
-
showListDetails: false,
|
|
116
|
-
tableData: [],
|
|
117
|
-
searchData: {
|
|
118
|
-
cname: "",
|
|
119
|
-
cphone: "",
|
|
120
|
-
ono: "",
|
|
121
|
-
pageNo: 1,
|
|
122
|
-
},
|
|
123
|
-
total: 0,
|
|
124
|
-
};
|
|
125
|
-
},
|
|
126
|
-
mounted() {
|
|
127
|
-
this.list();
|
|
128
|
-
},
|
|
129
|
-
methods: {
|
|
130
|
-
current_change({ currentPage }) {
|
|
131
|
-
this.searchData.pageNo = currentPage;
|
|
132
|
-
this.list();
|
|
133
|
-
},
|
|
134
|
-
clickList() {
|
|
135
|
-
this.searchData.pageNo = 1;
|
|
136
|
-
this.list();
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
hexiao(row) {
|
|
140
|
-
this.$confirm("确定核销吗?", "提示").then(() => {
|
|
141
|
-
let params = { cid: row.id };
|
|
142
|
-
hexiao(params).then((res) => {
|
|
143
|
-
this.$message.success("核销成功");
|
|
144
|
-
this.list();
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
},
|
|
148
|
-
|
|
149
|
-
list() {
|
|
150
|
-
let params = this.searchData;
|
|
151
|
-
list(params).then((res) => {
|
|
152
|
-
this.tableData = res.data.data.list;
|
|
153
|
-
this.total = res.data.data.count;
|
|
154
|
-
});
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
};
|
|
158
|
-
</script>
|
|
159
|
-
<style lang="scss" scoped>
|
|
160
|
-
.yeClass {
|
|
161
|
-
padding-left: 10px;
|
|
162
|
-
/* margin-top: 10px; */
|
|
163
|
-
background-color: #f2f6fc;
|
|
164
|
-
height: 40px;
|
|
165
|
-
line-height: 40px;
|
|
166
|
-
font-size: 13px;
|
|
167
|
-
display: flex;
|
|
168
|
-
justify-content: space-between;
|
|
169
|
-
}
|
|
170
|
-
</style>
|
package/le-company/index.js
DELETED
package/le-company/src/main.vue
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<el-table :data="tableData" border row-key="id" stripe style="width: 100%">
|
|
4
|
-
<el-table-column prop="name" label="单位名称" width="180">
|
|
5
|
-
</el-table-column>
|
|
6
|
-
<el-table-column prop="title" label="标题"> </el-table-column>
|
|
7
|
-
<el-table-column prop="phone" label="客服电话"> </el-table-column>
|
|
8
|
-
<el-table-column prop="note" label="备注"> </el-table-column>
|
|
9
|
-
<el-table-column
|
|
10
|
-
fixed="right"
|
|
11
|
-
label="操作"
|
|
12
|
-
align="center"
|
|
13
|
-
width="160"
|
|
14
|
-
row
|
|
15
|
-
>
|
|
16
|
-
<template slot-scope="scope">
|
|
17
|
-
<le-button
|
|
18
|
-
id="btnEdit"
|
|
19
|
-
v-permission="$route.params.btns"
|
|
20
|
-
text="编辑"
|
|
21
|
-
:disp="btnEditDisp"
|
|
22
|
-
@click="openEditWindow(scope.row)"
|
|
23
|
-
></le-button>
|
|
24
|
-
<le-button-msg
|
|
25
|
-
@click="del(scope.row)"
|
|
26
|
-
:disp="btnDelDisp"
|
|
27
|
-
></le-button-msg>
|
|
28
|
-
</template>
|
|
29
|
-
</el-table-column>
|
|
30
|
-
</el-table>
|
|
31
|
-
<le-dialog-container :showDialog="showDialog" @close="closeDialog">
|
|
32
|
-
<le-company-sub
|
|
33
|
-
@close="closeDialog"
|
|
34
|
-
@rowRefresh="list"
|
|
35
|
-
:rowitem="currentRow"
|
|
36
|
-
></le-company-sub>
|
|
37
|
-
</le-dialog-container>
|
|
38
|
-
</div>
|
|
39
|
-
</template>
|
|
40
|
-
<script>
|
|
41
|
-
import { list as companylist, del as companyDel } from "@/api/company";
|
|
42
|
-
import LeButton from "leisure-core/le-button/index";
|
|
43
|
-
import LeButtonMsg from "leisure-core/le-button-msg/index";
|
|
44
|
-
import LeDialogContainer from "leisure-core/le-dialog-container/index";
|
|
45
|
-
import LeCompanySub from "./sub.vue";
|
|
46
|
-
export default {
|
|
47
|
-
name: "le-company",
|
|
48
|
-
components: {
|
|
49
|
-
LeButton,
|
|
50
|
-
LeButtonMsg,
|
|
51
|
-
LeDialogContainer,
|
|
52
|
-
LeCompanySub,
|
|
53
|
-
},
|
|
54
|
-
props: {
|
|
55
|
-
btnEditDisp: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: true,
|
|
58
|
-
},
|
|
59
|
-
btnDelDisp: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: true,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
data() {
|
|
65
|
-
return {
|
|
66
|
-
tableData: [],
|
|
67
|
-
showDialog: false,
|
|
68
|
-
currentRow: {},
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
computed: {
|
|
72
|
-
judgeIsDispDelButton() {
|
|
73
|
-
return this.$store.getters.userinfo.account == "zcx";
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
mounted() {
|
|
77
|
-
this.list();
|
|
78
|
-
},
|
|
79
|
-
methods: {
|
|
80
|
-
list() {
|
|
81
|
-
let params = { cid: this.$store.getters.cid };
|
|
82
|
-
companylist(params).then((res) => {
|
|
83
|
-
this.tableData = res.data.data;
|
|
84
|
-
});
|
|
85
|
-
},
|
|
86
|
-
del(id) {
|
|
87
|
-
companyDel(id).then((response) => {
|
|
88
|
-
this.list();
|
|
89
|
-
this.$message.success(response.data.info);
|
|
90
|
-
});
|
|
91
|
-
},
|
|
92
|
-
openEditWindow(item) {
|
|
93
|
-
this.currentRow = item;
|
|
94
|
-
this.showDialog = true;
|
|
95
|
-
},
|
|
96
|
-
closeDialog() {
|
|
97
|
-
this.showDialog = false;
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
</script>
|
package/le-company/src/sub.vue
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
3
|
-
<el-form-item label="单位名称" prop="name">
|
|
4
|
-
<el-input v-model="form.name"></el-input>
|
|
5
|
-
</el-form-item>
|
|
6
|
-
<el-form-item label="系统标题" prop="title">
|
|
7
|
-
<el-input v-model="form.title"></el-input>
|
|
8
|
-
</el-form-item>
|
|
9
|
-
<el-form-item label="电话" prop="phone">
|
|
10
|
-
<el-input v-model="form.phone"></el-input>
|
|
11
|
-
</el-form-item>
|
|
12
|
-
<el-form-item label="备注" prop="note">
|
|
13
|
-
<el-input v-model="form.note"></el-input>
|
|
14
|
-
</el-form-item>
|
|
15
|
-
<el-form-item>
|
|
16
|
-
<el-button type="primary" @click="onSubmit">保存</el-button>
|
|
17
|
-
<el-button @click="close()">取消</el-button>
|
|
18
|
-
</el-form-item>
|
|
19
|
-
</el-form>
|
|
20
|
-
</template>
|
|
21
|
-
<script>
|
|
22
|
-
import { add as companyAdd, edit as companyEdit } from "@/api/company";
|
|
23
|
-
export default {
|
|
24
|
-
name: "le-company-sub",
|
|
25
|
-
props: {
|
|
26
|
-
rowitem: {},
|
|
27
|
-
},
|
|
28
|
-
data() {
|
|
29
|
-
return {
|
|
30
|
-
// btnText: {
|
|
31
|
-
// dispComment: this.$route.params.status == 1 ? "立即创建" : "更新",
|
|
32
|
-
// },
|
|
33
|
-
form: {
|
|
34
|
-
id: "",
|
|
35
|
-
name: "",
|
|
36
|
-
phone: "",
|
|
37
|
-
title: "",
|
|
38
|
-
note: "",
|
|
39
|
-
},
|
|
40
|
-
rules: {
|
|
41
|
-
name: [
|
|
42
|
-
{ required: true, message: "请输入单位名称", trigger: "blur" },
|
|
43
|
-
{
|
|
44
|
-
min: 1,
|
|
45
|
-
max: 100,
|
|
46
|
-
message: "长度在 1 到 100 个字符",
|
|
47
|
-
trigger: "blur",
|
|
48
|
-
},
|
|
49
|
-
],
|
|
50
|
-
title: [
|
|
51
|
-
{ required: true, message: "请输入标题名称", trigger: "blur" },
|
|
52
|
-
{
|
|
53
|
-
min: 1,
|
|
54
|
-
max: 100,
|
|
55
|
-
message: "长度在 1 到 100 个字符",
|
|
56
|
-
trigger: "blur",
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
note: [
|
|
60
|
-
{
|
|
61
|
-
max: 200,
|
|
62
|
-
message: "长度在 0 到 200个字符",
|
|
63
|
-
trigger: "blur",
|
|
64
|
-
},
|
|
65
|
-
],
|
|
66
|
-
},
|
|
67
|
-
};
|
|
68
|
-
},
|
|
69
|
-
watch: {
|
|
70
|
-
rowitem: {
|
|
71
|
-
handler(newValue) {
|
|
72
|
-
this.form = newValue;
|
|
73
|
-
},
|
|
74
|
-
immediate: true,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
mounted() {},
|
|
78
|
-
methods: {
|
|
79
|
-
onSubmit() {
|
|
80
|
-
this.$refs["form"].validate((valid) => {
|
|
81
|
-
if (valid) {
|
|
82
|
-
let param = {
|
|
83
|
-
name: this.form.name,
|
|
84
|
-
note: this.form.note,
|
|
85
|
-
id: this.form.id,
|
|
86
|
-
title: this.form.title,
|
|
87
|
-
phone: this.form.phone,
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
if (this.$route.params.status == 1) {
|
|
91
|
-
companyAdd(param).then((response) => {
|
|
92
|
-
this.$message(response.data.info);
|
|
93
|
-
});
|
|
94
|
-
} else {
|
|
95
|
-
companyEdit(param).then((res) => {
|
|
96
|
-
this.$message(res.data.info);
|
|
97
|
-
this.$emit("rowRefresh");
|
|
98
|
-
this.close();
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
} else {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
},
|
|
106
|
-
close() {
|
|
107
|
-
this.$emit("close");
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
};
|
|
111
|
-
</script>
|
package/le-coupon/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import LeCoupon from "./src/main.vue";
|
|
2
|
-
import LeCouponSub from "./src/sub.vue";
|
|
3
|
-
import LeCouponDetails from "./src/details.vue";
|
|
4
|
-
|
|
5
|
-
LeCoupon.install = function (Vue) {
|
|
6
|
-
Vue.component(LeCoupon.name, LeCoupon);
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
LeCouponSub.install = function (Vue) {
|
|
10
|
-
Vue.component(LeCouponSub.name, LeCouponSub);
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
LeCouponDetails.install = function (Vue) {
|
|
14
|
-
Vue.component(LeCouponDetails.name, LeCouponDetails);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
export { LeCoupon, LeCouponSub, LeCouponDetails };
|