From a5db2271c2d82cdfe04205cf7ed3c82ed47b6e54 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 21 十一月 2023 19:23:31 +0800
Subject: [PATCH] #

---
 pages/business/plan/modiPlan.vue |   48 ++++++++++++++++++++++++++++--------------------
 pages.json                       |    8 --------
 2 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/pages.json b/pages.json
index 22869e7..f1e5097 100644
--- a/pages.json
+++ b/pages.json
@@ -218,14 +218,6 @@
         	}
         },
         {
-        	"path" : "pages/business/goBusiness/test",
-        	"style" : 
-        	{
-        		"navigationBarTitleText" : "娴嬭瘯",
-        		"enablePullDownRefresh" : false
-        	}
-        },
-        {
         	"path" : "pages/business/goBusiness/modiReimburseOnlineDetl",
         	"style" : 
         	{
diff --git a/pages/business/plan/modiPlan.vue b/pages/business/plan/modiPlan.vue
index 0258a29..a329a57 100644
--- a/pages/business/plan/modiPlan.vue
+++ b/pages/business/plan/modiPlan.vue
@@ -142,8 +142,10 @@
 					changeTime: '',
 					planBonus: '',
 					planLeaderBonus: '',
-					userXmlSelPhone: ''
+					userXmlSelPhone: '',
+					beItem: null
 				},
+				beItem: 0,
 				selList: ['妯寮�','椹跺叆寮�','鎮寮�','娴佸埄寮�','閲嶅姏寮�','鍏朵粬'],
 				rules: {
 					name: {
@@ -301,25 +303,25 @@
 				// 鍗曢�夋暟鎹簮
 				beItem$: [{
 					text: '鏄�',
-					value: '1'
+					value: 1
 				}, {
 					text: '鍚︼紙闇�鍞墠鎶�鏈窡杩涢」鐩紝涓庡鎴风洿鎺ユ矡閫氱瓑锛�',
-					value: '0'
+					value: 0
 				}],
 				citysData: [],
 				citysDataTemp: '',
 				planNeeds: [
 					{
 						text: '绯荤粺 鏂规瑙勫垝璁捐',
-						value: 1
+						value: '1'
 					}, 
 					{
 						text: '鎻愪緵閫夋潗娓呭崟',
-						value: 2
+						value: '2'
 					},
 					{
 						text: '绔嬩綋搴撹璁℃柟妗�',
-						value: 3
+						value: '3'
 					}
 				]
 				
@@ -336,19 +338,20 @@
 			this.getDetail()
 		},
 		onLoad(option) {
-			if (JSON.stringify(option) != "{}") {
-				this.id = option.id
-				this.init()
-				this.autoLoad('follower','')
-			} else {
-				let _this = this
-				const eventChannel = this.getOpenerEventChannel();
-				eventChannel.on('cstmr', function(data) {
-					_this.id = data.data
-					_this.init()
-				})
-				this.autoLoad('follower','')
-			}
+			this.$nextTick(() => {
+				if (JSON.stringify(option) != "{}") {
+					this.id = option.id
+					this.init()
+				} else {
+					let _this = this
+					const eventChannel = this.getOpenerEventChannel();
+					eventChannel.on('cstmr', function(data) {
+						_this.id = data.data
+						_this.init()
+					})
+				}
+			})
+			
 			
 		},
 		methods: {
@@ -361,6 +364,12 @@
 					success(res) {
 						res = res.data
 						if (res.code === 200) {
+							let planNeed = res.data.planNeed.split('-')
+							res.data.planNeed = []
+							for (let k of planNeed) {
+								res.data.planNeed.push(k)
+							}
+							// planNeed.push()
 							that.baseFormData = res.data
 						}
 						// that.saleManage = res.data
@@ -477,7 +486,6 @@
 						}
 					}
 					res['id'] = that.baseFormData.id
-					// return
 					uni.request({
 						url: that.baseUrl + '/plan/update/auth',
 						header:{

--
Gitblit v1.9.1