共计 {{total}} 条数据
+
+
+
+
编号 |
- 订单号 |
+ 订单号 |
油站名称 |
油站地址 |
- 类型 |
- 油号 |
- 油枪号 |
- 油枪价 |
- 优惠价 |
- 加油升数 |
+ 类型 |
+ 油号 |
+ 油枪号 |
+ 油枪价 |
+ 优惠价 |
+ 加油升数 |
+ 加油金额 |
+ 支付金额 |
+ 优惠金额 |
创建时间 |
- 加油金额 |
- 支付金额 |
- 优惠金额 |
状态 |
操作 |
@@ -85,15 +101,15 @@
{{data.gasName}} |
{{data.gasAddress}} |
{{data.gasOilType == 1 ? '汽油': '柴油'}} |
- {{data.gasOilNo}} |
- {{data.gasGunNo}} |
+ {{data.gasOilNo + "#"}} |
+ {{data.gasGunNo + "号"}} |
{{data.gasPriceGun}} |
{{data.gasPricePreferences}} |
{{data.gasOilLiters}} |
+ {{data.totalPrice}} |
+ {{data.payRealPrice}} |
+ {{data.deductionPrice}} |
{{data.createTime | date: 'yyyy-MM-dd HH:mm:ss'}} |
- {{data.totalPrice}} |
- {{data.payRealPrice}} |
- {{data.deductionPrice}} |
{{data.status | orderCouponStatus}} |
详情
diff --git a/src/app/admin/order/oil-station-order/oil-station-order.component.ts b/src/app/admin/order/oil-station-order/oil-station-order.component.ts
index 16c010d..cbd0e9b 100644
--- a/src/app/admin/order/oil-station-order/oil-station-order.component.ts
+++ b/src/app/admin/order/oil-station-order/oil-station-order.component.ts
@@ -64,19 +64,18 @@ export class OilStationOrderComponent implements OnInit {
this.searchForm = this.form.group({
orderNo: [null],
status: [null],
+ createTime: [null],
});
this.getRequest(true, this.searchForm.value);
}
// 查询列表
public getRequest(reset: boolean = false, whereObject: object) {
-
- if (whereObject['payTime'] != null && whereObject['payTime'].length !== 0) {
- whereObject['payTimeS'] = whereObject['payTime'][0].getTime();
- whereObject['payTimeE'] = whereObject['payTime'][1].getTime();
+ if (whereObject['createTime'] != null && whereObject['createTime'].length !== 0) {
+ whereObject['createTimeS'] = whereObject['createTime'][0].getTime();
+ whereObject['createTimeE'] = whereObject['createTime'][1].getTime();
}
-
this.loading = false;
if (reset) {
this.pageNum = 1;
@@ -137,4 +136,17 @@ export class OilStationOrderComponent implements OnInit {
}
});
}
+
+ /**
+ * 导出订单
+ */
+ excelOrder() {
+ this.order.exportGasOrder(this.searchForm.value, data => {
+ if (data['return_code'] === '000000') {
+ window.location.href = this.FILE_URL + 'temporary/' + data['return_data'];
+ } else {
+ this.message.error(data['return_msg']);
+ }
+ });
+ }
}
diff --git a/src/app/services/index.service.ts b/src/app/services/index.service.ts
index 439c5d3..9195faa 100644
--- a/src/app/services/index.service.ts
+++ b/src/app/services/index.service.ts
@@ -154,12 +154,12 @@ export class IndexService {
/**
* @Author Sum1Dream
* @methodName getGasStatistical
- * @Description // 查询门店账户
+ * @Description // 查询加油站统计
* @Date 10:00 2022/5/18
* @Param
*/
public getGasStatistical(callBack) {
- this.http.get(environment.baseUrl + 'highGas/getGasStatistical').subscribe(data => {
+ this.http.post(environment.baseUrl + 'highGas/getGasStatistical', null).subscribe(data => {
callBack(data);
});
}
diff --git a/src/app/services/order.service.ts b/src/app/services/order.service.ts
index 7a54d77..fe68ecf 100644
--- a/src/app/services/order.service.ts
+++ b/src/app/services/order.service.ts
@@ -245,10 +245,15 @@ export class OrderService {
});
}
+ public exportGasOrder(params: object , callBack) {
+ this.http.get(environment.baseUrl + 'highGas/exportGasOrder?' + this.common.getWhereCondition(params)).subscribe( data => {
+ callBack(data);
+ });
+ }
+
public getGasOrderDetail(orderNo: string , callBack) {
this.http.get(environment.baseUrl + 'highGas/getGasOrderDetail?orderNo=' + orderNo).subscribe( data => {
callBack(data);
});
}
-
}
diff --git a/src/environments/environment.ts b/src/environments/environment.ts
index 21ad46f..0f97376 100644
--- a/src/environments/environment.ts
+++ b/src/environments/environment.ts
@@ -4,10 +4,10 @@
export const environment = {
production: false,
- // baseUrl: 'http://localhost:9302/brest/', // 测试环境服务器地址(请求数据地址)
- // imageUrl: 'http://localhost:9302/filesystem/',
- baseUrl: 'https://hsgcs.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
- imageUrl: 'https://hsgcs.dctpay.com/filesystem/',
+ baseUrl: 'http://localhost:9302/brest/', // 测试环境服务器地址(请求数据地址)
+ imageUrl: 'http://localhost:9302/filesystem/',
+/* baseUrl: 'https://hsgcs.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
+ imageUrl: 'https://hsgcs.dctpay.com/filesystem/',*/
key: 'https://hsgcs.dctpay.com/phone-recharge-H5/index.html?codeValue=',
inviteUrl: 'https://hsgcs.dctpay.com/wx/?action=ic&id=',
};
|