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/plan/modiPlan3.vue   |    8 
 pages/business/plan/modiPlan4.vue   |    8 
 pages/business/plan/modiPlan5.vue   |    8 
 pages/business/plan/modiPlan2.vue   |  528 ++++++++++++++++++++++++++++++++++++++++
 pages/business/plan/planDetails.vue |  189 ++++++-------
 pages.json                          |   16 +
 pages/business/plan/modiPlan7.vue   |    8 
 pages/business/plan/modiPlan6.vue   |    8 
 8 files changed, 671 insertions(+), 102 deletions(-)

diff --git a/pages.json b/pages.json
index e773ace..db2bbef 100644
--- a/pages.json
+++ b/pages.json
@@ -294,6 +294,22 @@
         		"enablePullDownRefresh" : false
         	}
         },
+		{
+			"path" : "pages/business/plan/modiPlan2",
+			"style" : 
+			{
+				"navigationBarTitleText" : "淇敼瑙勫垝鐢宠鍗�-绔嬩綋搴擄紙闆嗘垚锛�",
+				"enablePullDownRefresh" : false
+			}
+		},
+		{
+			"path" : "pages/business/plan/modiPlan3",
+			"style" : 
+			{
+				"navigationBarTitleText" : "鍥涘悜绌挎搴�/涓ゅ悜绌挎搴�",
+				"enablePullDownRefresh" : false
+			}
+		},
         {
         	"path" : "pages/business/plan/addPlan7",
         	"style" : 
diff --git a/pages/business/plan/modiPlan2.vue b/pages/business/plan/modiPlan2.vue
new file mode 100644
index 0000000..a329a57
--- /dev/null
+++ b/pages/business/plan/modiPlan2.vue
@@ -0,0 +1,528 @@
+<template>
+	<view>
+		<view class="container">
+			<uni-forms ref="baseForm" :modelValue="baseFormData">
+				<uni-forms-item label="鍞墠瑙勫垝鍗曞悕绉�" required name="name">
+					<uni-easyinput v-model="baseFormData.name" placeholder="璇疯緭鍏ュ敭鍓嶈鍒掑崟鍚嶇О" />
+				</uni-forms-item>
+				<uni-forms-item label="璺熻釜椤圭洰" required name="orderId" >
+					<view @click="autoLoad('order','')">
+						<uni-combox :candidates="orderIds" placeholder="璇烽�夋嫨璺熻釜椤圭洰"
+						v-model="baseFormData.orderId$" @input="autoLoad('order',baseFormData.orderId$)"></uni-combox>
+					</view>
+				</uni-forms-item>
+				
+				<uni-forms-item label="瀹㈡埛鍚嶇О" required name="cstmrId">
+					<view @click="autoLoad('cstmr','')">
+						<uni-combox :candidates="cstmrs" placeholder="璇烽�夋嫨瀹㈡埛鍚嶇О"
+						v-model="baseFormData.cstmrId$" @input="autoLoad('cstmr',baseFormData.cstmrId$)"></uni-combox>
+					</view>
+				</uni-forms-item>
+				
+				<uni-forms-item label="涓氬姟鍛樿仈绯绘柟寮�" required name="userXmlSelPhone">
+					<uni-easyinput v-model="baseFormData.userXmlSelPhone" placeholder="璇疯緭鍏ヤ笟鍔″憳鑱旂郴鏂瑰紡" />
+				</uni-forms-item>
+				<uni-forms-item label="涓氬姟绫诲瀷" required name="planType">
+					<uni-easyinput disabled placeholder="璇疯緭鍏ュ唴瀹�" v-model="baseFormData.planType"></uni-easyinput>
+				</uni-forms-item>
+				
+				<uni-forms-item label="绔嬮」"  name="beItem">
+					<uni-data-checkbox v-model="baseFormData.beItem" :localdata="beItem$" />
+				</uni-forms-item>
+				
+				<uni-forms-item label="鎵�闇�" name="planNeed">
+					<uni-data-checkbox v-model="baseFormData.planNeed" multiple :localdata="planNeeds" />
+				</uni-forms-item>
+				
+				
+				
+				
+				
+				<uni-forms-item label="璐х墿瑙勬牸" required name="input_1">
+					<uni-easyinput v-model="baseFormData.input_1" placeholder="璇疯緭鍏ヨ揣鐗╄鏍�" />
+				</uni-forms-item>
+				<uni-forms-item label="璐х墿閲嶉噺" required name="input_2">
+					<uni-easyinput v-model="baseFormData.input_2" placeholder="璇疯緭鍏ヨ揣鐗╅噸閲�" />
+				</uni-forms-item>
+				<uni-forms-item label="浠撳簱娓╁害" required name="input_6">
+					<uni-easyinput v-model="baseFormData.input_6" placeholder="璇疯緭鍏ヤ粨搴撴俯搴�" />
+				</uni-forms-item>
+				<uni-forms-item label="椤堕儴鏈�浣庣偣绂诲湴璺濈" required name="input_8">
+					<uni-easyinput v-model="baseFormData.input_8" placeholder="璇疯緭鍏ヨ揣鐗╄鏍�" />
+				</uni-forms-item>
+				<uni-forms-item label="杩涘弶鏂瑰悜" required name="input_4">
+					<uni-easyinput v-model="baseFormData.input_4" placeholder="璇疯緭鍏ヨ揣鐗╄鏍�" />
+				</uni-forms-item>
+				<uni-forms-item label="鍘傛埧鍙敤楂樺害" required name="input_5">
+					<uni-easyinput v-model="baseFormData.input_5" placeholder="璇疯緭鍏ヨ揣鐗╄鏍�" />
+				</uni-forms-item>
+				<uni-forms-item label="閫氶亾澶у皬鏈夋棤瑕佹眰" required name="input_7">
+					<uni-easyinput v-model="baseFormData.input_7" placeholder="璇疯緭鍏ヨ揣鐗╄鏍�" />
+				</uni-forms-item>
+				<uni-forms-item label="骞冲簱璐ф灦绫诲瀷" required name="select_2">
+						<uni-combox :candidates="selList" placeholder="璇烽�夋嫨骞冲簱璐ф灦绫诲瀷"
+						v-model="baseFormData.select_2"></uni-combox>
+				</uni-forms-item>
+				<uni-forms-item label="鏄惁闇�瑕佽法姊�" name="radio_1">
+					<uni-data-checkbox v-model="baseFormData.radio_1" :localdata="radio_1" />
+				</uni-forms-item>
+				<uni-forms-item label="鏄惁闇�瑕佺綉灞傛澘" name="radio_2">
+					<uni-data-checkbox v-model="baseFormData.radio_2" :localdata="radio_2" />
+				</uni-forms-item>
+				<uni-forms-item label="甯冨眬鍖哄煙鏄惁鎻愪緵CAD鍦哄湴鍥剧焊/鍦哄湴" name="radio_7">
+					<uni-data-checkbox v-model="baseFormData.radio_7" :localdata="radio_7" />
+				</uni-forms-item>
+				
+				<uni-forms-item label="鍦伴潰鏈夋棤鐢电紗娌�" name="radio_3">
+					<uni-data-checkbox v-model="baseFormData.radio_3" :localdata="radio_3" />
+				</uni-forms-item>
+				
+				<uni-forms-item label="鏄惁闇�瑕佸眰鏉�" name="radio_8">
+					<uni-data-checkbox v-model="baseFormData.radio_8" :localdata="radio_8" />
+				</uni-forms-item>
+				
+				<uni-forms-item label="鍦伴潰骞虫暣搴﹀拰鍦伴潰娌夐檷鏄惁婊¤冻鏍囧噯" name="radio_5">
+					<uni-data-checkbox v-model="baseFormData.radio_5" :localdata="radio_5" />
+				</uni-forms-item>
+				
+				<uni-forms-item label="鍏朵粬瑕佹眰鍙婃敞鎰忕偣" required name="textarea_2">
+					<uni-easyinput type="textarea" v-model="baseFormData.textarea_2" placeholder="璇疯緭鍏�" />
+				</uni-forms-item>
+				<br>
+				
+				<!-- <uni-forms-item label="瑙勫垝鍛�" name="planner$">
+					<uni-easyinput v-model="baseFormData.planner$" placeholder="璇疯緭鍏ヨ鍒掑憳" />
+				</uni-forms-item> -->
+				<uni-forms-item label="鏇存敼鏂规" name="change">
+					<uni-data-checkbox v-model="baseFormData.change" :localdata="changeValue" />
+				</uni-forms-item>
+				<uni-forms-item label="鏇存敼鏂规鍘熷洜" name="changeReason">
+					<uni-easyinput v-model="baseFormData.changeReason" placeholder="璇疯緭鍏ユ洿鏀规柟妗堝師鍥�" />
+				</uni-forms-item>
+				<uni-forms-item label="瑙勬牸缁勯暱濂栭噾" name="planLeaderBonus">
+					<uni-easyinput v-model="baseFormData.planLeaderBonus" placeholder="璇疯緭鍏ヨ鏍肩粍闀垮閲�" />
+				</uni-forms-item>
+				<uni-forms-item label="瀹屾垚鏃堕棿" name="finishTime">
+					<uni-datetime-picker type="date" return-type="string" v-model="baseFormData.datetimesingle"/>
+					</uni-data-picker>
+				</uni-forms-item>
+				<uni-forms-item label="鏇存敼娆℃暟" name="changeTime">
+					<uni-easyinput v-model="baseFormData.changeTime" placeholder="璇疯緭鍏ユ洿鏀规鏁�" />
+				</uni-forms-item>
+				<uni-forms-item label="瑙勬牸濂栭噾" name="planBonus">
+					<uni-easyinput v-model="baseFormData.planBonus" placeholder="璇疯緭鍏ヨ鏍煎閲�" />
+				</uni-forms-item>
+			</uni-forms>
+			<button type="primary" @click="addCstmr()">淇敼</button>
+		</view>
+	</view>
+</template>
+
+<script>
+	import user from '@/pages/api/user/user.js'
+	import test from '../../../static/js/citys-data.js'
+	export default {
+		data() {
+			return {
+				orderIds: [],
+				orderList: [],
+				users: [],
+				userList: [],
+				cstmrs: [],
+				cstmrList: [],
+				baseFormData: {
+					name: '',
+					orderId: '',
+					userId: '',
+					appleTime: '',
+					cstmrId: '',
+					planType: '绔嬩綋搴擄紙璐ф灦锛�',
+					select_2: '',
+					changeReason: '',
+					changeTime: '',
+					planBonus: '',
+					planLeaderBonus: '',
+					userXmlSelPhone: '',
+					beItem: null
+				},
+				beItem: 0,
+				selList: ['妯寮�','椹跺叆寮�','鎮寮�','娴佸埄寮�','閲嶅姏寮�','鍏朵粬'],
+				rules: {
+					name: {
+						rules: [{
+							required: true,
+							errorMessage: '璇疯緭鍏ュ敭鍓嶈鍒掑崟鍚嶇О',
+						}]
+					},
+					orderId: {
+						rules: [{
+							required: true,
+							errorMessage: '璇烽�夋嫨璺熻釜椤圭洰',
+						}]
+					},
+					userXmlSelPhone: {
+						rules: [{
+							required: true,
+							errorMessage: '璇烽�夋嫨涓氬姟鍛�',
+						}]
+					},
+					cstmrId: {
+						rules: [{
+							required: true,
+							errorMessage: '璇烽�夋嫨瀹㈡埛鍚嶇О',
+						}]
+					},
+					planType: {
+						rules: [{
+							required: true,
+							errorMessage: '璇疯緭鍏ヤ笟鍔$被鍨�',
+						}]
+					},
+					input_1: {
+						rules: [{
+							required: true,
+							errorMessage: '璇疯緭鍏ヨ揣鐗╄鏍�',
+						}]
+					},
+					input_2: {
+						rules: [{
+							required: true,
+							errorMessage: '璇疯緭鍏ヨ揣鐗╅噸閲�',
+						}]
+					},
+					input_6: {
+						rules: [{
+							required: true,
+							errorMessage: '璇疯緭鍏ヤ粨搴撴俯搴�',
+						}]
+					},
+					input_8: {
+						rules: [{
+							required: true,
+							errorMessage: '璇疯緭鍏ラ《閮ㄦ渶浣庣偣绂诲湴璺濈',
+						}]
+					},
+					input_4: {
+						rules: [{
+							required: true,
+							errorMessage: '璇疯緭鍏ヨ繘鍙夋柟鍚�',
+						}]
+					},
+					input_5: {
+						rules: [{
+							required: true,
+							errorMessage: '璇疯緭鍏ュ巶鎴垮彲鐢ㄩ珮搴�',
+						}]
+					},
+					input_7: {
+						rules: [{
+							required: true,
+							errorMessage: '璇疯緭鍏ラ�氶亾澶у皬鏈夋棤瑕佹眰',
+						}]
+					},
+					select_2: {
+						rules: [{
+							required: true,
+							errorMessage: '璇烽�夋嫨骞冲簱璐ф灦绫诲瀷',
+						}]
+					},
+					
+				},
+				// 鏄惁闇�瑕佽法姊�
+				radio_1: [
+					{
+						text: '鏄�',
+						value: 'value1'
+					},
+					{
+						text: '鍚�',
+						value: 'value2'
+					}
+				],
+				// 鏄惁闇�瑕佺綉灞傛澘
+				radio_2: [
+					{
+						text: '鏄�',
+						value: 'value1'
+					},
+					{
+						text: '鍚�',
+						value: 'value2'
+					}
+				],
+				radio_8: [
+					{
+						text: '鏄�',
+						value: 'value1'
+					},
+					{
+						text: '鍚�',
+						value: 'value2'
+					}
+				],
+				radio_3: [
+					{
+						text: '鏄�',
+						value: 'value1'
+					},
+					{
+						text: '鍚�',
+						value: 'value2'
+					}
+				],
+				radio_5: [
+					{
+						text: '鏄�',
+						value: 'value1'
+					},
+					{
+						text: '鍚�',
+						value: 'value2'
+					}
+				],
+				radio_7: [
+					{
+						text: '鏄�',
+						value: 'value1'
+					},
+					{
+						text: '鍚�',
+						value: 'value2'
+					}
+				],
+				changeValue: [
+					{
+						text: '鏄�',
+						value: '1'
+					},
+					{
+						text: '鍚�',
+						value: '0'
+					}
+				],
+				// 鍗曢�夋暟鎹簮
+				beItem$: [{
+					text: '鏄�',
+					value: 1
+				}, {
+					text: '鍚︼紙闇�鍞墠鎶�鏈窡杩涢」鐩紝涓庡鎴风洿鎺ユ矡閫氱瓑锛�',
+					value: 0
+				}],
+				citysData: [],
+				citysDataTemp: '',
+				planNeeds: [
+					{
+						text: '绯荤粺 鏂规瑙勫垝璁捐',
+						value: '1'
+					}, 
+					{
+						text: '鎻愪緵閫夋潗娓呭崟',
+						value: '2'
+					},
+					{
+						text: '绔嬩綋搴撹璁℃柟妗�',
+						value: '3'
+					}
+				]
+				
+			}
+		},
+		onReady() {
+				// 闇�瑕佸湪onReady涓缃鍒�
+				this.$refs.baseForm.setRules(this.rules)
+		},
+		onShow() {
+			// 鑾峰彇鐪佸競鍖�
+			this.citysData = test.citysData
+			// 鑾峰彇涓氬姟鍛樿仈绯绘柟寮�
+			this.getDetail()
+		},
+		onLoad(option) {
+			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: {
+			init() {
+				let that = this
+				uni.request({
+					url: that.baseUrl + '/plan/' + that.id +'/auth',
+					header: {'token' : uni.getStorageSync('token')},
+					method: 'GET',
+					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
+						// that.cstmr = res.data
+						// that.cstmrId = that.cstmr.id
+					}
+				})
+			},
+			async getDetail() {
+				let res = await user.getDetail()
+				if (res.code === 200) {
+					this.baseFormData.userXmlSelPhone = res.data.mobile
+				} else if (res.code === 403) {
+					this.backLogin(res)
+				}
+			},
+			bindPickerChange: function(e) {
+				this.cstmrTypeIndex = e.detail.value
+				this.baseFormData.cstmrType = this.cstmrTypes[e.detail.value].id
+			},
+			areaChange(e) {
+				this.citysDataTemp = e.detail.value[0].value + ',' + e.detail.value[1].value + ',' + e.detail.value[2].value
+			},
+			autoLoad(type,condition) {
+				let that = this
+				that.orderIds = []
+				that.users = []
+				that.cstmrs = []
+				var a = that.baseUrl + '/' + type + 'Query/auth'
+				uni.request({
+					url: that.baseUrl + '/' + type + 'Query' +'/auth',
+					header:{'token':uni.getStorageSync('token')},
+					data: {condition:condition},
+					method: 'GET',
+					success(result) {
+						var res = result.data
+						if (res.code === 200) {
+							var element;
+							if (type == 'order') {
+								for(element of res.data) {
+									that.orderIds.push(element.name)
+									that.orderList.push(element)
+								}
+								return
+							}
+							if (type == 'user') {
+								for(element of res.data) {
+									that.users.push(element.value)
+									that.userList.push(element)
+								}
+								return
+							}
+							if (type == 'cstmr') {
+								for(element of res.data) {
+									that.cstmrs.push(element.value)
+									that.cstmrList.push(element)
+								}
+								return
+							}
+						}
+					}
+				})
+			},
+			getOrderId() {
+				let that = this
+				uni.request({
+					url: that.baseUrl + '/order/all/get/kv',
+					header:{'token':uni.getStorageSync('token')},
+					data: {condition:condition},
+					method: 'GET',
+					success(result) {
+					}
+				})
+			},
+			// 娣诲姞鐢ㄦ埛
+			addCstmr() {
+				let that = this
+				var element
+				for (element of that.cstmrList) {
+					if(element.value == that.baseFormData.cstmrId$) {
+						that.baseFormData.cstmrId = element.id
+					}
+				}
+				for (element of that.orderList) {
+					if(element.name == that.baseFormData.orderId$) {
+						that.baseFormData.orderId = element.id
+					}
+				}
+				// for (element of that.userList) {
+				// 	if(element.value == that.baseFormData.userId) {
+				// 		that.baseFormData.userId = element.id
+				// 	}
+				// }
+				for(var i = 1;i <= that.selList.length; i++) {
+					if (that.selList[i] == that.baseFormData.select_2) {
+						that.baseFormData.select_2 = 'value' + i
+					}
+				}
+				that.baseFormData.planType = 4
+				var temp 
+				for (var i = 0 ; i < that.baseFormData.planNeed.length; i++) {
+					if (i == 0) {
+						temp = that.baseFormData.planNeed[i]
+					} else {
+						temp = temp + '-' + that.baseFormData.planNeed[i]
+					}
+					
+				}
+				that.baseFormData.planNeed = temp
+				this.$refs.baseForm.validate().then(res=>{
+					for (let k in res) {
+						if (res[k] == undefined) {
+							res[k] = ''
+						}
+					}
+					res['id'] = that.baseFormData.id
+					uni.request({
+						url: that.baseUrl + '/plan/update/auth',
+						header:{
+							'token':uni.getStorageSync('token'),
+							'content-type':'application/x-www-form-urlencoded',
+							},
+						data: res,
+						method: 'POST',
+						success(result) {
+							var res = result.data
+							if (res.code === 200) {
+								uni.navigateBack()
+							} else if (res.code === 403) {
+								uni.showToast({title: res.msg, icon: "none", position: 'top'})
+								setTimeout(() => {
+									uni.reLaunch({
+										url: '../../login/login'
+									});
+								}, 1000);
+							} else {
+								uni.showToast({title: res.msg, icon: "none",position: 'top'})
+							}
+						}
+					})
+				}).catch(err =>{
+				})
+			}
+		}
+		
+	}
+</script>
+
+<style>
+	.container {
+		min-height: 50rpx;
+		padding: 15px;
+		background-color: #fff;
+		/* background-color: aqua; */
+	}
+</style>
\ No newline at end of file
diff --git a/pages/business/plan/modiPlan3.vue b/pages/business/plan/modiPlan3.vue
new file mode 100644
index 0000000..02409e3
--- /dev/null
+++ b/pages/business/plan/modiPlan3.vue
@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>
\ No newline at end of file
diff --git a/pages/business/plan/modiPlan4.vue b/pages/business/plan/modiPlan4.vue
new file mode 100644
index 0000000..02409e3
--- /dev/null
+++ b/pages/business/plan/modiPlan4.vue
@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>
\ No newline at end of file
diff --git a/pages/business/plan/modiPlan5.vue b/pages/business/plan/modiPlan5.vue
new file mode 100644
index 0000000..02409e3
--- /dev/null
+++ b/pages/business/plan/modiPlan5.vue
@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>
\ No newline at end of file
diff --git a/pages/business/plan/modiPlan6.vue b/pages/business/plan/modiPlan6.vue
new file mode 100644
index 0000000..02409e3
--- /dev/null
+++ b/pages/business/plan/modiPlan6.vue
@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>
\ No newline at end of file
diff --git a/pages/business/plan/modiPlan7.vue b/pages/business/plan/modiPlan7.vue
new file mode 100644
index 0000000..02409e3
--- /dev/null
+++ b/pages/business/plan/modiPlan7.vue
@@ -0,0 +1,8 @@
+<template>
+</template>
+
+<script>
+</script>
+
+<style>
+</style>
\ No newline at end of file
diff --git a/pages/business/plan/planDetails.vue b/pages/business/plan/planDetails.vue
index cd29830..729f3b0 100644
--- a/pages/business/plan/planDetails.vue
+++ b/pages/business/plan/planDetails.vue
@@ -123,10 +123,6 @@
 			if (option != '') {
 				this.id = option.id
 				this.init()
-				this.autoLoad('follower','')
-				setTimeout(()=>{
-					this.getFollowers()
-				},500)
 			} else {
 				let _this = this
 				const eventChannel = this.getOpenerEventChannel();
@@ -134,11 +130,6 @@
 					_this.id = data.data
 					_this.init()
 				})
