yangan
2024-07-11 8b53f063a074d91e7093d35168bf0dc349c83ba9
pages/driver-page/driver-index/bill-of-lading-details/bill-of-lading-details.vue
@@ -7,13 +7,13 @@
            fontSize='36'></u-notice-bar>
         <view class="top-information">
            <view class="cutomer-name"
               v-if="orderType == '转入' || orderType == '转出'">煤场:{{ coalDetailsData.toFiledName || '' }}</view>
               v-if="orderType == '转入' || orderType == '转出'">场地:{{ coalDetailsData.toFiledName || '' }}</view>
            <view class="cutomer-name"
               v-else>客户:{{ coalDetailsData.customerName || '' }}</view>
            <view class="fild-name">
               <view class="">矿场:{{ coalDetailsData.deptName || '暂无' }}</view>
               <view class=""
                  v-if="orderType == '转入' || orderType == '转出'">煤场:{{ coalDetailsData.filedName || '' }}</view>
                  v-if="orderType == '转入' || orderType == '转出'">场地:{{ coalDetailsData.filedName || '' }}</view>
               <view class=""
                  v-else>仓库:{{ coalDetailsData.filedName || '暂无' }}</view>
            </view>
@@ -63,7 +63,7 @@
                     <view class="concrete"
                        style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/clean.png') no-repeat;background-size: cover;">
                        净</view>
                     <view class="num" v-if="weightObj.clean">{{ Number(weightObj.clean).toFixed(2)  ||""  }}</view>
                     <view class="num" v-if="(weightObj.clean || (weightObj.clean &&  weightObj.clean === 0) )">{{ Number(weightObj.clean).toFixed(2)  ||""  }}</view>
                  </view>
               </view>
            </view>
@@ -81,7 +81,8 @@
                  <uni-th align="center">皮重</uni-th>
                  <uni-th align="center">毛重</uni-th>
                  <uni-th align="center">净重</uni-th>
                   <uni-th align="center">扣吨</uni-th>
                   <uni-th align="center">扣吨</uni-th>
                  <uni-th align="center">件数</uni-th>
               </uni-tr>
               <uni-tr v-for="(subItem, index) in tmTaskCoalList" :key="index">
                  <uni-td align="center">
@@ -93,13 +94,15 @@
                  <view class="name" v-if="subItem.hair">{{ Number(subItem.hair) .toFixed(2) || '' }}</view>
               </uni-td>
               <uni-td align='right'>
                  <view class="name" v-if="subItem.clean">{{ Number( subItem.clean).toFixed(2) || '' }}</view>
                  <view class="name" v-if="(subItem.clean || (subItem.clean &&  subItem.clean === 0))">{{ Number( subItem.clean).toFixed(2) || '' }}</view>
               </uni-td>
               
                <uni-td align="right">
               <view>{{ subItem.discount }}</view
               ></uni-td>
                  <uni-td align="right">
               <view>{{ subItem.productQuantity }}</view
               ></uni-td>
            </uni-tr>
            </uni-table>
         </view>
@@ -228,14 +231,14 @@
                  
                  <u-form-item prop='contactPicture'>
                     <view class="label-text">
                        <text style="color: #f56c6c;">*</text>原发磅单
                        <text style="color: #f56c6c;">*</text>原发单据
                     </view>
                     <u-upload :fileList="fileList1"
                        @afterRead="afterRead"
                        @delete="deletePic"
                        name="1"
                        multiple
                        :maxCount="2"
                        :maxCount="deletable ? fileList1.length : 2"
                        width="250"
                        height="150"
                        :previewFullImage="true"
@@ -351,7 +354,7 @@
      <!-- <view class="completeOutSale">
         <u-modal :show="completeOutSaleShow"
            title="确认"
            content="是否完成外销提煤单"
            content="是否完成外销收发单"
            :showCancelButton="true"
            @confirm="completeOutSaleConfirm"
            @cancel="completeOutSaleCancel"></u-modal>
@@ -371,14 +374,14 @@
            placement="row" 
            @change="radioChange"
            >
            <u-radio label="煤场" :name="'煤场'" :labelSize="30" :size="30"></u-radio>
            <u-radio label="单位"  :name="'单位'":labelSize="30" :size="30"></u-radio>
            <u-radio label="场地" :name="'场地'" :labelSize="30" :size="30"></u-radio>
            <u-radio v-for="(item,index) in wareList" :label="'仓库'+(index+1)"  :name="index":labelSize="30" :size="30" ></u-radio>
         </u-radio-group>
            <div class="guidebox">
            <u-swiper
            v-if="guideLineshow"
            :height="200"
            :height="400"
            @click="swiperClick"
            :list="swiperList"
            keyName="image"
