| | |
| | | salesDetailsModel.QuotationId = salesDetails.QuotationId |
| | | salesDetailsModel.Status = salesDetails.Status |
| | | salesDetailsModel.Source = salesDetails.Source |
| | | salesDetailsModel.ProjectId = salesDetails.ProjectId |
| | | |
| | | return ecode.OK, salesDetailsModel |
| | | } |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesDetails/getApsProjectList": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesDetails" |
| | | ], |
| | | "summary": "获取aps项目列表", |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/response.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesDetails/getProductInventoryInfo/{number}": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesDetails/sendSalesDetailsToApsProject": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesDetails" |
| | | ], |
| | | "summary": "推送销售明细信息到aps项目模块", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.SalesDetails" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/response.ListResponse" |
| | | } |
| | | } |
| | | } |
| | |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "projectId": { |
| | | "type": "string" |
| | | }, |
| | | "quotation": { |
| | | "$ref": "#/definitions/model.Quotation" |
| | | }, |
| | |
| | | "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.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" |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.Response": { |
| | | "type": "object", |
| | | "properties": { |
| | | "code": { |
| | | "type": "integer" |
| | | }, |
| | | "data": {}, |
| | | "msg": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "response.SaleChanceResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesDetails/getApsProjectList": { |
| | | "get": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesDetails" |
| | | ], |
| | | "summary": "获取aps项目列表", |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/response.Response" |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesDetails/getProductInventoryInfo/{number}": { |
| | | "get": { |
| | | "produces": [ |
| | |
| | | } |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | "/api/salesDetails/sendSalesDetailsToApsProject": { |
| | | "post": { |
| | | "produces": [ |
| | | "application/json" |
| | | ], |
| | | "tags": [ |
| | | "SalesDetails" |
| | | ], |
| | | "summary": "推送销售明细信息到aps项目模块", |
| | | "parameters": [ |
| | | { |
| | | "description": "查询参数", |
| | | "name": "object", |
| | | "in": "body", |
| | | "required": true, |
| | | "schema": { |
| | | "$ref": "#/definitions/request.SalesDetails" |
| | | } |
| | | } |
| | | ], |
| | | "responses": { |
| | | "200": { |
| | | "description": "OK", |
| | | "schema": { |
| | | "$ref": "#/definitions/response.ListResponse" |
| | | } |
| | | } |
| | | } |
| | |
| | | "$ref": "#/definitions/model.Product" |
| | | } |
| | | }, |
| | | "projectId": { |
| | | "type": "string" |
| | | }, |
| | | "quotation": { |
| | | "$ref": "#/definitions/model.Quotation" |
| | | }, |
| | |
| | | "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.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" |
| | |
| | | } |
| | | } |
| | | }, |
| | | "response.Response": { |
| | | "type": "object", |
| | | "properties": { |
| | | "code": { |
| | | "type": "integer" |
| | | }, |
| | | "data": {}, |
| | | "msg": { |
| | | "type": "string" |
| | | } |
| | | } |
| | | }, |
| | | "response.SaleChanceResponse": { |
| | | "type": "object", |
| | | "properties": { |
| | |
| | | items: |
| | | $ref: '#/definitions/model.Product' |
| | | type: array |
| | | projectId: |
| | | type: string |
| | | quotation: |
| | | $ref: '#/definitions/model.Quotation' |
| | | quotationId: |
| | |
| | | type: object |
| | | request.AddSalesDetails: |
| | | properties: |
| | | Member: |
| | | $ref: '#/definitions/model.User' |
| | | address: |
| | | type: string |
| | | addressee: |
| | | type: string |
| | | client: |
| | | $ref: '#/definitions/model.Client' |
| | | clientId: |
| | | type: integer |
| | | codeStandID: |
| | |
| | | items: |
| | | $ref: '#/definitions/model.Product' |
| | | type: array |
| | | projectId: |
| | | type: string |
| | | quotationId: |
| | | type: integer |
| | | remark: |
| | |
| | | type: object |
| | | request.SalesDetails: |
| | | properties: |
| | | Member: |
| | | $ref: '#/definitions/model.User' |
| | | address: |
| | | type: string |
| | | addressee: |
| | | type: string |
| | | client: |
| | | $ref: '#/definitions/model.Client' |
| | | clientId: |
| | | type: integer |
| | | codeStandID: |
| | |
| | | items: |
| | | $ref: '#/definitions/model.Product' |
| | | type: array |
| | | projectId: |
| | | type: string |
| | | quotationId: |
| | | type: integer |
| | | remark: |
| | |
| | | items: |
| | | $ref: '#/definitions/model.Repository' |
| | | type: array |
| | | type: object |
| | | response.Response: |
| | | properties: |
| | | code: |
| | | type: integer |
| | | data: {} |
| | | msg: |
| | | type: string |
| | | type: object |
| | | response.SaleChanceResponse: |
| | | properties: |
| | |
| | | summary: 删除销售明细 |
| | | tags: |
| | | - SalesDetails |
| | | /api/salesDetails/getApsProjectList: |
| | | get: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/response.Response' |
| | | summary: 获取aps项目列表 |
| | | tags: |
| | | - SalesDetails |
| | | /api/salesDetails/getProductInventoryInfo/{number}: |
| | | get: |
| | | parameters: |
| | |
| | | summary: 销售明细单列表 |
| | | tags: |
| | | - SalesDetails |
| | | /api/salesDetails/sendSalesDetailsToApsProject: |
| | | post: |
| | | parameters: |
| | | - description: 查询参数 |
| | | in: body |
| | | name: object |
| | | required: true |
| | | schema: |
| | | $ref: '#/definitions/request.SalesDetails' |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: OK |
| | | schema: |
| | | $ref: '#/definitions/response.ListResponse' |
| | | summary: 推送销售明细信息到aps项目模块 |
| | | tags: |
| | | - SalesDetails |
| | | /api/salesDetails/update: |
| | | put: |
| | | parameters: |