From 6ef9e5189ac1888b8c4c504d5c5d3f431807ff56 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期六, 15 三月 2025 11:57:40 +0800
Subject: [PATCH] 修改电路试验单位
---
src/components/view/a7-sample-disposal.vue | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/src/components/view/a7-sample-disposal.vue b/src/components/view/a7-sample-disposal.vue
index b454bdb..2a01a48 100644
--- a/src/components/view/a7-sample-disposal.vue
+++ b/src/components/view/a7-sample-disposal.vue
@@ -8,7 +8,7 @@
</el-row>
<el-tabs type="border-card" v-model="activeName" style="height: 100%;" @tab-click="tabClick">
<el-tab-pane label="濉啓" name="濉啓" style="height: 100%;" :key="1">
- <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&¤tInfo.examineState!='閫氳繃'">鏂板</el-button>
+ <el-button size="small" type="primary" @click="handleAdd0" style="margin-left: 20px;" v-if="addPower&¤tInfo.submitState!='宸叉彁浜�'">鏂板</el-button>
<div class="table" style="height: calc(100% - 200px)" v-if="activeName=='濉啓'">
<ValueTable ref="ValueTable0" :url="$api.processTotaldeal.pageProcessDeal"
:componentData="componentData0" :key="upIndex0" :delUrl="$api.processTotaldeal.delProcessDeal" />
@@ -206,7 +206,7 @@
name: "SampleDisposal",
data() {
return {
- activeName:'濉啓',
+ activeName:'鍘嗗彶璁板綍',
title:'鏂板',
addDialogVisible:false,
addLoading:false,
@@ -299,12 +299,12 @@
id: 'handleAdd0',
font: '淇敼',
type: 'text',
- method: 'handleAdd0'
+ method: 'handleAdd0',
},{
id: 'delete',
font: '鍒犻櫎',
type: 'text',
- method: 'doDiy'
+ method: 'doDiy',
}],
tagField: {},
selectField: {},
@@ -325,6 +325,17 @@
addPower:false,
};
},
+ watch: {
+ 'activeName' (val1, val2) {
+ if(val1=='濉啓'){
+ this.componentData0.do.forEach((item)=>{
+ item.disabFun = (row, index) => {
+ return !this.addPower||this.currentInfo.submitState=='宸叉彁浜�'
+ }
+ })
+ }
+ }
+ },
mounted() {
this.entityCopy = this.HaveJson(this.componentData.entity);
this.getCustomPageList()
--
Gitblit v1.9.3