Commit 83e780da by puhui999

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

parent be143ea2
......@@ -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'))
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment