From c9cc00d09c756f126710168f81eb7ceba0959ec2 Mon Sep 17 00:00:00 2001
From: zhang_nuo <zhang_12370@163.com>
Date: 星期五, 21 八月 2026 11:17:31 +0800
Subject: [PATCH] feat(personnel,production): 新增年龄自动计算及工单数量支持小数
---
src/views/productionManagement/productStructure/index.vue | 69 +++++++++++++++++++++++++++-------
1 files changed, 55 insertions(+), 14 deletions(-)
diff --git a/src/views/productionManagement/productStructure/index.vue b/src/views/productionManagement/productStructure/index.vue
index 284921a..f489e68 100644
--- a/src/views/productionManagement/productStructure/index.vue
+++ b/src/views/productionManagement/productStructure/index.vue
@@ -1,6 +1,30 @@
<template>
<div class="app-container">
<div class="table_list">
+ <el-form :inline="true" :model="queryParams" class="search-bar" @submit.prevent>
+ <el-form-item label="浜у搧鍚嶇О">
+ <el-input
+ v-model="queryParams.productName"
+ placeholder="璇疯緭鍏ヤ骇鍝佸悕绉�"
+ clearable
+ style="width: 220px"
+ @keyup.enter="handleQuery"
+ />
+ </el-form-item>
+ <el-form-item label="瑙勬牸鍨嬪彿">
+ <el-input
+ v-model="queryParams.productModelName"
+ placeholder="璇疯緭鍏ヨ鏍煎瀷鍙�"
+ clearable
+ style="width: 220px"
+ @keyup.enter="handleQuery"
+ />
+ </el-form-item>
+ <el-form-item>
+ <el-button type="primary" @click="handleQuery">鏌ヨ</el-button>
+ <el-button @click="resetQuery">閲嶇疆</el-button>
+ </el-form-item>
+ </el-form>
<div style="text-align: right; margin-bottom: 10px;">
<el-button type="primary"
@click="handleAdd">鏂板</el-button>
@@ -61,14 +85,14 @@
placeholder="璇疯緭鍏ョ増鏈彿"
clearable />
</el-form-item>
- <el-form-item label="澶囨敞"
- prop="remark">
- <el-input v-model="form.remark"
- type="textarea"
- :rows="3"
- placeholder="璇疯緭鍏ュ娉�"
- clearable />
- </el-form-item>
+<!-- <el-form-item label="澶囨敞"-->
+<!-- prop="remark">-->
+<!-- <el-input v-model="form.remark"-->
+<!-- type="textarea"-->
+<!-- :rows="3"-->
+<!-- placeholder="璇疯緭鍏ュ娉�"-->
+<!-- clearable />-->
+<!-- </el-form-item>-->
</el-form>
<template #footer>
<el-button type="primary"
@@ -150,17 +174,17 @@
prop: "version",
width: 100,
},
- {
- label: "澶囨敞",
- prop: "remark",
- minWidth: 160,
- },
+ // {
+ // label: "澶囨敞",
+ // prop: "remark",
+ // minWidth: 160,
+ // },
{
dataType: "action",
label: "鎿嶄綔",
align: "center",
fixed: "right",
- width: 150,
+ width: 250,
operation: [
{
name: "澶嶅埗",
@@ -197,6 +221,10 @@
const operationType = ref("add"); // add | edit
const formRef = ref(null);
const showProductSelectDialog = ref(false);
+ const queryParams = reactive({
+ productName: "",
+ productModelName: "",
+ });
// BOM瀵煎叆鍙傛暟
const upload = reactive({
@@ -249,12 +277,25 @@
getList();
};
+ const handleQuery = () => {
+ page.current = 1;
+ getList();
+ };
+
+ const resetQuery = () => {
+ queryParams.productName = "";
+ queryParams.productModelName = "";
+ handleQuery();
+ };
+
// 鏌ヨ鍒楄〃
const getList = () => {
tableLoading.value = true;
listPage({
current: page.current,
size: page.size,
+ productName: queryParams.productName || undefined,
+ productModelName: queryParams.productModelName || undefined,
})
.then(res => {
const records = res?.data?.records || [];
--
Gitblit v1.9.3