From 974cf1b3dd15601a645e1270d3085bc641cc1619 Mon Sep 17 00:00:00 2001
From: liutao <790864623@qq.com>
Date: Tue, 21 Apr 2026 09:39:40 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8F=8A=E5=AD=97=E6=AE=B5?=
=?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../TableSelectDialog/TableSelectDialog.vue | 2 +-
src/locales/zh-CN.ts | 8 +-
src/views/erp/product/product/ProductForm.vue | 74 +++-
src/views/mes/moldoperate/MoldOperateForm.vue | 414 ++++++++----------
src/views/mes/planMaintenance/index.vue | 6 +-
5 files changed, 272 insertions(+), 232 deletions(-)
diff --git a/src/components/TableSelectDialog/TableSelectDialog.vue b/src/components/TableSelectDialog/TableSelectDialog.vue
index f80e3991..bed9363b 100644
--- a/src/components/TableSelectDialog/TableSelectDialog.vue
+++ b/src/components/TableSelectDialog/TableSelectDialog.vue
@@ -190,7 +190,7 @@ const reload =async () => {
// 3. 合并参数:将父组件传入的 queryParams 与内部参数合并
const getQueryParams = () => {
return {
- pageNum: queryParams.pageNo || 1,
+ pageNo: queryParams.pageNo || 1,
pageSize: queryParams.pageSize || 10,
...props.queryParams // 父组件传入的查询条件
}
diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts
index 5a47a5ce..eef7d30c 100644
--- a/src/locales/zh-CN.ts
+++ b/src/locales/zh-CN.ts
@@ -3765,8 +3765,8 @@ export default {
DeviceAttributeType: {
moduleName: '采集点类型',
index: '序号',
- code: '类型编码',
- name: '类型名称',
+ code: '编码',
+ name: '名称',
sort: '显示顺序',
remark: '备注',
createTime: '创建时间',
@@ -3778,8 +3778,8 @@ export default {
batchDelete: '批量删除',
export: '导出',
- placeholderCode: '请输入类型编码',
- placeholderName: '请输入类型名称',
+ placeholderCode: '请输入编码',
+ placeholderName: '请输入名称',
placeholderSort: '请输入显示顺序',
placeholderRemark: '请输入备注',
diff --git a/src/views/erp/product/product/ProductForm.vue b/src/views/erp/product/product/ProductForm.vue
index 2377a44b..e5e1f420 100644
--- a/src/views/erp/product/product/ProductForm.vue
+++ b/src/views/erp/product/product/ProductForm.vue
@@ -186,7 +186,24 @@
:fetch-api="fetchDeviceLedgerPage"
row-key="id"
@confirm="handleDeviceSelectConfirm"
- />
+ :query-params="mergedQueryParams"
+ >
+
+
+
+
+
+
+
+
+
+
+ {{ t('FactoryModeling.ProductInformation.searchButtonText') }}
+ {{ t('FactoryModeling.ProductInformation.resetButtonText') }}
+
+
+
+
+ :query-params="mergedMoldQueryParams"
+ >
+
+
+
+
+
+
+
+
+
+
+ {{ t('FactoryModeling.ProductInformation.searchButtonText') }}
+ {{ t('FactoryModeling.ProductInformation.resetButtonText') }}
+
+
+
+
-
diff --git a/src/views/mes/planMaintenance/index.vue b/src/views/mes/planMaintenance/index.vue
index c2fb9615..4c07d036 100644
--- a/src/views/mes/planMaintenance/index.vue
+++ b/src/views/mes/planMaintenance/index.vue
@@ -68,6 +68,7 @@
row-key="id"
:stripe="true"
:show-overflow-tooltip="true"
+ :expand-row-keys="expandedKeys"
@expand-change="handleExpandChange"
@selection-change="handleSelectionChange"
>
@@ -163,7 +164,7 @@ defineOptions({ name: 'PlanMaintenance' })
const message = useMessage()
const { t } = useI18n()
-
+const expandedKeys = ref([])
const dictStore = useDictStoreWithOut()
const dictReady = ref(false)
@@ -229,6 +230,7 @@ const normalizeList = (res: any): { list: any[]; total: number } => {
const getList = async () => {
loading.value = true
+ expandedKeys.value = []
try {
const res = await PlanMaintenanceApi.getPlanMaintenancePage({
pageNo: queryParams.pageNo,
@@ -258,7 +260,7 @@ const resetQuery = () => {
const ensureSubjectListLoaded = async (id: number | string) => {
const key = String(id)
if (!key) return
- if (subjectListMap.value[key]) return
+ //if (subjectListMap.value[key]) return
subjectLoadingMap.value[key] = true
try {
const res = await PlanMaintenanceApi.getSubjectList(id)