Commit 00deb534 authored by Facius's avatar Facius

fix: 点击了异常单的去处理,应该调接口告知后台

parent 15fe0b6c
...@@ -196,7 +196,8 @@ let orderApiFun = function(vm){ ...@@ -196,7 +196,8 @@ let orderApiFun = function(vm){
let receiveParts = async (partOrderId) => await vm.$u.put(prefix + 'parts/' + vm.vuex_token + '/orders/' + partOrderId +'/receive',{}, formType); let receiveParts = async (partOrderId) => await vm.$u.put(prefix + 'parts/' + vm.vuex_token + '/orders/' + partOrderId +'/receive',{}, formType);
// 配件申请单-取消申请 // 配件申请单-取消申请
let cancelParts = async (partOrderId) => await vm.$u.put(prefix + 'parts/' + vm.vuex_token + '/orders/'+ partOrderId +'/cancel',{}, formType); let cancelParts = async (partOrderId) => await vm.$u.put(prefix + 'parts/' + vm.vuex_token + '/orders/'+ partOrderId +'/cancel',{}, formType);
// 点击了异常单去处理
let workerDealWithError = async (params = {}, orderId) => await vm.$u.get( prefix + vm.vuex_token + '/order/' + orderId + '/workerDealWithError', params)
const orderApi = { const orderApi = {
listByRecommendOrder, listByRecommendOrder,
listOrderCount, listOrderCount,
...@@ -247,7 +248,8 @@ let orderApiFun = function(vm){ ...@@ -247,7 +248,8 @@ let orderApiFun = function(vm){
getLogistics, getLogistics,
getOrderPartsSum, getOrderPartsSum,
receiveParts, receiveParts,
cancelParts cancelParts,
workerDealWithError
} }
return orderApi return orderApi
} }
......
...@@ -300,7 +300,10 @@ export default { ...@@ -300,7 +300,10 @@ export default {
} }
}) })
}, },
handleClickCellButton(item) { handleClickCellButton(item, type) {
if (type == 'exception') {
this.$u.api.workerDealWithError(item.orderId).then(() => {})
}
// 去完工 // 去完工
uni.navigateTo({ uni.navigateTo({
url: url:
......
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