|
@@ -218,6 +218,9 @@
|
|
|
case 'confirmation':
|
|
|
this.handOrderConfirmation()
|
|
|
break
|
|
|
+ case 'payment':
|
|
|
+ this.hanldConfirmFn(data.orderId);
|
|
|
+ break
|
|
|
}
|
|
|
},
|
|
|
getOrderPaymentValidation(data){//监听根据付款状态做操作
|
|
@@ -271,6 +274,18 @@
|
|
|
this.$api.navigateTo(`/pages/user/order/order-payment?type=payfirm&orderID=${data.orderId}`)
|
|
|
}
|
|
|
},
|
|
|
+ hanldConfirmFn (orderId){//确认打款供应商
|
|
|
+ this.$util.modal('提示','确定委托采美平台打款给供应商吗?确定之前请务必确保货品完好?','确定','取消',true,() =>{
|
|
|
+ this.OrderService.confirmpayment({orderID:orderId,userId:this.userID}).then(response =>{
|
|
|
+ this.$util.msg('确认成功',2000,true,'success');
|
|
|
+ setTimeout(() => {
|
|
|
+ this.getOrderDatainit(this.currentTab)
|
|
|
+ },2000)
|
|
|
+ }).catch(error =>{
|
|
|
+ this.$util.msg(error.msg,2000)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
handOrderConfirm(){//确认收货
|
|
|
this.$util.modal('提示','是否确认收货','确定','取消',true,() =>{
|
|
|
confirmReceipt({orderID:this.orderID}).then(response =>{
|