|
|
@@ -18,12 +18,12 @@
|
|
|
<view class="flex list-title" >
|
|
|
<text class="product-name">{{res.name}}</text>
|
|
|
<text class="product-num">{{ `${parseFloat(res.num)}` }}{{res.xhUnitName}}</text>
|
|
|
- <text class="product-price">{{`¥${parseFloat(res.xhUnitPrice)}`}}/{{res.xhUnitName}}</text>
|
|
|
+ <text class="product-price">{{`${parseFloat(res.xhUnitPrice)}`}}元/{{res.xhUnitName}}</text>
|
|
|
</view>
|
|
|
<view class="flex list-val" style="font-size:26upx;font-weight:bold;">
|
|
|
<input type="number" placeholder="退货数" v-model="res.refundCount" placeholder-style="color:#CCCCCC" />
|
|
|
<text style="margin-left:10upx;">{{res.xhUnitName}}</text>
|
|
|
- <text style="color:green;margin-left:20upx;">可退{{Number(res.xhNum)-Number(res.refundNum)}}{{res.xhUnitName}}</text>
|
|
|
+ <text style="color:green;margin-left:20upx;">{{Number(res.xhNum)-Number(res.refundNum)}}{{res.xhUnitName}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -114,7 +114,7 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
if(Number(ele.refundCount)>0){
|
|
|
- product.push({"productId":ele.productId,"num":ele.refundCount,"unitType":ele.unitType})
|
|
|
+ product.push({"productId":ele.productId,"num":ele.refundCount,"unitType":ele.unitType,unitName:ele.xhUnitName,unitPrice:ele.xhUnitPrice})
|
|
|
}
|
|
|
})
|
|
|
if(hasError){
|