1
xuxueyang
2024-08-02 3f7970d666ea716ac726f7196bbde63241d8ec33
sub_pages/partner/delivery/station-delivery.vue
@@ -6,28 +6,40 @@
               stationId: '',
               stationName: '',
            },
            list: []
         }
      },
      onLoad(options) {
         this.listApi = '/api/delivery/list/today'
         this.getList()
         // this.list = [{}, {}]
      },
      },
      onReachBottom() {
         this.getMore()
      },
      async onPullDownRefresh() {
         this.page.current = 1
         await this.getList()
         uni.stopPullDownRefresh()
      },
      methods: {
         async getList() {
            this.$message.showLoading()
            const {
               code,
               data
            } = await this.$http.request('get', '/api/delivery/station/list', {
               params: {
                  name: this.query.stationName
               }
            })
            this.$message.hideLoading()
            if (code == 0) {
               this.list = data || []
            }
         },
         toDetail(item) {
            uni.navigateTo({
               url: `/sub_pages/partner/delivery/delivery-detail?stationId=${item.id}&stationName=${item.name}`
               url: `/sub_pages/partner/delivery/delivery-detail?stationId=${item.stationId}&stationName=${item.name}`
            })
         },
      }
@@ -41,7 +53,7 @@
            <view class="flex1 input">
               <u-input placeholder="请输入集货站名称" v-model="query.stationName">
                  <template slot="suffix">
                     <uni-icons color="#20613D" type="search" size="24" @click="refreshList"></uni-icons>
                     <uni-icons color="#20613D" type="search" size="24" @click="getList"></uni-icons>
                  </template>
               </u-input>
            </view>
@@ -52,23 +64,24 @@
         <no-data v-if="!list||list.length===0" style="width: 100%;"></no-data>
         <view v-for="(item,index) in list" :key="index" class="m-b-24">
            <view class="delivery-item bg-white br-4 p10 flex">
               <view>
               <view class="m-r-10">
                  <image src="/static/common/icon-station.png" class="icon-station m-r-10 img100 icon"></image>
               </view>
               <view>
               <view class="flex1">
                  <view class="title">
                     {{ item.name }}
                  </view>
                  <view class="flex">
                     <view class="form-item flex1">
                        <view class="form-item-label">供货数</view>
                        <view class="form-item-value t-red">{{ item.stationName || '-' }}</view>
                        <view class="form-item-label">类型</view>
                        <view class="form-item-value">{{ item.typeStr || '-' }}</view>
                     </view>
                     <view class="form-item flex1">
                        <view class="form-item-label">供货数</view>
                        <view class="form-item-value t-red">{{ item.stationName || '-' }}</view>
                        <view class="form-item-value t-red">{{ item.stationName || '0' }}</view>
                     </view>
                  </view>
@@ -94,6 +107,7 @@
            width: 72rpx;
            height: 72rpx;
         }
         .title {
            font-weight: 600;
            font-size: 32rpx;