| | |
| | | console.log('必填项检查:', project.proDefault); |
| | | |
| | | if (!proResult || proResult.trim() === '') { |
| | | this.radio = this.lastClickedTab.name; |
| | | this.$modal.msgError("请检查项目是否填写完成"); |
| | | this.minedis = true; |
| | | return; |
| | | } |
| | | |
| | | if (proResult.includes(' ')) { |
| | | } else if (proResult.includes(' ')) { |
| | | this.$modal.msgError("请检查项目是否有空格"); |
| | | this.radio = this.lastClickedTab.name; |
| | | this.minedis = true; |
| | | return; |
| | | } else { |
| | | this.minedis = false; |
| | | this.tjOrderDetail.push({ |
| | | proAdvice: item.proAdvice, |
| | | proName: project.proName, |
| | | proId: project.proId, |
| | | orderDetailId: item.orderDetailId, |
| | | flowingWaterId: item.flowingWaterId, |
| | | proResult: proResult, |
| | | tjStatus: 1, |
| | | isReturn: item.isReturn ? 1 : 0, |
| | | exceptionDesc: item.exceptionDesc ? 1 : 0, |
| | | conclusion: item.conclusion, |
| | | rulesList: item.rulesList |
| | | }); |
| | | } |
| | | } |
| | | |
| | |
| | | // } |
| | | for (const item of this.proParentList.sons) { |
| | | const { project, proResult } = item; |
| | | |
| | | console.log(project.proDefault) |
| | | // 必填项验证 |
| | | if (project.proDefault) { |
| | | console.log('必填项检查:', project.proDefault); |
| | |
| | | this.$modal.msgError("请检查项目是否填写完成"); |
| | | this.minedis = true; |
| | | return; |
| | | } |
| | | |
| | | if (proResult.includes(' ')) { |
| | | } else if (proResult.includes(' ')) { |
| | | this.$modal.msgError("请检查项目是否有空格"); |
| | | this.minedis = true; |
| | | return; |
| | | } else { |
| | | this.minedis = false; |
| | | this.tjOrderDetail.push({ |
| | | proAdvice: item.proAdvice, |
| | | proName: project.proName, |
| | | proId: project.proId, |
| | | orderDetailId: item.orderDetailId, |
| | | flowingWaterId: item.flowingWaterId, |
| | | proResult: proResult, |
| | | tjStatus: 1, |
| | | isReturn: item.isReturn ? 1 : 0, |
| | | exceptionDesc: item.exceptionDesc ? 1 : 0, |
| | | conclusion: item.conclusion, |
| | | rulesList: item.rulesList |
| | | }); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | // 非必填项数据处理 |