|
|
@@ -121,7 +121,14 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
if(Number(ele.refundCount)>0){
|
|
|
- product.push({"productId":ele.productId,"num":ele.refundCount,"unitType":ele.unitType,unitName:ele.xhUnitName,unitPrice:ele.xhUnitPrice})
|
|
|
+ product.push({
|
|
|
+ "productId":ele.productId,
|
|
|
+ "num":ele.refundCount,
|
|
|
+ "unitType":ele.unitType,
|
|
|
+ unitName:ele.xhUnitName,
|
|
|
+ unitType:ele.xhUnitType,
|
|
|
+ unitPrice:ele.xhUnitPrice
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
if(hasError){
|
|
|
@@ -131,7 +138,14 @@ export default {
|
|
|
uni.showToast({title:'请选择商品',icon:'none'})
|
|
|
return;
|
|
|
}
|
|
|
- let refundParams = {id:this.option.id,product:JSON.stringify(product),price:this.refundMoney,remark:this.remark,refundType:this.refundType,getOriginalItem:1};
|
|
|
+ let refundParams = {
|
|
|
+ id:this.option.id,
|
|
|
+ product:JSON.stringify(product),
|
|
|
+ price:this.refundMoney,
|
|
|
+ remark:this.remark,
|
|
|
+ refundType:this.refundType,
|
|
|
+ getOriginalItem:1
|
|
|
+ };
|
|
|
that.$util.confirmModal({content:'确认退款?'},() => {
|
|
|
uni.showLoading({title: "提交中",mask:true})
|
|
|
refund(refundParams).then(res => {
|