From b0f74f3f5eab41ac3d3eec497b458c1aa716c0e9 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 22 十一月 2023 09:22:50 +0800
Subject: [PATCH] #

---
 pages/business/goBusiness/addgoBusiness.vue |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/pages/business/goBusiness/addgoBusiness.vue b/pages/business/goBusiness/addgoBusiness.vue
index f4d5211..f6c78f5 100644
--- a/pages/business/goBusiness/addgoBusiness.vue
+++ b/pages/business/goBusiness/addgoBusiness.vue
@@ -269,8 +269,15 @@
 			const eventChannel = this.getOpenerEventChannel();
 			eventChannel.on('goBusinessDel', function(data) {
 				if (data.data == 'add') {
-					
 					_this.getOrderId('')
+				}
+			})
+			// 椤圭洰璺熻釜浼犺繃鏉ョ殑
+			eventChannel.on('addType', function(data) {
+				if (data.data.comeFrom == 'saleManage') {
+					_this.form2[0].info[0].submitVal = data.data.orderId
+					_this.form2[0].info[0].unshow = true
+					_this.form2[0].info[0].required = false
 				}
 			})
 
@@ -280,7 +287,6 @@
 		},
 		methods: {
 			getOrderId(condition) {
-				// console.log(condition);
 				let _this = this
 				uni.request({
 					url: `${_this.baseUrl}/orderQueryName/auth`,
@@ -400,6 +406,8 @@
 										this.form[sub.type] = odd.id
 									}
 								}
+							} else {
+								this.form[sub.type] = sub.submitVal
 							}
 						} else {
 							this.form[sub.type] = sub.value
@@ -416,11 +424,6 @@
 
 					}
 				}
-				// console.log(this.form.orderId);
-				// console.log(this.orderIds);
-				
-				console.log(this.form);
-				console.log(this.type);
 				this.formAdd(this.form)
 				// console.log(subPass);
 				if (subPass) {
@@ -441,7 +444,6 @@
 					method: 'POST',
 					success(res) {
 						res = res.data
-						console.log(res)
 						if (res.code === 200) {
 							uni.showToast({title: '娣诲姞鎴愬姛', icon: "none", position: 'top'})
 							setTimeout(()=>{

--
Gitblit v1.9.1