leisure-core 0.4.35 → 0.4.36

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 == 0">无效-已经退票</span>
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.4.35",
3
+ "version": "0.4.36",
4
4
  "description": "leisure-core是leisure-ui-core的简称,是京心数据基于vue2.0开发的一套后台系统框架与js库,包含登录,首页框架等",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",