|
@@ -56,7 +56,7 @@
|
|
|
</div>
|
|
|
<kNoData v-else></kNoData>
|
|
|
<!-- 时间 -->
|
|
|
- <div class="c-text-c c-text-18 o-ptb-5" v-if="searchParams.startDate != '' || searchParams.endDate != ''">
|
|
|
+ <div class="c-text-c c-text-18 o-ptb-5" v-if="searchParams.startDate != '' || searchParams.endDate != ''">
|
|
|
{{ Format_time(searchParams.startDate, 'YYYY-MM-DD') }}--{{ Format_time(searchParams.endDate, 'YYYY-MM-DD') }}
|
|
|
</div>
|
|
|
<div class="group7 flex-col justify-center">
|
|
@@ -69,7 +69,7 @@
|
|
|
<span class="info3">
|
|
|
{{ $t('orderCenter.total') }}
|
|
|
<span style="color: #df5e4c; font-size: 18px;">{{ total }}</span>
|
|
|
- {{ $t('orderCenter.records')}}
|
|
|
+ {{ $t('orderCenter.records') }}
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -109,6 +109,9 @@
|
|
|
<span class="word12" v-else>{{ item.refundAmount == null ? item.price.toFixed(2) : (item.price -
|
|
|
item.refundAmount).toFixed(2) }}</span>
|
|
|
</div>
|
|
|
+ <!-- <span v-if="user.ifForeign === '0' && user.isDistribution === '1'" class="giveAway">
|
|
|
+ {{ $t('orderCenter.dividingDomesticService') }} :{{ currencySymbol }}{{ showSubcom(item) }}
|
|
|
+ </span> -->
|
|
|
</template>
|
|
|
<template #price-top>
|
|
|
<span class="time_01"
|
|
@@ -187,7 +190,9 @@
|
|
|
<span class="info3">{{ showPayType(refundObject) }}</span>
|
|
|
</div>
|
|
|
<div class="layer3 flex-row justify-between">
|
|
|
- <span class="word2">{{ refundObject.status === 1? $t('orderCenter.paymentTime') : refundObject.status === 3? $t('orderCenter.refundTime') : $t('orderCenter.creationTime') }}</span>
|
|
|
+ <span class="word2">{{ refundObject.status === 1 ? $t('orderCenter.paymentTime') : refundObject.status ===
|
|
|
+ 3 ?
|
|
|
+ $t('orderCenter.refundTime') : $t('orderCenter.creationTime') }}</span>
|
|
|
<span class="info3">{{ showOrderTime(refundObject, 1) }}</span>
|
|
|
</div>
|
|
|
<div v-if="refundObject.status === 3" class="layer3 flex-row justify-between">
|
|
@@ -225,12 +230,16 @@
|
|
|
<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="20px"></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)"
|
|
|
- theme="round" button-size="22" disable-input
|
|
|
+ <van-stepper v-if="item.price.toFixed(2) > 0" v-model="refundNum[index]" @plus="plusRefundGood(index)"
|
|
|
+ @minus="minusRefundGood(index)" theme="round" button-size="22" disable-input
|
|
|
:max="item.refundQuantity == null ? item.productNumber : (item.productNumber - item.refundQuantity)" />
|
|
|
+ <span v-else>
|
|
|
+ 已优惠减免
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</van-card>
|
|
|
</div>
|
|
@@ -239,7 +248,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>
|
|
@@ -376,13 +386,6 @@ export default {
|
|
|
} else {
|
|
|
isChecked.value[index] = false;
|
|
|
}
|
|
|
- // if (isChecked.value[index]) {
|
|
|
- // isChecked.value[index] = !isChecked.value[index]
|
|
|
- // checkedAll.value = false;
|
|
|
- // } else {
|
|
|
- // isChecked.value[index] = !isChecked.value[index]
|
|
|
- // checkedAll.value = true;
|
|
|
- // }
|
|
|
})
|
|
|
}
|
|
|
// 点击确定按钮
|
|
@@ -392,7 +395,7 @@ export default {
|
|
|
cofficentForm.price = 0;
|
|
|
isChecked.value.forEach((isCheckedValue, index) => {
|
|
|
if (isCheckedValue) {
|
|
|
- cofficentForm.note = cofficentForm.note + orderDetails.value[index].productNo + "-" + refundNum.value[index] + ","
|
|
|
+ cofficentForm.note = cofficentForm.note + orderDetails.value[index].id + "-" + refundNum.value[index] + ","
|
|
|
cofficentForm.productNumber = cofficentForm.productNumber + refundNum.value[index];
|
|
|
}
|
|
|
})
|
|
@@ -459,15 +462,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') {
|
|
@@ -486,9 +483,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`);
|
|
|
};
|
|
|
// 如果是空数据
|
|
@@ -543,6 +537,7 @@ export default {
|
|
|
companyType: "", // 公司平台
|
|
|
machineType: "", // 设备类型
|
|
|
ifForeign: "",
|
|
|
+ username: "",
|
|
|
});
|
|
|
|
|
|
let chartType = "day";
|
|
@@ -571,6 +566,7 @@ export default {
|
|
|
|
|
|
// 获取订单列表
|
|
|
const { data } = await getOrderList(Object.assign({}, params));
|
|
|
+ total.value = 0;
|
|
|
if (data.code === "00000") {
|
|
|
if (data.data.total === 0) {
|
|
|
finished.value = true;
|
|
@@ -838,6 +834,7 @@ export default {
|
|
|
ifForeign: searchParams.ifForeign == '' ? user.ifForeign : searchParams.ifForeign,
|
|
|
startDate: searchParams.startDate,
|
|
|
userName: searchParams.userName,
|
|
|
+ username: searchParams.username,
|
|
|
clientId:
|
|
|
searchParams.clientId === "" ? null : searchParams.clientId,
|
|
|
equipmentId:
|