#
whycq
2023-11-21 a5db2271c2d82cdfe04205cf7ed3c82ed47b6e54
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:{