| | |
| | | </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> |
| | |
| | | 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; |