| | |
| | | } else { |
| | | this.typeViewId = 0 |
| | | } |
| | | if (!this.isOnce) { |
| | | this.commentStatus = '' |
| | | this.orderList = [] |
| | | this.next = true |
| | | this.page = 1 |
| | | this.getOrderList() |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | |
| | | next: true, |
| | | page: 1, |
| | | orderList: [] |
| | | orderList: [], |
| | | isOnce: true |
| | | }; |
| | | }, |
| | | async onLoad() { |
| | |
| | | startJobs(orderId) { |
| | | this.$u.api.begin({ orderId }) |
| | | .then(res => { |
| | | this.status = '' |
| | | this.commentStatus = '' |
| | | this.orderList = [] |
| | | this.next = true |
| | | this.page = 1 |
| | | this.getOrderList() |
| | | if (res.code === 200) { |
| | | this.status = '' |
| | | this.commentStatus = '' |
| | | this.orderList = [] |
| | | this.next = true |
| | | this.page = 1 |
| | | this.getOrderList() |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | jumpDesc(item) { |
| | |
| | | this.$u.api.cancelOrder({ |
| | | orderId: this.orderId |
| | | }).then(res => { |
| | | this.show = false |
| | | this.orderList = [] |
| | | this.next = true |
| | | this.page = 1 |
| | | this.getOrderList() |
| | | if (res.code === 200) { |
| | | this.show = false |
| | | this.orderList = [] |
| | | this.next = true |
| | | this.page = 1 |
| | | this.getOrderList() |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | phoneCall(phoneNumber) { |
| | |
| | | queryLgt: this.longitude |
| | | } |
| | | }).then(res => { |
| | | if (res.code !== 200) return; |
| | | this.isOnce = false |
| | | res.data.records.forEach(item => { |
| | | // 订餐单 |
| | | if (item.type === 2) { |