@@ -414,7 +417,7 @@
         printerStyle
      },
      onPullDownRefresh() {
         this.getTakeCoal(); //获取提煤单详情
         this.getTakeCoal(); //获取收发单详情
         uni.stopPullDownRefresh();
      },
      onLoad(value) {
@@ -429,7 +432,7 @@
         this.changeglobalIsFirstWeighing(1)
         if (this.globalIsFirstWeighing === 1) {
            console.log('获取详情 onload');
            this.getTakeCoal(); //获取提煤单详情
            this.getTakeCoal(); //获取收发单详情
         }
         this.init(); //获取日志
         this.getgetService(); //获取客服
@@ -438,7 +441,7 @@
         this.coalDayPage(); //获取日志 定时任务
         if (this.globalIsFirstWeighing === 2) {
            console.log('获取详情 onShow');
            this.getTakeCoal(); //获取提煤单详情
            this.getTakeCoal(); //获取收发单详情
         }
      },
      onHide() {
@@ -459,7 +462,7 @@
         return {
            swiperList:[],
            orderPlanId: null,
            radioValue:'煤场',
            radioValue:'场地',
            tmTaskCoalList:[],
            currentNum:0,
            guideLineshow:false,
@@ -470,10 +473,11 @@
               affiliationId:'',
               type:2,
            },
            wareList:[],
            coalDetailsData: {
               tmTaskCoalList:[]
            }, // 提煤单详情
            currentPageCoalStatus: 0, // 当前页面提煤单状态
            }, // 收发单详情
            currentPageCoalStatus: 0, // 当前页面收发单状态
            // 获取所在磅房参数
            getWeightHouseObj: {
               deptId: '',
@@ -707,7 +711,7 @@
               }
            })
         },
         // 获取提煤单详情
         // 获取收发单详情
         getTakeCoal() {
            uni.showLoading({
               title: '加载中'
@@ -715,11 +719,12 @@
            this.$reqGet('getTakeCoal', { takeCoalId: this.orderPlanId }).then(res => {
               if (res.code == 0) {
                  uni.hideLoading();
                  console.log(res, '提煤单详情');
                  console.log(res, '收发单详情');
                  this.coalDetailsData = res.data;
                  this.orderType = this.coalDetailsData.orderType;
                  // 
                  this.isSpecial = res.data.isSpecial
                  this.wareList=res.data.bunkerIds.split(",")
                  // // 判断是否完成外销订单
                  // this.completeOutSale.orderType = this.coalDetailsData.orderType;
                  // this.completeOutSale.deptId = this.coalDetailsData.deptId;
@@ -738,7 +743,7 @@
                  // 获取客服openId参数赋值
                  this.getServiceOpenid.deptId = this.coalDetailsData.deptId;
                  this.getServiceOpenid.filedId = this.coalDetailsData.filedId;
                  // 获取提煤单状态
                  // 获取收发单状态
                  this.currentPageCoalStatus = this.coalDetailsData.status;
                  // 获取原发信息
                  this.primarySkin = this.coalDetailsData.skinTwo;
@@ -819,7 +824,7 @@
               });
            }, 5000);
         },
         // 展示提煤单详情
         // 展示收发单详情
         showCaolPickUpBill() {
            uni.navigateTo({
               url: `/pages/driver-page/driver-index/bill-of-lading-details/coal-pick-up-bill/coal-pick-up-bill?orderPlanId=${this.orderPlanId}`
@@ -1237,7 +1242,7 @@
            this.guideLineshow = true;
            this.swiperList = [];
            this.activeText = '';
            this.activeObj.affiliationId = this.coalDetailsData.filedId; //默认查煤场
            this.activeObj.affiliationId = this.coalDetailsData.filedId;
            this.getguideFun();
         },
@@ -1245,12 +1250,12 @@
            this.guideLineshow = false;
         },
         radioChange(item){
            console.log(item);
            if(item == '煤场'){
            console.log(111,item,this.coalDetailsData,this.wareList);
            if(item == '场地'){
               this.activeObj.affiliationId = this.coalDetailsData.filedId;
               this.activeObj.type = 2
            }else{
               this.activeObj.affiliationId = this.coalDetailsData.deptId;
               this.activeObj.affiliationId = this.wareList.length>0?this.wareList[item]:this.coalDetailsData.deptId;
               this.activeObj.type = 1
            }
            this.getguideFun();
@@ -1512,7 +1517,7 @@
      .sub-table{
         width: 690rpx;
         min-height: 300rpx;
         margin: vww(20) vww(15) vww(13);
         margin: vww(40) vww(15) vww(13);
         background: #ffffff;
         box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12);
         border-radius: 20rpx;
@@ -1525,9 +1530,12 @@
         align-items: flex-start;
         /deep/ .uni-table{
            min-width: 0!important;
         }
      }
         .uni-table::-webkit-scrollbar {
            display: none;
            }
         }
      .origin-info {
         width: 690rpx;