From 815e2cda769751dec5c1a1a71d0ff61b0d051d76 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 24 十月 2025 14:58:22 +0800
Subject: [PATCH] 最新版本541200007
---
pda/pages/index/queueup.vue | 75 ++++++++++++++++++++++++++++++-------
1 files changed, 61 insertions(+), 14 deletions(-)
diff --git a/pda/pages/index/queueup.vue b/pda/pages/index/queueup.vue
index 5deb4b4..1870a0e 100644
--- a/pda/pages/index/queueup.vue
+++ b/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
@@ -17,6 +16,7 @@
type="text"
placeholder="鎼滅储杞﹁締鐗岀収"
placeholder-class="placeholder9"
+ confirm-type="search"
@confirm="handleQuery"
/>
</view>
@@ -26,7 +26,7 @@
</view>
<!-- -->
<view class="dataList">
- <view class="item" v-for="item in platformLineUpList" :key="item.id">
+ <view class="item" v-for="item,i in platformLineUpList" :key="i">
<view class="head">
<view v-if="item.carCodeFront" class="code">
<text>{{ item.carCodeFront.slice(0, 1) }}</text>
@@ -34,9 +34,10 @@
<text>路</text>
<text>{{ item.carCodeFront.slice(2) }}</text>
</view>
- <view class="status" v-if="item.signDate"
- >绛惧埌鏃堕棿锛歿{ item.signDate.slice(5, 16) }}</view
- >
+ <!-- <view class="status green" v-if="item.status == 2">鏈堝彴绛夊緟</view > -->
+ <view class="status green" v-if="item.status == 2">绛夊緟鍙彿</view >
+ <view class="status" v-if="item.status == 3">鍏ュ洯绛夊緟</view >
+ <view class="status" v-if="item.status == 7">杞Щ涓�</view >
</view>
<view class="line" v-if="item.billCode">
<text class="label">杩愯緭鍗曞彿</text>
@@ -66,9 +67,14 @@
<text class="label">杩愯緭鍏徃</text>
<text class="value">{{ item.carrierName }}</text>
</view>
- <!-- <view class="btns">
- <view class="btn active">鍏ュ洯</view>
- </view> -->
+ <view class="line">
+ <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" @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" />
@@ -136,11 +142,11 @@
</template>
<script>
-import { platformLineUpPage, getPlatformGroupList, wmsJobDetail } from '@/api'
+import { platformLineUpPage, getPlatformGroupList, wmsJobDetail,jobUrge,backToWatiSign } from '@/api'
export default {
data() {
return {
- windowTop: 24,
+ windowTop: 24,
showDetail: false,
showPlatformgroup: false,
capacity: 10,
@@ -158,7 +164,13 @@
},
onReachBottom() {
if(this.total > this.platformLineUpList.length){
+ this.page ++
this.getList()
+ }else{
+ uni.showToast({
+ title:'鏆傛棤鏇村鏁版嵁',
+ icon: 'none'
+ })
}
},
methods: {
@@ -206,6 +218,32 @@
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]
this.platformGroup = this.platformGroupList[index]
@@ -301,6 +339,9 @@
font-size: 30rpx;
color: $uni-color-primary;
}
+ .green{
+ color: #00BA67;
+ }
}
.line {
display: flex;
@@ -328,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;
--
Gitblit v1.9.3