From aeea63e6f732dda571c00ec4545fac460372197c Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期三, 29 五月 2024 13:50:36 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/HangZhouMes --- UI-Project/src/views/Returns/returns.vue | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/UI-Project/src/views/Returns/returns.vue b/UI-Project/src/views/Returns/returns.vue index e179221..3d857fb 100644 --- a/UI-Project/src/views/Returns/returns.vue +++ b/UI-Project/src/views/Returns/returns.vue @@ -313,6 +313,27 @@ selectedProjectNo.value = '' markingMachineStatus.value = '#911005'; cuttingMachineStatus.value = '#911005'; + const uniqueWidths = new Set(response.data.map(item => item.width)); + const uniqueHeights = new Set(response.data.map(item => item.height)); + const uniqueFilmsIds = new Set(response.data.map(item => item.filmsId)); + const uniqueThicknesses = new Set(response.data.map(item => item.thickness)); + + selectOptions.value = Array.from(uniqueWidths).map(width => ({ + value: width, // 鍋囪杩欐槸浣犳兂瑕佷綔涓簐alue鐨勫睘鎬� + label: width, // 鍋囪杩欐槸浣犳兂瑕佹樉绀虹殑label + })); + selectOptionsa.value = Array.from(uniqueHeights).map(height => ({ + value: height, + label: height, + })); + selectOptionsb.value = Array.from(uniqueFilmsIds).map(filmsId => ({ + value: filmsId, + label: filmsId, + })); + selectOptionsc.value = Array.from(uniqueThicknesses).map(thickness => ({ + value: thickness, + label: thickness, + })); } else { // 璇锋眰澶辫触锛屾樉绀洪敊璇秷鎭� ElMessage.error(response.msg); @@ -523,7 +544,7 @@ ); if (response.code == 200) { const status = response.data.status; - upstatus.value = status === '1' ? '涓婄墖鏈鸿仈鏈虹姸鎬�' : '涓婄墖鏈烘墜鍔ㄧ姸鎬�'; + upstatus.value = status === '1' ? '涓婄墖鏈鸿仈鏈虹姸鎬侊細' : '涓婄墖鏈烘墜鍔ㄧ姸鎬侊細'; cuttingMachineStatusColor.value = status === '1' ? '#911005' : 'green'; // 鏄剧ず鎴愬姛娑堟伅 ElMessage.success(response.message); -- Gitblit v1.8.0