| | |
| | | >提 交</el-button |
| | | > |
| | | <el-button |
| | | icon="el-icon-download" |
| | | icon="el-icon-back" |
| | | @click=" |
| | | () => { |
| | | goBack(); |
| | |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | :disabled="detailId != null" |
| | | @blur="assertTest(scope.row)" |
| | | v-model="scope.row.required" |
| | | placeholder="请输入标准值" |
| | | ></el-input> |
| | |
| | | <el-table-column prop="internal" label="内控值" min-width="150"> |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | @blur="assertTest(scope.row)" |
| | | :disabled="detailId != null" |
| | | v-model="scope.row.internal" |
| | | placeholder="请输入内控值" |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | assertTest(row){ |
| | | if(!/^[^><=]/.test(row.required)){ |
| | | this.$message({ |
| | | message: "标准值["+row.required+"]格式首位应包含>,<或者=", |
| | | type: 'warning' |
| | | }); |
| | | return |
| | | } |
| | | if(!/^[^><=]/.test(row.internal)){ |
| | | this.$message({ |
| | | message: "内控值["+row.internal+"]格式首位应包含>,<或者=", |
| | | type: 'warning' |
| | | }); |
| | | return |
| | | } |
| | | }, |
| | | // 设备树过滤搜索 |
| | | filterNode(value, data) { |
| | | if (!value) return true; |
| | |
| | | this.detailId = res.data; |
| | | this.getDetailInfo(); |
| | | this.$message.success(res.message); |
| | | this.goBack(); |
| | | }, |
| | | |
| | | // 修改项目的检测值改变结论 |
| | |
| | | const res = await this.$axios.post( |
| | | this.$api.url.updateRawInspectsById + `${this.detailId}` |
| | | ).then(res=>{ |
| | | this.$parent.removeAllTab() |
| | | this.$message.success("提交成功"); |
| | | this.getDetailInfo(); |
| | | this.goBack() |
| | | }); |
| | | }, |
| | | // 获取设备树内容 |