wk
2024-11-22 f2dd92deb176ad39b18805d5d2721fad0974a278
pages/public-page/faYunstatisticsDetails/faYunstatisticsDetails.vue
@@ -1,16 +1,16 @@
<template>
   <view class="bill-of-lading-details">
      <view class="top-banner"
         style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/loadingbanner.png') no-repeat;background-size: cover;">
         style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/loadingbanner.png') no-repeat;background-size: cover;">
         <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>
@@ -20,7 +20,7 @@
               <view class="basic">
                  <view class="coalName">{{ coalDetailsData.productNames || coalDetailsData.productName }}</view>
                  <view class="status-button"
                     style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/statusbutton.png') no-repeat;
                     style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/statusbutton.png') no-repeat;
                              background-size: cover;">
                     {{coalDetailsData.statusView||''}}
                  </view>
@@ -46,19 +46,19 @@
               <view class="weigh-item" v-if="isShowClean">
                  <view class="item">
                     <view class="concrete"
                        style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/skin.png') no-repeat;background-size: cover;">
                        style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/skin.png') no-repeat;background-size: cover;">
                        皮</view>
                     <view class="num" v-if="weightObj.skin">{{  Number(weightObj.skin).toFixed(2) ||"" }}</view>
                  </view>
                  <view class="item">
                     <view class="concrete"
                        style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/hair.png') no-repeat;background-size: cover;">
                        style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/hair.png') no-repeat;background-size: cover;">
                        毛</view>
                     <view class="num" v-if="weightObj.hair">{{  Number(weightObj.hair).toFixed(2) ||""  }}</view>
                  </view>
                  <view class="item">
                     <view class="concrete"
                        style="background: url('https://mx.jzeg.cn:9096/appimg/image/banner/clean.png') no-repeat;background-size: cover;">
                        style="background: url('https://wrzs.czjlchem.com:9090/appimg/image/banner/clean.png') no-repeat;background-size: cover;">
                        净</view>
                     <view class="num" v-if="(weightObj.clean || (weightObj.clean && weightObj.clean === 0 ))">{{ Number(weightObj.clean).toFixed(2)  ||""  }}</view>
                  </view>
@@ -72,6 +72,7 @@
         <view class="table">
            <uni-table  border 
             id="table-box"
            v-if="coalDetailsData.isWeight === 1"
         emptyText="暂无更多数据">
               <uni-tr>
                   <uni-th align="center" >产品</uni-th>
@@ -102,6 +103,37 @@
               ></uni-td>
            </uni-tr>
            </uni-table>
            <uni-table  border
             id="table-box"
            v-else
         emptyText="暂无更多数据">
               <uni-tr>
                   <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">
                     <view class="name">{{ subItem.productName }}</view></uni-td>
               <!-- <uni-td align='right'>
                  <view  v-if="subItem.skin">{{ Number( subItem.skin).toFixed(2)  || ''}}</view>
               </uni-td>
               <uni-td align='right'>
                  <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 || (subItem.clean && subItem.clean === 0))">{{ Number( subItem.clean).toFixed(2) || '' }}</view>
               </uni-td> -->
             
                  <uni-td align="right">
               <view>{{ subItem.productQuantity }}</view
               ></uni-td>
            </uni-tr>
            </uni-table>
         </view>
         <!-- 请输入集装箱号 -->
         <view class="codeBox" v-if="coalDetailsData.isContainerNum">
@@ -118,7 +150,7 @@
         </view>
      </view>
      <view class="origin-info"
         v-if="originInfoVisible&&!isSpecial">
         v-if="originInfoVisible&&!isSpecial && isShowYuanFa">
         <view class="origin-info_wrapper">
            <view class="origin-info_content">
               <!-- 折叠 -->
@@ -200,7 +232,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-tr>
                        <uni-tr v-for="(subItem, index) in coalDetailsData.tmTaskCoalList" :key="index">
                           <uni-td align="center">
@@ -230,14 +263,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="fileList1.length ? fileList1.length  : 2"
                        width="250"
                        height="150"
                        :previewFullImage="true"
@@ -298,7 +331,7 @@
      <!-- <view class="completeOutSale">
         <u-modal :show="completeOutSaleShow"
            title="确认"
            content="是否完成外销提煤单"
            content="是否完成外销收发单"
            :showCancelButton="true"
            @confirm="completeOutSaleConfirm"
            @cancel="completeOutSaleCancel"></u-modal>
