fix: 订单详情增加退菜数量退款数量,修改可退款数量为下单数量-退菜-已退款
This commit is contained in:
@@ -149,9 +149,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="数量">
|
<el-table-column label="下单数量">
|
||||||
<template v-slot="scope">x{{ scope.row.num }}</template>
|
<template v-slot="scope">x{{ scope.row.num }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column label="退菜数量">
|
||||||
|
<template v-slot="scope">x{{ scope.row.returnNum }}</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="单价">
|
<el-table-column label="单价">
|
||||||
<template v-slot="scope">¥{{ scope.row.unitPrice }}</template>
|
<template v-slot="scope">¥{{ scope.row.unitPrice }}</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -162,31 +165,38 @@
|
|||||||
<template v-slot="scope">¥{{ scope.row.payAmount }}</template>
|
<template v-slot="scope">¥{{ scope.row.payAmount }}</template>
|
||||||
</el-table-column>
|
</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">
|
<template v-slot="scope">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-if="scope.row.checked"
|
v-if="scope.row.checked"
|
||||||
:min="0"
|
:min="0"
|
||||||
style="width: 120px"
|
style="width: 100px"
|
||||||
v-model="scope.row.selNumber"
|
v-model="scope.row.selNumber"
|
||||||
:max="scope.row.num - scope.row.returnNum"
|
:max="scope.row.num - scope.row.returnNum"
|
||||||
></el-input-number>
|
></el-input-number>
|
||||||
<span class="" v-else>{{ scope.row.num - scope.row.returnNum }}</span>
|
<span class="" v-else>{{ scope.row.num - scope.row.returnNum }}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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">
|
<template v-slot="scope">
|
||||||
<el-input-number
|
<el-input-number
|
||||||
v-if="scope.row.checked"
|
v-if="scope.row.checked"
|
||||||
:min="0"
|
:min="0"
|
||||||
style="width: 120px"
|
style="width: 100px"
|
||||||
v-model="scope.row.selNumber"
|
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>
|
></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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="已退" width="100" align="center">
|
<el-table-column label="已退款数量" width="100" align="center">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<span v-if="detail.status == 'unpaid'">{{ scope.row.returnNum }}</span>
|
<span v-if="detail.status == 'unpaid'">{{ scope.row.returnNum }}</span>
|
||||||
<span v-else>{{ scope.row.refundNum }}</span>
|
<span v-else>{{ scope.row.refundNum }}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user