From 629c4afb413904f4b6e83ea4d8224fb981da7113 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期二, 10 三月 2026 10:34:14 +0800
Subject: [PATCH] #

---
 pages/outbound/orderOut/orderDetlList.vue |   60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 59 insertions(+), 1 deletions(-)

diff --git a/pages/outbound/orderOut/orderDetlList.vue b/pages/outbound/orderOut/orderDetlList.vue
index 178fb73..5e6d40f 100644
--- a/pages/outbound/orderOut/orderDetlList.vue
+++ b/pages/outbound/orderOut/orderDetlList.vue
@@ -15,6 +15,15 @@
 					<text class="header-value">{{ order.wkType$ || '-' }}</text>
 				</view>
 			</view>
+			<view class="header-actions">
+				<button
+					class="cu-btn bg-white text-blue round header-btn"
+					:disabled="waveLoading"
+					@click="generateWave"
+				>
+					{{ waveLoading ? '鐢熸垚涓�...' : '鐢熸垚娉㈡' }}
+				</button>
+			</view>
 		</view>
 
 		<!-- 鎼滅储妗� -->
@@ -140,7 +149,8 @@
 			condition: '',
 			menuList: [],
 			order: '',
-			loading: false
+			loading: false,
+			waveLoading: false
 		}
 	},
 	computed: {
@@ -290,6 +300,44 @@
 				this.loading = false
 			}
 		},
+		// 鐢熸垚娉㈡
+		async generateWave() {
+			if (!this.order || !this.order.code || this.waveLoading) return
+			this.waveLoading = true
+			try {
+				const res = await request('/orderOut/all/in', {
+					orderNo: this.order.code
+				})
+
+				if (res.code === 200) {
+					uni.showToast({
+						title: res.msg || '娉㈡鐢熸垚鎴愬姛',
+						icon: 'none',
+						position: 'top'
+					})
+					this.getOrderNoList(this.order)
+				} else if (res.code === 403) {
+					uni.showToast({
+						title: res.msg,
+						icon: 'none',
+						position: 'top'
+					})
+					setTimeout(() => {
+						uni.reLaunch({ url: '../login/login' })
+					}, 1000)
+				} else {
+					uni.showToast({
+						title: res.msg || '娉㈡鐢熸垚澶辫触',
+						icon: 'none',
+						position: 'top'
+					})
+				}
+			} catch (err) {
+				// request.js 宸茬粡澶勭悊浜嗛敊璇彁绀�
+			} finally {
+				this.waveLoading = false
+			}
+		},
 		// 閫夋嫨鏄庣粏杩涜鍑哄簱
 		chose(item) {
 			if (item.ableQty <= 0) {
@@ -339,6 +387,16 @@
 	padding: 12rpx 16rpx;
 }
 
+.header-actions {
+	display: flex;
+	justify-content: flex-end;
+	margin-top: 16rpx;
+}
+
+.header-btn {
+	min-width: 180rpx;
+}
+
 .header-row {
 	display: flex;
 	justify-content: space-between;

--
Gitblit v1.9.1