Commit 0a97c6cb by 宋毅

tj

parent 0ec1346b
...@@ -31,6 +31,9 @@ class ProductAPI extends APIBase { ...@@ -31,6 +31,9 @@ class ProductAPI extends APIBase {
case "getOrderInfo"://获取订单列表信息 case "getOrderInfo"://获取订单列表信息
opResult = await this.utilsOrderSve.getOrderInfo(pobj, pobj.actionBody); opResult = await this.utilsOrderSve.getOrderInfo(pobj, pobj.actionBody);
break; break;
case "getOrderDetails"://获取订单详情信息
opResult = await this.utilsOrderSve.getOrderDetails(pobj, pobj.actionBody);
break;
case "getOrderDeliveryInfo"://获取订单交付信息 case "getOrderDeliveryInfo"://获取订单交付信息
opResult = await this.utilsOrderSve.getOrderDeliveryInfo(pobj, pobj.actionBody); opResult = await this.utilsOrderSve.getOrderDeliveryInfo(pobj, pobj.actionBody);
break; break;
......
...@@ -106,6 +106,11 @@ class UtilsOrderService extends AppServiceBase { ...@@ -106,6 +106,11 @@ class UtilsOrderService extends AppServiceBase {
var result = await this.restPostUrl(pobj, reqUrl); var result = await this.restPostUrl(pobj, reqUrl);
return result; return result;
} }
async getOrderDetails(pobj, actionBody) {
var reqUrl = this.centerOrderUrl + "action/order/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
return result;
}
async getOrderDeliveryInfo(pobj, actionBody) { async getOrderDeliveryInfo(pobj, actionBody) {
if (!actionBody.orderNo) { if (!actionBody.orderNo) {
return system.getResult(null, "actionBody.orderNo can not be empty,100290"); return system.getResult(null, "actionBody.orderNo can not be empty,100290");
......
...@@ -86,7 +86,7 @@ module.exports = function (app) { ...@@ -86,7 +86,7 @@ module.exports = function (app) {
req.body.appInfo = result.data; req.body.appInfo = result.data;
req.body.actionProcess = result.data.app_code; req.body.actionProcess = result.data.app_code;
var lst = [ var lst = [
"addOrder", "getH5PayUrl", "getOrderQrCode", "queryOrderStatus", "getOrderInfo", "getOrderDeliveryInfo", "addOrder", "getH5PayUrl", "getOrderQrCode", "queryOrderStatus", "getOrderInfo", "getOrderDeliveryInfo","getOrderDetails",
"getOrderDeliveryFlowInfo", "getOrderDeliveryFlowList", "getOrderLogInfo", "updateContacts", "updateTmOrder","delOrder", "getOrderDeliveryFlowInfo", "getOrderDeliveryFlowList", "getOrderLogInfo", "updateContacts", "updateTmOrder","delOrder",
"getNeedInfo",//---暂时没有用到 "getNeedInfo",//---暂时没有用到
"tmConfirm", "updateTmInfo", "tmConfirm", "updateTmInfo",
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
1. [下商标订单](#addOrder) 1. [下商标订单](#addOrder)
1. [下其他订单](#addOtherOrder) 1. [下其他订单](#addOtherOrder)
1. [获取订单列表信息](#getOrderInfo) 1. [获取订单列表信息](#getOrderInfo)
1. [获取订单详情信息](#getOrderDetails)
1. [获取订单操作日志信息](#getOrderLogInfo) 1. [获取订单操作日志信息](#getOrderLogInfo)
1. [删除订单](#delOrder) 1. [删除订单](#delOrder)
...@@ -114,7 +115,7 @@ ...@@ -114,7 +115,7 @@
#### 参数格式 `JSON` #### 参数格式 `JSON`
#### HTTP请求方式 `POST` #### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值 #### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:addOrderdeliveryData #### 渠道执行的类型 actionType:addOrder
``` javascript ``` javascript
{ {
...@@ -245,6 +246,59 @@ ...@@ -245,6 +246,59 @@
``` ```
## **<a name="getOrderDetails"> 获取订单详情信息</a>**
[返回到目录](#menu)
##### URL
[/web/opaction/order/springBoard]
#### 参数格式 `JSON`
#### HTTP请求方式 `POST`
#### 请求头中需要增加userpin(用户登录后的凭证)的值
#### 渠道执行的类型 actionType:getOrderDetails
``` javascript
{
"orderNo":"TM26202002271337mkgN"// Y 订单号
}
```
#### 返回结果
```javascript
{
"status": 0,// 0为成功,否则失败
"msg": "success",
"data": {
"orderNo": "OT31202002191443AVlJ",// 订单号
"channelServiceNo": "",//渠道服务号
"channelOrderNo": "",//渠道订单号列表,格式:XX1,XX2
"channelUserId": "15010929366",//渠道用户Id
"ownerUserId": "15010929366",//拥有者Id
"payTime": null,//支付时间
"quantity": 1,//订单数量
"serviceQuantity": 0,//订单服务数量
"orderStatusName": "待付款",//订单状态名称
"orderStatus": 1,//订单状态编码: 1: 待付款, 2: 已付款, 4: 服务中, 8: 已完成
"totalSum": "10.00",//订单金额
"payTotalSum": "10.00",//订单支付金额
"refundSum": "0.00",//退款金额
"invoiceApplyStatus": "00",//发票申请状态
"opNotes": "",//操作备注
"channelItemCode": "FW_GOODS-582221-1",//渠道产品编码
"channelItemName": "京东云PLUS公司注册(北京市)",//渠道产品名称
"channelItemAppendName": "北京海淀",//渠道产品附加名称
"price":"10.00",//产品单价
"priceTypeName":"件",//产品单价单位名称
"priceDesc":"海淀区内资一般人",//产品单价描述
"serviceItemCode": null,//服务产品编码
"picUrl": null,//产品图片地址
"created_at":""//下单时间
},
"requestId": "92ced0cb4d地址cb4125a4b515227f3eabe1"
}
```
## **<a name="getOrderLogInfo"> 获取订单操作日志信息</a>** ## **<a name="getOrderLogInfo"> 获取订单操作日志信息</a>**
[返回到目录](#menu) [返回到目录](#menu)
##### URL ##### URL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment