新增历史补单与服务中状态
This commit is contained in:
@@ -108,6 +108,22 @@
|
||||
>
|
||||
取消订单
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="record.status === 4 && canProcessOrders"
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="process(record.id, 2)"
|
||||
>
|
||||
完成补单
|
||||
</a-button>
|
||||
<a-button
|
||||
v-if="record.status === 4 && canProcessOrders && !isArtist"
|
||||
danger
|
||||
size="small"
|
||||
@click="process(record.id, 3)"
|
||||
>
|
||||
取消补单
|
||||
</a-button>
|
||||
</a-space>
|
||||
</template>
|
||||
</template>
|
||||
@@ -175,6 +191,8 @@
|
||||
>
|
||||
取消
|
||||
</a-button>
|
||||
<a-button v-if="item.status === 4 && canProcessOrders" size="small" type="primary" @click="process(item.id, 2)">完成补单</a-button>
|
||||
<a-button v-if="item.status === 4 && canProcessOrders && !isArtist" size="small" danger @click="process(item.id, 3)">取消补单</a-button>
|
||||
</div>
|
||||
</article>
|
||||
</template>
|
||||
@@ -195,6 +213,7 @@
|
||||
<a-descriptions-item label="实付金额">{{ formatMoney(currentOrder.actualAmount) }}</a-descriptions-item>
|
||||
<a-descriptions-item label="优惠券">{{ currentOrder.couponName || '无' }}</a-descriptions-item>
|
||||
<a-descriptions-item label="订单状态">{{ orderStatusText(currentOrder) }}</a-descriptions-item>
|
||||
<a-descriptions-item label="订单来源">{{ currentOrder.orderSource === 'HISTORICAL_BACKFILL' ? '历史补单' : '正常订单' }}</a-descriptions-item>
|
||||
<a-descriptions-item label="创建时间" :span="isMobile ? 1 : 2">{{ currentOrder.createTime }}</a-descriptions-item>
|
||||
</a-descriptions>
|
||||
|
||||
@@ -496,7 +515,8 @@ const statusOptions = [
|
||||
{ label: '待报价', value: '0' },
|
||||
{ label: '待完成', value: '1' },
|
||||
{ label: '已完成', value: '2' },
|
||||
{ label: '已取消', value: '3' }
|
||||
{ label: '已取消', value: '3' },
|
||||
{ label: '服务中', value: '4' }
|
||||
]
|
||||
|
||||
const activeFilterCount = computed(() => [
|
||||
@@ -623,6 +643,7 @@ const statusColor = (status: number) => {
|
||||
if (normalized === 1) return 'orange'
|
||||
if (normalized === 2) return 'green'
|
||||
if (normalized === 3) return 'red'
|
||||
if (normalized === 4) return 'processing'
|
||||
return 'default'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user