From 44d3c5af8f1fda86ec07fc4d9262979696d87c9a Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 25 三月 2025 11:29:57 +0800
Subject: [PATCH] 报告编制加样品编号筛选
---
src/components/do/b1-inspect-order-plan/circuit-parameters2.vue | 36 ++++++++++++++++++++++++------------
1 files changed, 24 insertions(+), 12 deletions(-)
diff --git a/src/components/do/b1-inspect-order-plan/circuit-parameters2.vue b/src/components/do/b1-inspect-order-plan/circuit-parameters2.vue
index 7634954..3dfc601 100644
--- a/src/components/do/b1-inspect-order-plan/circuit-parameters2.vue
+++ b/src/components/do/b1-inspect-order-plan/circuit-parameters2.vue
@@ -100,7 +100,8 @@
<td>绔彛</td>
<td v-for="(item, index) in n.portList" :key="index + 'aaa'">
<div style="display: flex;align-items: center;">
- <el-input size="small" placeholder="绔彛" v-model="item.value" :disabled="state > 1"></el-input>
+ <el-input size="small" placeholder="绔彛" v-model="item.value" :disabled="state > 1"
+ @blur="handleInterface(n.portList, index)"></el-input>
</div>
</td>
</tr>
@@ -162,7 +163,8 @@
<td>绔彛</td>
<td v-for="(item, index) in n.portList" :key="index + 'fff'">
<div style="display: flex;align-items: center;">
- <el-input size="small" placeholder="绔彛" v-model="item.value" :disabled="state > 1"></el-input>
+ <el-input size="small" placeholder="绔彛" v-model="item.value" :disabled="state > 1"
+ @blur="handleInterface(n.portList, index)"></el-input>
</div>
</td>
</tr>
@@ -206,16 +208,16 @@
bandList0: [],
portList: [
{
- value: '1',
+ value: 'P1',
},
{
- value: '2',
+ value: 'P2',
},
{
- value: '3',
+ value: 'P3',
},
{
- value: '4',
+ value: 'P4',
},
],
angleList: [
@@ -352,7 +354,7 @@
if (item.insProductResult2.length > 0 && item.insProductResult2.length < bandList.length) {
let obj0 = item.insProductResult2.find(n => m.frequency == n.frequency)
if (!obj0) {
- let port = '1,2,3,4'
+ let port = 'P1,P2,P3,P4'
let value = JSON.parse(m.value)
let value0 = []
value.forEach(n => {
@@ -368,7 +370,7 @@
}
} else {
// 濡傛灉涓�鏉℃暟鎹兘娌℃湁锛屽垯琛ュ叏鏁版嵁
- let port = '1,2,3,4'
+ let port = 'P1,P2,P3,P4'
let value = JSON.parse(m.value)
let value0 = []
value.forEach(n => {
@@ -465,16 +467,16 @@
item.equipValue = ''
this.portList = [
{
- value: '1',
+ value: 'P1',
},
{
- value: '2',
+ value: 'P2',
},
{
- value: '3',
+ value: 'P3',
},
{
- value: '4',
+ value: 'P4',
},
]
this.angleList = [
@@ -676,6 +678,7 @@
}
})
},
+ // 娣诲姞棰戠偣鍗曚綅
handlePort(n) {
if (!n.often) {
return
@@ -684,6 +687,15 @@
n.often = n.often + 'MHz'
}
},
+ // 娣诲姞绔彛P
+ handleInterface(arr, index) {
+ if (!arr[index].value) {
+ return
+ }
+ if (!arr[index].value.includes('P')) {
+ this.$set(arr[index], 'value', 'P' + arr[index].value)
+ }
+ },
async methodFocus(item) {
this.$delete(item, 'equipOptions')
this.$set(item, 'equipOptions', await this.getEquipOptions(item))
--
Gitblit v1.9.3