#
whycq
2023-11-29 c478bc1b36e38774cf01c02fd5e23858bd70a4a3
pages/business/plan/planDetails.vue
@@ -31,8 +31,8 @@
         </view>
         <!-- 其他信息 -->
         <view class="container">
            <view><y-title title="其他信息"></y-title></view><view></view>
         <view class="container" v-show="info.length > 0">
            <view><y-title title="个性化"></y-title></view><view></view>
         </view>
         <view class="detail-box">
            <plan-detail :info="info"></plan-detail>
@@ -120,13 +120,15 @@
         }
      },
      onLoad(option) { 
         if (option != '') {
         console.log(option);
         if (JSON.stringify(option) != "{}") {
            this.id = option.id
            this.init()
         } else {
            let _this = this
            const eventChannel = this.getOpenerEventChannel();
            eventChannel.on('saleManage', function(data) {
               console.log(data);
               _this.id = data.data
               _this.init()
            })
@@ -142,7 +144,6 @@
               method: 'GET',
               success(res) {
                  res = res.data
                  console.log(res);
                  if (res.code === 200) {
                     that.detl = res.data
                     that.active = res.data.settle
@@ -190,6 +191,20 @@
                        {name:'其他要求及注意点',val:res.data.textarea_2 ? res.data.textarea_2 : '--'},
                        )
                     } else if(res.data.planType == 5) {
                        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;
                        }
                        that.info.push(
                        {name:'货物规格',val:res.data.input_2},
                        {name:'货物重量',val:res.data.input_5},
@@ -301,7 +316,7 @@
               case 5:
                  url = `/pages/business/plan/modiPlan2?id=${id}`
                  break
               case 3:
               case 6:
                  url = `/pages/business/plan/modiPlan3?id=${id}`
                  break
               case 7: