|
@@ -248,12 +248,15 @@
|
|
|
<template #content>
|
|
|
<div class="refundBox l-flex-RC" style="overflow-y: auto; overflow-x: hidden; max-height: 40vh;">
|
|
|
<div v-for="(item, index) in orderDetails" :key="index" class="card01">
|
|
|
- <van-checkbox v-model="isChecked[index]" @change="checkGood(index)" icon-size="0.5rem"></van-checkbox>
|
|
|
+ <van-checkbox :disabled="item.price.toFixed(2) <= 0" v-model="isChecked[index]" @change="checkGood(index)" icon-size="0.5rem"></van-checkbox>
|
|
|
<van-card :price="item.price.toFixed(2)" :title="item.productName" :thumb="showSugarPic(item.productNo)">
|
|
|
<template #footer>
|
|
|
- <van-stepper v-model="refundNum[index]" @plus="plusRefundGood(index)" @minus="minusRefundGood(index)"
|
|
|
+ <van-stepper v-if="item.price.toFixed(2) > 0" v-model="refundNum[index]" @plus="plusRefundGood(index)" @minus="minusRefundGood(index)"
|
|
|
theme="round" button-size="0.55rem" disable-input
|
|
|
:max="item.refundQuantity == null ? item.productNumber : (item.productNumber - item.refundQuantity)" />
|
|
|
+ <span v-else>
|
|
|
+ 已优惠减免
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</van-card>
|
|
|
</div>
|
|
@@ -262,7 +265,8 @@
|
|
|
<van-field v-if="orderType === '3'" v-model="cofficentForm.refundReason" rows="2" autosize label="退款原因"
|
|
|
type="textarea" maxlength="30" :clearable="true" placeholder="请输入退款原因" show-word-limit />
|
|
|
<div class="btnFooter">
|
|
|
- <van-checkbox class="checkAllBtn o-mt-5" v-model="checkedAll" @click="checkAll">全选</van-checkbox>
|
|
|
+ <!-- <van-checkbox class="checkAllBtn o-mt-5" v-model="checkedAll" @click="checkAll">全选</van-checkbox> -->
|
|
|
+ <span></span>
|
|
|
<div class="o-mt-5">
|
|
|
<span class="">{{ $t('orderCenter.totalRefund') }}:</span>
|
|
|
<span class="totalRefund o-pr-15">{{ currencySymbol }} {{ totalRefund.toFixed(2) }}</span>
|
|
@@ -399,7 +403,7 @@ export default {
|
|
|
};
|
|
|
// 点击全选按钮
|
|
|
const checkAll = () => {
|
|
|
- isChecked.value.forEach((item, index) => {
|
|
|
+ isChecked.value.forEach((value, index) => {
|
|
|
if (checkedAll.value) {
|
|
|
isChecked.value[index] = true;
|
|
|
} else {
|
|
@@ -511,15 +515,9 @@ export default {
|
|
|
const showSugerPhoto = (row) => {
|
|
|
if (row.orderDetails != null) {
|
|
|
if (row.orderDetails.length > 0) {
|
|
|
- if (row.orderDetails[0].productNo == 'A99') {
|
|
|
- return require(`../../assets/order/spunSugar/goods/A30.png`);
|
|
|
- }
|
|
|
return require(`../../assets/order/spunSugar/goods/${row.orderDetails[0].productNo}.png`);
|
|
|
} else {
|
|
|
if (row.productNo != null) {
|
|
|
- if (row.productNo == 'A99') {
|
|
|
- return require(`../../assets/order/spunSugar/goods/A30.png`);
|
|
|
- }
|
|
|
return require(`../../assets/order/spunSugar/goods/${row.productNo}.png`);
|
|
|
}
|
|
|
if (row.machineType == null || row.machineType == '0') {
|
|
@@ -538,9 +536,6 @@ export default {
|
|
|
};
|
|
|
// 订单明细商品图片路径处理
|
|
|
const showSugarPic = (row) => {
|
|
|
- if (row == 'A99') {
|
|
|
- return require(`../../assets/order/spunSugar/goods/A30.png`);
|
|
|
- }
|
|
|
return require(`../../assets/order/spunSugar/goods/${row}.png`);
|
|
|
};
|
|
|
// 如果是空数据
|