|
@@ -15,17 +15,26 @@
|
|
|
<view class="refund-label"><text></text>选择花材:</view>
|
|
<view class="refund-label"><text></text>选择花材:</view>
|
|
|
<view>
|
|
<view>
|
|
|
<view class="list" v-for="(res,i) in product" :key="i">
|
|
<view class="list" v-for="(res,i) in product" :key="i">
|
|
|
- <view class="flex list-title" >
|
|
|
|
|
- <text class="product-name">{{res.name}}</text>
|
|
|
|
|
- <text class="product-num">{{ `${parseFloat(res.itemNum)}` }}{{res.bigUnit}}</text>
|
|
|
|
|
- <text class="product-price">{{`${parseFloat(res.bigPrice)}`}}元/{{res.bigUnit}}</text>
|
|
|
|
|
|
|
+ <view class="flex list-title" >
|
|
|
|
|
+ <text class="product-name">{{res.name}}</text>
|
|
|
|
|
+ <text class="product-num">{{ `${parseFloat(res.itemNum)}` }}{{res.bigUnit}}</text>
|
|
|
|
|
+ <text class="product-price">{{`${parseFloat(res.bigPrice)}`}}元/{{res.bigUnit}}</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.bigUnit}}</text>
|
|
|
|
|
+ <text style="color:green;margin-left:20upx;">可退{{Number(res.itemNum)-Number(res.refundNum)}}{{res.bigUnit}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-if="orderInfo.inBooking && orderInfo.inBooking == 1" style="border:1upx solid #CCCCCC;font-size:25upx;margin:8upx 0 5upx 0;padding:5upx 0 5upx 0;">
|
|
|
|
|
+ <view v-for="(send,sendIndex) in res.sendList" style="padding:5upx 5upx 5upx 8upx;" :key="sendIndex">
|
|
|
|
|
+ <view>{{ send.customName }}({{ send.seatSn }}) 上架数 {{ send.num }}{{res.bigUnit}}</view>
|
|
|
|
|
+ <view style="border-bottom:1upx solid #77a977;padding-bottom:6upx;padding-top:4upx;display: flex;align-items: center;margin-top:3upx;">
|
|
|
|
|
+ <input type="number" placeholder="下架数" v-model="send.currentRefundNum" placeholder-style="color:#CCCCCC" style="border: 1rpx solid #ddd;width:140upx;font-size:25upx;text-align:center;margin-right:10upx;" />
|
|
|
|
|
+ <text>可下架{{parseFloat((Number(send.num)-Number(send.outNum)).toFixed(2))}}{{res.bigUnit}}</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</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.bigUnit}}</text>
|
|
|
|
|
- <text style="color:green;margin-left:20upx;">可退{{Number(res.itemNum)-Number(res.refundNum)}}{{res.bigUnit}}</text>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="flex refund-item">
|
|
<view class="flex refund-item">
|
|
@@ -106,6 +115,7 @@ export default {
|
|
|
let hasError = false
|
|
let hasError = false
|
|
|
let product = []
|
|
let product = []
|
|
|
let that = this
|
|
let that = this
|
|
|
|
|
+ let sendData = null
|
|
|
this.product.forEach(ele=>{
|
|
this.product.forEach(ele=>{
|
|
|
let currentRefundCont = ele.refundCount ? Number(ele.refundCount) :0
|
|
let currentRefundCont = ele.refundCount ? Number(ele.refundCount) :0
|
|
|
let currentNum = ele.itemNum ? Number(ele.itemNum) : 0
|
|
let currentNum = ele.itemNum ? Number(ele.itemNum) : 0
|
|
@@ -116,13 +126,23 @@ export default {
|
|
|
hasError = true;
|
|
hasError = true;
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
|
|
|
+ //货位的售后和下架
|
|
|
|
|
+ sendData = []
|
|
|
|
|
+ if(!this.$util.isEmpty(ele.sendList)){
|
|
|
|
|
+ ele.sendList.forEach(sendele=>{
|
|
|
|
|
+ if(sendele.currentRefundNum && parseFloat(sendele.currentRefundNum)>0){
|
|
|
|
|
+ sendData.push({id:sendele.id,refundNum:sendele.currentRefundNum})
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
if(Number(ele.refundCount)>0){
|
|
if(Number(ele.refundCount)>0){
|
|
|
product.push({
|
|
product.push({
|
|
|
productId:ele.productId,
|
|
productId:ele.productId,
|
|
|
num:ele.refundCount,
|
|
num:ele.refundCount,
|
|
|
unitType:0,
|
|
unitType:0,
|
|
|
unitName:ele.bigUnit,
|
|
unitName:ele.bigUnit,
|
|
|
- unitPrice:ele.bigPrice
|
|
|
|
|
|
|
+ unitPrice:ele.bigPrice,
|
|
|
|
|
+ sendRefund:sendData
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|