From e4b82a2cf3c472609ab017a13aa04aa5df565c08 Mon Sep 17 00:00:00 2001
From: zhang_li <2235006734@qqq.com>
Date: Fri, 12 Apr 2024 17:26:22 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B4=A8=E9=87=8F=E9=80=9A=E7=9F=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/qms/qualityNotice/addForm.vue | 24 ++++++++++++-------
.../qualityNotice/components/qualityBatch.vue | 19 +++++++++------
2 files changed, 28 insertions(+), 15 deletions(-)
diff --git a/src/views/qms/qualityNotice/addForm.vue b/src/views/qms/qualityNotice/addForm.vue
index e6a1ecaac..8b0f5e54e 100644
--- a/src/views/qms/qualityNotice/addForm.vue
+++ b/src/views/qms/qualityNotice/addForm.vue
@@ -14,8 +14,8 @@
-
-
+
+
上一步
@@ -393,14 +393,22 @@ watch(
() => active.value,
(val) => {
if(val == 2){
- Butttondata = [
- defaultButtons.formSaveBtn(null), // 保存
- defaultButtons.formCloseBtn(null) // 关闭
- ]
+ // 如果是详情不显示保存
+ if(disabled.value){
+ Butttondata = [
+ defaultButtons.formCloseBtn(null) // 关闭
+ ]
+ }else{
+ Butttondata = [
+ defaultButtons.formSaveBtn(null), // 保存
+ defaultButtons.formCloseBtn(null) // 关闭
+ ]
+ }
+
}else{
Butttondata = [
- defaultButtons.formCloseBtn(null) // 关闭
- ]
+ defaultButtons.formCloseBtn(null) // 关闭
+ ]
}
}
)
diff --git a/src/views/qms/qualityNotice/components/qualityBatch.vue b/src/views/qms/qualityNotice/components/qualityBatch.vue
index 37d9f2da8..76617e21e 100644
--- a/src/views/qms/qualityNotice/components/qualityBatch.vue
+++ b/src/views/qms/qualityNotice/components/qualityBatch.vue
@@ -15,7 +15,7 @@
:label="item.sequenceCode"
:name="item.name"
>
-
+
-
+
@@ -78,12 +78,12 @@
-
+
@@ -104,10 +104,10 @@
-
+
@@ -365,6 +365,11 @@ const props = defineProps({
type: String,
default: ''
},
+ // 是否可输入
+ disabled:{
+ type:Boolean,
+ default: false
+ }
})
const editableTabsValue = ref('1')
const dialogVisible = ref(false)//弹窗