作者 小范

场站计费服务其他页面完善

1 import http from "../http"; 1 import http from "../http";
2 -import axios from "axios";  
3 2
4 3
5 let baseUrl = 'wlpt-custom-service-charge/bill' 4 let baseUrl = 'wlpt-custom-service-charge/bill'
6 5
7 6
8 //折扣配置 7 //折扣配置
9 -export const list = params => { return axios.get(`${baseUrl}/list`, params); };  
10 -export const save = params => { return axios.post(`${baseUrl}/save`, params); };  
11 -export const edit = params => { return axios.put(`${baseUrl}/edit`, params); };  
12 -export const remove = params => { return axios.delete(`${baseUrl}/remove`, {params:params}); }; 8 +export const list = params => { return http.get(`${baseUrl}/list`, params); };
  9 +export const save = params => { return http.post(`${baseUrl}/save`, params); };
  10 +export const edit = params => { return http.put(`${baseUrl}/edit`, params); };
  11 +export const remove = params => { return http.delByParam(`${baseUrl}/remove`, params); };
1 import http from "../http"; 1 import http from "../http";
2 -import axios from "axios";  
3 2
4 3
5 let baseUrl = 'wlpt-custom-service-charge/billConfigDiscount' 4 let baseUrl = 'wlpt-custom-service-charge/billConfigDiscount'
6 5
7 6
8 //折扣配置 7 //折扣配置
9 -export const list = params => { return axios.get(`${baseUrl}/list`, params); };  
10 -export const save = params => { return axios.post(`${baseUrl}/save`, params); };  
11 -export const edit = params => { return axios.put(`${baseUrl}/edit`, params); };  
12 -export const remove = params => { return axios.delete(`${baseUrl}/remove`, {params:params}); }; 8 +export const list = params => { return http.get(`${baseUrl}/list`, params); };
  9 +export const save = params => { return http.post(`${baseUrl}/save`, params); };
  10 +export const edit = params => { return http.put(`${baseUrl}/edit`, params); };
  11 +export const remove = params => { return http.delByParam(`${baseUrl}/remove`, params); };
1 import http from "../http"; 1 import http from "../http";
2 -import axios from "axios";  
3 2
4 3
5 let baseUrl = 'wlpt-custom-service-charge/billOrder' 4 let baseUrl = 'wlpt-custom-service-charge/billOrder'
6 5
7 6
8 //订单列表 7 //订单列表
9 -export const list = params => { return axios.get(`${baseUrl}/list`, params); };  
10 -export const save = params => { return axios.post(`${baseUrl}/save`, params); };  
11 -export const edit = params => { return axios.put(`${baseUrl}/edit`, params); };  
12 -export const remove = params => { return axios.delete(`${baseUrl}/remove`, {params:params}); }; 8 +export const list = params => { return http.get(`${baseUrl}/list`, params); };
  9 +export const save = params => { return http.post(`${baseUrl}/save`, params); };
  10 +export const edit = params => { return http.put(`${baseUrl}/edit`, params); };
  11 +export const remove = params => { return http.delByParam(`${baseUrl}/remove`, params); };
