|
|
@@ -15,7 +15,7 @@
|
|
|
退款数量
|
|
|
</view>
|
|
|
<view class="fs-24 fc-9">
|
|
|
- 最多可退 {{(Number(this.goods_info.goods_number) - Number(this.goods_info.finish_number))}} 张
|
|
|
+ 最多可退 {{(Number(this.goods_info.goods_number) - Number(this.goods_info.finish_number) - Number(this.goods_info.refund_number))}} 张
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="align-items-center">
|
|
|
@@ -170,10 +170,9 @@
|
|
|
this.$refs.popup.close()
|
|
|
},
|
|
|
blur() {
|
|
|
- if (this.fromData.number >= (Number(this.goods_info.goods_number) - Number(this.goods_info
|
|
|
- .finish_number))) {
|
|
|
- tools.error('退款数量最大为' + (Number(this.goods_info.goods_number) - Number(this.goods_info.finish_number)))
|
|
|
- this.fromData.number = (Number(this.goods_info.goods_number) - Number(this.goods_info.finish_number))
|
|
|
+ if (this.fromData.number >= (Number(this.goods_info.goods_number) - Number(this.goods_info.finish_number) - Number(this.goods_info.refund_number))) {
|
|
|
+ tools.error('退款数量最大为' + (Number(this.goods_info.goods_number) - Number(this.goods_info.finish_number) - Number(this.goods_info.refund_number)))
|
|
|
+ this.fromData.number = (Number(this.goods_info.goods_number) - Number(this.goods_info.finish_number) - Number(this.goods_info.refund_number))
|
|
|
} else if (this.fromData.number <= 0) {
|
|
|
tools.error('退款数量最少为1')
|
|
|
this.fromData.number = 1
|
|
|
@@ -189,8 +188,7 @@
|
|
|
--this.fromData.number
|
|
|
} else {
|
|
|
// 加
|
|
|
- if (this.fromData.number >= (Number(this.goods_info.goods_number) - Number(this.goods_info
|
|
|
- .finish_number))) {
|
|
|
+ if (this.fromData.number >= (Number(this.goods_info.goods_number) - Number(this.goods_info.finish_number) - Number(this.goods_info.refund_number))) {
|
|
|
tools.error('退款数量已是最大值')
|
|
|
return
|
|
|
}
|