From 173855b299e89930b5ea2ff9a9295fde9d0f55b5 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 07 十一月 2026 08:51:43 +0800
Subject: [PATCH] feat: 同步质检、生产、销售、财务与人事前端功能

---
 src/views/erp/sale/order/data.ts |   63 +++++++++++++++++++++++++++++++
 1 files changed, 62 insertions(+), 1 deletions(-)

diff --git a/src/views/erp/sale/order/data.ts b/src/views/erp/sale/order/data.ts
index 093cb2d..2d81149 100644
--- a/src/views/erp/sale/order/data.ts
+++ b/src/views/erp/sale/order/data.ts
@@ -1,6 +1,7 @@
 import type { VbenFormSchema } from '#/adapter/form';
 import type { VxeTableGridOptions } from '#/adapter/vxe-table';
 
+import { DICT_TYPE, getDictOptions } from '@vben/constants';
 import { erpPriceInputFormatter } from '@vben/utils';
 
 import { z } from '#/adapter/form';
@@ -107,6 +108,26 @@
         allowClear: true,
       },
       rules: 'required',
+    },
+    {
+      fieldName: 'saleType',
+      label: '閿�鍞被鍨�',
+      component: 'Select',
+      componentProps: {
+        placeholder: '璇烽�夋嫨閿�鍞被鍨�',
+        allowClear: true,
+        options: getDictOptions(DICT_TYPE.ERP_SALE_TYPE, 'number'),
+      },
+    },
+    {
+      fieldName: 'contractNo',
+      label: '鍚堝悓鍙�',
+      component: 'Input',
+      componentProps: {
+        placeholder: '鍙墜宸ュ~鍐欏悎鍚屽彿锛堝叧鑱� CRM 鍚堝悓鏃惰嚜鍔ㄥ甫鍑猴級',
+        maxlength: 64,
+        allowClear: true,
+      },
     },
     {
       fieldName: 'saleUserId',
@@ -388,6 +409,25 @@
       },
     },
     {
+      fieldName: 'contractNo',
+      label: '鍚堝悓鍙�',
+      component: 'Input',
+      componentProps: {
+        placeholder: '璇疯緭鍏ュ悎鍚屽彿',
+        allowClear: true,
+      },
+    },
+    {
+      fieldName: 'saleType',
+      label: '閿�鍞被鍨�',
+      component: 'Select',
+      componentProps: {
+        options: getDictOptions(DICT_TYPE.ERP_SALE_TYPE, 'number'),
+        placeholder: '璇烽�夋嫨閿�鍞被鍨�',
+        allowClear: true,
+      },
+    },
+    {
       fieldName: 'creator',
       label: '鍒涘缓浜�',
       component: 'ApiSelect',
@@ -485,11 +525,32 @@
     },
     {
       field: 'contractNo',
-      title: '鍏宠仈鍚堝悓',
+      title: '鍚堝悓鍙�',
       minWidth: 150,
       slots: { default: 'contractNo' },
     },
     {
+      field: 'saleType',
+      title: '閿�鍞被鍨�',
+      minWidth: 100,
+      cellRender: {
+        name: 'CellDict',
+        props: { type: DICT_TYPE.ERP_SALE_TYPE },
+      },
+    },
+    {
+      field: 'productCodes',
+      title: '浜у搧缂栧彿',
+      minWidth: 140,
+      showOverflow: 'tooltip',
+    },
+    {
+      field: 'producedCount',
+      title: '鐢熶骇鏁伴噺',
+      minWidth: 110,
+      formatter: 'formatAmount3',
+    },
+    {
       field: 'orderTime',
       title: '璁㈠崟鏃堕棿',
       width: 160,

--
Gitblit v1.9.3