{ "swagger": "2.0", "info": { "title": "内部订单", "version": "last" }, "basePath": "/", "tags": [ { "name": "公共分类", "description": "公共分类" } ], "schemes": ["http"], "paths": { "/erp/order/listByPage": { "post": { "tags": ["公共分类"], "summary": "订单列表查询", "description": "", "consumes": ["application/json"], "parameters": [ { "name": "root", "in": "body", "schema": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "bank": { "type": "string" }, "beginTime": { "type": "string" }, "current": { "type": "number" }, "customerContactNumber": { "type": "string" }, "customerName": { "type": "string" }, "customerShippingAddress": { "type": "string" }, "endTime": { "type": "string" }, "id": { "type": "number" }, "institution": { "type": "string" }, "institutionContactName": { "type": "string" }, "invoicingStatus": { "type": "string" }, "logisticsMethod": { "type": "string" }, "orderStatus": { "type": "string" }, "pageSize": { "type": "number" }, "parameters": { "type": "string" }, "paymentChannel": { "type": "string" }, "paymentMethod": { "type": "string" }, "paymentTransactionId": { "type": "string" }, "productBelongBusiness": { "type": "string" }, "productName": { "type": "string" }, "salesCode": { "type": "string" }, "total": { "type": "number" } } } } ], "responses": { "200": { "description": "successful operation", "schema": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "data": { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "bank": { "type": "string" }, "bankAccountNumber": { "type": "string" }, "createTime": { "type": "string" }, "customerContactNumber": { "type": "string" }, "customerName": { "type": "string" }, "customerShippingAddress": { "type": "string" }, "id": { "type": "number" }, "institution": { "type": "string" }, "institutionContactName": { "type": "string" }, "invoiceIdentificationNumber": { "type": "string" }, "notes": { "type": "string" }, "salesCode": { "type": "string" }, "subOrderInformationLists": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "invoicingStatus": { "type": "string" }, "mainOrderId": { "type": "number" }, "orderStatus": { "type": "string" }, "parameters": { "type": "string" }, "paymentChannel": { "type": "string" }, "productCode": { "type": "string" }, "productName": { "type": "string" }, "quantity": { "type": "string" }, "subOrderPayment": { "type": "number" } }, "required": [ "id", "invoicingStatus", "mainOrderId", "orderStatus", "parameters", "paymentChannel", "productCode", "productName", "quantity", "subOrderPayment" ] } }, "totalPayment": { "type": "number" } } } }, "pageSize": { "type": "number" }, "total": { "type": "number" } } }, "message": { "type": "string" }, "result": { "type": "number" } } } } } } }, "/erp/order/add": { "post": { "tags": ["公共分类"], "summary": "订单新增", "description": "", "consumes": ["application/json"], "parameters": [ { "name": "add_token", "in": "header", "description": "add_token (Only:undefined)", "required": true, "type": "string" }, { "name": "root", "in": "body", "schema": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "id": { "type": "string", "title": "订单编号", "description": "订单编号" }, "sales_code": { "type": "string" }, "customer_name": { "type": "string" }, "customer_contact_number": { "type": "string" }, "customer_shipping_address": { "type": "string" }, "institution_contact_name": { "type": "string" }, "institution": { "type": "string" }, "sub_orders": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "title": "子订单编号", "description": "子订单编号" }, "product_code": { "type": "number" }, "product_name": { "type": "string" }, "quantity": { "type": "number" }, "product_price": { "type": "number" }, "unit": { "type": "string" }, "parameters": { "type": "string" }, "total_payment": { "type": "number" }, "sub_order_payment": { "type": "number" }, "payment_status": { "type": "string" }, "payment_method": { "type": "string" }, "payment_channel": { "type": "string" }, "payment_transaction_id": { "type": "string", "description": "预付必填" }, "invoice_information": { "type": "string", "description": "需要开票必填" }, "invoicing_status": { "type": "string" }, "product_belong_department": { "type": "string" }, "notes": { "type": "string" } }, "required": [ "product_code", "product_name", "quantity", "product_price", "unit", "parameters", "total_payment", "sub_order_payment", "payment_status", "payment_method", "payment_channel", "invoicing_status", "product_belong_department", "id" ] } } }, "required": [ "sales_code", "customer_name", "customer_contact_number", "customer_shipping_address", "institution_contact_name", "sub_orders", "institution", "id" ] } } ], "responses": { "200": { "description": "successful operation", "schema": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "message": { "type": "string" }, "code": { "type": "number" } } } } } } }, "/erp/order/update": { "post": { "tags": ["公共分类"], "summary": "订单编辑", "description": "", "consumes": ["application/json"], "parameters": [ { "name": "root", "in": "body", "schema": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "sales_code": { "type": "string" }, "customer_name": { "type": "string" }, "customer_contact_number": { "type": "string" }, "customer_shipping_address": { "type": "string" }, "institution_contact_name": { "type": "string" }, "institution": { "type": "string" }, "sub_orders": { "type": "array", "items": { "type": "object", "properties": { "product_code": { "type": "number" }, "product_name": { "type": "string" }, "quantity": { "type": "number" }, "product_price": { "type": "number" }, "unit": { "type": "string" }, "parameters": { "type": "string" }, "total_payment": { "type": "number" }, "sub_order_payment": { "type": "number" }, "payment_status": { "type": "string" }, "payment_method": { "type": "string" }, "payment_channel": { "type": "string" }, "payment_transaction_id": { "type": "string" }, "invoice_information": { "type": "string" }, "invoicing_status": { "type": "string" }, "product_belong_department": { "type": "string" }, "notes": { "type": "string" } }, "required": [ "product_code", "product_name", "quantity", "product_price", "unit", "parameters", "total_payment", "sub_order_payment", "payment_status", "payment_method", "payment_channel", "invoicing_status", "product_belong_department" ] } } }, "required": [ "sales_code", "customer_name", "customer_contact_number", "customer_shipping_address", "institution_contact_name", "institution", "sub_orders" ] } } ], "responses": { "200": { "description": "successful operation", "schema": { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "message": { "type": "string" }, "code": { "type": "number" } } } } } } } }, "definitions": {} }