rk
2026-05-22 552238172036acf08ccf36134282a06b5e21b936
admin/src/views/business/orderManagement.vue
@@ -57,7 +57,12 @@
      >
        <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>
@@ -93,10 +98,13 @@
          <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}">
@@ -114,11 +122,11 @@
        </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>
@@ -131,6 +139,7 @@
    <OperaDispatch ref="operaDispatch" @success="handlePageChange" />
    <OperaOrderDetail ref="operaOrderDetail"  @success="handlePageChange"  />
    <OperaManualRefund ref="operaManualRefund" @success="handlePageChange" />
    <OperaAbnormal ref="operaAbnormal" @success="handlePageChange" />
  </TableLayout>
</template>
@@ -141,10 +150,11 @@
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: {
@@ -169,6 +179,9 @@
    this.search()
  },
  methods: {
    handleAbnormal (row) {
      this.$refs.operaAbnormal.open('异常派单', row)
    },
    handleDateChange (val) {
      this.searchForm.createStartTime = val ? val[0] : ''
      this.searchForm.createEndTime = val ? val[1] : ''
@@ -199,8 +212,8 @@
      // 异常派单逻辑
      this.$message.info('异常派单功能待实现')
    },
    handleOrderDetail (row) {
      this.$refs.operaOrderDetail.open(row)
    handleOrderDetail (id) {
      this.$refs.operaOrderDetail.open(id)
    }
  }
}