feat(erp): 添加境内货源地字段到采购模块

- 在采购结构体中添加 DomesticSupply 字段
- 为采购实体增加境内货源地支持
- 更新相关数据模型以包含境内货源信息
This commit is contained in:
2026-05-28 15:05:07 +08:00
parent defd94dfb2
commit 120a60eac0

View File

@@ -2,11 +2,12 @@ package erp
import ( import (
"context" "context"
"time"
"git.kumo.work/shama/service/client" "git.kumo.work/shama/service/client"
purchase2 "git.kumo.work/shama/service/erp/purchase" purchase2 "git.kumo.work/shama/service/erp/purchase"
"git.kumo.work/shama/service/lib/bean" "git.kumo.work/shama/service/lib/bean"
"github.com/shopspring/decimal" "github.com/shopspring/decimal"
"time"
) )
type purchase struct { type purchase struct {
@@ -106,6 +107,7 @@ type ReplyPurchaseInfo struct {
FactoryContact string `json:"factoryContact"` FactoryContact string `json:"factoryContact"`
FactoryPhone string `json:"factoryPhone"` FactoryPhone string `json:"factoryPhone"`
FactoryFax string `json:"factoryFax"` FactoryFax string `json:"factoryFax"`
DomesticSupply string `json:"domesticSupply"`
DeliveryDate *time.Time `json:"deliveryDate"` DeliveryDate *time.Time `json:"deliveryDate"`
DeliveryDateEnd *time.Time `json:"deliveryDateEnd"` DeliveryDateEnd *time.Time `json:"deliveryDateEnd"`
DeliveryPlace string `json:"deliveryPlace"` DeliveryPlace string `json:"deliveryPlace"`
@@ -165,6 +167,7 @@ type ArgsPurchaseEdit struct {
CurrencyName string // 币种名称 CurrencyName string // 币种名称
CurrencySymbol string // 币种符号 CurrencySymbol string // 币种符号
CurrencyRate decimal.Decimal // 币种汇率 CurrencyRate decimal.Decimal // 币种汇率
DomesticSupply string // 境内货源地
} }
// Edit @TITLE 编辑采购合同 // Edit @TITLE 编辑采购合同