@@ -324,13 +357,13 @@
         combinedTitle,
      },
      onPullDownRefresh() {
         this.getTakeCoal(); //获取提煤单详情
         this.getTakeCoal(); //获取收发单详情
         // uni.stopPullDownRefresh();
      },
      onLoad(value) {
         this.orderPlanId = value.id;
         // this.yyId = value.yyId;
         // this.originInfoVisible = value.orderType === '外购'
         this.originInfoVisible = value.orderType === '外购'
         // if (value.overTmWaixiao) {
         //    this.overTmWaixiao = value.overTmWaixiao
         //    this.getWeightHouseObj.overTmWaixiao = value.overTmWaixiao
@@ -339,7 +372,7 @@
         this.changeglobalIsFirstWeighing(1)
         if (this.globalIsFirstWeighing === 1) {
            console.log('获取详情 onload');
            this.getTakeCoal(); //获取提煤单详情
            this.getTakeCoal(); //获取收发单详情
         }
         this.init(); //获取日志
      },
@@ -347,7 +380,7 @@
         this.coalDayPage(); //获取日志 定时任务
         if (this.globalIsFirstWeighing === 2) {
            console.log('获取详情 onShow');
            this.getTakeCoal(); //获取提煤单详情
            this.getTakeCoal(); //获取收发单详情
         }
      },
      onHide() {
@@ -368,7 +401,7 @@
         return {
            swiperList:[],
            orderPlanId: null,
            radioValue:'煤场',
            radioValue:'场地',
            tmTaskCoalList:[],
            currentNum:0,
            guideLineshow:false,
@@ -381,8 +414,8 @@
            },
            coalDetailsData: {
               tmTaskCoalList:[]
            }, // 提煤单详情
            currentPageCoalStatus: 0, // 当前页面提煤单状态
            }, // 收发单详情
            currentPageCoalStatus: 0, // 当前页面收发单状态
            // 获取所在磅房参数
            getWeightHouseObj: {
               deptId: '',
@@ -408,8 +441,9 @@
               openName: '',
               serviecePhone: ''
            },
            coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请',
               '进入场院', '异常审核中', '返回加减吨', '超时', '打印中', '打印中', '填写', '放空确认中', '超最大毛重确认中'
            coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入仓库', '出仓库', '放空', '作废', '入场申请',
               '进入场院', '异常审核中', '返回加减吨', '超时', '打印中', '打印中', '填写', '放空确认中', '超最大毛重确认中','补打','入场检查','质检中',
               '离场检查','已打印','装卸','返回加减吨确认中'
            ], // 状态
            weighHouseCode: '',
            // 放空弹窗控制变量
@@ -569,8 +603,14 @@
               return  tempArr[index];
             }
         },
         //判断是否展示 原发信息
         isShowYuanFa(){
            if(this.coalContactClean && !this.coalDetailsData.tmTaskCoalList.length){
               return false
            }else{
               return true
            }
         }
      },
      methods: {
@@ -594,7 +634,7 @@
               }
            });
         },
         // 获取提煤单详情
         // 获取收发单详情
         getTakeCoal() {
            uni.showLoading({
               title: '加载中'
@@ -602,7 +642,7 @@
            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;
                  // 
@@ -625,7 +665,7 @@
                  // 获取客服openId参数赋值
                  this.getServiceOpenid.deptId = this.coalDetailsData.deptId;
                  this.getServiceOpenid.filedId = this.coalDetailsData.filedId;
                  // 获取提煤单状态
                  // 获取收发单状态
                  this.currentPageCoalStatus = this.coalDetailsData.status;
                  // 获取原发信息
                  this.primarySkin = this.coalDetailsData.skinTwo;
@@ -817,7 +857,7 @@
            this.guideLineshow = true;
            this.swiperList = [];
            this.activeText = '';
            this.activeObj.affiliationId = this.coalDetailsData.filedId; //默认查煤场
            this.activeObj.affiliationId = this.coalDetailsData.filedId; //默认查场地
            this.getguideFun();
         },
@@ -992,11 +1032,15 @@
               .coalName,
               .order-type {
                  width: 45%;
                  height: 30rpx;
                  height: 60rpx;
                  font-size: 30rpx;
                  font-weight: 300;
                  color: #515151;
                  position: relative;
                  overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
               }
               .black-block {
@@ -1009,13 +1053,13 @@
            }
            .time {
               width: 35%;
               width: 40%;
               height: vww(12);
               display: flex;
               justify-content: flex-start;
               .send-date {
                  width: 148rpx;
                  width: 300rpx;
                  height: 24rpx;
                  margin-left: vww(14);
                  font-size: 28rpx;