xuxueyang
2024-08-20 293bdab16ef217cf02416c0e0ffeca36a0c69e6d
sub_pages/partner/delivery/delivery.vue
@@ -12,7 +12,7 @@
            },
            show_select_station: false,
            show_select_status: false,
            selecttoday: true,
            columns_station: [],
            status_columns: [],
         }
@@ -21,7 +21,8 @@
         this.query.stationId = options.stationId || ''
         this.query.stationName = options.stationName || ''
         this.listApi = '/api/delivery/list/today'
         // this.listApi = '/api/delivery/list/today'
         this.listApi = '/api/delivery/check/list/today'
         this.getList()
         // this.$http.request('get', '/api/station/list', {
         //    params: {}
@@ -53,6 +54,18 @@
         uni.stopPullDownRefresh()
      },
      methods: {
         changeSelecrRange() {
            this.selecttoday = !this.selecttoday
            this.$nextTick(() => {
               if (this.selecttoday) {
                  this.listApi = '/api/supplier/delivery/list/today'
               } else {
                  this.listApi = '/api/supplier/delivery/list'
               }
               this.refreshList()
            })
         },
         callTel(tel) {
            if (tel) {
               uni.makePhoneCall({
@@ -81,12 +94,12 @@
            })
         },
         async compelete(item) {
            await this.$message.confirm("是否完成此单质检")
            await this.$message.confirm("是否一键完成此单的质检")
            // '/api/delivery/list/view/complete'
            const {
               code,
               data
            } = await this.$http.request('get', '/api/delivery/list/view/complete', {
            } = await this.$http.request('get', '/api/delivery/check/list/complete', {
               params: {
                  id: item.id
               }
@@ -97,7 +110,7 @@
               setTimeout(async () => {
                  await tmp.refreshList()
                  tmp.$forceUpdate()
               }, 200)
               }, 500)
            }
         }
      }
@@ -116,6 +129,12 @@
               </u-input>
            </view>
         </view>
         <!-- <view class="m-t-12">
            <view class="m-l-a m-r-20 w-fit flex">
               <radio :checked="selecttoday" @click="changeSelecrRange"></radio>
               <view>只查看今日</view>
            </view>
         </view> -->
         <view class="search-container m-t-12 flex">
            <view class="flex1 input">
               <u-input placeholder="请输入货位号" v-model="query.warehouseLocationCode">
@@ -187,7 +206,7 @@
               <view class="line-gray"></view>
               <view class="flex buttons">
                  <view class="button button-1 m-l-a m-r-15"
                     v-if="item.status==='ARRIVED'||item.status==='PENDING'" @click="compelete(item)">质检完成</view>
                     v-if="item.status==='ARRIVED'||item.status==='PENDING'" @click="compelete(item)">一键质检</view>
                  <view class="button button-0 m-l-a m-r-0" @click="toDetail(item)">
                     {{(item.status==='ARRIVED'||item.status==='PENDING')?'前往质检':'查看详情'}}
                  </view>