| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/finish/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "入库/出库" |
| | | ], |
| | | "summary": "更改记录状态", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/operation": { |
| | | "get": { |
| | | "consumes": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | "业务类型" |
| | | ], |
| | | "summary": "查询作业类型列表", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | "业务类型" |
| | | ], |
| | | "summary": "添加作业类型", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | "业务类型" |
| | | ], |
| | | "summary": "编辑作业类型", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | "业务类型" |
| | | ], |
| | | "summary": "删除作业类型", |
| | | "parameters": [ |
| | |
| | | "models.Material": { |
| | | "type": "object", |
| | | "properties": { |
| | | "HSCode": { |
| | | "description": "HS编码", |
| | | "type": "string" |
| | | }, |
| | | "amount": { |
| | | "description": "数量", |
| | | "type": "number" |
| | |
| | | "type": "number" |
| | | }, |
| | | "deliveryAdvanceTime": { |
| | | "description": "交货提前时间(天)", |
| | | "type": "integer" |
| | | "description": "客户前置时间(天)", |
| | | "type": "number" |
| | | }, |
| | | "id": { |
| | | "type": "string" |
| | | }, |
| | | "inStorageExplain": { |
| | | "description": "入库说明", |
| | | "description": "HSCode string ` + "`" + `gorm:\"type:varchar(255);comment:HS编码\" json:\"HSCode\"` + "`" + ` //HS编码\nOriginCountryId int ` + "`" + `gorm:\"type:int(11);comment:原产地id\" json:\"originCountryId\"` + "`" + ` //原产地id\nOriginCountryName string ` + "`" + `gorm:\"type:varchar(255);comment:原产地名称\" json:\"originCountryName\"` + "`" + ` //原产地名称", |
| | | "type": "string" |
| | | }, |
| | | "internalNotes": { |
| | |
| | | "description": "PurchaseType constvar.PurchaseType ` + "`" + `gorm:\"type:int(11);comment:采购类型\" json:\"purchaseType\"` + "`" + `", |
| | | "type": "boolean" |
| | | }, |
| | | "makeAdvanceTime": { |
| | | "description": "制造前置时间(天)", |
| | | "type": "number" |
| | | }, |
| | | "maxInventory": { |
| | | "description": "最大库存", |
| | | "type": "number" |
| | |
| | | "description": "物料名称", |
| | | "type": "string" |
| | | }, |
| | | "orderAdvanceTime": { |
| | | "description": "订单准备天数(天)", |
| | | "type": "number" |
| | | }, |
| | | "orderCreation": { |
| | | "description": "订单创建", |
| | | "allOf": [ |
| | |
| | | "$ref": "#/definitions/constvar.OrderCreation" |
| | | } |
| | | ] |
| | | }, |
| | | "originCountryId": { |
| | | "description": "原产地id", |
| | | "type": "integer" |
| | | }, |
| | | "originCountryName": { |
| | | "description": "原产地名称", |
| | | "type": "string" |
| | | }, |
| | | "outStorageExplain": { |
| | | "description": "出库说明", |
| | |
| | | "request.AddOperation": { |
| | | "type": "object", |
| | | "properties": { |
| | | "carrierID": { |
| | | "type": "integer" |
| | | }, |
| | | "carrierName": { |
| | | "comment": { |
| | | "type": "string" |
| | | }, |
| | | "companyID": { |
| | | "description": "公司ID-客户", |
| | | "type": "integer" |
| | | }, |
| | | "companyName": { |
| | | "description": "公司名称-客户名称", |
| | | "type": "string" |
| | | }, |
| | | "contacterID": { |
| | | "description": "联系人ID-非必填", |
| | | "type": "integer" |
| | | }, |
| | | "contacterName": { |
| | | "description": "联系人姓名-非必填", |
| | | "type": "string" |
| | | }, |
| | | "details": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "operationDate": { |
| | | "description": "安排日期", |
| | | "type": "string" |
| | | }, |
| | | "operationTypeId": { |
| | |
| | | "toLocationId": { |
| | | "description": "目标位置id", |
| | | "type": "integer" |
| | | }, |
| | | "tracking": { |
| | | "type": "string" |
| | | }, |
| | | "transferWeight": { |
| | | "type": "number" |
| | | }, |
| | | "weight": { |
| | | "type": "number" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "request.OperationDetails": { |
| | | "type": "object", |
| | | "properties": { |
| | | "finishQuantity": { |
| | | "description": "完成数量", |
| | | "type": "number" |
| | | }, |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "integer" |
| | |
| | | "quantity": { |
| | | "description": "数量", |
| | | "type": "number" |
| | | }, |
| | | "unit": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "carrierID": { |
| | | "description": "承运商ID-非必填", |
| | | "type": "integer" |
| | | }, |
| | | "carrierName": { |
| | | "description": "承运商名称-非必填", |
| | | "type": "string" |
| | | }, |
| | | "companyID": { |
| | | "description": "公司ID-客户", |
| | | "type": "integer" |
| | | }, |
| | | "companyName": { |
| | | "description": "公司名称-客户名称", |
| | | "type": "string" |
| | | }, |
| | | "contacterID": { |
| | | "description": "联系人ID-非必填", |
| | | "type": "integer" |
| | | }, |
| | | "contacterName": { |
| | | "description": "联系人姓名-非必填", |
| | | "type": "string" |
| | | }, |
| | | "details": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "operationDate": { |
| | | "description": "安排日期", |
| | | "type": "string" |
| | | }, |
| | | "operationTypeId": { |
| | |
| | | "type": "integer" |
| | | }, |
| | | "tracking": { |
| | | "description": "追踪参考-非必填", |
| | | "type": "string" |
| | | }, |
| | | "transferWeight": { |
| | | "description": "物流重量(kg)-非必填", |
| | | "type": "number" |
| | | }, |
| | | "weight": { |
| | | "description": "重量(kg)-非必填", |
| | | "type": "number" |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/finish/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "入库/出库" |
| | | ], |
| | | "summary": "更改记录状态", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/operation": { |
| | | "get": { |
| | | "consumes": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | "业务类型" |
| | | ], |
| | | "summary": "查询作业类型列表", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | "业务类型" |
| | | ], |
| | | "summary": "添加作业类型", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | "业务类型" |
| | | ], |
| | | "summary": "编辑作业类型", |
| | | "parameters": [ |
| | |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "作业类型" |
| | | "业务类型" |
| | | ], |
| | | "summary": "删除作业类型", |
| | | "parameters": [ |
| | |
| | | "models.Material": { |
| | | "type": "object", |
| | | "properties": { |
| | | "HSCode": { |
| | | "description": "HS编码", |
| | | "type": "string" |
| | | }, |
| | | "amount": { |
| | | "description": "数量", |
| | | "type": "number" |
| | |
| | | "type": "number" |
| | | }, |
| | | "deliveryAdvanceTime": { |
| | | "description": "交货提前时间(天)", |
| | | "type": "integer" |
| | | "description": "客户前置时间(天)", |
| | | "type": "number" |
| | | }, |
| | | "id": { |
| | | "type": "string" |
| | | }, |
| | | "inStorageExplain": { |
| | | "description": "入库说明", |
| | | "description": "HSCode string `gorm:\"type:varchar(255);comment:HS编码\" json:\"HSCode\"` //HS编码\nOriginCountryId int `gorm:\"type:int(11);comment:原产地id\" json:\"originCountryId\"` //原产地id\nOriginCountryName string `gorm:\"type:varchar(255);comment:原产地名称\" json:\"originCountryName\"` //原产地名称", |
| | | "type": "string" |
| | | }, |
| | | "internalNotes": { |
| | |
| | | "description": "PurchaseType constvar.PurchaseType `gorm:\"type:int(11);comment:采购类型\" json:\"purchaseType\"`", |
| | | "type": "boolean" |
| | | }, |
| | | "makeAdvanceTime": { |
| | | "description": "制造前置时间(天)", |
| | | "type": "number" |
| | | }, |
| | | "maxInventory": { |
| | | "description": "最大库存", |
| | | "type": "number" |
| | |
| | | "description": "物料名称", |
| | | "type": "string" |
| | | }, |
| | | "orderAdvanceTime": { |
| | | "description": "订单准备天数(天)", |
| | | "type": "number" |
| | | }, |
| | | "orderCreation": { |
| | | "description": "订单创建", |
| | | "allOf": [ |
| | |
| | | "$ref": "#/definitions/constvar.OrderCreation" |
| | | } |
| | | ] |
| | | }, |
| | | "originCountryId": { |
| | | "description": "原产地id", |
| | | "type": "integer" |
| | | }, |
| | | "originCountryName": { |
| | | "description": "原产地名称", |
| | | "type": "string" |
| | | }, |
| | | "outStorageExplain": { |
| | | "description": "出库说明", |
| | |
| | | "request.AddOperation": { |
| | | "type": "object", |
| | | "properties": { |
| | | "carrierID": { |
| | | "type": "integer" |
| | | }, |
| | | "carrierName": { |
| | | "comment": { |
| | | "type": "string" |
| | | }, |
| | | "companyID": { |
| | | "description": "公司ID-客户", |
| | | "type": "integer" |
| | | }, |
| | | "companyName": { |
| | | "description": "公司名称-客户名称", |
| | | "type": "string" |
| | | }, |
| | | "contacterID": { |
| | | "description": "联系人ID-非必填", |
| | | "type": "integer" |
| | | }, |
| | | "contacterName": { |
| | | "description": "联系人姓名-非必填", |
| | | "type": "string" |
| | | }, |
| | | "details": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "operationDate": { |
| | | "description": "安排日期", |
| | | "type": "string" |
| | | }, |
| | | "operationTypeId": { |
| | |
| | | "toLocationId": { |
| | | "description": "目标位置id", |
| | | "type": "integer" |
| | | }, |
| | | "tracking": { |
| | | "type": "string" |
| | | }, |
| | | "transferWeight": { |
| | | "type": "number" |
| | | }, |
| | | "weight": { |
| | | "type": "number" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "request.OperationDetails": { |
| | | "type": "object", |
| | | "properties": { |
| | | "finishQuantity": { |
| | | "description": "完成数量", |
| | | "type": "number" |
| | | }, |
| | | "productId": { |
| | | "description": "产品id", |
| | | "type": "integer" |
| | |
| | | "quantity": { |
| | | "description": "数量", |
| | | "type": "number" |
| | | }, |
| | | "unit": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "type": "object", |
| | | "properties": { |
| | | "carrierID": { |
| | | "description": "承运商ID-非必填", |
| | | "type": "integer" |
| | | }, |
| | | "carrierName": { |
| | | "description": "承运商名称-非必填", |
| | | "type": "string" |
| | | }, |
| | | "companyID": { |
| | | "description": "公司ID-客户", |
| | | "type": "integer" |
| | | }, |
| | | "companyName": { |
| | | "description": "公司名称-客户名称", |
| | | "type": "string" |
| | | }, |
| | | "contacterID": { |
| | | "description": "联系人ID-非必填", |
| | | "type": "integer" |
| | | }, |
| | | "contacterName": { |
| | | "description": "联系人姓名-非必填", |
| | | "type": "string" |
| | | }, |
| | | "details": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "operationDate": { |
| | | "description": "安排日期", |
| | | "type": "string" |
| | | }, |
| | | "operationTypeId": { |
| | |
| | | "type": "integer" |
| | | }, |
| | | "tracking": { |
| | | "description": "追踪参考-非必填", |
| | | "type": "string" |
| | | }, |
| | | "transferWeight": { |
| | | "description": "物流重量(kg)-非必填", |
| | | "type": "number" |
| | | }, |
| | | "weight": { |
| | | "description": "重量(kg)-非必填", |
| | | "type": "number" |
| | | } |
| | | } |
| | |
| | | type: object |
| | | models.Material: |
| | | properties: |
| | | HSCode: |
| | | description: HS编码 |
| | | type: string |
| | | amount: |
| | | description: 数量 |
| | | type: number |
| | |
| | | description: 客户税百分比 |
| | | type: number |
| | | deliveryAdvanceTime: |
| | | description: 交货提前时间(天) |
| | | type: integer |
| | | description: 客户前置时间(天) |
| | | type: number |
| | | id: |
| | | type: string |
| | | inStorageExplain: |
| | | description: 入库说明 |
| | | description: |- |
| | | HSCode string `gorm:"type:varchar(255);comment:HS编码" json:"HSCode"` //HS编码 |
| | | OriginCountryId int `gorm:"type:int(11);comment:原产地id" json:"originCountryId"` //原产地id |
| | | OriginCountryName string `gorm:"type:varchar(255);comment:原产地名称" json:"originCountryName"` //原产地名称 |
| | | type: string |
| | | internalNotes: |
| | | description: 内部说明 |
| | |
| | | description: PurchaseType constvar.PurchaseType `gorm:"type:int(11);comment:采购类型" |
| | | json:"purchaseType"` |
| | | type: boolean |
| | | makeAdvanceTime: |
| | | description: 制造前置时间(天) |
| | | type: number |
| | | maxInventory: |
| | | description: 最大库存 |
| | | type: number |
| | |
| | | name: |
| | | description: 物料名称 |
| | | type: string |
| | | orderAdvanceTime: |
| | | description: 订单准备天数(天) |
| | | type: number |
| | | orderCreation: |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.OrderCreation' |
| | | description: 订单创建 |
| | | originCountryId: |
| | | description: 原产地id |
| | | type: integer |
| | | originCountryName: |
| | | description: 原产地名称 |
| | | type: string |
| | | outStorageExplain: |
| | | description: 出库说明 |
| | | type: string |
| | |
| | | type: object |
| | | request.AddOperation: |
| | | properties: |
| | | carrierID: |
| | | type: integer |
| | | carrierName: |
| | | comment: |
| | | type: string |
| | | companyID: |
| | | description: 公司ID-客户 |
| | | type: integer |
| | | companyName: |
| | | description: 公司名称-客户名称 |
| | | type: string |
| | | contacterID: |
| | | description: 联系人ID-非必填 |
| | | type: integer |
| | | contacterName: |
| | | description: 联系人姓名-非必填 |
| | | type: string |
| | | details: |
| | | items: |
| | |
| | | description: 单号 |
| | | type: string |
| | | operationDate: |
| | | description: 安排日期 |
| | | type: string |
| | | operationTypeId: |
| | | description: 作业类型id |
| | |
| | | toLocationId: |
| | | description: 目标位置id |
| | | type: integer |
| | | tracking: |
| | | type: string |
| | | transferWeight: |
| | | type: number |
| | | weight: |
| | | type: number |
| | | type: object |
| | | request.AddOperationType: |
| | | properties: |
| | |
| | | type: object |
| | | request.OperationDetails: |
| | | properties: |
| | | finishQuantity: |
| | | description: 完成数量 |
| | | type: number |
| | | productId: |
| | | description: 产品id |
| | | type: integer |
| | |
| | | quantity: |
| | | description: 数量 |
| | | type: number |
| | | unit: |
| | | type: string |
| | | type: object |
| | | request.UpdateCompany: |
| | | properties: |
| | |
| | | request.UpdateOperation: |
| | | properties: |
| | | carrierID: |
| | | description: 承运商ID-非必填 |
| | | type: integer |
| | | carrierName: |
| | | description: 承运商名称-非必填 |
| | | type: string |
| | | companyID: |
| | | description: 公司ID-客户 |
| | | type: integer |
| | | companyName: |
| | | description: 公司名称-客户名称 |
| | | type: string |
| | | contacterID: |
| | | description: 联系人ID-非必填 |
| | | type: integer |
| | | contacterName: |
| | | description: 联系人姓名-非必填 |
| | | type: string |
| | | details: |
| | | items: |
| | |
| | | description: 单号 |
| | | type: string |
| | | operationDate: |
| | | description: 安排日期 |
| | | type: string |
| | | operationTypeId: |
| | | description: 作业类型id |
| | |
| | | description: 目标位置id |
| | | type: integer |
| | | tracking: |
| | | description: 追踪参考-非必填 |
| | | type: string |
| | | transferWeight: |
| | | description: 物流重量(kg)-非必填 |
| | | type: number |
| | | weight: |
| | | description: 重量(kg)-非必填 |
| | | type: number |
| | | type: object |
| | | request.UpdateOperationType: |
| | |
| | | summary: 修改位置 |
| | | tags: |
| | | - 位置 |
| | | /api-wms/v1/operation/finish/{id}: |
| | | put: |
| | | parameters: |
| | | - description: id |
| | | in: path |
| | | name: id |
| | | required: true |
| | | type: integer |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 更改记录状态 |
| | | tags: |
| | | - 入库/出库 |
| | | /api-wms/v1/operation/operation: |
| | | get: |
| | | consumes: |
| | |
| | | type: object |
| | | summary: 查询作业类型列表 |
| | | tags: |
| | | - 作业类型 |
| | | - 业务类型 |
| | | post: |
| | | parameters: |
| | | - description: 作业类型信息 |
| | |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 添加作业类型 |
| | | tags: |
| | | - 作业类型 |
| | | - 业务类型 |
| | | /api-wms/v1/operationType/operationType/{id}: |
| | | delete: |
| | | parameters: |
| | |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 删除作业类型 |
| | | tags: |
| | | - 作业类型 |
| | | - 业务类型 |
| | | put: |
| | | parameters: |
| | | - description: 作业类型信息 |
| | |
| | | $ref: '#/definitions/util.Response' |
| | | summary: 编辑作业类型 |
| | | tags: |
| | | - 作业类型 |
| | | - 业务类型 |
| | | /api-wms/v1/product/addProduct: |
| | | post: |
| | | parameters: |