Commit 408859f6 by chenwq

Merge branch 'v5.8.5' of http://192.168.3.233:8090/usedCarAuction/aus into v5.8.5

2 parents edd57ea6 1b14ae35
...@@ -219,8 +219,8 @@ public class AuctionOrderController { ...@@ -219,8 +219,8 @@ public class AuctionOrderController {
// 转换URL为FileInfo // 转换URL为FileInfo
List<FileInfo> payVouchers = null; List<FileInfo> payVouchers = null;
if (vo.getPayVouchers() != null && !vo.getPayVouchers().isEmpty()) { if (vo.getPayVouchers() != null) {
payVouchers = convertUrlsToFileInfos(vo.getPayVouchers()); payVouchers = vo.getPayVouchers().isEmpty() ? null : convertUrlsToFileInfos(vo.getPayVouchers());
} }
// 创建或更新OrderTransaction记录(与小程序端逻辑一致) // 创建或更新OrderTransaction记录(与小程序端逻辑一致)
...@@ -280,18 +280,10 @@ public class AuctionOrderController { ...@@ -280,18 +280,10 @@ public class AuctionOrderController {
if (vo.getNewPlateNumber() != null) { if (vo.getNewPlateNumber() != null) {
order.setNewPlateNumber(vo.getNewPlateNumber()); order.setNewPlateNumber(vo.getNewPlateNumber());
} }
if (vo.getRegistrationCertificate() != null && !vo.getRegistrationCertificate().isEmpty()) { order.setRegistrationCertificate(vo.getRegistrationCertificate() == null || vo.getRegistrationCertificate().isEmpty() ? null : convertUrlsToFileInfos(vo.getRegistrationCertificate()));
order.setRegistrationCertificate(convertUrlsToFileInfos(vo.getRegistrationCertificate())); order.setVehicleLicense(vo.getVehicleLicense() == null || vo.getVehicleLicense().isEmpty() ? null : convertUrlsToFileInfos(vo.getVehicleLicense()));
} order.setTransferInvoice(vo.getTransferInvoice() == null || vo.getTransferInvoice().isEmpty() ? null : completeFileInfos(vo.getTransferInvoice()));
if (vo.getVehicleLicense() != null && !vo.getVehicleLicense().isEmpty()) { order.setNewOwnerIdCard(vo.getNewOwnerIdCard() == null || vo.getNewOwnerIdCard().isEmpty() ? null : convertUrlsToFileInfos(vo.getNewOwnerIdCard()));
order.setVehicleLicense(convertUrlsToFileInfos(vo.getVehicleLicense()));
}
if (vo.getTransferInvoice() != null && !vo.getTransferInvoice().isEmpty()) {
order.setTransferInvoice(completeFileInfos(vo.getTransferInvoice()));
}
if (vo.getNewOwnerIdCard() != null && !vo.getNewOwnerIdCard().isEmpty()) {
order.setNewOwnerIdCard(convertUrlsToFileInfos(vo.getNewOwnerIdCard()));
}
auctionOrderService.updateAuctionOrder(order); auctionOrderService.updateAuctionOrder(order);
...@@ -324,12 +316,8 @@ public class AuctionOrderController { ...@@ -324,12 +316,8 @@ public class AuctionOrderController {
} }
// 更新车务资料 // 更新车务资料
if (vo.getRegistrationCertificate() != null && !vo.getRegistrationCertificate().isEmpty()) { order.setRegistrationCertificate(vo.getRegistrationCertificate() == null || vo.getRegistrationCertificate().isEmpty() ? null : convertUrlsToFileInfos(vo.getRegistrationCertificate()));
order.setRegistrationCertificate(convertUrlsToFileInfos(vo.getRegistrationCertificate())); order.setVehicleLicense(vo.getVehicleLicense() == null || vo.getVehicleLicense().isEmpty() ? null : convertUrlsToFileInfos(vo.getVehicleLicense()));
}
if (vo.getVehicleLicense() != null && !vo.getVehicleLicense().isEmpty()) {
order.setVehicleLicense(convertUrlsToFileInfos(vo.getVehicleLicense()));
}
auctionOrderService.updateAuctionOrder(order); auctionOrderService.updateAuctionOrder(order);
log.info("更新车务资料成功, orderId: {}", vo.getOrderId()); log.info("更新车务资料成功, orderId: {}", vo.getOrderId());
......
...@@ -265,7 +265,7 @@ public class AuctionOrderController { ...@@ -265,7 +265,7 @@ public class AuctionOrderController {
*/ */
@GetMapping("getAuctionOrderByVehicleId") @GetMapping("getAuctionOrderByVehicleId")
public int getAuctionOrderByVehicleId(@RequestParam int vehicleId, @RequestAttribute(LOGIN_ACCOUNT) Account account) { public int getAuctionOrderByVehicleId(@RequestParam int vehicleId, @RequestAttribute(LOGIN_ACCOUNT) Account account) {
AuctionOrder auctionOrder = auctionOrderService.getAuctionOrderByVehicleId(vehicleId, account.getAccountId(), AuctionOrder.OrderState.CONTRACT_UNSIGNED); AuctionOrder auctionOrder = auctionOrderService.getAuctionOrderByVehicleId(vehicleId, account.getAccountId(), AuctionOrder.OrderState.UNPAID);
if (Objects.nonNull(auctionOrder)) { if (Objects.nonNull(auctionOrder)) {
return auctionOrder.getOrderId(); return auctionOrder.getOrderId();
} else { } else {
......
...@@ -122,7 +122,7 @@ export default class UploadTransferringOrder extends Vue { ...@@ -122,7 +122,7 @@ export default class UploadTransferringOrder extends Vue {
} }
// 验证机动车行驶证(必须上传主页和副页) // 验证机动车行驶证(必须上传主页和副页)
if (!this.formState.vehicleLicense) { if (!this.formState.vehicleLicense || this.formState.vehicleLicense.length < 1) {
message.warning('请至少上传一张机动车行驶证'); message.warning('请至少上传一张机动车行驶证');
return; return;
} }
......
...@@ -95,38 +95,18 @@ export default class MasterContractPage extends PaginationComponent<Contract> { ...@@ -95,38 +95,18 @@ export default class MasterContractPage extends PaginationComponent<Contract> {
]; ];
this.init(this.axios, ContractController.PLATFORM_PAGE_CONTRACT); this.init(this.axios, ContractController.PLATFORM_PAGE_CONTRACT);
this.buildQueryForm({ this.buildQueryForm({
contractCode: [null, {label: '合同编号', field: 'contractCode', operator: Operator.like, maxLength: 32}], contractCode: [null, {label: '合同编号', field: 'contractCode', operator: Operator.like}],
contractName: [null, {label: '合同名称', field: 'contractName', operator: Operator.like, maxLength: 50}], contractName: [null, {label: '合同名称', field: 'contractName', operator: Operator.like}],
contractStatus: [null, {label: '签署状态', field: 'contractStatus', type: 'select', optionItems: signedOptions, allowClear: true, operator: Operator.eq}], contractStatus: [null, {label: '签署状态', field: 'contractStatus', type: 'select', optionItems: signedOptions, allowClear: true, operator: Operator.eq}],
signerName: [null, {label: '签署乙方姓名', field: 'signerName', operator: Operator.like, maxLength: 20}], signerName: [null, {label: '签署乙方姓名', field: 'signerName', operator: Operator.like}],
createTime: [null, {label: '创建时间', field: 'createTime', operator: Operator.dateBetween, type: 'date-range'}], createTime: [null, {label: '创建时间', field: 'createTime', operator: Operator.dateBetween, type: 'date-range'}],
signTime: [null, {label: '签署时间', field: 'signTime', operator: Operator.dateBetween, type: 'date-range', disabled: true}], signTime: [null, {label: '签署时间', field: 'signTime', operator: Operator.dateBetween, type: 'date-range'}],
}); });
this.pagination.setDefaultSort('createTime', Order.desc); this.pagination.setDefaultSort('createTime', Order.desc);
this.pageLoad(); this.pageLoad();
} }
/** /**
* 监听签署状态变化,控制签署时间字段的禁用状态
*/
@Watch('pagination.queryForm.contractStatus')
onSignedChange(newVal: boolean, oldVal: boolean): void {
// 获取签署时间字段的配置
const signTimeField = this.pagination.filterFields.find(field => field.fieldName === 'signTime');
if (signTimeField) {
// 当签署状态不为"已签署"时,禁用签署时间字段并清空值
signTimeField.disabled = newVal !== true;
if (newVal !== true && this.pagination.queryForm.signTime) {
this.pagination.queryForm.signTime = null;
}
}
}
i18n(text: string): string {
return this.$t(text);
}
/**
* 复制合同编号 * 复制合同编号
*/ */
copyContractCode(contractCode: string): void { copyContractCode(contractCode: string): void {
......
...@@ -87,20 +87,19 @@ ...@@ -87,20 +87,19 @@
<view class="section-desc">请上传本人的身份证照片,证件信息仅用于身份认证</view> <view class="section-desc">请上传本人的身份证照片,证件信息仅用于身份认证</view>
<view class="upload-section"> <view class="upload-section">
<view class="upload-item"> <view class="upload-item">
<uni-file-picker fileMediatype="image" :image-styles="imageStyles" @select="selectFile($event,'front')" mode="grid" :auto-upload="true" <uni-file-picker fileMediatype="image" :image-styles="imageStyles" @select="selectFile($event,'front')" @delete="deleteFile('front')" mode="grid" :auto-upload="true"
:limit="1" file-extname="png,jpg,jpeg"> :limit="1" file-extname="png,jpg,jpeg">
<view class="upload-placeholder"> <view class="upload-placeholder">
<image v-if="formData.idCardPortrait?.url || account?.idCardPortraitUrl" :src="formData.idCardPortrait?.url || account?.idCardPortraitUrl" mode="aspectFill" style="width: 100%; height: 150px;"></image> <image src="~@/static/images/account/certifition/idcard_0@2x.png" style="width: 100%; height: 150px;"></image>
<image v-else src="~@/static/images/account/certifition/idcard_0@2x.png" style="width: 100%; height: 150px;"></image>
<text class="upload-text">上传人像面</text> <text class="upload-text">上传人像面</text>
</view> </view>
</uni-file-picker> </uni-file-picker>
</view> </view>
<view class="upload-item"> <view class="upload-item">
<uni-file-picker fileMediatype="image" :image-styles="imageStyles" @select="selectFile($event,'back')" :limit="1" file-extname="png,jpg,jpeg"> <uni-file-picker fileMediatype="image" :image-styles="imageStyles" @select="selectFile($event,'back')" @delete="deleteFile('back')" :limit="1" file-extname="png,jpg,jpeg">
<view class="upload-placeholder"> <view class="upload-placeholder">
<image v-if="formData.idCardNationalEmblem?.url || account?.idCardNationalEmblemUrl" :src="formData.idCardNationalEmblem?.url || account?.idCardNationalEmblemUrl" mode="aspectFill" style="width: 100%; height: 150px;"></image> <image class="add-img" src="~@/static/images/account/certifition/idcard_1@2x.png" style="width: 100%; height: 150px;"></image>
<image v-else src="~@/static/images/account/certifition/idcard_1@2x.png" style="width: 100%; height: 150px;"></image>
<text class="upload-text">上传国徽面</text> <text class="upload-text">上传国徽面</text>
</view> </view>
</uni-file-picker> </uni-file-picker>
...@@ -128,7 +127,7 @@ ...@@ -128,7 +127,7 @@
<view class="status-center compact"> <view class="status-center compact">
<image :src="imageUrl" class="state-image big-image"></image> <image :src="imageUrl" class="state-image big-image"></image>
<text class="status-title blue-text">已通过认证,您可随时参拍</text> <text class="status-title blue-text">已通过认证,您可随时参拍</text>
<text class="status-desc">平台合同已签署完成,签署时间:2026-07-22 14:08</text> <text class="status-desc">平台合同已签署完成,签署时间:{{account?.platformContractSignTime}}</text>
</view> </view>
<view class="contract-section"> <view class="contract-section">
...@@ -193,7 +192,6 @@ export default class CertificationResult extends Vue { ...@@ -193,7 +192,6 @@ export default class CertificationResult extends Vue {
this.loadAgreement(); this.loadAgreement();
}); });
onShow(() => { onShow(() => {
this.loadAccount();
}); });
} }
...@@ -295,6 +293,14 @@ export default class CertificationResult extends Vue { ...@@ -295,6 +293,14 @@ export default class CertificationResult extends Vue {
} }
} }
deleteFile(e) {
if (e == 'front') {
this.formData.idCardPortrait = null
} else {
this.formData.idCardNationalEmblem = null
}
}
uploadFiles(tempFile: any): Promise<FileInfo> { uploadFiles(tempFile: any): Promise<FileInfo> {
const authService: AuthService = this.$auth; const authService: AuthService = this.$auth;
const action = 'upload/uploadImage?directory=account/certification'; const action = 'upload/uploadImage?directory=account/certification';
...@@ -323,15 +329,15 @@ export default class CertificationResult extends Vue { ...@@ -323,15 +329,15 @@ export default class CertificationResult extends Vue {
submitForm() { submitForm() {
if (this.account?.accountType == "COMMON") { if (this.account?.accountType == "COMMON") {
this.$refs.form.validate().then(() => { if (!this.formData.idCardPortrait || !this.formData.idCardPortrait.url) {
if (!this.formData.idCardPortrait) {
uni.showToast({title: '请上传身份证人像面', icon: 'none'}); uni.showToast({title: '请上传身份证人像面', icon: 'none'});
return; return;
} }
if (!this.formData.idCardNationalEmblem) { if (!this.formData.idCardNationalEmblem || !this.formData.idCardNationalEmblem.url) {
uni.showToast({title: '请上传身份证国徽面', icon: 'none'}); uni.showToast({title: '请上传身份证国徽面', icon: 'none'});
return; return;
} }
this.$refs.form.validate().then(() => {
uni.showLoading({title: '提交中...', mask: true}); uni.showLoading({title: '提交中...', mask: true});
AccountController.certifyAccount(this.axios, this.formData).then(() => { AccountController.certifyAccount(this.axios, this.formData).then(() => {
uni.showToast({title: '提交成功', icon: 'success'}); uni.showToast({title: '提交成功', icon: 'success'});
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<view class="upload-section"> <view class="upload-section">
<view class="upload-item"> <view class="upload-item">
<uni-file-picker fileMediatype="image" :image-styles="imageStyles" @select="selectFile($event,'front')" mode="grid" :auto-upload="true" <uni-file-picker fileMediatype="image" :image-styles="imageStyles" @select="selectFile($event,'front')" @delete="deleteFile('front')" mode="grid" :auto-upload="true"
:limit="1" file-extname="png,jpg,jpeg"> :limit="1" file-extname="png,jpg,jpeg">
<view class="upload-placeholder"> <view class="upload-placeholder">
<image src="~@/static/images/account/certifition/idcard_0@2x.png" style="width: 100%; height: 150px;"></image> <image src="~@/static/images/account/certifition/idcard_0@2x.png" style="width: 100%; height: 150px;"></image>
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</uni-file-picker> </uni-file-picker>
</view> </view>
<view class="upload-item"> <view class="upload-item">
<uni-file-picker fileMediatype="image" :image-styles="imageStyles" @select="selectFile($event,'back')" :limit="1" file-extname="png,jpg,jpeg"> <uni-file-picker fileMediatype="image" :image-styles="imageStyles" @select="selectFile($event,'back')" @delete="deleteFile('back')" :limit="1" file-extname="png,jpg,jpeg">
<view class="upload-placeholder"> <view class="upload-placeholder">
<image class="add-img" src="~@/static/images/account/certifition/idcard_1@2x.png" style="width: 100%; height: 150px;"></image> <image class="add-img" src="~@/static/images/account/certifition/idcard_1@2x.png" style="width: 100%; height: 150px;"></image>
<text class="upload-text">上传国徽面</text> <text class="upload-text">上传国徽面</text>
...@@ -179,6 +179,14 @@ export default class PersonCertificationPage extends Vue { ...@@ -179,6 +179,14 @@ export default class PersonCertificationPage extends Vue {
} }
} }
deleteFile(e) {
if (e == 'front') {
this.formData.idCardPortrait = null
} else {
this.formData.idCardNationalEmblem = null
}
}
uploadFiles(tempFile: any): Promise<FileInfo> { uploadFiles(tempFile: any): Promise<FileInfo> {
this.onload = true; this.onload = true;
const authService: AuthService = this.$auth; const authService: AuthService = this.$auth;
......
...@@ -152,7 +152,7 @@ export default class BidSuccessDialog extends Vue { ...@@ -152,7 +152,7 @@ export default class BidSuccessDialog extends Vue {
.dialog-content { .dialog-content {
position: relative; position: relative;
text-align: center;
text { text {
font-size: 13px; font-size: 13px;
font-weight: 400; font-weight: 400;
......
...@@ -101,6 +101,9 @@ ...@@ -101,6 +101,9 @@
<order-coupon-verify-popup ref="couponVerifyPopup" :illu-src="couponVerifyDialogIlluSrc" <order-coupon-verify-popup ref="couponVerifyPopup" :illu-src="couponVerifyDialogIlluSrc"
:loading="couponVerifyLoading" @dismiss="onCouponVerifyDismiss" :loading="couponVerifyLoading" @dismiss="onCouponVerifyDismiss"
@confirm="onCouponVerifyConfirm" @change="onCouponVerifyDialogChange"></order-coupon-verify-popup> @confirm="onCouponVerifyConfirm" @change="onCouponVerifyDialogChange"></order-coupon-verify-popup>
<van-dialog use-slot :show="showCertifyDialog" :show-cancel-button="false" :show-confirm-button="false">
<certification-dialog @close="onCertifyDialogClosed"></certification-dialog>
</van-dialog>
</view> </view>
</template> </template>
...@@ -115,6 +118,7 @@ import { BankAccount } from "lib/src/entity/finance/entity/BankAccount"; ...@@ -115,6 +118,7 @@ import { BankAccount } from "lib/src/entity/finance/entity/BankAccount";
import { TransactionController } from "@/api/TransactionController"; import { TransactionController } from "@/api/TransactionController";
import { OrderTransaction } from "lib/src/entity/finance/entity/OrderTransaction"; import { OrderTransaction } from "lib/src/entity/finance/entity/OrderTransaction";
import type { FileInfo } from "lib/src/core/bean/FileInfo"; import type { FileInfo } from "lib/src/core/bean/FileInfo";
import {AccountController} from "@/api/AccountController";
import { import {
CouponController, CouponController,
parseCouponVerifyResponse, parseCouponVerifyResponse,
...@@ -135,7 +139,7 @@ import { AuthService } from "@/common/AuthService"; ...@@ -135,7 +139,7 @@ import { AuthService } from "@/common/AuthService";
import { getUploadErrorMessage, uploadFiles } from "@/common/UploadHelper"; import { getUploadErrorMessage, uploadFiles } from "@/common/UploadHelper";
import OrderCouponSheetPopup from "@/module/order/detail/OrderCouponSheetPopup.vue"; import OrderCouponSheetPopup from "@/module/order/detail/OrderCouponSheetPopup.vue";
import OrderCouponVerifyPopup from "@/module/order/detail/OrderCouponVerifyPopup.vue"; import OrderCouponVerifyPopup from "@/module/order/detail/OrderCouponVerifyPopup.vue";
import CertificationDialog from "@/pages/tabbar/home/CertificationDialog.vue";
const COUPON_SELECT_NONE = "__none__"; const COUPON_SELECT_NONE = "__none__";
const VOUCHER_LIMIT = 5; const VOUCHER_LIMIT = 5;
type OrderWithPendingPaymentAudit = AuctionOrder & { type OrderWithPendingPaymentAudit = AuctionOrder & {
...@@ -146,7 +150,7 @@ type OrderWithPendingPaymentAudit = AuctionOrder & { ...@@ -146,7 +150,7 @@ type OrderWithPendingPaymentAudit = AuctionOrder & {
}; };
@Component({ @Component({
components: { OrderCouponSheetPopup, OrderCouponVerifyPopup }, components: { OrderCouponSheetPopup, OrderCouponVerifyPopup, CertificationDialog },
}) })
export default class OrderPaymentInfoPanel extends Vue { export default class OrderPaymentInfoPanel extends Vue {
@Prop({ type: Object, required: true }) @Prop({ type: Object, required: true })
...@@ -225,6 +229,10 @@ export default class OrderPaymentInfoPanel extends Vue { ...@@ -225,6 +229,10 @@ export default class OrderPaymentInfoPanel extends Vue {
return this.isPaymentAuditRejected ? "background: #EE3140; border-color: #EE3140;" : ""; return this.isPaymentAuditRejected ? "background: #EE3140; border-color: #EE3140;" : "";
} }
/** 认证弹窗延迟定时器(避免重复 onShow 叠加多个定时器) */
certifyDelayTimer: ReturnType<typeof setTimeout> | null = null;
showCertifyDialog = false;
syncOrderVouchers(): void { syncOrderVouchers(): void {
if (this.order?.orderState !== "UNPAID") return; if (this.order?.orderState !== "UNPAID") return;
const pendingVouchers = (this.order as OrderWithPendingPaymentAudit)?.pendingPaymentAudit?.payVouchers; const pendingVouchers = (this.order as OrderWithPendingPaymentAudit)?.pendingPaymentAudit?.payVouchers;
...@@ -646,17 +654,38 @@ export default class OrderPaymentInfoPanel extends Vue { ...@@ -646,17 +654,38 @@ export default class OrderPaymentInfoPanel extends Vue {
}); });
} }
uploadVoucher(): void { async uploadVoucher(): void {
if (this.voucherSubmitting) return; if (this.voucherSubmitting) return;
if (this.paymentVouchers.length === 0) { if (this.paymentVouchers.length === 0) {
uni.showToast({ title: "请上传支付凭证", icon: "none" }); uni.showToast({ title: "请上传支付凭证", icon: "none" });
return; return;
} }
try {
const res = await AccountController.getAccountInfo(this.axios)
const accountInfo = res.data
if (!accountInfo.platformContractSigned) {
if (this.certifyDelayTimer != null) {
clearTimeout(this.certifyDelayTimer)
this.certifyDelayTimer = null
}
this.certifyDelayTimer = setTimeout(() => {
this.certifyDelayTimer = null
this.showCertifyDialog = true
}, 500)
return
}
if (this.shouldVerifyCouponBeforeSubmit()) { if (this.shouldVerifyCouponBeforeSubmit()) {
this.confirmVerifyCouponBeforeSubmit(); this.confirmVerifyCouponBeforeSubmit()
return; return
} }
this.submitVoucher(); this.submitVoucher()
} catch (error) {
console.error("获取账号信息失败:", error);
}
}
onCertifyDialogClosed(): void {
this.showCertifyDialog = false;
} }
shouldVerifyCouponBeforeSubmit(): boolean { shouldVerifyCouponBeforeSubmit(): boolean {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!