@@ -263,9 +263,9 @@ @@ -263,9 +263,9 @@
263 // busnessType:'', 263 // busnessType:'',
264 // state:'', 264 // state:'',
265 // 当前页数 265 // 当前页数
266 - limitSize: 1, 266 + limitSize: 10,
267 // 每页大小 267 // 每页大小
268 - pageSize: 10, 268 + pageSize: 1,
269 }, 269 },
270 total: 0, 270 total: 0,
271 tableData:[], 271 tableData:[],
@@ -308,11 +308,11 @@ @@ -308,11 +308,11 @@
308 }, 308 },
309 methods: { 309 methods: {
310 handleSizeChange(val) { 310 handleSizeChange(val) {
311 - this.queryInfo.pageSize = val 311 + this.queryInfo.limitSize = val
312 this.getList() 312 this.getList()
313 }, 313 },
314 handleCurrentChange(val) { 314 handleCurrentChange(val) {
315 - this.queryInfo.limitSize = val 315 + this.queryInfo.pageSize = val
316 this.getList() 316 this.getList()
317 }, 317 },
318 getList() { 318 getList() {
@@ -216,10 +216,10 @@ @@ -216,10 +216,10 @@
216 companyId:'', 216 companyId:'',
217 busnessType:'', 217 busnessType:'',
218 state:'', 218 state:'',
219 - // 当前页数  
220 - limitSize: 1, 219 + // 一頁 ji tiao
  220 + limitSize: 10,
221 // 每页大小 221 // 每页大小
222 - pageSize: 10, 222 + pageSize: 1,
223 }, 223 },
224 total: 0, 224 total: 0,
225 tableData:[], 225 tableData:[],
@@ -261,18 +261,18 @@ @@ -261,18 +261,18 @@
261 }, 261 },
262 methods: { 262 methods: {
263 handleSizeChange(val) { 263 handleSizeChange(val) {
264 - this.queryInfo.pageSize = val 264 + this.queryInfo.limitSize = val
265 this.getList() 265 this.getList()
266 }, 266 },
267 handleCurrentChange(val) { 267 handleCurrentChange(val) {
268 - this.queryInfo.limitSize = val 268 + this.queryInfo.pageSize = val
269 this.getList() 269 this.getList()
270 }, 270 },
271 getList() { 271 getList() {
272 const _this = this 272 const _this = this
  273 + console.log(this.queryInfo);
273 list(this.queryInfo).then((response) => { 274 list(this.queryInfo).then((response) => {
274 const res = response.data 275 const res = response.data
275 - console.log(response.data)  
276 if (res.code !== '200') { 276 if (res.code !== '200') {
277 return _this.$message.error('获取消息收发记录,失败!') 277 return _this.$message.error('获取消息收发记录,失败!')
278 } 278 }
@@ -156,9 +156,9 @@ @@ -156,9 +156,9 @@
156 <div class="el-input-group__prepend prepand">支付方式</div> 156 <div class="el-input-group__prepend prepand">支付方式</div>
157 <el-select v-model="addForm.orderType" placeholder="请选择生效状态" size="small" style="width: 260px"> 157 <el-select v-model="addForm.orderType" placeholder="请选择生效状态" size="small" style="width: 260px">
158 <el-option label="现金" value="现金"></el-option> 158 <el-option label="现金" value="现金"></el-option>
  159 + <el-option label="微信" value="微信"></el-option>
159 <el-option label="支付宝" value="支付宝"></el-option> 160 <el-option label="支付宝" value="支付宝"></el-option>
160 - <el-option label="现金" value="微信"></el-option>  
161 - <el-option label="支付宝" value="银行转账"></el-option> 161 + <el-option label="银行转账" value="银行转账"></el-option>
162 </el-select> 162 </el-select>
163 </div> 163 </div>
164 </el-form-item> 164 </el-form-item>
@@ -208,9 +208,9 @@ @@ -208,9 +208,9 @@
208 // busnessType:'', 208 // busnessType:'',
209 // state:'', 209 // state:'',
210 // 当前页数 210 // 当前页数
211 - limitSize: 1, 211 + limitSize: 10,
212 // 每页大小 212 // 每页大小
213 - pageSize: 10, 213 + pageSize: 1,
214 }, 214 },
215 total: 0, 215 total: 0,
216 tableData:[], 216 tableData:[],
@@ -251,11 +251,11 @@ @@ -251,11 +251,11 @@
251 }, 251 },
252 methods: { 252 methods: {
253 handleSizeChange(val) { 253 handleSizeChange(val) {
254 - this.queryInfo.pageSize = val 254 + this.queryInfo.limitSize = val
255 this.getList() 255 this.getList()
256 }, 256 },
257 handleCurrentChange(val) { 257 handleCurrentChange(val) {
258 - this.queryInfo.limitSize = val 258 + this.queryInfo.pageSize = val
259 this.getList() 259 this.getList()
260 }, 260 },
261 getList() { 261 getList() {