From 9f0c1a4304181f6d905f9793d96e25a5951faf97 Mon Sep 17 00:00:00 2001
From: hurui <177768073@qq.com>
Date: Mon, 27 Nov 2023 11:08:28 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../oils-discount.component.html | 39 +++++++++++--------
.../oils-discount/oils-discount.component.ts | 35 +++++++++--------
2 files changed, 40 insertions(+), 34 deletions(-)
diff --git a/src/app/admin/system/oils-discount/oils-discount.component.html b/src/app/admin/system/oils-discount/oils-discount.component.html
index acbbb3c..75ac2e3 100644
--- a/src/app/admin/system/oils-discount/oils-discount.component.html
+++ b/src/app/admin/system/oils-discount/oils-discount.component.html
@@ -32,6 +32,7 @@
共计 {{total}} 条数据
+
-
+
+
+
+
+
+
+
diff --git a/src/app/admin/system/oils-discount/oils-discount.component.ts b/src/app/admin/system/oils-discount/oils-discount.component.ts
index 473c092..ab0e0d1 100644
--- a/src/app/admin/system/oils-discount/oils-discount.component.ts
+++ b/src/app/admin/system/oils-discount/oils-discount.component.ts
@@ -27,8 +27,8 @@ export class OilsDiscountComponent implements OnInit {
roleTypeArray;
gasChannelConfigChannelArray = [];
- configOilMerNumModal = false;
- configOilMerNumForm: FormGroup;
+ configOilCardRechargeModal = false;
+ configOilCardRechargeForm: FormGroup;
channelId = '1';
tripartitePlatformModal = false;
@@ -66,8 +66,8 @@ export class OilsDiscountComponent implements OnInit {
priceRate: [null],
});
- this.configOilMerNumForm = this.form.group({
- codeType: ['OIL_WX_MER'],
+ this.configOilCardRechargeForm = this.form.group({
+ codeType: ['OIL_CARD_RECHARGE_RATIO'],
codeValue: [null, [Validators.required]],
});
@@ -149,23 +149,23 @@ export class OilsDiscountComponent implements OnInit {
this.isVisible = false;
}
- showConfigOilMerNum() {
- this.common.mappingSysNameOl('OIL_WX_MER', data => {
- this.configOilMerNumForm.patchValue(data['return_data']);
+ showConfigOilCard() {
+ this.common.mappingSysNameOl('OIL_CARD_RECHARGE_RATIO', data => {
+ this.configOilCardRechargeForm.patchValue(data['return_data']);
});
- this.configOilMerNumModal = true;
+ this.configOilCardRechargeModal = true;
}
- closeConfigOilMerNum() {
- this.configOilMerNumModal = false;
+ closeConfigOilCard() {
+ this.configOilCardRechargeModal = false;
}
- submitConfigOilMerNum() {
- for (const i in this.configOilMerNumForm.controls) {
- this.configOilMerNumForm.controls[i].markAsDirty();
- this.configOilMerNumForm.controls[i].updateValueAndValidity();
+ submitConfigOilCard() {
+ for (const i in this.configOilCardRechargeForm.controls) {
+ this.configOilCardRechargeForm.controls[i].markAsDirty();
+ this.configOilCardRechargeForm.controls[i].updateValueAndValidity();
}
- if (this.configOilMerNumForm.status == null || this.configOilMerNumForm.status !== 'VALID') {
+ if (this.configOilCardRechargeForm.status == null || this.configOilCardRechargeForm.status !== 'VALID') {
this.modal.warning({
nzTitle: '提示',
nzContent: '请填写所有必填项',
@@ -173,13 +173,13 @@ export class OilsDiscountComponent implements OnInit {
return;
}
- this.common.editConfig(this.configOilMerNumForm.value, data => {
+ this.common.editConfig(this.configOilCardRechargeForm.value, data => {
if (data['return_code'] === '000000') {
this.modal.success({
nzTitle: '提示',
nzContent: '操作成功',
});
- this.closeConfigOilMerNum();
+ this.closeConfigOilCard();
} else {
this.modal.error({
nzTitle: '提示',
@@ -189,6 +189,7 @@ export class OilsDiscountComponent implements OnInit {
});
}
+
// 打开配置第三方模态框
showTripartitePlatformModal () {
this.selectChannel(this.channelId);