|
|
|
@ -177,7 +177,7 @@ |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
this.tui.request('/mall/delivery/pageShopDelivery', 'POST', this.searchForm, false, false).then((res) => { |
|
|
|
this.NB.sendRequest('/mall/delivery/pageShopDelivery', this.searchForm, false, 'POST', 'application/json').then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
const records = res.result.records || []; |
|
|
|
this.list = this.searchForm.pageNum == 1 ? records : this.list.concat(records); |
|
|
|
@ -189,7 +189,7 @@ |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
}); |
|
|
|
}).catch((res) => {}) |
|
|
|
}, |
|
|
|
handleOrder(index, item) { |
|
|
|
if (this.tab === 'pickup' && !item.arriveTime) { |
|
|
|
@ -206,11 +206,11 @@ |
|
|
|
}, |
|
|
|
changeStatus(index, item, status) { |
|
|
|
const url = status === 1 ? '/mall/delivery/arriveShop' : (status === 2 ? '/mall/delivery/pickup' : '/mall/delivery/complete'); |
|
|
|
this.tui.request(url, 'POST', { |
|
|
|
this.NB.sendRequest(url, { |
|
|
|
regionId: this.searchForm.regionId, |
|
|
|
deliveryId: item.id, |
|
|
|
workerId: this.worker.workerId |
|
|
|
}, false, true).then((res) => { |
|
|
|
}, false, 'POST', 'application/x-www-form-urlencoded').then((res) => { |
|
|
|
if (res.code == 200) { |
|
|
|
if (status === 1) { |
|
|
|
this.$set(this.list[index], 'arriveTime', new Date()); |
|
|
|
@ -227,7 +227,7 @@ |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
} |
|
|
|
}); |
|
|
|
}).catch((res) => {}) |
|
|
|
}, |
|
|
|
productDetail(item) { |
|
|
|
this.productData = item.goodsList || []; |
|
|
|
|