This commit is contained in:
2024-10-18 16:37:14 +08:00
parent 2c977e19e3
commit 2c467a3aec
14 changed files with 194 additions and 102 deletions

View File

@@ -23,3 +23,14 @@ func (a *audit) Submit(ctx context.Context, args ArgsAuditSubmit) (err error) {
err = xClient.Call(ctx, "Submit", args, &reply)
return
}
// Cancel @TITLE 提交审核
func (a *audit) Cancel(ctx context.Context, args ArgsAuditSubmit) (err error) {
xClient, err := client.GetClient(a)
if err != nil {
return
}
reply := 0
err = xClient.Call(ctx, "Cancel", args, &reply)
return
}

View File

@@ -19,6 +19,7 @@ type BenefitProductItem struct {
Name string `json:"name"`
EngName string `json:"engName"`
Mold int64 `json:"mold"`
MoldCount int64 `json:"moldCount"`
FactoryId int64 `json:"factoryId"`
FactoryName string `json:"factoryName"`
FactorySerial string `json:"factorySerial"`

View File

@@ -24,6 +24,7 @@ type ProductSearch struct {
Serial string // 货号
CreatedStaffIds []int64 // 录入人
SaleIds []int64 // 销售合同id
ParentIds []int64 // 父id
}
type ReplyProductList struct {
Total int64 `json:"total"`
@@ -89,6 +90,7 @@ func (p *product) List(ctx context.Context, args ArgsProductList) (reply ReplyPr
type ProductItem struct {
Id int64 `json:"id"`
Mold int64 `json:"mold"`
MoldCount int64 `json:"moldCount"`
ParentId int64 `json:"parentId"`
Serial string `json:"serial"`
Po string `json:"po"`
@@ -155,6 +157,7 @@ type ProductAdd struct {
SalePrice decimal.Decimal // 销售单价
BanFlag int64 // 禁用标记 1=禁用2=可用
Mold int64 // 组成类型 1=单件 2=套件
MoldCount int64 // 子组件数量
Type string // 产品类型
Barcode string // 条形码
SellCountry string // 销售国家
@@ -240,6 +243,7 @@ type ReplyProductInfo struct {
Id int64 `json:"id"`
ProductId int64 `json:"productId"`
Mold int64 `json:"mold"`
MoldCount int64 `json:"moldCount"`
Serial string `json:"serial"`
CustomSerial string `json:"customSerial"`
Name string `json:"name"`
@@ -336,6 +340,7 @@ type ProductEdit struct {
SalePrice decimal.Decimal // 销售单价
BanFlag int64 // 禁用标记 1=禁用2=可用
Mold int64 // 组成类型 1=单件 2=套件
MoldCount int64 // 子组件数量
Type string // 产品类型
Barcode string // 条形码
SellCountry string // 销售国家
@@ -380,6 +385,21 @@ func (p *product) MultiEdit(ctx context.Context, args []MultiData) (err error) {
return xClient.Call(ctx, "MultiEdit", args, &reply)
}
type ChangeCount struct {
SaleProductId int64 // 产品id
SaleCount int64 // 销售数量
}
// ChangeCount @TITLE 修改数量
func (p *product) ChangeCount(ctx context.Context, args []ChangeCount) (err error) {
xClient, err := client.GetClient(p)
if err != nil {
return
}
reply := 0
return xClient.Call(ctx, "ChangeCount", args, &reply)
}
// Delete @TITLE 删除产品
func (p *product) Delete(ctx context.Context, saleProductIds []int64) (err error) {
xClient, err := client.GetClient(p)