| | |
| | | <el-button @click="jianqians = false">取 消</el-button> |
| | | </span> |
| | | </el-dialog> |
| | | <el-dialog title="新增异常结果" :visible.sync="addNewDialogVisible" width="900px" :before-close="handleAddNewClose" |
| | | class="custom-dialog"> |
| | | <el-dialog title="新增异常结果" :visible.sync="addNewDialogVisible" width="900px" class="custom-dialog"> |
| | | <el-form :model="newItem" ref="newItemForm" label-width="100px" class="custom-form"> |
| | | <el-form-item label="项目分类" prop="parentName"> |
| | | <el-select v-model="newItem.parentName" placeholder="请选择项目分类" clearable filterable |
| | |
| | | <el-form :inline="true"> |
| | | <el-form-item label="建议名称"> |
| | | <el-input v-model="queryParams1.zyzd" placeholder="请输入建议名称进行筛选" clearable style="width: 200px" |
| | | @input="filterAdvices(true)" onkeydown="if(event.keyCode === 32) return false;" /> |
| | | @input="filterAdvices(true)" onkeydown="if(event.keyCode === 32 || event.keyCode === 13) return false;" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | |
| | | handleAdviceBlur(row, index) { |
| | | // 构造 advices 数据 |
| | | let advicesToSubmit = []; |
| | |
| | | if (value) { |
| | | this.newItem.jcxm = value; // 将选择的项目分类赋值给检测项目 |
| | | } |
| | | }, |
| | | |
| | | handleAddNewClose(done) { |
| | | // this.$confirm('确定关闭新增窗口吗?未保存的数据将丢失。') |
| | | // .then(() => done()) |
| | | // .catch(() => { }); |
| | | }, |
| | | |
| | | // 添加新的建议组 |
| | |
| | | loading.close(); |
| | | }, 3000); |
| | | this.$message({ |
| | | message: "报告正在生成,请两分钟后预览!", |
| | | message: "请撤回重新生成报告", |
| | | type: "error" |
| | | }); |
| | | } else { |
| | |
| | | if (this.textarea1 == null) { |
| | | this.textarea1 = ""; |
| | | } |
| | | console.log(data) |
| | | data.forEach((item) => { |
| | | this.textarea1 += item.advice; |
| | | if(item.advice){ |
| | | this.textarea1 += item.advice; |
| | | }else{ |
| | | this.textarea1 += item.jynr; |
| | | } |
| | | |
| | | }); |
| | | }, |
| | | proposalChange() { |