| | |
| | | params: query, |
| | | }); |
| | | } |
| | | |
| | | // 检验提交 |
| | | export function updateInspection(data) { |
| | | return request({ |
| | | url: '/inspectionPurchased/updateInspection', |
| | | method: 'post', |
| | | data: data, |
| | | headers: { |
| | | 'Content-Type': 'multipart/form-data' |
| | | } |
| | | }) |
| | | } |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | <el-form-item label="检测结果" prop="result" v-if="title == '检验'"> |
| | | <el-select v-model="value" placeholder="请选择"> |
| | | <el-select v-model="addForm.result" placeholder="请选择"> |
| | | <el-option label="合格" value="合格"> |
| | | </el-option> |
| | | <el-option label="不合格" value="不合格"> |
| | | </el-option> |
| | | <el-option label="不判断" value="不判断"> |
| | | <el-option label="不判断" value="不判断"> |
| | | </el-option> |
| | | </el-select> |
| | | <!-- <el-switch v-model="addForm.result" active-text="合格" inactive-text="不合格" active-value="合格" |
| | |
| | | |
| | | <script> |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | | import { selectInspection, addOrUpdateInspection, delInspection } from '@/api/business/outsourcedParts.js' |
| | | import { selectInspection, addOrUpdateInspection, delInspection, updateInspection } from '@/api/business/outsourcedParts.js' |
| | | export default { |
| | | components: { limsTable }, |
| | | data() { |
| | | return { |
| | | queryParams: {}, |
| | | tableData: [], |
| | | value: '', |
| | | column: [ |
| | | { label: "委托编号", prop: "entrustmentNo" }, |
| | | { label: "产品", prop: "name" }, |
| | |
| | | inspectionItems: [ |
| | | { required: true, message: "请输入外观", trigger: "blur" }, |
| | | ], |
| | | result: [ |
| | | { required: true, message: "请选择检测结果", trigger: "change" }, |
| | | ], |
| | | }, |
| | | uploading: false, |
| | | inspectionTaskState: [] |
| | |
| | | } |
| | | fd.append("inspectionItems", this.addForm.inspectionItems); |
| | | fd.append("result", this.addForm.result); |
| | | fd.append("id", this.addForm.id); // 添加id参数 |
| | | updateInspection(fd) |
| | | .then(res => { |
| | | this.uploading = false; |
| | | if (res.code === 200) { |
| | | this.$message.success("检验提交成功"); |
| | | this.refresh(); |
| | | this.addDia = false; |
| | | } |
| | | }) |
| | | .catch(err => { |
| | | this.uploading = false; |
| | | }); |
| | | } |
| | | } else { |
| | | return false; |