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