qingyiay
2023-08-28 82a7eba143cc761b303b99889193f7aad2dc9d08
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -39,19 +39,19 @@
                     <view class="concrete"
                        style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/skin.png') no-repeat;background-size: cover;">
                        皮</view>
                     <view class="num">{{ coalDetailsData.skin }}</view>
                     <view class="num">{{ coalDetailsData.skin||"" }}</view>
                  </view>
                  <view class="item">
                     <view class="concrete"
                        style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/hair.png') no-repeat;background-size: cover;">
                        毛</view>
                     <view class="num">{{ coalDetailsData.hair }}</view>
                     <view class="num">{{ coalDetailsData.hair||""  }}</view>
                  </view>
                  <view class="item">
                     <view class="concrete"
                        style="background: url('https://mx.jzeg.cn:9095/appimg/image/banner/clean.png') no-repeat;background-size: cover;">
                        净</view>
                     <view class="num">{{ coalDetailsData.clean }}</view>
                     <view class="num">{{ coalDetailsData.clean||""  }}</view>
                  </view>
               </view>
            </view>
@@ -143,6 +143,10 @@
            this.getWeightHouseObj.overTmWaixiao = value.overTmWaixiao
         }
      },
      onShow() {
         this.init();
      },
      data() {
         return {
            orderPlanId: null,
@@ -175,7 +179,7 @@
               openName: ''
            },
            coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请',
               '进入场院'
               '进入场院', '异常审核中'
            ], // 状态
            weighHouseCode: '',
            // 放空弹窗控制变量
@@ -210,9 +214,6 @@
         };
      },
      onShow() {
         this.init();
      },
      onHide() {
         clearInterval(this.interval);
      },
@@ -242,7 +243,7 @@
            return this.coalDetailsData.hair !== 0 || this.coalDetailsData.skin !== 0;
         },
         isapproach() {
            return this.currentPageCoalStatus <= 3;
            return this.currentPageCoalStatus !== 3;
         }
      },
      methods: {
@@ -265,21 +266,19 @@
            });
            this.coalDayPage(); //获取日志
            this.getTakeCoal(); //获取提煤单详情
            this.getgetService(); //获取客服
         },
         // 获取客服openid
         getgetService() {
            this.$reqGet('getCallOutList', this.getServiceOpenid).then(res => {
               console.log(res, '客服openid');
               if (res.code != 0) {
                  this.$u.toast('获取客服信息失败');
                  this.$u.toast(res.msg ? res.msg : '获取客服信息失败');
               } else {
                  if (res.data.length > 0) {
                     this.serviceInfoObj.openId = res.data[0].openId;
                     this.serviceInfoObj.openName = res.data[0].openName;
                     uni.setStorageSync('customeropenId', this.serviceInfoObj.openId);
                     uni.setStorageSync('customerName', this.serviceInfoObj.openName);
                  }
                  this.serviceInfoObj.openId = res.data.openId;
                  this.serviceInfoObj.openName = res.data.openName;
                  uni.setStorageSync('customeropenId', this.serviceInfoObj.openId);
                  uni.setStorageSync('customerName', this.serviceInfoObj.openName);
               }
            });
         },
@@ -337,6 +336,8 @@
                     })
                  }
               }
            }).then(() => {
               this.getgetService(); //获取客服
            })
         },
         // 日志查询
@@ -403,7 +404,7 @@
                  } else {
                     wx.join1v1Chat({
                        caller: {
                           nickname: uni.getStorageSync('name'),
                           nickname: uni.getStorageSync('username'),
                           openid: uni.getStorageSync(
                              'openid')
                        },
@@ -411,7 +412,7 @@
                           nickname: uni.getStorageSync('customerName'),
                           openid: uni.getStorageSync(
                              'customeropenId')
                        }, // 这里的openid是fyy的,充当固定的客服openid
                        },
                        backgroundType: 2,
                        roomType: 'voice',
                        success() {