|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-05-04 20:47:29
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-05-12 16:55:56
|
|
|
|
|
* @LastEditTime: 2022-05-16 11:23:15
|
|
|
|
|
* @Description: file content
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
@ -137,22 +137,22 @@ export default {
|
|
|
|
|
this.operationOrder = item;
|
|
|
|
|
this.cancelVisible = true;
|
|
|
|
|
},
|
|
|
|
|
receive(){
|
|
|
|
|
receive(item){
|
|
|
|
|
this.$confirm('确认已经收到货了吗?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(async () => {
|
|
|
|
|
const {error} = await ApiPutOrderReceive({orderId : this.operationOrder.orderId});
|
|
|
|
|
const {error} = await ApiPutOrderReceive({orderId : item.orderId});
|
|
|
|
|
if(error){
|
|
|
|
|
uni.$toast(error.message);
|
|
|
|
|
this.$$message.error(error.message);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'success',
|
|
|
|
|
message: '成功收货!'
|
|
|
|
|
});
|
|
|
|
|
this.emitStatus()
|
|
|
|
|
this.getOrderList();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|