-				
-				this.autoLoad('follower','')
-				setTimeout(()=>{
-					this.getFollowers()
-				},500)
 			}
 		},
 		methods: {
@@ -151,66 +142,68 @@
 					method: 'GET',
 					success(res) {
 						res = res.data
-						that.detl = res.data
-						that.active = res.data.settle
-						that.list1 = JSON.parse(res.data.settleMsg)
-						for (let key of that.list1) {
-							key.desc = key.username
+						// console.log(res);
+						if (res.code === 200) {
+							that.detl = res.data
+							that.active = res.data.settle
+							that.list1 = JSON.parse(res.data.settleMsg)
+							for (let key of that.list1) {
+								key.desc = key.username
+							}
+							that.current = res.data.settle-1
+							switch(res.data.select_3) {
+								case 'value1':
+									res.data.select_3 = '鐗涜吙寮�'
+									break;
+								case 'value2':
+									res.data.select_3 = '妯寮�'
+									break;
+								case 'value3':
+									res.data.select_3 = '鏂拌兘婧�'
+									break;
+								case 'value4':
+									res.data.select_3 = '鍏朵粬'
+									break;
+							}
+							if (res.data.planType == 4) {
+								that.info.push(
+								{name:'璐х墿瑙勬牸',val:res.data.input_1},
+								{name:'璐х墿閲嶉噺',val:res.data.input_2},
+								{name:'浠撳簱娓╁害',val:res.data.input_6},
+								{name:'椤堕儴鏈�浣庣偣绂诲湴璺濈',val:res.data.input_8},
+								{name:'杩涘弶鏂瑰悜',val:res.data.input_4},
+								{name:'鍘傛埧鍙敤楂樺害',val:res.data.input_5},
+								{name:'閫氶亾澶у皬鏈夋棤瑕佹眰',val:res.data.input_7},
+								{name:'骞冲簱璐ф灦绫诲瀷',val:res.data.select_2},
+								{name:'鏄惁闇�瑕佽法姊�',val:res.data.radio_1 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'鏄惁闇�瑕佺綉灞傛澘',val:res.data.radio_2 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'鏄惁闇�瑕佸眰鏉�',val:res.data.radio_8 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'鍦伴潰鏈夋棤鐢电紗娌�',val:res.data.radio_3 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'鍦伴潰骞虫暣搴﹀拰鍦伴潰娌夐檷鏄惁婊¤冻鏍囧噯',val:res.data.radio_5 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'甯冨眬鍖哄煙鏄惁鎻愪緵CAD鍦哄湴鍥剧焊/鍦哄湴',val:res.data.radio_7 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'鍏朵粬瑕佹眰鍙婃敞鎰忕偣',val:res.data.textarea_2 ? res.data.textarea_2 : '--'},
+								)
+							} else if(res.data.planType == 5) {
+								that.info.push(
+								{name:'璐х墿瑙勬牸',val:res.data.input_2},
+								{name:'璐х墿閲嶉噺',val:res.data.input_5},
+								{name:'鍘傛埧鍙敤楂樺害',val:res.data.input_4},
+								{name:'椤堕儴鏈�浣庣偣绂诲湴璺濈',val:res.data.input_9},
+								{name:'杩涘弶鏂瑰悜',val:res.data.input_3},
+								{name:'浠撳簱娓╁害',val:res.data.input_7},
+								{name:'鎶楅渿璁鹃槻鐑堝害',val:res.data.input_6},
+								{name:'鍩烘湰鍦伴渿鍔犻�熷害',val:res.data.input_11},
+								{name:'瀹㈡埛鎶�鏈鎺ヨ仈绯绘柟寮忥紙閫夊~锛�',val:res.data.input_8},
+								{name:'绔嬩綋搴撹揣鏋剁被鍨�',val:res.data.select_3},
+								{name:'鏄惁鏈夋秷闃茶姹�',val:res.data.radio_5 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'鍚﹂渶瑕佽揣鏋惰儗缃�',val:res.data.radio_8 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'鍦伴潰鏈夋棤鐢电紗娌�',val:res.data.radio_7 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'甯冨眬鍖哄煙鏄惁鎻愪緵CAD鍦哄湴鍥剧焊/鍦哄湴',val:res.data.radio_6 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'鍦伴潰骞虫暣搴﹀拰鍦伴潰娌夐檷鏄惁婊¤冻鏍囧噯',val:res.data.radio_10 == 'value1' ? '鏄�' : '鍚�'},
+								{name:'鍏朵粬瑕佹眰鍙婃敞鎰忕偣',val:res.data.textarea_2 ? res.data.textarea_2 : '--'},
+								)
+							}
 						}
-						that.current = res.data.settle-1
-						switch(res.data.select_3) {
-							case 'value1':
-								res.data.select_3 = '鐗涜吙寮�'
-								break;
-							case 'value2':
-								res.data.select_3 = '妯寮�'
-								break;
-							case 'value3':
-								res.data.select_3 = '鏂拌兘婧�'
-								break;
-							case 'value4':
-								res.data.select_3 = '鍏朵粬'
-								break;
-						}
-						if (res.data.planType == 4) {
-							that.info.push(
-							{name:'璐х墿瑙勬牸',val:res.data.input_1},
-							{name:'璐х墿閲嶉噺',val:res.data.input_2},
-							{name:'浠撳簱娓╁害',val:res.data.input_6},
-							{name:'椤堕儴鏈�浣庣偣绂诲湴璺濈',val:res.data.input_8},
-							{name:'杩涘弶鏂瑰悜',val:res.data.input_4},
-							{name:'鍘傛埧鍙敤楂樺害',val:res.data.input_5},
-							{name:'閫氶亾澶у皬鏈夋棤瑕佹眰',val:res.data.input_7},
-							{name:'骞冲簱璐ф灦绫诲瀷',val:res.data.select_2},
-							{name:'鏄惁闇�瑕佽法姊�',val:res.data.radio_1 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'鏄惁闇�瑕佺綉灞傛澘',val:res.data.radio_2 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'鏄惁闇�瑕佸眰鏉�',val:res.data.radio_8 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'鍦伴潰鏈夋棤鐢电紗娌�',val:res.data.radio_3 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'鍦伴潰骞虫暣搴﹀拰鍦伴潰娌夐檷鏄惁婊¤冻鏍囧噯',val:res.data.radio_5 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'甯冨眬鍖哄煙鏄惁鎻愪緵CAD鍦哄湴鍥剧焊/鍦哄湴',val:res.data.radio_7 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'鍏朵粬瑕佹眰鍙婃敞鎰忕偣',val:res.data.textarea_2 ? res.data.textarea_2 : '--'},
-							)
-						} else if(res.data.planType == 5) {
-							that.info.push(
-							{name:'璐х墿瑙勬牸',val:res.data.input_2},
-							{name:'璐х墿閲嶉噺',val:res.data.input_5},
-							{name:'鍘傛埧鍙敤楂樺害',val:res.data.input_4},
-							{name:'椤堕儴鏈�浣庣偣绂诲湴璺濈',val:res.data.input_9},
-							{name:'杩涘弶鏂瑰悜',val:res.data.input_3},
-							{name:'浠撳簱娓╁害',val:res.data.input_7},
-							{name:'鎶楅渿璁鹃槻鐑堝害',val:res.data.input_6},
-							{name:'鍩烘湰鍦伴渿鍔犻�熷害',val:res.data.input_11},
-							{name:'瀹㈡埛鎶�鏈鎺ヨ仈绯绘柟寮忥紙閫夊~锛�',val:res.data.input_8},
-							{name:'绔嬩綋搴撹揣鏋剁被鍨�',val:res.data.select_3},
-							{name:'鏄惁鏈夋秷闃茶姹�',val:res.data.radio_5 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'鍚﹂渶瑕佽揣鏋惰儗缃�',val:res.data.radio_8 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'鍦伴潰鏈夋棤鐢电紗娌�',val:res.data.radio_7 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'甯冨眬鍖哄煙鏄惁鎻愪緵CAD鍦哄湴鍥剧焊/鍦哄湴',val:res.data.radio_6 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'鍦伴潰骞虫暣搴﹀拰鍦伴潰娌夐檷鏄惁婊¤冻鏍囧噯',val:res.data.radio_10 == 'value1' ? '鏄�' : '鍚�'},
-							{name:'鍏朵粬瑕佹眰鍙婃敞鎰忕偣',val:res.data.textarea_2 ? res.data.textarea_2 : '--'},
-							)
-						}
-						// that.cstmrId = that.cstmr.id
 					}
 				})
 			},
