diff --git a/api/machine/machineApi.js b/api/machine/machineApi.js index e177597..179a0fc 100644 --- a/api/machine/machineApi.js +++ b/api/machine/machineApi.js @@ -49,3 +49,52 @@ export function listMachineRecords(_that,_data){ }) }); } + +/** + * 查询充电桩 + * @param {Object} _that 上下文对象 + * @param {Object} _data 请求报文 + */ +export function listChargeMachine(_that,_data){ + return new Promise(function(reslove,reject){ + _that.context.get({ + url: url.listChargeMachine, + data:_data, + success: function(res) { + reslove(res.data); + }, + fail: function(e) { + wx.showToast({ + title: "服务器异常了", + icon: 'none', + duration: 2000 + }) + } + }) + }); +} +/** + * 查询充电桩订单 + * @param {Object} _that 上下文对象 + * @param {Object} _data 请求报文 + */ +export function listChargeMachineOrder(_that,_data){ + return new Promise(function(reslove,reject){ + _that.context.get({ + url: url.listChargeMachineOrder, + data:_data, + success: function(res) { + reslove(res.data); + }, + fail: function(e) { + wx.showToast({ + title: "服务器异常了", + icon: 'none', + duration: 2000 + }) + } + }) + }); +} + + diff --git a/constant/url.js b/constant/url.js index 90379c3..44a52af 100644 --- a/constant/url.js +++ b/constant/url.js @@ -208,6 +208,10 @@ export default { //todo 设备相关 listMachines: baseUrl+"app/machine.listMachines", listMachineRecords: baseUrl+"app/machineRecord.listMachineRecords", + listChargeMachine: baseUrl+"app/chargeMachine.listChargeMachine", + listChargeMachineOrder: baseUrl+"app/chargeMachine.listChargeMachineOrder", + + //todo 车辆相关 diff --git a/pages.json b/pages.json index 3018bf1..78cdaed 100644 --- a/pages.json +++ b/pages.json @@ -721,6 +721,15 @@ } } + ,{ + "path" : "pages/report/chargeMachineOrder", + "style" : + { + "navigationBarTitleText": "充电桩订单", + "enablePullDownRefresh": false + } + + } ], "globalStyle": { "navigationBarTextStyle": "white", diff --git a/pages/report/chargeMachineOrder.vue b/pages/report/chargeMachineOrder.vue new file mode 100644 index 0000000..26d0286 --- /dev/null +++ b/pages/report/chargeMachineOrder.vue @@ -0,0 +1,185 @@ + + + + + diff --git a/pages/report/openDoorLog.vue b/pages/report/openDoorLog.vue index 1f1448c..e26a68a 100644 --- a/pages/report/openDoorLog.vue +++ b/pages/report/openDoorLog.vue @@ -55,10 +55,14 @@ + + +