From 745f0ecef38f708884f781a3d815b8ba12863f0b Mon Sep 17 00:00:00 2001 From: weiyu Date: Thu, 21 Apr 2022 18:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sms-template/sms-template.component.html | 3 ++- .../components/sms-template/sms-template.component.ts | 11 ++++++++++- .../invoice-reporting.component.html | 6 ------ 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/app/routes/sys-setting/components/sms-template/sms-template.component.html b/src/app/routes/sys-setting/components/sms-template/sms-template.component.html index 06e3616b..dbe3cff1 100644 --- a/src/app/routes/sys-setting/components/sms-template/sms-template.component.html +++ b/src/app/routes/sys-setting/components/sms-template/sms-template.component.html @@ -2,6 +2,7 @@
+
- + diff --git a/src/app/routes/sys-setting/components/sms-template/sms-template.component.ts b/src/app/routes/sys-setting/components/sms-template/sms-template.component.ts index 60295812..ea80d563 100644 --- a/src/app/routes/sys-setting/components/sms-template/sms-template.component.ts +++ b/src/app/routes/sys-setting/components/sms-template/sms-template.component.ts @@ -21,6 +21,7 @@ export class SmsTemplateComponent implements OnInit { visible = false; isVisible = false; tempData = {}; + isEdit = false; searchSchema: SFSchema = { properties: { @@ -52,7 +53,8 @@ export class SmsTemplateComponent implements OnInit { templateCode: { type: 'string', title: '模板编码', - ui: { placeholder: '请输入模板编码' } + readOnly: this.isEdit ? true : false, + ui: { placeholder: '请输入模板编码', } }, templateContent: { type: 'string', @@ -100,6 +102,7 @@ export class SmsTemplateComponent implements OnInit { edit(item: any) { // console.log(item); + this.isEdit = true; this.tempData = item; this.isVisible = true; } @@ -117,6 +120,12 @@ export class SmsTemplateComponent implements OnInit { this.visible = false; } + add() { + this.isEdit = false; + this.tempData = {}; + this.isVisible = true; + } + handleOk(): void { const value = this.sfEdit.value; const { id, templateCode, templateName, templateContent } = value diff --git a/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.html b/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.html index 3ed4ee8f..d308c5e6 100644 --- a/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.html +++ b/src/app/routes/tax-management/components/invoice-reporting/invoice-reporting.component.html @@ -34,12 +34,6 @@ 上传中 上传异常 - - {{item.artoname}} - - - {{item.billHCode}} - 增值税专用发票