gaoluyang
2024-07-02 73f95e04dfa9890ad484d8a447690fac87b8cf5c
下单页面—温度循环要求填写弹框开发联调
已修改1个文件
18 ■■■■■ 文件已修改
src/components/do/b1-ins-order/add.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-ins-order/add.vue
@@ -1101,24 +1101,28 @@
          this.$message.error('请填写完整数据')
          return
        }
        const opticalProjectList = JSON.parse(JSON.stringify(this.opticalProjectList))
        let entrustTime = this.circulateForm.entrustTime
        let entrustNum = this.circulateForm.entrustNum
        let temperaturePoint1 = JSON.parse(JSON.stringify(this.temperatureData))
        temperaturePoint1.forEach(t => {
          if (!t.temperaturePoint || !t.askSymbol || !t.askNum) {
            throw this.$message.error('请填写完整数据')
          }
        })
        let temperaturePoint = JSON.parse(JSON.stringify(this.temperatureData))
        temperaturePoint.unshift({temperaturePoint: 20, askSymbol: null, askNum: null})
        let askArr = []
        let opticalProjectArr = []
        // 拼接要求值ask
        opticalProjectList.forEach(o => {
          opticalProjectArr.push(o.value)
          temperaturePoint.forEach(t => {
            t.temperaturePoint = t.temperaturePoint + '℃'
            const askObj = t.temperaturePoint + ',' + o.value + ',' + t.askSymbol + t.askNum
            const askObj = t.temperaturePoint + '℃' + ',' + o.value + ',' + t.askSymbol + t.askNum
            askArr.push(askObj)
          })
        })
        askArr.unshift(20 + '℃')
        askArr.push(this.circulateForm.entrustNum)
        const ask = askArr.join(';')
        // 拼接要求描述tell
@@ -1132,9 +1136,6 @@
          temperaturePointList.push(t.temperaturePoint)
        })
        temperaturePoint1.forEach(t => {
          if (!t.temperaturePoint || !t.askSymbol || !t.askNum) {
            throw this.$message.error('请填写完整数据')
          }
          t.temperaturePoint = t.temperaturePoint + '℃'
          askNum.push(t.askSymbol + t.askNum + 'dB/Km')
          temperaturePointList2.push(t.temperaturePoint)
@@ -1143,6 +1144,7 @@
        askNum.forEach(a => {
          additionArr.push(temperaturePointList2.join(',') + a)
        })
        temperaturePointList2.unshift(20 + '℃')
        const tell = '温度范围:' + temperaturePointList2.join(',') + ';' + '保温时间:' + entrustTime + ';' + '循环次数:'
          + entrustNum + ';' + '光纤(' + opticalProjectArr.join(',') + ')' + '附加衰减绝对值:' + additionArr.join(';')
        this.productList.forEach(item => {
@@ -1151,6 +1153,8 @@
            item.tell = tell
          }
        })
        console.log('ask---', ask)
        console.log('tell---', tell)
        this.circulateShow = false
      },
      beforeCirculateShowClose () {