+
优惠券包标题
-
+
+
+
+
+
+
+
+ 优惠券包标签
+
+
diff --git a/src/app/admin/discount-package/discount-package-edit/discount-package-edit.component.ts b/src/app/admin/discount-package/discount-package-edit/discount-package-edit.component.ts
index ba6734b..da3b995 100644
--- a/src/app/admin/discount-package/discount-package-edit/discount-package-edit.component.ts
+++ b/src/app/admin/discount-package/discount-package-edit/discount-package-edit.component.ts
@@ -87,6 +87,7 @@ export class DiscountPackageEditComponent implements OnInit {
usingAttribution: [null],
salesType: [null, [Validators.required]],
price: [null],
+ showLabel: [null],
purchaseNum: [null],
});
diff --git a/src/app/admin/merchant-store/store-edit/store-edit.component.ts b/src/app/admin/merchant-store/store-edit/store-edit.component.ts
index 9a54509..6b4ddd1 100644
--- a/src/app/admin/merchant-store/store-edit/store-edit.component.ts
+++ b/src/app/admin/merchant-store/store-edit/store-edit.component.ts
@@ -176,7 +176,7 @@ export class StoreEditComponent implements OnInit {
uid: 1,
name: logo,
status: 'done',
- url: environment.imageUrl + logo
+ url: logo
});
this.logoFile = logoArray;
}
diff --git a/src/app/admin/order-manage/api-mer-order-list/api-mer-order-list.component.html b/src/app/admin/order-manage/api-mer-order-list/api-mer-order-list.component.html
new file mode 100644
index 0000000..91b6992
--- /dev/null
+++ b/src/app/admin/order-manage/api-mer-order-list/api-mer-order-list.component.html
@@ -0,0 +1,236 @@
+
+
+
+
+
+
+
+
+
+
+
+
共计 {{total?total:0}} 条数据
+
+
+
+
+
+
+ 交易单号 |
+ 客户电话 |
+ 订单名称 |
+ 订单金额 |
+ 支付金额 |
+ 支付方式 |
+ 订单状态 |
+ 创建时间 |
+ 操作 |
+
+
+
+
+ {{data.orderNo}} |
+ {{data.memPhone}} |
+ {{data.title}} |
+ ¥{{data.totalPrice}} |
+ ¥{{data.payPrice}} |
+ {{data.orderStatus == 1 || data.orderStatus == 5 ? '未支付' : data.payType | orderPayType}} |
+ {{data.orderStatus | orderStatus}} |
+ {{data.createTime | date : 'yyyy-MM-dd HH:mm:ss'}} |
+
+ 操作列表
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+
+
+ {{orderDetailObject.tradeOrder.orderNo}}
+ {{orderDetailObject.tradeOrder.paySerialNo!=null?orderDetailObject.tradeOrder.paySerialNo:'无'}}
+ {{orderDetailObject.tradeOrder.memPhone}}
+ {{orderDetailObject.tradeOrder.orderStatus | orderStatus}}
+ {{orderDetailObject.tradeOrder.payType | orderPayType}}
+
+ {{orderDetailObject.tradeOrder.memCardNo}}
+
+ {{orderDetailObject.tradeOrder.memDiscountName?orderDetailObject.tradeOrder.memDiscountName:'无'}}
+ {{orderDetailObject.tradeOrder.whetherRebate?'是':'否'}}
+ {{orderDetailObject.tradeOrder.remarks}}
+
+
+
+
+ {{orderDetailObject.tradeOrder.totalPrice}} 元
+ {{orderDetailObject.tradeOrder.totalDeductionPrice}} 元
+ {{orderDetailObject.tradeOrder.deductionProductPrice}} 元
+ {{orderDetailObject.tradeOrder.deductionCouponPrice}} 元
+ {{orderDetailObject.tradeOrder.payablePrice}} 元
+ {{orderDetailObject.tradeOrder.payGold / 100}} 元
+
+ {{orderDetailObject.tradeOrder.payRealPrice!=null?orderDetailObject.tradeOrder.payRealPrice+' 元':'未支付'}}
+
+
+
+
+
+
+
+ 创建时间:{{orderDetailObject.tradeOrder.createTime | date : 'yyyy-MM-dd HH:mm:ss'}}
+ 备注:{{orderDetailObject.tradeOrder.remarks?orderDetailObject.tradeOrder.remarks:'无'}}
+
+
+ 取消时间:{{orderDetailObject.tradeOrder.cancelTime | date : 'yyyy-MM-dd HH:mm:ss'}}
+ 备注:{{orderDetailObject.tradeOrder.cancelRemarks?orderDetailObject.tradeOrder.cancelRemarks:'无'}}
+
+ 支付时间:{{orderDetailObject.tradeOrder.payTime | date : 'yyyy-MM-dd HH:mm:ss'}}
+ 完成时间:{{orderDetailObject.tradeOrder.finishTime | date : 'yyyy-MM-dd HH:mm:ss'}}
+ 退款时间:{{orderDetailObject.tradeOrder.refundTime | date : 'yyyy-MM-dd HH:mm:ss'}}
+
+
+
+
+
+
diff --git a/src/app/admin/order-manage/api-mer-order-list/api-mer-order-list.component.scss b/src/app/admin/order-manage/api-mer-order-list/api-mer-order-list.component.scss
new file mode 100644
index 0000000..363c972
--- /dev/null
+++ b/src/app/admin/order-manage/api-mer-order-list/api-mer-order-list.component.scss
@@ -0,0 +1,3 @@
+img {
+ width: 60px;
+}
diff --git a/src/app/admin/order-manage/api-mer-order-list/api-mer-order-list.component.ts b/src/app/admin/order-manage/api-mer-order-list/api-mer-order-list.component.ts
new file mode 100644
index 0000000..cc94abb
--- /dev/null
+++ b/src/app/admin/order-manage/api-mer-order-list/api-mer-order-list.component.ts
@@ -0,0 +1,152 @@
+import { Component, OnInit } from '@angular/core';
+import {FormBuilder, FormGroup} from "@angular/forms";
+import {environment} from "../../../../environments/environment";
+import {LocalStorageService} from "../../../services/local-storage.service";
+import {NzMessageService} from "ng-zorro-antd";
+import {HltOrderService} from "../../../services/order/hlt-order.service";
+import {CompanyService} from "../../../services/company.service";
+import {CommonsService} from "../../../services/commons.service";
+import {ADMIN_INFO_OBJECT} from "../../../services/local-storage.namespace";
+import {animate, state, style, transition, trigger} from "@angular/animations";
+import {OrderApiMerService} from "../../../services/order/order-api-mer.service";
+
+@Component({
+ selector: 'app-api-mer-order-list',
+ animations: [
+ trigger('openClose', [
+ state('open', style({
+ height: '260px',
+ opacity: 1,
+ backgroundColor: 'white'
+ })),
+ state('closed', style({
+ opacity: 1,
+ backgroundColor: 'white'
+ })),
+ transition('open => closed', [
+ animate('0.3s')
+ ]),
+ transition('closed => open', [
+ animate('0.3s')
+ ]),
+ ]),
+ ],
+ templateUrl: './api-mer-order-list.component.html',
+ styleUrls: ['./api-mer-order-list.component.scss']
+})
+export class ApiMerOrderListComponent implements OnInit {
+
+
+
+ // 搜索框
+ searchForm: FormGroup;
+ // 搜索框折叠
+ isCollapse = false;
+ // 订单状态数据
+ orderStatusArray = [];
+ // 公司数据
+ companyArray = [];
+ // 角色类型
+ roleType: number;
+ // 列表相关参数
+ // 总条数
+ total: number;
+ // 页码
+ pageNum = 1;
+ // 条码
+ pageSize = 10;
+ // 列表数据
+ requestData = [];
+ // 列表加载
+ loading = true;
+ // 订单详情相关参数
+ // 详情模态框
+ orderDetailModal = false;
+ // 详情模态框数据等待
+ orderDetailModalLoading = false;
+ // 订单详情数据
+ orderDetailObject: any = {
+ tradeOrder: {},
+ };
+ // 数据加载中参数
+ loadingObject = {
+ title: '加载中...',
+ status: false,
+ };
+ // 请求地址参数
+ FILE_URL = environment.imageUrl;
+ mchId: string ;
+ constructor(
+ private form: FormBuilder,
+ private store: LocalStorageService,
+ private message: NzMessageService,
+ private apiMerOrderService: OrderApiMerService,
+ private companyService: CompanyService,
+ private commonsService: CommonsService,
+ ) { }
+
+ ngOnInit(): void {
+ // 搜索表单初始化
+ this.searchForm = this.form.group({
+ orderNo: [null],
+ memPhone: [null],
+ payTimeArray: [null],
+ orderStatus: [null],
+ createTimeArray: [null],
+ refundTimeArray: [null],
+ companyId: [null],
+ payType: [null],
+ memCardNo: [null],
+ });
+ // 角色类型初始化
+ this.roleType = Number(this.store.get(ADMIN_INFO_OBJECT)['secRole'].roleType);
+ this.mchId = this.store.get(ADMIN_INFO_OBJECT)['apiMerchants'].mchId;
+ // 查询公司列表
+ if (this.roleType === 0 || this.roleType === 1) {
+ this.companyService.selectCompanyList({ pageNum: 1, pageSize: 999 }, data => {
+ this.companyArray = data['return_data']['list'];
+ });
+ }
+ // 查询订单状态数据
+ this.commonsService.getDictionary('ORDER_STATUS', data => {
+ this.orderStatusArray = data['return_data'];
+ });
+ this.getRequest(true, this.searchForm.value);
+ }
+
+ // 查询列表
+ public getRequest(reset: boolean = false, whereObject: object) {
+ this.loading = true;
+ if (reset) {
+ this.pageNum = 1;
+ }
+ whereObject['promoteCode'] = this.mchId;
+ whereObject['pageNum'] = this.pageNum;
+ whereObject['pageSize'] = this.pageSize;
+ this.apiMerOrderService.getOrderList(whereObject, data => {
+ this.loading = false;
+ if (data['return_code'] === '000000') {
+ this.requestData = data['return_data'].list;
+ this.total = data['return_data'].total;
+ } else {
+ this.message.error(data['return_msg']);
+ }
+ });
+ }
+
+ // 展示订单详情
+ public showOrderDetail(orderNo: string) {
+ this.orderDetailModal = true;
+ this.orderDetailModalLoading = true;
+ this.apiMerOrderService.getOrderDetail(orderNo, data => {
+ if (data['return_code'] === '000000') {
+ this.orderDetailObject = data['return_data'];
+ } else {
+ this.message.error(data['return_msg']);
+ }
+ this.orderDetailModalLoading = false;
+ });
+
+ }
+
+}
diff --git a/src/app/admin/order-manage/discount-use-condition-list/discount-use-condition-list.component.ts b/src/app/admin/order-manage/discount-use-condition-list/discount-use-condition-list.component.ts
index 5222707..ca719e3 100644
--- a/src/app/admin/order-manage/discount-use-condition-list/discount-use-condition-list.component.ts
+++ b/src/app/admin/order-manage/discount-use-condition-list/discount-use-condition-list.component.ts
@@ -88,6 +88,7 @@ export class DiscountUseConditionListComponent implements OnInit {
this.agentService.getDiscountAgentList(param, data => {
if (data['return_code'] === '000000') {
this.discountArray = data['return_data'].list;
+ console.log(this.discountArray);
} else {
this.message.error(data['return_msg']);
}
diff --git a/src/app/admin/order-manage/give-coupons/give-coupons.component.html b/src/app/admin/order-manage/give-coupons/give-coupons.component.html
new file mode 100644
index 0000000..9418b47
--- /dev/null
+++ b/src/app/admin/order-manage/give-coupons/give-coupons.component.html
@@ -0,0 +1,85 @@
+
+
+
+
+
+
+
+
+
+ 共计 {{total?total:0}} 条数据
+
+
+
+
+ 优惠券名称 |
+ 优惠券类型 |
+
+ 用户手机号 |
+ 状态 |
+ 使用时间 |
+ 创建时间 |
+ 使用截止时间 |
+
+
+
+
+ {{data.discountName}} |
+ {{data.discountType | discountType}} |
+
+ {{data.ext3 | phoneTranslate}} |
+ {{data.status | discountCodeStatus2}} |
+ {{data.useTime | date : 'yyyy-MM-dd HH:mm:ss'}} |
+ {{data.createTime | date : 'yyyy-MM-dd HH:mm:ss'}} |
+ {{data.useEndTime | date : 'yyyy-MM-dd HH:mm:ss'}} |
+
+
+
+
+
+
diff --git a/src/app/admin/order-manage/give-coupons/give-coupons.component.scss b/src/app/admin/order-manage/give-coupons/give-coupons.component.scss
new file mode 100644
index 0000000..3043a17
--- /dev/null
+++ b/src/app/admin/order-manage/give-coupons/give-coupons.component.scss
@@ -0,0 +1,7 @@
+img {
+ width: 60px;
+ }
+ .fontColor {
+ color: red;
+ }
+
\ No newline at end of file
diff --git a/src/app/admin/order-manage/give-coupons/give-coupons.component.spec.ts b/src/app/admin/order-manage/give-coupons/give-coupons.component.spec.ts
new file mode 100644
index 0000000..7a065c2
--- /dev/null
+++ b/src/app/admin/order-manage/give-coupons/give-coupons.component.spec.ts
@@ -0,0 +1,28 @@
+/* tslint:disable:no-unused-variable */
+import { async, ComponentFixture, TestBed } from '@angular/core/testing';
+import { By } from '@angular/platform-browser';
+import { DebugElement } from '@angular/core';
+
+import { GiveCouponsComponent } from './give-coupons.component';
+
+describe('GiveCouponsComponent', () => {
+ let component: GiveCouponsComponent;
+ let fixture: ComponentFixture
;
+
+ beforeEach(async(() => {
+ TestBed.configureTestingModule({
+ declarations: [ GiveCouponsComponent ]
+ })
+ .compileComponents();
+ }));
+
+ beforeEach(() => {
+ fixture = TestBed.createComponent(GiveCouponsComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/admin/order-manage/give-coupons/give-coupons.component.ts b/src/app/admin/order-manage/give-coupons/give-coupons.component.ts
new file mode 100644
index 0000000..1461bfe
--- /dev/null
+++ b/src/app/admin/order-manage/give-coupons/give-coupons.component.ts
@@ -0,0 +1,90 @@
+import { Component, OnInit } from '@angular/core';
+
+
+import {environment} from '../../../../environments/environment';
+import {CompanyService} from '../../../services/company.service';
+import {LocalStorageService} from '../../../services/local-storage.service';
+import {ADMIN_INFO_OBJECT} from '../../../services/local-storage.namespace';
+import {CommonsService} from '../../../services/commons.service';
+import {OrderMobileRechargeService} from '../../../services/order/order-mobile-recharge.service';
+import {FormBuilder, FormGroup} from '@angular/forms';
+import {NzMessageService, NzNotificationService} from 'ng-zorro-antd';
+
+import {animate, state, style, transition, trigger} from '@angular/animations';
+import { OrderService } from 'src/app/services/order.service';
+
+@Component({
+ selector: 'app-give-coupons',
+ templateUrl: './give-coupons.component.html',
+ styleUrls: ['./give-coupons.component.scss']
+})
+export class GiveCouponsComponent implements OnInit {
+
+ // 搜索框
+ searchForm: FormGroup;
+
+ // 列表相关参数
+ // 总条数
+ total: number;
+ // 页码
+ pageNum = 1;
+ // 条码
+ pageSize = 10;
+ // 列表数据
+ requestData = [];
+ // 列表加载
+ loading = true;
+
+ // 数据加载中参数
+ loadingObject = {
+ title: '加载中...',
+ status: false,
+ };
+
+
+
+
+
+ constructor(
+ private form: FormBuilder,
+ private store: LocalStorageService,
+ private message: NzMessageService,
+ private orderMobileRechargeService: OrderMobileRechargeService,
+ private orderService: OrderService,
+ private commonsService: CommonsService,
+ private notification: NzNotificationService,
+ ) { }
+
+ ngOnInit(): void {
+ // 搜索表单初始化
+ this.searchForm = this.form.group({
+ discountName: [null],
+ status: [null],
+ });
+
+ // 查询代理商赠送优惠券
+ this.getRequest(true, this.searchForm.value);
+ }
+
+ // 查询列表
+ public getRequest(reset: boolean = false, whereObject: object) {
+ this.loading = true;
+ if (reset) {
+ this.pageNum = 1;
+ }
+ whereObject['pageNum'] = this.pageNum;
+ whereObject['pageSize'] = this.pageSize;
+
+ this.orderService.getAgentDiscountList(whereObject, data => {
+ this.loading = false;
+ if (data['return_code'] === '000000') {
+ this.requestData = data['return_data'].list;
+ this.total = data['return_data'].total;
+ } else {
+ this.message.error(data['return_msg']);
+ }
+ });
+ }
+
+
+}
diff --git a/src/app/admin/order-manage/order-manage-routing.module.ts b/src/app/admin/order-manage/order-manage-routing.module.ts
index 702645e..0e53a95 100644
--- a/src/app/admin/order-manage/order-manage-routing.module.ts
+++ b/src/app/admin/order-manage/order-manage-routing.module.ts
@@ -15,6 +15,8 @@ import {HltChargeOrderComponent} from './hlt-charge-order/hlt-charge-order.compo
import {GoodsOrderComponent} from './goods-order/goods-order.component';
import {GoodsChildOrderComponent} from './goods-child-order/goods-child-order.component';
import {OrderOilCardComponent} from './order-oil-card/order-oil-card.component';
+import {ApiMerOrderListComponent} from './api-mer-order-list/api-mer-order-list.component';
+import {GiveCouponsComponent} from './give-coupons/give-coupons.component';
const routes: Routes = [
@@ -33,6 +35,8 @@ const routes: Routes = [
{ path: 'goods-order', component: GoodsOrderComponent},
{ path: 'goods-child-order', component: GoodsChildOrderComponent},
{ path: 'order-oil-card', component: OrderOilCardComponent},
+ { path: 'api-mer-order', component: ApiMerOrderListComponent},
+ { path:'give-coupons', component: GiveCouponsComponent}
];
@NgModule({
diff --git a/src/app/admin/order-manage/order-manage.module.ts b/src/app/admin/order-manage/order-manage.module.ts
index 08ca75d..5de4146 100644
--- a/src/app/admin/order-manage/order-manage.module.ts
+++ b/src/app/admin/order-manage/order-manage.module.ts
@@ -25,9 +25,13 @@ import { GoodsOrderComponent } from './goods-order/goods-order.component';
import {PreviewImageModule} from "../../common/preview-image/preview-image.module";
import { GoodsChildOrderComponent } from './goods-child-order/goods-child-order.component';
import { OrderOilCardComponent } from './order-oil-card/order-oil-card.component';
+import {GiveCouponsComponent} from './give-coupons/give-coupons.component';
+import {ApiMerOrderListComponent} from './api-mer-order-list/api-mer-order-list.component';
@NgModule({
- declarations: [OrderOilListComponent, OrderCouponListComponent, OrderIntegralRechargeComponent, OrderRefundListComponent, KfcOrderListComponent, StarbucksOrderListComponent, MemberChargeOrderListComponent, MobileRechargeOrderListComponent, PreOrderComponent,DicountPackageOrderListComponent, MemberChargeOrderListComponent, DiscountUseConditionListComponent, HltChargeOrderComponent, GoodsOrderComponent, GoodsChildOrderComponent, OrderOilCardComponent],
+ declarations: [OrderOilListComponent, OrderCouponListComponent, OrderIntegralRechargeComponent, OrderRefundListComponent, KfcOrderListComponent, StarbucksOrderListComponent, MemberChargeOrderListComponent, MobileRechargeOrderListComponent, PreOrderComponent,DicountPackageOrderListComponent, MemberChargeOrderListComponent, DiscountUseConditionListComponent, HltChargeOrderComponent, GoodsOrderComponent, GoodsChildOrderComponent, OrderOilCardComponent, ApiMerOrderListComponent,
+ GiveCouponsComponent
+ ],
imports: [
CommonModule,
OrderManageRoutingModule,
diff --git a/src/app/admin/recharge-order/price-list/price-list.component.html b/src/app/admin/recharge-order/price-list/price-list.component.html
index 71209ff..6b3520b 100644
--- a/src/app/admin/recharge-order/price-list/price-list.component.html
+++ b/src/app/admin/recharge-order/price-list/price-list.component.html
@@ -26,6 +26,8 @@
+
+
diff --git a/src/app/admin/tuanyou-agent/petrol-station-manage/petrol-station-manage.component.html b/src/app/admin/tuanyou-agent/petrol-station-manage/petrol-station-manage.component.html
index f6dfa13..59cffab 100644
--- a/src/app/admin/tuanyou-agent/petrol-station-manage/petrol-station-manage.component.html
+++ b/src/app/admin/tuanyou-agent/petrol-station-manage/petrol-station-manage.component.html
@@ -150,6 +150,7 @@
@@ -324,5 +325,25 @@