From 1deae1d89a7039ef0b943be291f6c1b9aaa5ad2c Mon Sep 17 00:00:00 2001
From: hsy <1029150275@qq.com>
Date: 星期一, 17 八月 2026 10:30:33 +0800
Subject: [PATCH] feat(mes): 生产报工新增「可报工数量」展示 - `src/api/mes/pro/task/index.ts`: `MesProTaskApi.Task` 接口新增 `reportableQuantity` (可报工数量) 字段定义 - `src/views/mes/pro/feedback/data.ts`:   - 生产报工弹框表单中新增「可报工数量」字段展示,设置为不可编辑,且仅在新建/编辑模式下显示   - 在生产任务选择弹框 (`ProTaskSelect`) 的 `onChange` 事件中,自动从选中的任务对象中提取并带入 `reportableQuantity`   - 完善了表单联动的重置逻辑,确保更换工单等操作时正确清空此字段

---
 src/views/mes/process-design/template/modules/parameter-select-dialog.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/views/mes/process-design/template/modules/parameter-select-dialog.vue b/src/views/mes/process-design/template/modules/parameter-select-dialog.vue
index b4f87c6..eacf9d5 100644
--- a/src/views/mes/process-design/template/modules/parameter-select-dialog.vue
+++ b/src/views/mes/process-design/template/modules/parameter-select-dialog.vue
@@ -4,7 +4,7 @@
 
 import { nextTick, ref } from 'vue';
 
-import { DICT_TYPE } from '../../../../../packages/constants/src';
+import { DICT_TYPE } from '@vben/constants';
 
 import { Button, message, Modal } from 'ant-design-vue';
 
@@ -57,7 +57,7 @@
   formOptions: {
     schema: [
       {
-        fieldName: 'code',
+        fieldName: 'paramCode',
         label: '鍙傛暟缂栫爜',
         component: 'Input',
         componentProps: {
@@ -66,7 +66,7 @@
         },
       },
       {
-        fieldName: 'name',
+        fieldName: 'paramName',
         label: '鍙傛暟鍚嶇О',
         component: 'Input',
         componentProps: {
@@ -79,10 +79,10 @@
   gridOptions: {
     columns: [
       { type: 'checkbox', width: 50 },
-      { field: 'code', title: '鍙傛暟缂栫爜', minWidth: 150 },
-      { field: 'name', title: '鍙傛暟鍚嶇О', minWidth: 180 },
+      { field: 'paramCode', title: '鍙傛暟缂栫爜', minWidth: 150 },
+      { field: 'paramName', title: '鍙傛暟鍚嶇О', minWidth: 180 },
       {
-        field: 'type',
+        field: 'paramType',
         title: '鍙傛暟绫诲瀷',
         width: 120,
         cellRender: {
@@ -90,9 +90,9 @@
           props: { type: DICT_TYPE.MES_PD_PARAM_TYPE },
         },
       },
-      { field: 'unit', title: '鍗曚綅', width: 80 },
+      { field: 'unitMeasureName', title: '鍗曚綅', width: 80 },
       {
-        field: 'requiredFlag',
+        field: 'required',
         title: '鏄惁蹇呭~',
         width: 90,
         cellRender: {

--
Gitblit v1.9.3