| | |
| | | <template slot-scope="{row}">¥{{ (row.overdueAmount / 100).toFixed(2) }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="异常金额" min-width="100px"> |
| | | <template slot-scope="{row}">¥{{ (row.exceptionAmount / 100).toFixed(2) }}</template> |
| | | <template slot-scope="{row}">¥{{ ((row.exceptionAmount || 0) / 100).toFixed(2) }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="优惠券折扣" min-width="100px"> |
| | | <template slot-scope="{row}">¥{{ ((row.deductionAmount || 0) / 100).toFixed(2) }}</template> |
| | | </el-table-column> |
| | | <el-table-column prop="statusDesc" label="订单状态" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | |
| | | <el-table-column label="操作" min-width="120" fixed="right"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" v-if="row.status ===2" @click="handleDispatch(row)">手动派单</el-button> |
| | | <el-button type="text" v-if="row.status === 7 && row.manualRefund === 0" @click="handleManualRefund(row)">手动退款</el-button> |
| | | <el-button type="text" v-if="row.status === 2">异常派单</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | <OperaDispatch ref="operaDispatch" @success="handlePageChange" /> |
| | | <OperaOrderDetail ref="operaOrderDetail" @success="handlePageChange" /> |
| | | <OperaManualRefund ref="operaManualRefund" @success="handlePageChange" /> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaDispatch from '@/components/business/OperaDispatch' |
| | | import OperaOrderDetail from '@/components/business/OperaOrderDetail' |
| | | import OperaManualRefund from '@/components/business/OperaManualRefund' |
| | | export default { |
| | | name: 'OrderManagement', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaDispatch, OperaOrderDetail }, |
| | | components: { TableLayout, Pagination, OperaDispatch, OperaOrderDetail, OperaManualRefund }, |
| | | data () { |
| | | return { |
| | | searchForm: { |
| | |
| | | handleDispatch (row) { |
| | | this.$refs.operaDispatch.open(row) |
| | | }, |
| | | handleManualRefund (row) { |
| | | this.$refs.operaManualRefund.open(row) |
| | | }, |
| | | handleExceptionDispatch (row) { |
| | | // 异常派单逻辑 |
| | | this.$message.info('异常派单功能待实现') |
| | | }, |
| | | handleOrderDetail (row) { |
| | | this.$refs.operaOrderDetail.open(row) |
| | | } |