+
优惠券包标题
-
+
+
+
+
+
+
+
+ 优惠券包标签
+
+
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/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/pipes/api-coupon/sc-printer.pipe.ts b/src/app/pipes/api-coupon/sc-printer.pipe.ts
index 0213112..bd45c31 100644
--- a/src/app/pipes/api-coupon/sc-printer.pipe.ts
+++ b/src/app/pipes/api-coupon/sc-printer.pipe.ts
@@ -23,3 +23,5 @@ export class ScPrinterPipe implements PipeTransform {
}
}
+
+
diff --git a/src/app/pipes/third-product/product-type.pipe.ts b/src/app/pipes/third-product/product-type.pipe.ts
index bd7d297..4c1ff9f 100644
--- a/src/app/pipes/third-product/product-type.pipe.ts
+++ b/src/app/pipes/third-product/product-type.pipe.ts
@@ -10,11 +10,12 @@ export class ProductTypePipe implements PipeTransform {
2: ['肯德基'],
3: ['第三方产品'],
4: ['积分充值'],
- 5: ['中石化', '消费券', '其他卡券' , '贵州中石化' , '重庆中石油'],
- 6: [''],
+ 5: ['中石化', '消费券', '其他卡券' , '贵州中石化' , '重庆中石油','停车券','四川中石油','贵州中石油'],
+ 6: ['在线加油'],
7: ['优惠券包'],
8: ['汇联通充值'],
10: ['实物购买'],
+ 16: ['个人油卡充值'],
17: ['团购套餐'],
};
diff --git a/src/app/services/agent.service.ts b/src/app/services/agent.service.ts
index f1cf4f1..a9f729f 100644
--- a/src/app/services/agent.service.ts
+++ b/src/app/services/agent.service.ts
@@ -203,6 +203,14 @@ export class AgentService {
}
+ public generateDiscountPackageAgentCode(params: object, callBack) {
+ this.http.post(environment.baseUrl + 'discountPackageAgent/generateDiscountPackageAgentCode', params).subscribe(data => {
+ callBack(data);
+ });
+
+ }
+
+
/*
获取优惠券包列表
*/
@@ -213,8 +221,8 @@ export class AgentService {
}
/* 获取优惠券包代理商关联列表 */
- public getDiscountPackageAgentRelList(agentId: number, callBack) {
- this.http.get(environment.baseUrl + 'discountPackageAgent/getDiscountPackageAgentRelList?agentId=' + agentId).subscribe(data => {
+ public getDiscountPackageAgentRelList(agentId: number, type: number , callBack) {
+ this.http.get(environment.baseUrl + 'discountPackageAgent/getDiscountPackageAgentRelList?agentId=' + agentId + '&type=' + type).subscribe(data => {
callBack(data);
});
}
diff --git a/src/environments/environment.ts b/src/environments/environment.ts
index d25e70f..fd50ef6 100644
--- a/src/environments/environment.ts
+++ b/src/environments/environment.ts
@@ -6,7 +6,7 @@ export const environment = {
production: false,
// baseUrl: 'http://localhost:9302/brest/', // 测试环境服务器地址(请求数据地址)
// orderUrl: 'http://localhost:9304/order/', // 测试环境服务器地址(请求数据地址)
- baseUrl: 'https://hsgcs.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
+ baseUrl: 'https://hsg.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
// orderUrl: 'https://hsg.dctpay.com/order/', // 测试环境服务器地址(请求数据地址)
orderUrl: 'https://hsgcs.dctpay.com/order/', // 测试环境服务器地址(请求数据地址)
imageUrl: 'https://hsgcs.dctpay.com/filesystem/',