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 | 93 ++++++++++++++++++++++++++++++++++++++--------
1 files changed, 77 insertions(+), 16 deletions(-)
diff --git a/pda/pages/index/queueup.vue b/pda/pages/index/queueup.vue
index aad2d5b..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(11, 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>
@@ -48,6 +49,10 @@
<text class="value">{{ item.contractNum }}</text>
<text class="primaryColor" @click="subDetail(item)">棰勭害璇︽儏</text>
</view>
+ <view class="line line2" v-if="item.billCode && item.wmsContractNum">
+ <text class="label">鍚堝悓鍗曞彿</text>
+ <text class="value">{{ item.wmsContractNum }}</text>
+ </view>
<view class="line">
<text class="label">椹鹃┒鍛�</text>
<text class="value"
@@ -56,15 +61,20 @@
</view>
<view class="line">
<text class="label">鎬昏繍杈撻噺</text>
- <text class="value">{{ item.totalNum }}涓囨敮</text>
+ <text class="value">{{ item.totalNum || item.ioQty }}涓囨敮</text>
</view>
<view class="line" v-if="item.carrierName">
<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" />
@@ -100,7 +110,7 @@
<view class="value">{{ wmsInfo.carrierName }}</view>
</view>
</view>
- <view class="separate"></view>
+ <!-- <view class="separate"></view> -->
<view class="contract_wrap">
<view class="contract_list" v-for="item in wmsInfo.wmsJobContractVOList">
<view class="title">鍚堝悓鍙凤細{{ item.contractCode }}</view>
@@ -132,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,
@@ -154,7 +164,13 @@
},
onReachBottom() {
if(this.total > this.platformLineUpList.length){
+ this.page ++
this.getList()
+ }else{
+ uni.showToast({
+ title:'鏆傛棤鏇村鏁版嵁',
+ icon: 'none'
+ })
}
},
methods: {
@@ -188,6 +204,11 @@
}).then(res => {
if (res.data) {
this.platformLineUpList = [...this.platformLineUpList, ...res.data.records || []]
+ this.platformLineUpList.forEach(item => {
+ if(item.wmsContractNum){
+ item.wmsContractNum = item.wmsContractNum.split(',').join('锛�')
+ }
+ })
this.total = res.data.total || 0
}
})
@@ -197,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]
@@ -292,12 +339,16 @@
font-size: 30rpx;
color: $uni-color-primary;
}
+ .green{
+ color: #00BA67;
+ }
}
.line {
display: flex;
margin-bottom: 20rpx;
.label {
width: 144rpx;
+ flex-shrink: 0;
color: #666666;
}
.value {
@@ -318,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;
@@ -451,4 +508,8 @@
}
}
}
+ .line2{
+ margin-right: -30rpx;
+ padding-right: 0;
+ }
</style>
\ No newline at end of file
--
Gitblit v1.9.3