From f1e7ce20cee2fbd6823cae83f7eaea869b53f46d Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 16 May 2025 11:07:09 +0800 Subject: [PATCH] =?UTF-8?q?feat(purchase):=20=E6=B7=BB=E5=8A=A0=E9=87=87?= =?UTF-8?q?=E8=B4=AD=E5=90=88=E5=90=8C=E5=A4=87=E6=B3=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 PurchaseSearch 结构体中添加 Remark 字段,用于筛选备注信息 - 在返回结果中添加 remark 字段,显示备注信息 - 在编辑采购合同时添加 remark 参数,允许修改备注信息 --- erp/purchase.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/erp/purchase.go b/erp/purchase.go index a43d4f0..bb0898d 100644 --- a/erp/purchase.go +++ b/erp/purchase.go @@ -19,6 +19,7 @@ type ArgsPurchaseList struct { type PurchaseSearch struct { PiSerial string // 采购合同编号 PoSerial string // po + Remark string // 备注 CustomId int64 // 客户id CustomShortName string // 客户简称 CreatedStaffIds []int64 // 创建人筛选 @@ -38,6 +39,7 @@ type PurchaseItem struct { SaleId int64 `json:"saleId"` PiSerial string `json:"piSerial"` PoSerial string `json:"poSerial"` + Remark string `json:"remark"` CustomName string `json:"customName"` CustomShortName string `json:"customShortName"` DeliveryDate *time.Time `json:"deliveryDate"` @@ -105,6 +107,7 @@ type ReplyPurchaseInfo struct { AdvancePayment *decimal.Decimal `json:"advancePayment"` PoSerial string `json:"poSerial"` PiSerial string `json:"piSerial"` + Remark string `json:"remark"` WorkflowId int64 `json:"workflowId"` WorkflowStatus int64 `json:"workflowStatus"` WorkflowReason string `json:"workflowReason"` @@ -137,6 +140,7 @@ func (p *purchase) Info(ctx context.Context, purchaseId int64) (reply ReplyPurch type ArgsPurchaseEdit struct { PurchaseId int64 // 采购合同id PoSerial string // PoSerial + Remark string // 备注 OrderDate *time.Time // 下单日期 FactoryAddress string // 工厂地址 FactoryContact string // 工厂联系人