| | |
| | | > |
| | | <el-table-column prop="code" label="订单编号" min-width="160px"> |
| | | <template slot-scope="{row}"> |
| | | <span class="order-no" @click="handleOrderDetail(row)">{{ row.code }}</span> |
| | | <span class="order-no" @click="handleOrderDetail(row.id)">{{ row.code }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="code" label="关联异常订单" min-width="160px"> |
| | | <template slot-scope="{row}"> |
| | | <span class="order-no" style="color: red;" @click="handleOrderDetail(row.relationOrderId)">{{ row.relationOrderCode }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="goodsInfo" label="物品信息" min-width="120px"></el-table-column> |
| | |
| | | <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 || 0) / 100).toFixed(2) }}</template> |
| | | <template slot-scope="{row}">¥{{ ((row.exceptionFee || 0) / 100).toFixed(2) }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="优惠券折扣" min-width="100px"> |
| | | <el-table-column label="优惠卷抵扣" min-width="100px"> |
| | | <template slot-scope="{row}">¥{{ ((row.deductionAmount || 0) / 100).toFixed(2) }}</template> |
| | | </el-table-column> |
| | | <el-table-column label="门店保管补贴" min-width="100px"> |
| | | <template slot-scope="{row}">¥{{ ((row.shopCompensationAmount || 0) / 100).toFixed(2) }}</template> |
| | | </el-table-column> |
| | | <el-table-column prop="statusDesc" label="订单状态" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="payTime" label="支付时间" min-width="150px"> </el-table-column> |
| | | <el-table-column prop="createTime" label="创建时间" min-width="150px"> </el-table-column> |
| | | <el-table-column label="操作" min-width="120" fixed="right"> |
| | | <el-table-column label="操作" min-width="180" 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> |
| | | <el-button type="text" v-if="row.status === 7 && row.exceptionStatus !== 1" @click="handleManualRefund(row)">手动退款</el-button> |
| | | <el-button type="text" v-if="row.status === 4 && !row.takeShopId && row.exceptionStatus !== 1" @click="handleAbnormal(row)">异常派单</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | <OperaDispatch ref="operaDispatch" @success="handlePageChange" /> |
| | | <OperaOrderDetail ref="operaOrderDetail" @success="handlePageChange" /> |
| | | <OperaManualRefund ref="operaManualRefund" @success="handlePageChange" /> |
| | | <OperaAbnormal ref="operaAbnormal" @success="handlePageChange" /> |
| | | </TableLayout> |
| | | </template> |
| | | |
| | |
| | | import OperaDispatch from '@/components/business/OperaDispatch' |
| | | import OperaOrderDetail from '@/components/business/OperaOrderDetail' |
| | | import OperaManualRefund from '@/components/business/OperaManualRefund' |
| | | import OperaAbnormal from '@/components/business/OperaAbnormal' |
| | | export default { |
| | | name: 'OrderManagement', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaDispatch, OperaOrderDetail, OperaManualRefund }, |
| | | components: { TableLayout, Pagination, OperaDispatch, OperaOrderDetail, OperaManualRefund, OperaAbnormal }, |
| | | data () { |
| | | return { |
| | | searchForm: { |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | handleAbnormal (row) { |
| | | this.$refs.operaAbnormal.open('异常派单', row) |
| | | }, |
| | | handleDateChange (val) { |
| | | this.searchForm.createStartTime = val ? val[0] : '' |
| | | this.searchForm.createEndTime = val ? val[1] : '' |
| | |
| | | // 异常派单逻辑 |
| | | this.$message.info('异常派单功能待实现') |
| | | }, |
| | | handleOrderDetail (row) { |
| | | this.$refs.operaOrderDetail.open(row) |
| | | handleOrderDetail (id) { |
| | | this.$refs.operaOrderDetail.open(id) |
| | | } |
| | | } |
| | | } |