jiangping
2025-01-07 41d11d9db46ccd44163860f6be6bfd2137aff369
h5/pages/waybill/list.vue
@@ -1,5 +1,9 @@
<template>
   <view class="main_app">
   <view class="main_app">
      <view class="title_wrap">
         <view class="name">{{ waybillInfo.realname || waybillInfo.username || waybillInfo.mobile }},欢迎登录~</view>
         <view class="btn" @click="loginOut">退出登录</view>
      </view>
      <view class="head_wrap" @click="openModal">
         <view class="search_box">
            <image src="@/static/ic_search@2x.png" class="search" mode=""></image>
@@ -109,7 +113,8 @@
<script>
   import {
      orderListTms
      orderListTms,
      logoutPost
   } from '@/api'
   import dayjs from 'dayjs';
   export default {
@@ -119,7 +124,8 @@
            list: [],
            page: 1,
            total: 0,
            waybillInfo: uni.getStorageSync('waybillInfo'),
            showModal: false,
            showStarttime: false,
            showEndtime: false,
@@ -137,14 +143,11 @@
         };
      },
      onLoad(options) {
         this.$set(this.param, 'phoneNumber', options.phone)
         this.getList()
      },
      methods: {
         clear() {
            this.param = {
               phoneNumber: this.param.phoneNumber
            }
            this.param = {}
            this.form = {}
            this.page = 1
            this.list = []
@@ -154,6 +157,17 @@
         diaodu() {
            uni.navigateTo({
               url: '/pages/staff/signin'
            })
         },
         loginOut() {
            let app_url = 'https://atwl.ahzyssl.com/zhyq_h5/#/pages/waybill/home'
            logoutPost({
               isH5: 1
            }).then(res => {
               this.$store.commit('empty')
               setTimeout(() => {
                  window.location.href = app_url
               }, 300)
            })
         },
         modalSub() {
@@ -212,11 +226,6 @@
               form,
               page
            } = this
            // if (form.contract) {
            //    form.contractNumber = form.contract
            // } else {
            //    form.contractNumber = null
            // }
            orderListTms({
               parameters: {
                  ...param,
@@ -240,6 +249,33 @@
<style lang="scss">
   page {
      background: #F7F7F7;
   }
   .title_wrap {
      display: flex;
      justify-content: space-between;
      // align-items: center;
      background-color: #fff;
      width: 750rpx;
      height: 70rpx;
      margin: -10rpx -30rpx 0;
      padding: 12rpx 30rpx;
      .name {
         font-weight: 600;
         font-size: 34rpx;
         color: #222222;
      }
      .btn {
         width: 144rpx;
         height: 56rpx;
         border-radius: 36rpx;
         border: 1rpx solid $uni-color-primary;
         font-size: 26rpx;
         color: $uni-color-primary;
         display: flex;
         justify-content: center;
         align-items: center;
      }
   }
   .head_title{
      color: $uni-color-primary;
@@ -290,9 +326,8 @@
   .scroll_Y {
      background-color: #f7f7f7;
      height: calc(100vh - 180rpx);
      height: calc(100vh - 250rpx);
      margin-top: 10rpx;
      .main_list {
         width: 750rpx;
         margin: 0 -30rpx;