doum
2 天以前 815e2cda769751dec5c1a1a71d0ff61b0d051d76
pda/pages/index/queueup.vue
@@ -1,15 +1,14 @@
<template>
  <view class="main_app">
    <view class="main_content">
      <view class="title" @click="showPlatformgroup = true"
        >{{ platformGroup.name
        }}<u-icon
      <view class="title" @click="showPlatformgroup = true" >{{ platformGroup.name||''}}
     <u-icon
          name="arrow-down"
          size="20"
          class="ml12"
          color="#999999"
        ></u-icon
      ></view>
        ></u-icon>
     </view>
      <view class="input_wrap">
        <u-icon name="search" class="mr12" size="19" color="#999999" />
        <input
@@ -72,9 +71,10 @@
              <text class="label primaryColor">签到时间</text>
              <text class="value primaryColor" v-if="item.signDate">{{ item.signDate.slice(5, 16) }}</text>
            </view>
        <!-- <view class="btns">
          <view class="btn active">入园</view>
        </view> -->
         <view class="btns">
          <view class="btn active" @click="jiaji(item.id)">加急</view>
        <view class="btn  active1" @click="backSignin(item.id)">退回签到</view>
        </view>
      </view>
      <view v-if="platformLineUpList.length == 0" class="empty_wrap">
        <image src="@/static/default_nodata@2x.png" />
@@ -142,7 +142,7 @@
</template>
<script>
import { platformLineUpPage, getPlatformGroupList, wmsJobDetail } from '@/api'
import { platformLineUpPage, getPlatformGroupList, wmsJobDetail,jobUrge,backToWatiSign } from '@/api'
export default {
  data() {
    return {
@@ -217,6 +217,32 @@
      this.page = 1
      this.platformLineUpList = []
      this.getList()
    },
   jiaji(id){
      uni.showModal({
         content: `确认加急吗?`,
         success: (res) => {
            if (res.confirm) {
               jobUrge({ id:id }).then(res => {
                  this.showToast('加急成功')
                  this.handleQuery()
               })
            }
         }
      })
   },
   backSignin(id){
      uni.showModal({
         content: `确认退回签到吗?该操作后司机需要重新签到!`,
         success: (res) => {
            if (res.confirm) {
               backToWatiSign({ id:id }).then(res => {
                  this.showToast('退回签到成功')
                  this.handleQuery()
               })
            }
         }
      })
    },
    platConfirm(e) {
      const index = e.indexs[0]
@@ -343,6 +369,12 @@
          border: 1rpx solid #999999;
          margin-left: 20rpx;
        }
      .active1{
         width: 140rpx;
         background-color: #cb0000;
         color: #fff;
         border-color: #cb0000;
      }
        .active {
          background-color: $uni-color-primary;
          color: #fff;