From 4743d5644fb9c1a4d4a8038331526a0890a453e9 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期六, 25 四月 2026 14:21:38 +0800
Subject: [PATCH] feat: 在工艺路线相关界面添加开数、工艺正数和加放数字段
---
src/views/productionManagement/workOrder/index.vue | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/src/views/productionManagement/workOrder/index.vue b/src/views/productionManagement/workOrder/index.vue
index fbb21cb..3834751 100644
--- a/src/views/productionManagement/workOrder/index.vue
+++ b/src/views/productionManagement/workOrder/index.vue
@@ -217,7 +217,7 @@
style="width: 300px"
>
<el-option
- v-for="user in userOptions"
+ v-for="user in userTeamOptions"
:key="user.userId"
:label="user.nickName"
:value="{ userId: user.userId, userName: user.nickName }"
@@ -305,6 +305,7 @@
<script setup>
import { onMounted, ref, nextTick, computed } from "vue";
+ import { deepClone } from "@/utils/index.js"
import { ElMessageBox, ElMessage } from "element-plus";
import dayjs from "dayjs";
import {
@@ -544,6 +545,7 @@
const workOrderFilesRef = ref(null);
const reportFormRef = ref(null);
const userOptions = ref([]);
+ const userTeamOptions = ref([]);
const reportForm = reactive({
planQuantity: 0,
quantity: null,
@@ -978,12 +980,12 @@
userListNoPageByTenantId()
.then(res => {
if (res.code === 200) {
- userOptions.value = res.data || [];
- console.log(userOptions.value)
- userOptions.value.unshift({
- nickName:"浠绘剰鐢ㄦ埛",
- userId:"-1",
- })
+ const list = Array.isArray(res.data) ? res.data : []
+ userOptions.value = [
+ { nickName: "浠绘剰鐢ㄦ埛", userId: "-1" },
+ ...deepClone(list)
+ ]
+ userTeamOptions.value = deepClone(list)
}
})
.catch(err => {
--
Gitblit v1.9.3