gaoluyang
2024-07-05 c2f170fd910139cfc16704fe26bd4e0fab7e5e42
温度循环表格优化
已修改1个文件
21 ■■■■■ 文件已修改
src/components/do/b1-ins-order/add.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-ins-order/add.vue
@@ -834,6 +834,7 @@
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <el-button @click="cleanSpliceData">取消</el-button>
        <el-button type="primary" @click="spliceData">保存</el-button>
      </span>
    </el-dialog>
@@ -1170,17 +1171,33 @@
        console.log('tell---', tell)
        this.circulateShow = false
      },
      cleanSpliceData () {
        this.circulateForm.entrustNum = null
        this.circulateForm.entrustTime = null
        this.circulateForm.entrustPoint = null
        this.opticalProjectList = []
        this.$refs.multipleTable.clearSelection()
        this.temperatureData = []
        this.circulateShow = false
      },
      beforeCirculateShowClose () {
        if (!this.circulateForm.entrustNum || !this.circulateForm.entrustTime || !this.circulateForm.entrustPoint || this.opticalProjectList.length === 0 || this.temperatureData.length === 0) {
          this.$message.error('请填写完整数据')
          return
        }
        let temperaturePoint1 = JSON.parse(JSON.stringify(this.temperatureData))
        temperaturePoint1.forEach(t => {
          // 拼接要求值ask
          const opticalProjectList = JSON.parse(JSON.stringify(this.opticalProjectList))
          opticalProjectList.forEach(o => {
            o.temperatureData.forEach(t => {
          if (!t.temperaturePoint || !t.askSymbol || !t.askNum) {
            throw this.$message.error('请填写完整数据')
          }
        })
            if (!o.temperatureData.some(item => item.temperaturePoint == '20')) {
              throw this.$message.error(`${o.value + '波长没有配置20℃温度点'}`)
            }
          })
          this.spliceData()
      },
      handleSelectionChange(val) {
        this.opticalProjectList = val;