Commit 874feaa3 by zhangxw

拍卖订单tab数量修改

1 parent ade08541
......@@ -181,12 +181,12 @@ export default class AuctionOrderPage extends PaginationComponent<AuctionOrder>
const tabs = [];
if (this.hasPrivilege('auction_order_1')) tabs.push({key: "", tab: `全部(${this.orderStateCount?.total})`});
AUCTION_ORDER_ORDER_STATES.forEach(item => {
if (item === 'CONTRACT_UNSIGNED') tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.vc(item)})`});
if (item === 'UNPAID' && this.hasPrivilege('auction_order_3')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.vc(item)})`});
if (item === 'WAIT_PICKUP' && this.hasPrivilege('auction_order_4')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.vc(item)})`});
if (item === 'TRANSFERRING' && this.hasPrivilege('auction_order_5')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.vc(item)})`});
if (item === 'COMPLETED' && this.hasPrivilege('auction_order_6')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.vc(item)})`});
if (item === 'CANCELED' && this.hasPrivilege('auction_order_7')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.vc(item)})`});
if (item === 'CONTRACT_UNSIGNED') tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.contractUnsignedCount})`});
if (item === 'UNPAID' && this.hasPrivilege('auction_order_3')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.unpaidCount})`});
if (item === 'WAIT_PICKUP' && this.hasPrivilege('auction_order_4')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.waitPickupCount})`});
if (item === 'TRANSFERRING' && this.hasPrivilege('auction_order_5')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.transferringCount})`});
if (item === 'COMPLETED' && this.hasPrivilege('auction_order_6')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.completedCount})`});
if (item === 'CANCELED' && this.hasPrivilege('auction_order_7')) tabs.push({key: item, tab: `${this.$t('enum.auctionOrder.orderState.' + item)}(${this.orderStateCount.canceledCount})`});
});
return tabs;
......
......@@ -225,7 +225,7 @@ export default class DetectionOrderPage extends PaginationComponent<Vehicle> {
get tabs() {
let tabs = [
{ key: "", tab: `全部 (${this.ccountByStatusData.total || 0}))` },
{ key: "", tab: `全部 (${this.ccountByStatusData.total || 0})` },
{ key: "DISPATCHED", tab: `待检测 (${this.ccountByStatusData.dispatchedCount || 0})` },
{ key: "IN_PROGRESS", tab: `检测中 (${this.ccountByStatusData.inProgressCount || 0})` },
{ key: "COMPLETED", tab: `已完成 (${this.ccountByStatusData.completedCount || 0})` },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!