819527061@qq.com
2024-07-03 01c82e2ed527bae42fe53452073522d74980bf16
pages/driver-page/driver-index/bill-of-lading-details/selectOrderPlan/selectOrderPlan.vue
@@ -5,6 +5,7 @@
            icon="http://cdn.uviewui.com/uview/empty/data.png"
            textSize="30"
            iconSize="1000"
            text="暂无数据"
            v-if="orderPlanData.length===0"></u-empty>
      </view>
      <view class="collection-form">
@@ -28,6 +29,23 @@
                  <view class="coal-type"
                     v-if="item.orderType">{{ item.orderType||'' }}</view>
               </view>
            </view>
            <view class="second-line">
               <view class="coal-name">
                  <view class="">{{ item.orderCode ||''}}</view>
               </view>
            </view>
            <view class="second-line">
                  <text class="car-num " style="font-size: 28rpx;">供应商:{{ item.customerName }}</text>
            </view>
            <!-- 添加创建时间 -->
            <view class="second-line">
                  <text class="car-num " style="font-size: 28rpx;">创建时间:</text>
               <view style="font-size: 28rpx;">{{ item.createTime }}</view>
            </view>
            <view class="third-line">
               <view class="time-icon">
@@ -64,6 +82,7 @@
               icon="http://cdn.uviewui.com/uview/empty/data.png"
               textSize="30"
               iconSize="1000"
               text="暂无数据"
               v-if="historyCoalData.length==0"></u-empty>
            <view class="history-information"
               v-for="(item, index) in historyCoalData"
@@ -79,6 +98,19 @@
                  <view class="coal-name">{{ item.coalName || '' }}</view>
                  <view class="order-type">{{ item.orderType || '' }}</view>
               </view>
               <!-- 添加创建时间 -->
               <view class="third">
               <view class="third-line">
               <view class="time-icon">
                  <text class="car-num " style="font-size: 28rpx;">创建时间:</text>
               </view>
               <view style="font-size: 28rpx;">{{ item.createTime }}</view>
            </view>
            </view>
            <view class="third">
               <text class="car-num " style="font-size: 28rpx;">供应商:{{ item.customerName }}</text>
            </view>
               <view class="third">
                  <view class="third-line">
                     <view
@@ -110,15 +142,44 @@
            <view class="white-block"></view>
         </scroll-view>
      </view>
      <view style="height: 160rpx;width: 100%;">
      </view>
      <tab-bar :current="1"></tab-bar>
      <!-- <view style="height: 160rpx;width: 100%;">
         111111
      </view> -->
      <!-- 图片预览弹出框 -->
      <view class="previewImage-container">
            <view class="previewImage-container">
               <previewImage ref="previewImage"
                  :imgs="qualityTourImgList"
                  :saveBtn='false'></previewImage>
            </view>
         </view>
         <view class="noob-tour"
               v-if="roleType===4&&isFirstLogin">
               <combined-title title="操作指引"></combined-title>
               <u-cell-group>
                  <u-cell title="新手指引"
                     name='1'
                     :clickable="true"
                     @click="noobTour">
                     <u-badge type="primary"
                        value="01"
                        slot='icon'></u-badge>
                     <u-icon slot="value"
                        name="arrow-right"
                        size="30"
                        color="#b8b8b8"></u-icon>
                  </u-cell>
               </u-cell-group>
            </view>
      <tab-bar :current="0"></tab-bar>
   </view>
</template>
<script>
   import { onlineurl } from '@/api/request.js'
   import { mapState } from 'vuex'
   import { BaseUrl } from '@/api/publicInterface.js'
   import previewImage from '@/components/kxj-previewImage/kxj-previewImage.vue';
   export default {
      data() {
         return {
@@ -131,19 +192,31 @@
            // 是否显示更多数据
            showMoreData: false,
            total: null,
            isFirstLogin:false,
            onlineurl,
         };
      },
      components:{
         previewImage
      },
      computed: {
         ...mapState(['customerTourImgList','qualityTourImgList']),
         roleType() {
            return uni.getStorageSync('roleType')
         }
      },
      mounted() {
         this.getLogOn();
      },
      onShow() {
         this.GetOrderPlan()
         this.qualityInspectionHistory()
      },
      methods: {
         init(){
            this.GetOrderPlan()
         this.qualityInspectionHistory()
         },
         GetOrderPlan() {
            uni.showLoading({ title: '加载中...' });
            this.$reqGet('qualityInspection').then(res => {
@@ -182,7 +255,7 @@
            this.pageCurrent++;
            this.qualityInspectionHistory();
         },
         //fix 点击提煤单返回会增加重复数据
         //fix 点击通知单返回会增加重复数据
         ArrSet(Arr, id) {
            var obj = {};
            const arrays = Arr.reduce((setArr, item) => {
@@ -191,16 +264,40 @@
            }, []);
            return arrays;
         },
         // 验质选择
         validateClick(item) {
            uni.navigateTo({
               url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?orderPlanId=${item.id}`
            })
         },
         // 历史
         faYundetail(item) {
            uni.navigateTo({
               url: `/pages/driver-page/driver-index/bill-of-lading-details/weighDetail/weighDetail?orderPlanId=${item.id}&flag=${true}`
            })
         }
         },
         noobTour(v) {
            this.$refs.previewImage.open('https://mx.jzeg.cn:9095/appimg/image/tour/quality/quality1.jpg')
         },
         getLogOn() {
            this.$reqGet('getUserEntity').then(res => {
               this.phone = res.data.phone
            }).then(() => {
               uni.request({
                  url: `${BaseUrl}/admin/log/getLogOnType?phone=${this.phone}`,
                  success: res => {
                     // res.data.data 为1 代表第一次登录  为0取消学习指引  为2代表存在
                     if (res.data.data === 1) {
                        this.noobTour()
                     } else if (res.data.data === 2) {
                        this.isFirstLogin = true
                     } else {
                        this.isFirstLogin = false
                     }
                  }
               });
            })
         },
      },
   }
</script>
@@ -214,12 +311,13 @@
   }
   .main {
      width: 100%;
      margin: 0 auto;
      margin: 30px auto;
   }
   .scroll-Y {
      height: 900rpx;
      height: 100%;
      .more_text {
         color: #333;
@@ -331,7 +429,7 @@
      .collection-form-item {
         width: 690rpx;
         height: 320rpx;
         height: 350rpx;
         background: #ffffff;
         box-shadow: 4rpx 6rpx 25rpx 0rpx rgba(73, 120, 240, 0.15);
         border-radius: 20rpx;
@@ -491,4 +589,4 @@
         }
      }
   }
</style>
</style>