@@ -293,42 +286,34 @@
 					}
 				})
 			},
-			getFollowers() {
-				let that = this
-				uni.request({
-					url: that.baseUrl + '/detl/followers/table/auth',
-					header:{'token':uni.getStorageSync('token')},
-					data: {cstmrId:that.cstmrId},
-					method:'GET',
-					success(res) {
-						res = res.data
-						that.followers = res.data
-					}
-				})
-			},
-			removeFollowers(userId) {
-				let that = this
-				uni.request({
-					url: that.baseUrl + '/cstmr/followers/remove/auth',
-					header:{
-						'token':uni.getStorageSync('token'),
-						'content-type': 'application/x-www-form-urlencoded'
-					},
-					data: {
-						cstmrId:that.cstmrId,
-						userId: userId
-						},
-					method:'POST',
-					success(res) {
-						res = res.data
-						that.getFollowers()
-					}
-				})
-			},
 			edite(id) {
-				let _this = this
+				let _this = this,url = '';
+				switch(this.detl.planType) {
+					case 4:
+						url = `/pages/business/plan/modiPlan?id=${id}`
+						break
+					case 5:
+						url = `/pages/business/plan/modiPlan2?id=${id}`
+						break
+					case 3:
+						url = `/pages/business/plan/modiPlan3?id=${id}`
+						break
+					case 7:
+						url = `/pages/business/plan/modiPlan4?id=${id}`
+						break
+					case 8:
+						url = `/pages/business/plan/modiPlan5?id=${id}`
+						break
+					case 9:
+						url = `/pages/business/plan/modiPlan6?id=${id}`
+						break
+					case 11:
+						url = `/pages/business/plan/modiPlan7?id=${id}`
+						break
+						
+				}
 				uni.navigateTo({
-					url: '/pages/business/plan/modiPlan?id=' + id
+					url: url
 				})
 			},
 		}

--
Gitblit v1.9.1