From 3ae4d4e84face9c3f81a8cd74e6458b5914a43e0 Mon Sep 17 00:00:00 2001
From: schangxiang@126.com <schangxiang@126.com>
Date: 周四, 20 6月 2024 14:29:53 +0800
Subject: [PATCH] 2

---
 yiqi_pda/manifest.json                      |    2 +-
 yiqi_pda/pages/outBound/index.vue           |    6 +++++-
 yiqi_pda/api/api.js                         |    2 +-
 yiqi_pda/pages/outBound/modules/content.vue |    2 +-
 4 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/yiqi_pda/api/api.js b/yiqi_pda/api/api.js
index 147008f..d246566 100644
--- a/yiqi_pda/api/api.js
+++ b/yiqi_pda/api/api.js
@@ -1,6 +1,6 @@
 // 鍚屾椂鍙戦�佸紓姝ヨ姹傜殑娆℃暟锛岄槻姝竴娆$偣鍑绘湁澶氭璇锋眰
 let ajaxTime = 0;
-// export const baseUrl = 'http://localhost:7788'
+//export const baseUrl = 'http://localhost:7788'
 export const baseUrl = 'http://10.135.75.70:7788' //鐢熶骇鐢�
 //export const baseUrl = 'http://192.168.216.203:7788' //娴嬭瘯鐢�
 
diff --git a/yiqi_pda/manifest.json b/yiqi_pda/manifest.json
index 3430f7c..0ebf3cc 100644
--- a/yiqi_pda/manifest.json
+++ b/yiqi_pda/manifest.json
@@ -2,7 +2,7 @@
     "name" : "杩炴潌绾挎暟閲�",
     "appid" : "__UNI__F24DEB0",
     "description" : "涓�姹借繛鏉�",
-    "versionName" : "2.0.12",
+    "versionName" : "2.0.14",
     "versionCode" : 6,
     "transformPx" : false,
     /* 5+App鐗规湁鐩稿叧 */
diff --git a/yiqi_pda/pages/outBound/index.vue b/yiqi_pda/pages/outBound/index.vue
index 27c1cda..0e8f82c 100644
--- a/yiqi_pda/pages/outBound/index.vue
+++ b/yiqi_pda/pages/outBound/index.vue
@@ -86,15 +86,19 @@
 			// 鑾峰彇宸ヤ欢淇℃伅
 			async onSearchContainter(OP80NewCode) {
 				this.inputFocus=false
-				this.initFocus(100);
 				const param = {
 					OP80NewCode: OP80NewCode
 				}
 				try{
 					let {data}=await getWorkPieceByOP80NewCode(param)
 					if(!this.workPieceData.some(item=>item.workPieceID==data.workPieceID)) {
+						data.addTime=new Date();
 						this.workPieceData.push(data)
 					}
+					//椤哄簭璋冭浆锛屾帓搴�
+					this.workPieceData.sort((a, b) => b.addTime - a.addTime);
+
+					this.initFocus(100);
 					//console.log(this.workPieceData,'dsts');
 					// setTimeout(()=>{
 					// 	this.OP80NewCode = '' ;//姣忔鍒峰畬灏辨竻绌鸿緭鍏ユ 銆怑ditby shaocx,2024-06-12銆�
diff --git a/yiqi_pda/pages/outBound/modules/content.vue b/yiqi_pda/pages/outBound/modules/content.vue
index 23fb066..d44726d 100644
--- a/yiqi_pda/pages/outBound/modules/content.vue
+++ b/yiqi_pda/pages/outBound/modules/content.vue
@@ -4,7 +4,7 @@
 			:name="index" @click="actionClick" style="margin-bottom: 10rpx;background-color: #fff;">
 		<view class="content" >
 			<view class="content_flex">
-				<view class="flex_index">{{index+1}}</view>
+				<view class="flex_index">{{workPieceData.length-index}}</view>
 				<view class="flex_code">OP80鎴愬搧鐮�: {{item.oP80NewCode}}</view>
 				<view class="flex_status">{{item.qualityStateName}}</view>
 			</view>

--
Gitblit v1.9.3