From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 11 九月 2025 18:43:14 +0800
Subject: [PATCH] 最新版本541200007
---
pda/pages/index/center.vue | 70 ++++++++++++++++++++++++++++------
1 files changed, 57 insertions(+), 13 deletions(-)
diff --git a/pda/pages/index/center.vue b/pda/pages/index/center.vue
index c07d174..ad0c9c2 100644
--- a/pda/pages/index/center.vue
+++ b/pda/pages/index/center.vue
@@ -39,8 +39,12 @@
</view>
<view class="line" v-else>
<text class="label">鍚堝悓鍗曞彿</text>
- <text class="value">{{ item.contractNum }}</text>
+ <text class="value" style="word-break: break-all;">{{ 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" style="word-break: break-all;">{{ item.wmsContractNum }}</text>
</view>
<view class="line">
<text class="label">椹鹃┒鍛�</text>
@@ -59,6 +63,7 @@
<view v-if="item.status == 4" class="btn active" @click="handleWork(item)">寮�濮嬩綔涓�</view>
<view v-if="item.status == 5" class="btn" @click="handleErr(item)">寮傚父鎸傝捣</view>
+ <view v-if="item.status == 8" class="btn" @click="restore(item)">寮傚父鎸傝捣</view>
<view v-if="item.status == 5 || item.status == 8" class="btn" @click="handleTransform(item)">杞Щ鏈堝彴</view>
<view v-if="item.status == 5 || item.status == 8" class="btn active" @click="handleFinish(item)">浣滀笟瀹屾垚</view>
</view>
@@ -82,6 +87,10 @@
<u-icon name="search" class="mr12" size="19" color="#999999" />
<input v-model="platformCallSearch" type="text" placeholder="鎼滅储杞﹁締鐗岀収" placeholder-class="placeholder9"
@confirm="callQuery" />
+ </view>
+ <view v-if="platformCallList.length == 0" class="empty_wrap">
+ <image src="@/static/default_nodata@2x.png" />
+ <text>鏆傛棤鎺掗槦杞﹁締</text>
</view>
<view class="order_list">
<scroll-view scroll-y="true" @scrolltolower="callScrolltolower" class="scroll_view">
@@ -104,8 +113,12 @@
</view>
<view class="line" v-else>
<text class="label">鍚堝悓鍗曞彿</text>
- <text class="value">{{ item.contractNum }}</text>
+ <text class="value" style="word-break: break-all;">{{ 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" style="word-break: break-all;">{{ item.wmsContractNum }}</text>
</view>
<view class="line">
<text class="label">椹鹃┒鍛�</text>
@@ -119,7 +132,9 @@
<text class="label">杩愯緭鍏徃</text>
<text class="value">{{ item.carrierName }}</text>
</view>
- <view class="btns">
+ <view class="btns" style="display: flex; align-items: center; justify-content: space-between;">
+ <text style="color: #279BAA; font-size: 14px; font-weight: 400;" v-if="item.signDate">绛惧埌鏃堕棿锛歿{item.signDate.substring(5, 10)}} {{item.signDate.substring(11, 16)}}</text>
+ <text v-else></text>
<view class="btn active" @click="handleCall(item)">鍙彿</view>
</view>
</view>
@@ -213,7 +228,8 @@
platformMove,
platformErr,
platformOverNumber,
- wmsJobDetail
+ wmsJobDetail,
+ restoreWork
} from '@/api'
import {
statusMap
@@ -253,9 +269,6 @@
},
onLoad() {
this.getPlatformGroup()
- // setInterval(() => {
- // this.getPlatformGroup()
- // }, 1000 * 30)
},
onHide(){
if(this.timer1){
@@ -328,7 +341,10 @@
let time = this.currentDate
if (this.platformTaskInfo && this.platformTaskInfo.platformJobList && this.platformTaskInfo.platformJobList
.length > 0) {
- this.platformTaskInfo.platformJobList.forEach(item => {
+ this.platformTaskInfo.platformJobList.forEach(item => {
+ if(item.wmsContractNum){
+ item.wmsContractNum = item.wmsContractNum.split(',').join('锛�')
+ }
if (item.newCallDate) {
let timeNum = 0
if(time > new Date(item.newCallDate).getTime()){
@@ -497,7 +513,12 @@
page: platformCallPage
}).then(res => {
if (res.data && res.data.records) {
- this.platformCallList = [...this.platformCallList, ...res.data.records]
+ this.platformCallList = [...this.platformCallList, ...res.data.records]
+ this.platformCallList.forEach(item => {
+ if(item.wmsContractNum){
+ item.wmsContractNum = item.wmsContractNum.split(',').join('锛�')
+ }
+ })
this.platformCallTotal = res.data.total
}
})
@@ -541,6 +562,21 @@
jobId: item.id
}).then(ress => {
this.showToast('寮傚父鎸傝捣鎴愬姛')
+ this.getPlatformTask()
+ })
+ }
+ }
+ })
+ },
+ restore(item) {
+ uni.showModal({
+ content: '鎮ㄧ‘璁よ瀵硅浠诲姟杩涜鎭㈠浣滀笟鍚�',
+ success: (res) => {
+ if (res.confirm) {
+ restoreWork({
+ jobId: item.id
+ }).then(ress => {
+ this.showToast('鎭㈠浣滀笟鎴愬姛')
this.getPlatformTask()
})
}
@@ -694,12 +730,15 @@
margin-bottom: 20rpx;
.label {
- width: 144rpx;
- color: #666666;
+ width: 132rpx;
+ color: #666666;
+ flex-shrink: 0;
}
.value {
- flex: 1;
+ flex: 1;
+ display: flex;
+ flex-wrap: wrap;
}
}
@@ -840,7 +879,8 @@
.label {
font-size: 28rpx;
color: #666666;
- width: 88rpx;
+ width: 88rpx;
+ flex-shrink: 0;
}
.value {
@@ -1082,5 +1122,9 @@
}
}
}
+ }
+ .line2{
+ margin-right: -30rpx;
+ padding-right: 0;
}
</style>
\ No newline at end of file
--
Gitblit v1.9.3