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/api/erp/sale/order/index.ts |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/api/erp/sale/order/index.ts b/src/api/erp/sale/order/index.ts
index 17ae5d6..acc7a2c 100644
--- a/src/api/erp/sale/order/index.ts
+++ b/src/api/erp/sale/order/index.ts
@@ -8,6 +8,7 @@
     id?: number; // 璁㈠崟宸ュ崟缂栧彿
     no: string; // 閿�鍞鍗曞彿
     customerId: number; // 瀹㈡埛缂栧彿
+    customerName?: string; // 瀹㈡埛鍚嶇О
     accountId?: number; // 鏀舵璐︽埛缂栧彿
     orderTime: Date; // 璁㈠崟鏃堕棿
     totalCount: number; // 鍚堣鏁伴噺
@@ -22,6 +23,8 @@
     discountPercent?: number; // 浼樻儬鐜囷紝鐧惧垎姣�
     discountPrice?: number; // 浼樻儬閲戦锛屽崟浣嶏細鍏�
     depositPrice?: number; // 瀹氶噾閲戦锛屽崟浣嶏細鍏�
+    contractId?: number; // 鍏宠仈 CRM 鍚堝悓缂栧彿
+    contractNo?: string; // CRM 鍚堝悓鍗曞彿
     items?: SaleOrderItem[]; // 閿�鍞鍗曚骇鍝佹槑缁嗗垪琛�
   }
 
@@ -97,3 +100,17 @@
 export function exportSaleOrder(params: any) {
   return requestClient.download('/erp/sale-order/export-excel', { params });
 }
+
+/** 浣滃簾閿�鍞鍗� */
+export function cancelSaleOrder(id: number) {
+  return requestClient.put('/erp/sale-order/cancel', null, {
+    params: { id },
+  });
+}
+
+/** 鍚敤閿�鍞鍗曪紙鎭㈠宸蹭綔搴熻鍗曪級 */
+export function enableSaleOrder(id: number) {
+  return requestClient.put('/erp/sale-order/enable', null, {
+    params: { id },
+  });
+}

--
Gitblit v1.9.3