From 87c36acaff08729dd523d0faac157145ae918894 Mon Sep 17 00:00:00 2001
From: songguoqiang <765017469@qq.com>
Date: Fri, 19 Apr 2024 11:24:17 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B9=B4=E5=BA=A6=E6=8C=87=E6=A0=87?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../eam/basic/basciYearEquipment/index.vue | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/views/eam/basic/basciYearEquipment/index.vue b/src/views/eam/basic/basciYearEquipment/index.vue
index fb1bc9a..3d5009b 100644
--- a/src/views/eam/basic/basciYearEquipment/index.vue
+++ b/src/views/eam/basic/basciYearEquipment/index.vue
@@ -38,10 +38,10 @@
- {{ row.goal+"%" }}
+ {{ row.type=='0'?row.goal+"%":row.goal }}
- {{ row.goal==null?"":row.goal+"%" }}
+ {{ row.actual==null||row.actual==""||row.type!='0'?row.actual:row.actual+"%" }}
@@ -170,12 +170,13 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
- if (type == 'update') {
- console.log("123",BasciYearEquipment.allSchemas.formSchema);
- BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factoryType').componentProps.disabled = true//编辑置灰
- // BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factory_type').componentProps.disabled = true//编辑置灰
- //BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'year_index').componentProps.disabled = true//编辑置灰
- }
+ // if (type == 'update') {
+ // BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factoryType').componentProps.disabled = true//编辑置灰
+ // // BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factory_type').componentProps.disabled = true//编辑置灰
+ // //BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'year_index').componentProps.disabled = true//编辑置灰
+ // }else{
+ // BasciYearEquipment.allSchemas.formSchema.find(item => item.field == 'factoryType').componentProps.disabled = false//编辑置灰
+ // }
basicFormRef.value.open(type, row)
}