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/wls/salesnotice/data.ts |  166 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 166 insertions(+), 0 deletions(-)

diff --git a/src/views/wls/salesnotice/data.ts b/src/views/wls/salesnotice/data.ts
index 34d4c56..6c84980 100644
--- a/src/views/wls/salesnotice/data.ts
+++ b/src/views/wls/salesnotice/data.ts
@@ -143,6 +143,40 @@
       },
     },
     {
+      fieldName: 'logisticsCompany',
+      label: '鐗╂祦鍏徃',
+      component: 'Input',
+      componentProps: {
+        placeholder: '璇疯緭鍏ョ墿娴佸叕鍙革紝濡傦細椤轰赴閫熻繍',
+      },
+    },
+    {
+      fieldName: 'expressFee',
+      label: '蹇�掕垂',
+      component: 'InputNumber',
+      defaultValue: 0,
+      componentProps: {
+        class: '!w-full',
+        min: 0,
+        precision: 2,
+        placeholder: '璇疯緭鍏ュ揩閫掕垂',
+      },
+    },
+    {
+      fieldName: 'invoiceStatus',
+      label: '寮�绁ㄧ姸鎬�',
+      component: 'Select',
+      defaultValue: 0,
+      componentProps: {
+        class: '!w-full',
+        options: [
+          { label: '鏈紑绁�', value: 0 },
+          { label: '閮ㄥ垎寮�绁�', value: 1 },
+          { label: '宸插紑绁�', value: 2 },
+        ],
+      },
+    },
+    {
       fieldName: 'remark',
       label: '澶囨敞',
       component: 'Textarea',
@@ -242,6 +276,23 @@
       minWidth: 200,
     },
     {
+      field: 'logisticsCompany',
+      title: '鐗╂祦鍏徃',
+      minWidth: 120,
+    },
+    {
+      field: 'expressFee',
+      title: '蹇�掕垂',
+      width: 100,
+      align: 'right',
+    },
+    {
+      field: 'invoiceStatus',
+      title: '寮�绁ㄧ姸鎬�',
+      width: 100,
+      slots: { default: 'invoiceStatus' },
+    },
+    {
       field: 'status',
       title: '鍗曟嵁鐘舵��',
       minWidth: 100,
@@ -265,6 +316,121 @@
   ];
 }
 
+/** 鍙戣揣鍙拌处锛堟寜浜у搧骞抽摵锛夌殑瀛楁 */
+export function useLedgerGridColumns(): VxeTableGridOptions<MesWmSalesNoticeApi.SalesNoticeLedger>['columns'] {
+  return [
+    {
+      field: 'noticeCode',
+      title: '鍙戣揣鍗曞彿',
+      minWidth: 160,
+      fixed: 'left',
+    },
+    {
+      field: 'saleOrderCode',
+      title: '閿�鍞鍗曞彿',
+      minWidth: 140,
+    },
+    {
+      field: 'clientName',
+      title: '瀹㈡埛鍚嶇О',
+      minWidth: 120,
+    },
+    {
+      field: 'salesDate',
+      title: '鍙戣揣鏃ユ湡',
+      width: 120,
+      formatter: 'formatDate',
+    },
+    {
+      field: 'itemCode',
+      title: '浜у搧缂栧彿',
+      minWidth: 120,
+    },
+    {
+      field: 'itemName',
+      title: '浜у搧鍚嶇О',
+      minWidth: 140,
+    },
+    {
+      field: 'itemSpecification',
+      title: '瑙勬牸鍨嬪彿',
+      minWidth: 120,
+    },
+    {
+      field: 'batchCode',
+      title: '鎵规鍙�',
+      minWidth: 120,
+    },
+    {
+      field: 'quantity',
+      title: '鍙戣揣鏁伴噺',
+      width: 100,
+      align: 'right',
+      formatter: 'formatAmount2',
+    },
+    {
+      field: 'unitName',
+      title: '鍗曚綅',
+      width: 80,
+    },
+    {
+      field: 'outCount',
+      title: '宸插嚭搴撴暟閲�',
+      width: 110,
+      align: 'right',
+      formatter: 'formatAmount2',
+    },
+    {
+      field: 'logisticsCompany',
+      title: '鐗╂祦鍏徃',
+      minWidth: 120,
+    },
+    {
+      field: 'expressFee',
+      title: '蹇�掕垂',
+      width: 100,
+      align: 'right',
+      formatter: 'formatAmount2',
+    },
+    {
+      field: 'invoiceStatus',
+      title: '寮�绁ㄧ姸鎬�',
+      width: 100,
+      slots: { default: 'invoiceStatus' },
+    },
+    {
+      field: 'outStatus',
+      title: '鍑哄簱鐘舵��',
+      width: 100,
+      slots: { default: 'outStatus' },
+    },
+    {
+      field: 'status',
+      title: '鍗曟嵁鐘舵��',
+      width: 100,
+      cellRender: {
+        name: 'CellDict',
+        props: { type: DICT_TYPE.MES_WM_SALES_NOTICE_STATUS },
+      },
+    },
+    {
+      field: 'recipientName',
+      title: '鏀惰揣浜�',
+      minWidth: 100,
+    },
+    {
+      field: 'recipientAddress',
+      title: '鏀惰揣鍦板潃',
+      minWidth: 200,
+    },
+    {
+      field: 'lineRemark',
+      title: '鏄庣粏澶囨敞',
+      minWidth: 120,
+    },
+  ];
+}
+
 /** 閫氱煡鍗曡瀛愯〃鐨勫瓧娈� */
 export function useLineGridColumns(
   editable: boolean,

--
Gitblit v1.9.3