From 53dd795f6d6aa5c9dd82f913d5602dfd033203be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=BD=97=E6=96=8C=E6=9D=B0?= <>
Date: Thu, 12 Oct 2023 15:19:33 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE=E7=BC=96?=
=?UTF-8?q?=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/fee-settings/Item.vue | 209 ++++++++++++++++++--------------
1 file changed, 116 insertions(+), 93 deletions(-)
diff --git a/src/views/fee-settings/Item.vue b/src/views/fee-settings/Item.vue
index 6a354f9..401b392 100644
--- a/src/views/fee-settings/Item.vue
+++ b/src/views/fee-settings/Item.vue
@@ -171,17 +171,17 @@
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-->
-
+
+
+
+
+
+
-
-
- {{item.label}}
-
-
+
@@ -296,42 +256,46 @@
>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- {{item.label}}
-
-
+
-
+
-
+
-
+
-
-
- {{item.label}}
-
-
+
-
+
-
-
- {{item.label}}
-
-
+
@@ -1051,6 +1006,12 @@ export default {
MaxResultCount: 100,
},
title: 1,
+ isProduceSummaryBox: true,
+ isNameIntoSummaryBox:true,
+ isDiagnosisFunctionBox:false,
+ isCalculationItemBox:false,
+ isContinueProcessBox:false,
+ isActiveBox:true,
form: {
displayName: "",
englishShortName: "",
@@ -1753,16 +1714,59 @@ export default {
if (this.form.id == undefined) {
this.$message.warning("请选择操作的数据");
} else {
+ this.$nextTick(()=>{
+ this.$refs.form.resetFields();
+ })
this.form.price = Number(this.form.price);
this.addorgropdata();
this.title = 2;
this.dialogVisible = true;
posjrctid(this.form.id).then((res) => {
this.form = res.data;
+ if (res.data.isProduceSummary == 'Y') {
+ this.isProduceSummaryBox = true;
+ } else {
+ this.isProduceSummaryBox = false;
+ }
+ if (res.data.isNameIntoSummary == 'Y') {
+ this.isNameIntoSummaryBox = true;
+ } else {
+ this.isNameIntoSummaryBox = false;
+ }
+ if (res.data.isDiagnosisFunction == 'Y') {
+ this.isDiagnosisFunctionBox = true;
+ } else {
+ this.isDiagnosisFunctionBox = false;
+ }
+ if (res.data.isCalculationItem == 'Y') {
+ this.isCalculationItemBox = true;
+ } else {
+ this.isCalculationItemBox = false;
+ }
+ if (res.data.isContinueProcess == 'Y') {
+ this.isContinueProcessBox = true;
+ } else {
+ this.isContinueProcessBox = false;
+ }
+ if (res.data.isActive == 'Y') {
+ this.isActiveBox = true;
+ } else {
+ this.isActiveBox = false;
+ }
console.log(this.form);
});
}
},
+ //编辑弹框勾选重新赋值
+ changeBox(type) {
+ //赋值
+ console.log(type)
+ if(this[type+'Box']){
+ this.form[type] = 'Y';
+ }else{
+ this.form[type] = 'N';
+ }
+ },
//确定新增或者编辑
Onsubmit() {
this.$refs.form.validate((v) => {
@@ -1789,10 +1793,19 @@ export default {
},
//新增弹框
add() {
+ this.$nextTick(()=>{
+ this.$refs.form.resetFields();
+ })
this.form.price = Number(this.form.price);
this.title = 1;
this.dialogVisible = true;
this.form = {};
+ this.isProduceSummaryBox=true,
+ this.isNameIntoSummaryBox=true,
+ this.isDiagnosisFunctionBox=false,
+ this.isCalculationItemBox=false,
+ this.isContinueProcessBox=false,
+ this.isActiveBox=true,
this.$nextTick(() => {
this.$refs.refinput.focus();
});
@@ -1873,4 +1886,14 @@ export default {
:deep .el-dialog__footer {
padding: 0px 20px 14px;
}
+:deep .downText .el-input--suffix .el-input__inner {
+ height: 100%;
+ padding-right: 22px;
+}
+:deep .downText .el-input--suffix .el-input__suffix {
+ right: 7px;
+}
+:deep .downText{
+ display: flex!important;
+}