| | |
| | | return |
| | | } |
| | | operation.Status = constvar.OperationStatus_Cancel |
| | | if err := models.NewOperationSearch().Save(operation); err != nil { |
| | | if err := models.NewOperationSearch().SetID(operation.Id).Save(operation); err != nil { |
| | | util.ResponseFormat(c, code.SaveFail, err.Error()) |
| | | return |
| | | } |
| | |
| | | return |
| | | } |
| | | operation.Status = constvar.OperationStatus_Cancel |
| | | if err := models.NewOperationSearch().Save(operation); err != nil { |
| | | if err := models.NewOperationSearch().SetID(operation.Id).Save(operation); err != nil { |
| | | util.ResponseFormat(c, code.SaveFail, err.Error()) |
| | | return |
| | | } |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/cancel/{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/finish/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | |
| | | "schema": { |
| | | "$ref": "#/definitions/models.ProductCategory" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/cancelDisuse/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "取消报废", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4 |
| | | 4, |
| | | 5 |
| | | ], |
| | | "x-enum-comments": { |
| | | "OperationStatus_Cancel": "完成", |
| | | "OperationStatus_Draft": "草稿", |
| | | "OperationStatus_Finish": "完成", |
| | | "OperationStatus_Ready": "就绪", |
| | |
| | | "OperationStatus_Draft", |
| | | "OperationStatus_Waiting", |
| | | "OperationStatus_Ready", |
| | | "OperationStatus_Finish" |
| | | "OperationStatus_Finish", |
| | | "OperationStatus_Cancel" |
| | | ] |
| | | }, |
| | | "constvar.OrderCreation": { |
| | |
| | | Description: "", |
| | | InfoInstanceName: "swagger", |
| | | SwaggerTemplate: docTemplate, |
| | | LeftDelim: "{{", |
| | | RightDelim: "}}", |
| | | } |
| | | |
| | | func init() { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/operation/cancel/{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/finish/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | |
| | | "schema": { |
| | | "$ref": "#/definitions/models.ProductCategory" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/util.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api-wms/v1/product/cancelDisuse/{id}": { |
| | | "put": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "产品" |
| | | ], |
| | | "summary": "取消报废", |
| | | "parameters": [ |
| | | { |
| | | "type": "integer", |
| | | "description": "id", |
| | | "name": "id", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | |
| | | 1, |
| | | 2, |
| | | 3, |
| | | 4 |
| | | 4, |
| | | 5 |
| | | ], |
| | | "x-enum-comments": { |
| | | "OperationStatus_Cancel": "完成", |
| | | "OperationStatus_Draft": "草稿", |
| | | "OperationStatus_Finish": "完成", |
| | | "OperationStatus_Ready": "就绪", |
| | |
| | | "OperationStatus_Draft", |
| | | "OperationStatus_Waiting", |
| | | "OperationStatus_Ready", |
| | | "OperationStatus_Finish" |
| | | "OperationStatus_Finish", |
| | | "OperationStatus_Cancel" |
| | | ] |
| | | }, |
| | | "constvar.OrderCreation": { |
| | |
| | | - 2 |
| | | - 3 |
| | | - 4 |
| | | - 5 |
| | | type: integer |
| | | x-enum-comments: |
| | | OperationStatus_Cancel: 完成 |
| | | OperationStatus_Draft: 草稿 |
| | | OperationStatus_Finish: 完成 |
| | | OperationStatus_Ready: 就绪 |
| | |
| | | - OperationStatus_Waiting |
| | | - OperationStatus_Ready |
| | | - OperationStatus_Finish |
| | | - OperationStatus_Cancel |
| | | constvar.OrderCreation: |
| | | enum: |
| | | - 1 |
| | |
| | | summary: 修改库存盘点信息 |
| | | tags: |
| | | - 库存盘点 |
| | | /api-wms/v1/operation/cancel/{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/finish/{id}: |
| | | put: |
| | | parameters: |
| | |
| | | summary: 添加产品类型 |
| | | tags: |
| | | - 产品类型 |
| | | /api-wms/v1/product/cancelDisuse/{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/product/deleteProduct/{id}: |
| | | delete: |
| | | parameters: |