Commit 18176b9c authored by Facius's avatar Facius

feat:订单管理订单那列表接口调试

parent a972c2ba
...@@ -22,6 +22,10 @@ let orderApiFun = function(vm){ ...@@ -22,6 +22,10 @@ let orderApiFun = function(vm){
* 工单列表接口 * 工单列表接口
*/ */
let listOrder = async (params = {}) => await vm.$u.get('/wxh-worker-rest/rest/order/revision/' + vm.vuex_token + '/list', params); let listOrder = async (params = {}) => await vm.$u.get('/wxh-worker-rest/rest/order/revision/' + vm.vuex_token + '/list', params);
/**
* 订单管理工单列表接口
*/
let manageOrderList = async (params = {}) => await vm.$u.get('/wxh-worker-rest/rest/order/revision/listOrderByTimeRange', params);
/** /**
* 获取师傅的预约日历 * 获取师傅的预约日历
...@@ -211,6 +215,7 @@ let orderApiFun = function(vm){ ...@@ -211,6 +215,7 @@ let orderApiFun = function(vm){
listOrderCount, listOrderCount,
manageOrderCount, manageOrderCount,
listOrder, listOrder,
manageOrderList,
workerCalendar, workerCalendar,
workerAppointment, workerAppointment,
maintainWorkerCheckin, maintainWorkerCheckin,
......
...@@ -79,7 +79,7 @@ export default { ...@@ -79,7 +79,7 @@ export default {
}, },
computed: { computed: {
cellType() { cellType() {
return this.orderType == 'yijiedan' ? '' : this.orderType return this.orderType == 'finish' ? 'finish' : ''
}, },
noMore() { noMore() {
return this.orderList.length == 0 && this.loaded return this.orderList.length == 0 && this.loaded
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
...this.timeParam, ...this.timeParam,
} }
var self = this var self = this
self.$u.api.listOrder(param).then((res) => { self.$u.api.manageOrderList(param).then((res) => {
if (res.code == 200) { if (res.code == 200) {
if (self.pageNumber == 1) { if (self.pageNumber == 1) {
self.orderList = [] self.orderList = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment