From 94a21e0b73d3d0e4fe0c9aad8fb3cfc256aa6245 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期一, 13 一月 2025 10:20:06 +0800
Subject: [PATCH] 1.订单提交新增没有平台运输方式不可提交

---
 sub_pages/customer/shopping/confirm.vue |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/sub_pages/customer/shopping/confirm.vue b/sub_pages/customer/shopping/confirm.vue
index 0cb6a66..7b205f1 100644
--- a/sub_pages/customer/shopping/confirm.vue
+++ b/sub_pages/customer/shopping/confirm.vue
@@ -319,6 +319,21 @@
 			},
 			async submitOrder() {
 				console.log('submitOrder', this.dto)
+
+				// if(!this.transportExistsFlag){
+				// 	this.$message.showToast('当前平台没有运输方式,无法下单')
+				// 		return
+				// }
+
+
+				if(!(this.partnerInfo&&this.partnerInfo.id)&&(!this.currentInfo.customerDTO||!this.currentInfo.customerDTO.partnerId)){
+					if(!this.transportExistsFlag){
+						this.$message.showToast('当前平台没有运输方式,无法下单')
+							return
+					}
+				}
+
+
 				if (this.currentInfo.customerDTO && this.currentInfo.customerDTO.partnerId) {
 
 				} else {

--
Gitblit v1.9.3