- {{i + 1}} |
+ {{data.merNo}} |
{{data.merName}} |
+ {{data.merAbbreviate}} |
{{data.storeName?data.storeName:'无'}} |
{{data.outTradeNo}} |
+ {{data.accTradeNo}} |
{{data.payMode | payMode}} |
¥{{data.tradeAmount}} |
¥{{data.storeDiscountActualPrice?data.storeDiscountActualPrice:0}} |
¥{{data.userDiscountActualPrice?data.userDiscountActualPrice:0}} |
¥{{data.tradeActualAmount?data.tradeActualAmount:0}} |
{{data.status | tradeOrderStatus}} |
+ {{data.createType | createType}} |
{{data.createTime | date : 'yyyy-MM-dd HH:mm:ss'}} |
{{data.payTime | date : 'yyyy-MM-dd HH:mm:ss'}} |
{{data.platformMerNo}} |
+ {{data.specialField}} |
{{data.salesmanName}} |
详情
diff --git a/src/app/admin/trade-order/trade-order-list/trade-order-list.component.ts b/src/app/admin/trade-order/trade-order-list/trade-order-list.component.ts
index 77e33b5..afe136c 100644
--- a/src/app/admin/trade-order/trade-order-list/trade-order-list.component.ts
+++ b/src/app/admin/trade-order/trade-order-list/trade-order-list.component.ts
@@ -47,11 +47,13 @@ export class TradeOrderListComponent implements OnInit {
this.searchForm = this.form.group({
salesmanId: [null],
+ merNo: [null],
merId: [null],
merName: [null],
+ merAbbreviate: [null],
storeName: [null],
outTradeNo: [null],
- // accTradeNo: [null],
+ accTradeNo: [null],
payMode: [null],
payTime: [null],
payTimeS: [null],
diff --git a/src/app/app-common.module.ts b/src/app/app-common.module.ts
index 84486af..1164743 100644
--- a/src/app/app-common.module.ts
+++ b/src/app/app-common.module.ts
@@ -22,7 +22,7 @@ import {
CardTypePipe,
MerStatusPipe,
CompleteStatusPipe,
- MerTypePipe, DeviceStatusPipe, PlatformTypePipe, DeviceTypePipe, DeviceOrderTypePipe,
+ MerTypePipe, DeviceStatusPipe, PlatformTypePipe, DeviceTypePipe, DeviceOrderTypePipe, CreateTypePipe,
} from './pipes';
import {DeviceOrderStatusPipe} from './pipes/device/device-order-status.pipe';
import {DeviceOrderPayTypePipe} from './pipes/device/device-order-pay-type.pipe';
@@ -46,7 +46,8 @@ const PIPES = [
DeviceOrderTypePipe,
DeviceOrderStatusPipe,
DeviceOrderPayTypePipe,
- PlatformTypePipe
+ PlatformTypePipe,
+ CreateTypePipe
];
@NgModule({
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 6c82736..bd70510 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -53,6 +53,11 @@ const routes: Routes = [
loadChildren: () => import('./admin/trade-order/trade-order.module').then(m => m.TradeOrderModule),
canActivate: [InitGuardService]
},
+ {
+ path: 'trade-checking',
+ loadChildren: () => import('./admin/trade-checking/trade-checking.module').then(m => m.TradeCheckingModule),
+ canActivate: [InitGuardService]
+ },
{
path: 'store-device',
loadChildren: () => import('./admin/store-device/store-device.module').then(m => m.StoreDeviceModule),
diff --git a/src/app/pipes/index.ts b/src/app/pipes/index.ts
index e575872..c191b94 100644
--- a/src/app/pipes/index.ts
+++ b/src/app/pipes/index.ts
@@ -8,6 +8,7 @@ export * from './trade-order/pay-mode.pipe';
export * from './trade-order/trade-order-status.pipe';
export * from './trade-order/trade-order-refund-status.pipe';
export * from './trade-order/card-type.pipe';
+export * from './trade-order/create-type.pipe';
export * from './mer/mer-status.pipe';
export * from './mer/mer-type.pipe';
export * from './mer/complete-status.pipe';
diff --git a/src/app/pipes/trade-order/create-type.pipe.ts b/src/app/pipes/trade-order/create-type.pipe.ts
new file mode 100644
index 0000000..b7ccb5e
--- /dev/null
+++ b/src/app/pipes/trade-order/create-type.pipe.ts
@@ -0,0 +1,21 @@
+import { Pipe, PipeTransform } from '@angular/core';
+
+@Pipe({
+ name: 'createType'
+})
+export class CreateTypePipe implements PipeTransform {
+
+ transform(createType: number): unknown {
+ switch (createType) {
+ case 1:
+ return '扫一扫';
+ case 2:
+ return '被扫';
+ case 3:
+ return 'API';
+ default:
+ return '未知';
+ }
+ }
+
+}
diff --git a/src/app/services/trade-checking.service.ts b/src/app/services/trade-checking.service.ts
new file mode 100644
index 0000000..dce8c58
--- /dev/null
+++ b/src/app/services/trade-checking.service.ts
@@ -0,0 +1,27 @@
+import { Injectable } from '@angular/core';
+import {HttpClient} from '@angular/common/http';
+import {CommonsService} from './commons.service';
+import {environment} from '../../environments/environment';
+
+@Injectable({
+ providedIn: 'root'
+})
+export class TradeCheckingService {
+
+ constructor(
+ private http: HttpClient,
+ private commonsService: CommonsService
+ ) { }
+
+ queryChecking(paramObject: object, callBack) {
+ this.http.get(environment.baseUrl + 'tradeOrder/queryChecking?' + this.commonsService.getWhereCondition(paramObject)).subscribe(data => {
+ callBack(data);
+ });
+ }
+
+ queryCheckingDetail(paramObject: object, callBack) {
+ this.http.get(environment.baseUrl + 'tradeOrder/queryCheckingDetail?' + this.commonsService.getWhereCondition(paramObject)).subscribe(data => {
+ callBack(data);
+ });
+ }
+}
diff --git a/src/styles.scss b/src/styles.scss
index 0875e64..43effba 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -7,6 +7,11 @@
--main-color: #1890ff; // or any global you wish to share with components
--gray: #f0f0f0;
}
+@media print {
+ nz-sider {
+ display: none;
+ }
+}
.fl {
float: left;
}
|