From f10cf167372f2d8c4c0e14f42f361d7ab96d8347 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期五, 03 七月 2026 13:59:00 +0800
Subject: [PATCH] Merge branch 'dev_pro2.0' of http://114.132.189.42:9002/r/mom-pro2-before into dev_pro2.0

---
 src/views/crm/product/components/data.ts |   63 ++++++++++++++++++-------------
 1 files changed, 36 insertions(+), 27 deletions(-)

diff --git a/src/views/crm/product/components/data.ts b/src/views/crm/product/components/data.ts
index ece3e43..2892603 100644
--- a/src/views/crm/product/components/data.ts
+++ b/src/views/crm/product/components/data.ts
@@ -1,31 +1,29 @@
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 
-import { DICT_TYPE } from '../../../../packages/constants/src';
-
 /** 浜у搧璇︽儏鍒楄〃鐨勫垪瀹氫箟 */
 export function useDetailListColumns(
   showBusinessPrice: boolean,
 ): VxeTableGridOptions['columns'] {
   return [
     {
-      field: 'productName',
+      field: 'itemName',
       title: '浜у搧鍚嶇О',
     },
     {
-      field: 'productNo',
-      title: '浜у搧鏉$爜',
+      field: 'itemCode',
+      title: '鐗╂枡缂栫爜',
     },
     {
-      field: 'productUnit',
-      title: '浜у搧鍗曚綅',
-      cellRender: {
-        name: 'CellDict',
-        props: { type: DICT_TYPE.CRM_PRODUCT_UNIT },
-      },
+      field: 'itemBarCode',
+      title: '鐗╂枡鏉$爜',
     },
     {
-      field: 'productPrice',
-      title: '浜у搧浠锋牸锛堝厓锛�',
+      field: 'itemUnitName',
+      title: '鍗曚綅',
+    },
+    {
+      field: 'itemPrice',
+      title: '鍘熶环锛堝厓锛�',
       formatter: 'formatAmount2',
     },
     {
@@ -58,36 +56,47 @@
   return [
     { type: 'seq', title: '搴忓彿', minWidth: 50 },
     {
-      field: 'productId',
+      field: 'itemId',
       title: '浜у搧鍚嶇О',
       minWidth: 100,
-      slots: { default: 'productId' },
+      slots: { default: 'itemId' },
     },
     {
-      field: 'productNo',
+      field: 'itemSpecification',
+      title: '瑙勬牸鍨嬪彿',
+      minWidth: 120,
+    },
+    {
+      field: 'itemBarCode',
       title: '鏉$爜',
       minWidth: 150,
     },
     {
-      field: 'productUnit',
+      field: 'itemUnitName',
       title: '鍗曚綅',
-      minWidth: 100,
-      cellRender: {
-        name: 'CellDict',
-        props: { type: DICT_TYPE.CRM_PRODUCT_UNIT },
-      },
+      minWidth: 80,
     },
     {
-      field: 'productPrice',
-      title: '浠锋牸锛堝厓锛�',
+      field: 'itemUnitName2',
+      title: '杈呭崟浣�1',
+      minWidth: 80,
+    },
+    {
+      field: 'itemUnitName3',
+      title: '杈呭崟浣�2',
+      minWidth: 80,
+    },
+    {
+      field: 'itemPrice',
+      title: '鍘熶环锛堝厓锛�',
       minWidth: 100,
       formatter: 'formatAmount2',
     },
     {
-      field: 'sellingPrice',
-      title: '鍞环锛堝厓锛�',
+      field: 'contractPrice',
+      title: '鍚堝悓浠凤紙鍏冿級',
       minWidth: 100,
-      slots: { default: 'sellingPrice' },
+      slots: { default: 'contractPrice' },
     },
     {
       field: 'count',

--
Gitblit v1.9.3