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/erp/finance/payment/data.ts |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/src/views/erp/finance/payment/data.ts b/src/views/erp/finance/payment/data.ts
index 85cf9ad..5e15d1e 100644
--- a/src/views/erp/finance/payment/data.ts
+++ b/src/views/erp/finance/payment/data.ts
@@ -163,6 +163,7 @@
         labelField: 'name',
         valueField: 'id',
       },
+      help: '浠樻璐︽埛鏁版嵁鏉ヨ嚜銆愯储鍔$鐞� 鈫� 缁撶畻璐︽埛銆戣彍鍗曠淮鎶ょ殑寮�鍚姸鎬佽处鎴凤紝鏃犻�夐」鏃惰鍏堝湪缁撶畻璐︽埛椤甸潰鏂板銆�',
     },
     {
       fieldName: 'totalPrice',
@@ -180,6 +181,7 @@
       fieldName: 'discountPrice',
       label: '浼樻儬閲戦',
       component: 'InputNumber',
+      defaultValue: 0,
       componentProps: {
         class: '!w-full',
         disabled: formType === 'detail',
@@ -212,15 +214,13 @@
   ];
 }
 
-/** 琛ㄥ崟鐨勬槑缁嗚〃鏍煎垪 */
-export function useFormItemColumns(
-  disabled: boolean,
-): VxeTableGridOptions['columns'] {
+/** 琛ㄥ崟鐨勬槑缁嗚〃鏍煎垪锛堜粯娆惧熀浜庢潵绁紝鏄庣粏鐢辨潵绁ㄨ嚜鍔ㄧ敓鎴愶紝涓嶅彲鍒犻櫎锛� */
+export function useFormItemColumns(): VxeTableGridOptions['columns'] {
   return [
     { type: 'seq', title: '搴忓彿', minWidth: 50, fixed: 'left' },
     {
       field: 'bizNo',
-      title: '閲囪喘鍗曟嵁缂栧彿',
+      title: '鏉ョエ缂栧彿',
       minWidth: 200,
     },
     {
@@ -247,13 +247,6 @@
       title: '澶囨敞',
       minWidth: 150,
       slots: { default: 'remark' },
-    },
-    {
-      title: '鎿嶄綔',
-      width: 50,
-      fixed: 'right',
-      slots: { default: 'actions' },
-      visible: !disabled,
     },
   ];
 }

--
Gitblit v1.9.3