|
|
@@ -111,11 +111,17 @@
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
|
|
|
+ <el-table-column label="订单佣金" width="100">
|
|
|
+ <template #default="{ row }">
|
|
|
+ <span v-if="row.orderCommission !== null && row.orderCommission !== undefined" style="color: #f56c6c; font-weight: bold">¥{{ row.orderCommission / 100.0 }}</span>
|
|
|
+ <span v-else>-</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+
|
|
|
<el-table-column label="履约信息" width="140">
|
|
|
<template #default="{ row }">
|
|
|
<div v-if="row.fulfillerName" class="fulfiller-info">
|
|
|
<span class="fulfiller-name">{{ row.fulfillerName }}</span>
|
|
|
- <span class="fulfiller-fee" v-if="row.fulfillmentCommission !== null && row.fulfillmentCommission !== undefined">¥{{ row.fulfillmentCommission / 100.0 }}</span>
|
|
|
</div>
|
|
|
<span v-else class="text-gray">暂未指派</span>
|
|
|
</template>
|
|
|
@@ -339,12 +345,14 @@ const getServiceMode = (serviceId) => {
|
|
|
};
|
|
|
|
|
|
const getServiceModeTag = (row) => {
|
|
|
+ if (getServiceMode(row.service) !== 1 && getServiceMode(row.service) !== '1') return '';
|
|
|
const t = row?.type;
|
|
|
if (t === 0 || t === '0' || t === 1 || t === '1') return '往返';
|
|
|
return '';
|
|
|
};
|
|
|
|
|
|
const getServiceOrderTypeTag = (row) => {
|
|
|
+ if (getServiceMode(row.service) !== 1 && getServiceMode(row.service) !== '1') return null;
|
|
|
const t = row?.type;
|
|
|
if (t === 0 || t === '0') return { label: '接', type: 'primary' };
|
|
|
if (t === 1 || t === '1') return { label: '送', type: 'success' };
|
|
|
@@ -467,8 +475,9 @@ const handleDetail = async (row) => {
|
|
|
info.mode === 1 || info.mode === '1'
|
|
|
? info.toAddress || currentOrder.value?.address
|
|
|
: info.address || info.toAddress || currentOrder.value?.address,
|
|
|
- fulfillmentCommission: info.fulfillmentCommission !== undefined && info.fulfillmentCommission !== null ? Number(info.fulfillmentCommission) / 100 : currentOrder.value?.fulfillmentCommission,
|
|
|
- fulfillerFee: info.fulfillmentCommission !== undefined && info.fulfillmentCommission !== null ? Number(info.fulfillmentCommission) / 100 : currentOrder.value?.fulfillerFee,
|
|
|
+ fulfillmentCommission: info.fulfillmentCommission ?? currentOrder.value?.fulfillmentCommission,
|
|
|
+ orderCommission: info.orderCommission ?? currentOrder.value?.orderCommission,
|
|
|
+ fulfillerFee: info.fulfillmentCommission ?? currentOrder.value?.fulfillerFee,
|
|
|
merchantName: info.storeName || currentOrder.value?.merchantName,
|
|
|
platformId: info.platformId ?? currentOrder.value?.platformId,
|
|
|
groupBuyPackage: info.groupPurchasePackageName || currentOrder.value?.groupBuyPackage,
|
|
|
@@ -545,6 +554,7 @@ const openDispatchDialog = (row) => {
|
|
|
dropAddr,
|
|
|
service: row.service,
|
|
|
fulfillmentCommission: row.fulfillmentCommission,
|
|
|
+ orderCommission: row.orderCommission,
|
|
|
riderId: row.riderId || row.fulfiller || null,
|
|
|
riderGender: row.fulfillerGender
|
|
|
};
|