|  |  |  | 
|---|
|  |  |  | changeTime: '', | 
|---|
|  |  |  | planBonus: '', | 
|---|
|  |  |  | planLeaderBonus: '', | 
|---|
|  |  |  | userXmlSelPhone: '' | 
|---|
|  |  |  | userXmlSelPhone: '', | 
|---|
|  |  |  | beItem: null | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | beItem: 0, | 
|---|
|  |  |  | selList: ['横梁式','驶入式','悬梁式','流利式','重力式','其他'], | 
|---|
|  |  |  | rules: { | 
|---|
|  |  |  | name: { | 
|---|
|  |  |  | 
|---|
|  |  |  | // 单选数据源 | 
|---|
|  |  |  | 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' | 
|---|
|  |  |  | } | 
|---|
|  |  |  | ] | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | 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: { | 
|---|
|  |  |  | 
|---|
|  |  |  | 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 | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | res['id'] = that.baseFormData.id | 
|---|
|  |  |  | // return | 
|---|
|  |  |  | uni.request({ | 
|---|
|  |  |  | url: that.baseUrl + '/plan/update/auth', | 
|---|
|  |  |  | header:{ | 
|---|