fix: 订单详情增加退菜数量退款数量,修改可退款数量为下单数量-退菜-已退款

This commit is contained in:
2025-03-15 14:57:19 +08:00
parent 31d451894f
commit 6a37b53c8c

View File

@@ -149,9 +149,12 @@
</div>
</template>
</el-table-column>
<el-table-column label="数量">
<el-table-column label="下单数量">
<template v-slot="scope">x{{ scope.row.num }}</template>
</el-table-column>
<el-table-column label="退菜数量">
<template v-slot="scope">x{{ scope.row.returnNum }}</template>
</el-table-column>
<el-table-column label="单价">
<template v-slot="scope">{{ scope.row.unitPrice }}</template>
</el-table-column>
@@ -162,31 +165,38 @@
<template v-slot="scope">{{ scope.row.payAmount }}</template>
</el-table-column>
<el-table-column v-if="detail.status == 'unpaid'" label="可退菜数量" align="center">
<el-table-column
v-if="detail.status == 'unpaid'"
label="可退菜数量"
align="center"
width="130px"
>
<template v-slot="scope">
<el-input-number
v-if="scope.row.checked"
:min="0"
style="width: 120px"
style="width: 100px"
v-model="scope.row.selNumber"
:max="scope.row.num - scope.row.returnNum"
></el-input-number>
<span class="" v-else>{{ scope.row.num - scope.row.returnNum }}</span>
</template>
</el-table-column>
<el-table-column v-else label="可退款数量" align="center">
<el-table-column v-else label="可退款数量" align="center" width="130px">
<template v-slot="scope">
<el-input-number
v-if="scope.row.checked"
:min="0"
style="width: 120px"
style="width: 100px"
v-model="scope.row.selNumber"
:max="scope.row.num - scope.row.refundNum"
:max="scope.row.num - scope.row.refundNum - scope.row.returnNum"
></el-input-number>
<span class="" v-else>{{ scope.row.num - scope.row.refundNum }}</span>
<span class="" v-else>
{{ scope.row.num - scope.row.refundNum - scope.row.returnNum }}
</span>
</template>
</el-table-column>
<el-table-column label="已退" width="100" align="center">
<el-table-column label="已退款数量" width="100" align="center">
<template v-slot="scope">
<span v-if="detail.status == 'unpaid'">{{ scope.row.returnNum }}</span>
<span v-else>{{ scope.row.refundNum }}</span>