| | |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/product.WorkOrderInfo" |
| | | } |
| | | "$ref": "#/definitions/response.Info" |
| | | } |
| | | } |
| | | } |
| | |
| | | "type": "string", |
| | | "description": "产品编码", |
| | | "name": "productNumber", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "string", |
| | | "description": "报价单编码", |
| | | "name": "quotationNumber", |
| | | "in": "query" |
| | | } |
| | | ], |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/quotation/statistics": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "Quotation" |
| | | ], |
| | | "summary": "报价单统计", |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "object", |
| | | "additionalProperties": { |
| | | "type": "integer" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/quotation/update": { |
| | | "put": { |
| | | "produces": [ |
| | |
| | | "type": "integer", |
| | | "description": "每页大小", |
| | | "name": "pageSize", |
| | | "in": "query" |
| | | }, |
| | | { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | }, |
| | | "collectionFormat": "csv", |
| | | "name": "principleIds", |
| | | "in": "query" |
| | | }, |
| | | { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesDetails/createOperation": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesDetails" |
| | | ], |
| | | "summary": "创建产品出库信息", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.SalesDetails" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/response.ListResponse" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesDetails/delete": { |
| | | "delete": { |
| | | "produces": [ |
| | |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesDetails/getApsProjectList": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesDetails" |
| | | ], |
| | | "summary": "获取aps项目列表", |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/response.Response" |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesDetails/sendSalesDetailsToOtherSystem": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesDetails" |
| | | ], |
| | | "summary": "推送销售明细信息到其他系统", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.SalesDetails" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/response.ListResponse" |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/system/getSystemSet": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "系统设置" |
| | | ], |
| | | "summary": "获取系统设置", |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "allOf": [ |
| | | { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | }, |
| | | { |
| | | "type": "object", |
| | | "properties": { |
| | | "data": { |
| | | "type": "object", |
| | | "additionalProperties": true |
| | | } |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/system/saveSystemSet": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "系统设置" |
| | | ], |
| | | "summary": "保存系统设置", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.SaveSystemSet" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "成功", |
| | | "schema": { |
| | | "$ref": "#/definitions/contextx.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/system/useSystemSet/{modeType}": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "系统设置" |
| | | ], |
| | | "summary": "使用系统设置", |
| | | "parameters": [ |
| | | { |
| | | "type": "string", |
| | | "description": "查询参数", |
| | | "name": "modeType", |
| | | "in": "path", |
| | | "required": true |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/response.ListResponse" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/timeSpent/add": { |
| | | "post": { |
| | | "produces": [ |
| | |
| | | "amount": { |
| | | "type": "number" |
| | | }, |
| | | "cost": { |
| | | "type": "string" |
| | | }, |
| | | "desc": { |
| | | "type": "string" |
| | | }, |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "margin": { |
| | | "type": "string" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | |
| | | "price": { |
| | | "type": "number" |
| | | }, |
| | | "profit": { |
| | | "type": "string" |
| | | }, |
| | | "total": { |
| | | "type": "number" |
| | | }, |
| | | "unit": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | "model.Quotation": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amountTotal": { |
| | | "description": "价格合计", |
| | | "type": "number" |
| | | }, |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | | }, |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "projectId": { |
| | | "type": "string" |
| | | }, |
| | | "quotation": { |
| | | "$ref": "#/definitions/model.Quotation" |
| | |
| | | } |
| | | } |
| | | }, |
| | | "model.SystemSet": { |
| | | "type": "object", |
| | | "properties": { |
| | | "id": { |
| | | "type": "integer" |
| | | }, |
| | | "modeType": { |
| | | "type": "string" |
| | | }, |
| | | "name": { |
| | | "type": "string" |
| | | }, |
| | | "value": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "model.TimeSpent": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "realName": { |
| | | "type": "string" |
| | | }, |
| | | "subUserIds": { |
| | | "description": "下属员工用户id,用逗号分开", |
| | | "type": "string" |
| | | }, |
| | | "userType": { |
| | |
| | | "type": "string" |
| | | }, |
| | | "Unit": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "product.WorkOrderInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "EndTime": { |
| | | "type": "string" |
| | | }, |
| | | "OrderId": { |
| | | "type": "string" |
| | | }, |
| | | "OrderStatus": { |
| | | "type": "string" |
| | | }, |
| | | "ProductName": { |
| | | "type": "string" |
| | | }, |
| | | "StartTime": { |
| | | "type": "string" |
| | | }, |
| | | "WorkOrderId": { |
| | | "type": "string" |
| | | }, |
| | | "WorkOrderStatus": { |
| | | "type": "string" |
| | | } |
| | | } |
| | |
| | | "request.AddSalesDetails": { |
| | | "type": "object", |
| | | "properties": { |
| | | "Member": { |
| | | "$ref": "#/definitions/model.User" |
| | | }, |
| | | "address": { |
| | | "type": "string" |
| | | }, |
| | | "addressee": { |
| | | "type": "string" |
| | | }, |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | | }, |
| | | "clientId": { |
| | | "type": "integer" |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "projectId": { |
| | | "type": "string" |
| | | }, |
| | | "quotationId": { |
| | | "type": "integer" |
| | |
| | | "request.GetContractList": { |
| | | "type": "object", |
| | | "properties": { |
| | | "keyword": { |
| | | "type": "string" |
| | | }, |
| | | "page": { |
| | | "description": "页码", |
| | | "type": "integer" |
| | |
| | | "pageSize": { |
| | | "description": "每页大小", |
| | | "type": "integer" |
| | | }, |
| | | "principalIds": { |
| | | "type": "array", |
| | | "items": { |
| | | "type": "integer" |
| | | } |
| | | }, |
| | | "sourceId": { |
| | | "type": "integer" |
| | |
| | | "request.SalesDetails": { |
| | | "type": "object", |
| | | "properties": { |
| | | "Member": { |
| | | "$ref": "#/definitions/model.User" |
| | | }, |
| | | "address": { |
| | | "type": "string" |
| | | }, |
| | | "addressee": { |
| | | "type": "string" |
| | | }, |
| | | "client": { |
| | | "$ref": "#/definitions/model.Client" |
| | | }, |
| | | "clientId": { |
| | | "type": "integer" |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "projectId": { |
| | | "type": "string" |
| | | }, |
| | | "quotationId": { |
| | | "type": "integer" |
| | |
| | | "$ref": "#/definitions/constvar.SalesReturnSourceType" |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | "request.SaveSystemSet": { |
| | | "type": "object", |
| | | "properties": { |
| | | "sets": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/model.SystemSet" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.Info": { |
| | | "type": "object", |
| | | "properties": { |
| | | "makeInfo": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/response.WorkOrderInfo" |
| | | } |
| | | }, |
| | | "purchaseInfo": { |
| | | "type": "array", |
| | | "items": { |
| | | "$ref": "#/definitions/response.Purchase" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "response.IsInvoiceResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.Purchase": { |
| | | "type": "object", |
| | | "properties": { |
| | | "amount": { |
| | | "type": "integer" |
| | | }, |
| | | "purchaseName": { |
| | | "type": "string" |
| | | }, |
| | | "purchaseNumber": { |
| | | "type": "string" |
| | | }, |
| | | "status": { |
| | | "type": "integer" |
| | | }, |
| | | "supplierName": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "response.QuotationResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | "items": { |
| | | "$ref": "#/definitions/model.Repository" |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "response.Response": { |
| | | "type": "object", |
| | | "properties": { |
| | | "code": { |
| | | "type": "integer" |
| | | }, |
| | | "data": {}, |
| | | "msg": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "response.WorkOrderInfo": { |
| | | "type": "object", |
| | | "properties": { |
| | | "endTime": { |
| | | "type": "string" |
| | | }, |
| | | "orderId": { |
| | | "type": "string" |
| | | }, |
| | | "orderStatus": { |
| | | "type": "string" |
| | | }, |
| | | "productName": { |
| | | "type": "string" |
| | | }, |
| | | "startTime": { |
| | | "type": "string" |
| | | }, |
| | | "workOrderId": { |
| | | "type": "string" |
| | | }, |
| | | "workOrderStatus": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }` |