daShangDao_psiServer/models/response/process.go
Administrator a2ea0c3a40 1.在这个接口里 /api/product/updateNameAndImages,添加多张图片时,并未覆盖原来的多张图片。(Y)
2.从系统导出的excel数据,在外部对excel某一列进行更改时,新增的要回传到原来的地方;并对改动的地方进行覆盖。
3.销售单管理、出库管理、发货单三个接口里面展示第三方订单编号和快递单号
4.选择多个仓库时,只要选择发货单子就会报错
5.在这个/api/split-account-deduction-log/create接口里,当传参时,如果参数 total_amount 是0,则会报错 {"code":204,"data":{},"msg":"TotalAmount不能为空"} 0是金额数字,不能当空值进行判断(T)
传递参数created_by,没有往数据表里写入
6.商品销毁的同时写入日志,也能通过读取这个日志,还原销毁的商品。传出这个新增的接口
7.新增一个不需要签名认证的分帐扣钱日志列表接口,新增一个返回字段buniness_no,并对这个字段进行模糊查询。
测试接口:/open/split-account-deduction-log/list
8.增加个新接口:首先 调用 /api/sales-order/create 创建销售订单的时候会锁定库存,
现在我需要一个解锁库存的接口,传递参数是订单编号
POST /api/sales-order/unlock-inventory // 解锁销售订单库存
/api/split-account-deduction-log/update /api/sales-order/unlock-inventory 在这两个接口里不需要签名认证
/api/sales-order/unlock-inventory 在这个接口里面返回解锁的所有商品信息
/api/split-account-deduction-log/update  在这个接口里面的status也需要更改,status没有变化
2026-06-24 09:41:12 +08:00

64 lines
2.5 KiB
Go

package response
type WaveReleaseResponse struct {
WaveID int64 `json:"wave_id"`
WaveNo string `json:"wave_no"`
}
type WaveTaskInfoResponse struct {
WaveTaskID int64 `json:"wave_task_id"`
TaskNo string `json:"task_no"`
Type int8 `json:"type"`
Status int8 `json:"status"`
Assignee string `json:"assignee"`
PurchaseOrderID int64 `json:"purchase_order_id"`
WarehouseID int64 `json:"warehouse_id"`
SupplierID int64 `json:"supplier_id"`
Items []WaveTaskItemResponse `json:"items"`
}
type WaveTaskItemResponse struct {
ProductID int64 `json:"product_id"`
ProductName string `json:"product_name"`
ProductCode string `json:"product_code"`
PlannedQuantity int64 `json:"planned_quantity"`
ActualQuantity int64 `json:"actual_quantity"`
UnitName string `json:"unit_name"`
}
type ReceivingDetailResponse struct {
ReceivingOrderID int64 `json:"receiving_order_id"`
ReceivingNo string `json:"receiving_no"`
Status int8 `json:"status"`
WarehouseID int64 `json:"warehouse_id"`
SupplierID int64 `json:"supplier_id"`
Operator string `json:"operator"`
Remark string `json:"remark"`
Items []ReceivingItemResponse `json:"items"`
}
type ReceivingItemResponse struct {
ID int64 `json:"id"`
ProductID int64 `json:"product_id"`
ProductName string `json:"product_name"`
ProductCode string `json:"product_code"`
LocationID int64 `json:"location_id"`
LocationCode string `json:"location_code"`
BatchNo string `json:"batch_no"`
ProductionDate int64 `json:"production_date"`
ExpiryDate int64 `json:"expiry_date"`
Quantity int64 `json:"quantity"`
UnitName string `json:"unit_name"`
}
type UnlockInventoryItemResponse struct {
ProductID int64 `json:"product_id"`
ProductName string `json:"product_name"`
ProductCode string `json:"product_code"`
UnlockedQuantity int64 `json:"unlocked_quantity"`
}
type UnlockInventoryResponse struct {
SoNo string `json:"so_no"`
AssociationOrderNo string `json:"association_order_no"`
Items []UnlockInventoryItemResponse `json:"items"`
}