Commit 86397cd7 by chenwq

```

feat(order): 移除待签约状态并更新订单状态逻辑

- 从订单标签页中移除'待签约'状态选项
- 从订单状态映射中移除'CONTRACT_UNSIGNED'状态
- 更新订单状态数组以保持索引对应关系

style(payment): 替换标题栏为图片并优化样式

- 将标题分隔条从纯色view替换为图片显示
- 使用静态资源中的标题栏图标替代原有的border-radius样式
- 添加新的订单相关图标资源文件

refactor(payment): 优化支付凭证同步逻辑

- 定义OrderWithPendingPaymentAudit类型接口
- 重构syncOrderVouchers方法以正确处理待审核支付凭证
- 添加对pendingPaymentAudit.payVouchers的安全访问
- 增加对voucher文件URL的有效性检查
```
1 parent a09f5a21
......@@ -146,9 +146,9 @@ export default class AuctionOrderPage extends PaginationComponent<AuctionOrder>
statusBarHeight = 0;
current = 0;
searchText = "";
tabs = ['全部订单', '待签约', '待支付', '待提车', '待过户', '已完成', '已取消', '申诉中'];
tabs = ['全部订单', '待支付', '待提车', '待过户', '已完成', '已取消', '申诉中'];
orderStates = ['', 'CONTRACT_UNSIGNED', 'UNPAID', 'WAIT_PICKUP', 'TRANSFERRING', 'COMPLETED', 'CANCELED'];
orderStates = ['', 'UNPAID', 'WAIT_PICKUP', 'TRANSFERRING', 'COMPLETED', 'CANCELED'];
created(): void {
this.init(this.axios, AuctionOrderController.PAGE_AUCTION_ORDER);
......
......@@ -2,7 +2,7 @@
<view v-if="order" class="order-payment-panel">
<view class="payment-card">
<view class="section-title">
<view class="section-title-bar"></view>
<image class="section-title-bar" src="/static/images/order/icon_title_bar.png" mode="scaleToFill"></image>
<text>车款信息</text>
</view>
<view class="payment-row">
......@@ -40,7 +40,7 @@
<view class="payment-card">
<view class="section-title">
<view class="section-title-bar"></view>
<image class="section-title-bar" src="/static/images/order/icon_title_bar.png" mode="scaleToFill"></image>
<text>收款信息(线下转账)</text>
</view>
<view v-if="bankAccountLoading" class="receipt-empty">收款信息加载中...</view>
......@@ -56,7 +56,7 @@
<view class="payment-card payment-card--last">
<view class="section-title">
<view class="section-title-bar"></view>
<image class="section-title-bar" src="/static/images/order/icon_title_bar.png" mode="scaleToFill"></image>
<text>上传支付凭证</text>
<text class="required-mark">*</text>
</view>
......@@ -131,6 +131,11 @@ import OrderCouponVerifyPopup from "@/module/order/detail/OrderCouponVerifyPopup
const COUPON_SELECT_NONE = "__none__";
const VOUCHER_LIMIT = 5;
type OrderWithPendingPaymentAudit = AuctionOrder & {
pendingPaymentAudit?: {
payVouchers?: FileInfo[];
};
};
@Component({
components: { OrderCouponSheetPopup, OrderCouponVerifyPopup },
......@@ -186,8 +191,13 @@ export default class OrderPaymentInfoPanel extends Vue {
}
syncOrderVouchers(): void {
if (!this.isAuditPending || !Array.isArray(this.order?.payVouchers)) return;
this.paymentVouchers = this.order.payVouchers.map((file) => this.normalizeVoucherFile(file));
if (!this.isAuditPending) return;
const pendingVouchers = (this.order as OrderWithPendingPaymentAudit)?.pendingPaymentAudit?.payVouchers;
this.paymentVouchers = Array.isArray(pendingVouchers)
? pendingVouchers
.filter((file) => !!file?.url)
.map((file) => this.normalizeVoucherFile(file))
: [];
}
get receiptInfoRows() {
......@@ -652,9 +662,8 @@ export default class OrderPaymentInfoPanel extends Vue {
.section-title-bar {
width: 4px;
height: 16px;
border-radius: 6px;
background: #3478ff;
margin-right: 8px;
flex-shrink: 0;
}
.section-title text {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!