订单列表:列表重构: 完善订单发货、修改地址、订单调价、订单备注

This commit is contained in:
puhui999 2023-08-22 17:42:20 +08:00
parent be143ea21b
commit 83e780da06
2 changed files with 3 additions and 9 deletions

View File

@ -66,6 +66,7 @@ const submitForm = async () => {
const data = unref(formData)
if (radio.value === '2') {
data.logisticsId = 0
data.logisticsNo = ''
}
await TradeOrderApi.delivery(data)
message.success(t('common.updateSuccess'))

View File

@ -164,7 +164,7 @@
</el-table-column>
<el-table-column align="center" label="配送方式" width="120">
<template #default>
<span>{{ scope.row.deliveryType || '快递' }}</span>
<dict-tag :type="DICT_TYPE.DELIVERY_TYPE" :value="scope.row.deliveryType" />
</template>
</el-table-column>
<el-table-column align="center" fixed="right" label="操作" width="160">
@ -189,10 +189,6 @@
<Icon icon="ep:chat-line-square" />
订单备注
</el-dropdown-item>
<el-dropdown-item command="refund">
<Icon icon="ep:credit-card" />
立即退款
</el-dropdown-item>
</el-dropdown-menu>
</template>
</el-dropdown>
@ -221,7 +217,7 @@
min-width="180"
prop="payTime"
/>
<el-table-column align="center" label="支付类型" min-width="100" prop="payChannelCode">
<el-table-column align="center" label="支付类型" min-width="120" prop="payChannelCode">
<template #default="{ row }">
<dict-tag
v-if="row.payChannelCode"
@ -314,13 +310,10 @@ const spanMethod = ({ rowIndex, columnIndex }: SpanMethodProps) => {
}
/** 操作分发 */
const handleCommand = (command: string, row: OrderVO) => {
console.log(row)
switch (command) {
case 'orderRemarks':
orderRemarksFormRef.value?.open(row)
break
case 'refund':
break
case 'delivery':
deliveryOrderFormRef.value?.open(row.id)
break