leisure-core 0.4.35 → 0.4.37
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.
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
<template slot-scope="scope">
|
|
41
41
|
<span v-if="scope.row.cstatus == 0">正常</span>
|
|
42
42
|
<span v-if="scope.row.cstatus == 1">已经核销</span>
|
|
43
|
-
<span v-if="scope.row.cstatus ==
|
|
43
|
+
<span v-if="scope.row.cstatus == 2">无效-已经退</span>
|
|
44
44
|
</template>
|
|
45
45
|
</vxe-column>
|
|
46
46
|
<vxe-column align="center" title="来源">
|
|
@@ -65,6 +65,17 @@
|
|
|
65
65
|
详情
|
|
66
66
|
</el-button>
|
|
67
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>
|
|
68
79
|
</vxe-column>
|
|
69
80
|
</vxe-table>
|
|
70
81
|
<div style="text-align: center; margin-top: 30px; width: 100%">
|
|
@@ -93,7 +104,7 @@
|
|
|
93
104
|
</div>
|
|
94
105
|
</template>
|
|
95
106
|
<script>
|
|
96
|
-
import { list } from "@/api/commission_cp";
|
|
107
|
+
import { list, hexiao } from "@/api/commission_cp";
|
|
97
108
|
// import LeCommissionSub from "./sub.vue";
|
|
98
109
|
|
|
99
110
|
export default {
|
|
@@ -125,6 +136,16 @@ export default {
|
|
|
125
136
|
this.list();
|
|
126
137
|
},
|
|
127
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
|
+
|
|
128
149
|
list() {
|
|
129
150
|
let params = this.searchData;
|
|
130
151
|
list(params).then((res) => {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</el-table-column>
|
|
11
11
|
<el-table-column prop="ccode" label="分销代码" width="80">
|
|
12
12
|
</el-table-column>
|
|
13
|
-
<el-table-column prop="crate1" label="佣金比例"> </el-table-column>
|
|
13
|
+
<el-table-column prop="crate1" label="佣金比例(%)"> </el-table-column>
|
|
14
14
|
<!-- <el-table-column prop="crate2" label="二级佣金比例"> </el-table-column> -->
|
|
15
15
|
<el-table-column prop="note" label="备注"> </el-table-column>
|
|
16
16
|
<el-table-column
|
package/le-home/src/main.vue
CHANGED
|
@@ -113,6 +113,12 @@
|
|
|
113
113
|
></el-input>
|
|
114
114
|
</el-form-item>
|
|
115
115
|
</el-form>
|
|
116
|
+
<div
|
|
117
|
+
ref="pwdref"
|
|
118
|
+
style="display: flex; justify-content: center; color: red"
|
|
119
|
+
>
|
|
120
|
+
{{ pwdinfo }}
|
|
121
|
+
</div>
|
|
116
122
|
<div slot="footer">
|
|
117
123
|
<el-button type="info" @click="cancelChangePwd('ruleForm')"
|
|
118
124
|
>取 消</el-button
|
|
@@ -164,8 +170,8 @@ export default {
|
|
|
164
170
|
if (value === "") {
|
|
165
171
|
callback(new Error("请输入密码"));
|
|
166
172
|
} else {
|
|
167
|
-
if (value.length <
|
|
168
|
-
callback(new Error("密码至少
|
|
173
|
+
if (value.length < 8) {
|
|
174
|
+
callback(new Error("密码至少8位"));
|
|
169
175
|
} else {
|
|
170
176
|
if (this.ruleForm.confirmPwd !== "") {
|
|
171
177
|
this.$refs.ruleForm.validateField("confirmPwd ");
|
|
@@ -210,6 +216,7 @@ export default {
|
|
|
210
216
|
contextMenuVisible: false,
|
|
211
217
|
menuLeft: 0,
|
|
212
218
|
menuTop: 0,
|
|
219
|
+
pwdinfo: "",
|
|
213
220
|
};
|
|
214
221
|
},
|
|
215
222
|
mounted() {
|
|
@@ -318,13 +325,13 @@ export default {
|
|
|
318
325
|
});
|
|
319
326
|
},
|
|
320
327
|
changePwdAfter(res) {
|
|
321
|
-
if (res.data.code == "10000") {
|
|
328
|
+
if (res && res.data && res.data.code == "10000") {
|
|
322
329
|
this.$message.success("修改密码成功");
|
|
323
330
|
localStorage.clear();
|
|
324
331
|
this.$store.commit("setUserInfo", null);
|
|
325
332
|
this.$router.replace({ path: "/" });
|
|
326
333
|
} else {
|
|
327
|
-
this
|
|
334
|
+
this.pwdinfo = res;
|
|
328
335
|
}
|
|
329
336
|
},
|
|
330
337
|
signout() {
|