Commit f238925b by chenwq

```

fix(order): 修复拍卖订单支付凭证上传功能

- 修复撤销并修改按钮点击事件,统一调用viewAuctionOrder方法
- 移除支付凭证上传组件的只读限制,允许审核中状态下的文件操作
- 将审核中状态按钮改为重新提交按钮,并添加加载状态
- 移除审核中状态下的文件选择和删除限制
```
1 parent 408859f6
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
<template v-if="order.orderState==='UNPAID'"> <template v-if="order.orderState==='UNPAID'">
<van-button v-if="!order.auditState" type="primary" hairline round @click="viewAuctionOrder(order)" size="small">立即付款</van-button> <van-button v-if="!order.auditState" type="primary" hairline round @click="viewAuctionOrder(order)" size="small">立即付款</van-button>
<van-button v-if="order.auditState==='UNAUDITED'" type="primary" hairline round <van-button v-if="order.auditState==='UNAUDITED'" type="primary" hairline round
@click="navigateTo('/module/order/payment/UploadPayVoucher?orderId=' + order.orderId)" @click="viewAuctionOrder(order)"
size="small">撤销并修改 size="small">撤销并修改
</van-button> </van-button>
<van-button v-if="order.auditState==='REJECTED'||order.auditState==='EXCEPTION'" type="primary" hairline round <van-button v-if="order.auditState==='REJECTED'||order.auditState==='EXCEPTION'" type="primary" hairline round
......
...@@ -69,8 +69,7 @@ ...@@ -69,8 +69,7 @@
</view> </view>
<text class="voucher-tip">上传支付凭证截图(1-5张,格式 jpg/png/jpeg)</text> <text class="voucher-tip">上传支付凭证截图(1-5张,格式 jpg/png/jpeg)</text>
<uni-file-picker fileMediatype="image" mode="grid" :image-styles="voucherImageStyles" <uni-file-picker fileMediatype="image" mode="grid" :image-styles="voucherImageStyles"
:limit="voucherLimit" file-extname="png,jpg,jpeg" :value="paymentVouchers" :limit="voucherLimit" file-extname="png,jpg,jpeg" :value="paymentVouchers" @select="selectVoucherFile" @del="deleteVoucherFile">
:readonly="isAuditPending" @select="selectVoucherFile" @del="deleteVoucherFile">
<view class="upload-placeholder"> <view class="upload-placeholder">
<uni-icons type="plusempty" size="28" color="#999" /> <uni-icons type="plusempty" size="28" color="#999" />
<text class="upload-text">上传凭证</text> <text class="upload-text">上传凭证</text>
...@@ -82,8 +81,7 @@ ...@@ -82,8 +81,7 @@
<!-- <van-button v-if="order.orderState !== 'UNPAID'" type="primary" hairline round @click="navigateBack" <!-- <van-button v-if="order.orderState !== 'UNPAID'" type="primary" hairline round @click="navigateBack"
block>已完成付款</van-button> block>已完成付款</van-button>
<template v-else> --> <template v-else> -->
<van-button v-if="isAuditPending" type="primary" hairline round disabled <van-button v-if="isAuditPending" type="primary" hairline round block :loading="voucherSubmitting" @click="uploadVoucher">重新提交</van-button>
custom-style="opacity: 0.5;" block>审核中</van-button>
<van-button v-else type="primary" hairline round :loading="voucherSubmitting" <van-button v-else type="primary" hairline round :loading="voucherSubmitting"
:custom-style="voucherSubmitButtonStyle" @click="uploadVoucher" block> :custom-style="voucherSubmitButtonStyle" @click="uploadVoucher" block>
{{ voucherSubmitButtonText }} {{ voucherSubmitButtonText }}
...@@ -599,7 +597,6 @@ export default class OrderPaymentInfoPanel extends Vue { ...@@ -599,7 +597,6 @@ export default class OrderPaymentInfoPanel extends Vue {
} }
async selectVoucherFile(e: any): Promise<void> { async selectVoucherFile(e: any): Promise<void> {
if (this.isAuditPending) return;
const tempFiles = e?.tempFiles || []; const tempFiles = e?.tempFiles || [];
if (!tempFiles.length) return; if (!tempFiles.length) return;
const remain = VOUCHER_LIMIT - this.paymentVouchers.length; const remain = VOUCHER_LIMIT - this.paymentVouchers.length;
...@@ -639,7 +636,6 @@ export default class OrderPaymentInfoPanel extends Vue { ...@@ -639,7 +636,6 @@ export default class OrderPaymentInfoPanel extends Vue {
} }
deleteVoucherFile(e: any): void { deleteVoucherFile(e: any): void {
if (this.isAuditPending) return;
const index = typeof e?.index === "number" ? e.index : -1; const index = typeof e?.index === "number" ? e.index : -1;
if (index >= 0) { if (index >= 0) {
this.paymentVouchers.splice(index, 1); this.paymentVouchers.splice(index, 1);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!