spring
2025-05-21 ee2882cff02d3545b66c7591f88ed4800f730a9a
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))