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 @@
+
+
+
+
+
+
+
+
+
+ {{machineIndex==-1 ? "请选择充电桩" : machines[machineIndex].machineName}}
+
+
+
+
+
+
+
+
+
+
+
+ {{item.personName}}/{{item.personTel}}
+
+
+
+ {{item.orderId}}
+
+
+
+
+ 充电桩:
+ {{item.machineName}}>{{item.machineCode}}
+
+
+ 插座:
+ {{item.portCode}}
+
+
+ 充电小时:
+ {{item.chargeHours}}
+
+
+ 小时电价:
+ {{item.durationPrice}}
+
+
+ 充电量:
+ {{item.energy}}
+
+
+ 扣款金额:
+ {{item.amount}}
+
+
+ 开始时间:
+ {{item.startTime}}
+
+
+ 结束时间:
+ {{item.endTime}}
+
+
+
+ 状态:
+ {{item.stateName}}
+
+
+ 备注:
+ {{item.remark}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+