| | |
| | | <div class="inspectionProject"> |
| | | <el-row> |
| | | <el-col :span="12" class="inspectionProject_span">检验项目</el-col> |
| | | <el-col :span="12" class="inspectionProject_span"> |
| | | <el-col v-if="!isUpBtn" :span="12" class="inspectionProject_span"> |
| | | <el-button size="mini" @click="clickDeleteInspectionColumn()">删除检验值列</el-button> |
| | | <el-button style="margin-right: 30px;" size="mini" |
| | | @click="clickAddInspectionColumn()">添加检验值列</el-button> |
| | |
| | | > --> |
| | | </el-col> |
| | | </el-row> |
| | | <el-table :data="inspectionItems" max-height="420" :span-method="handleSpanMethod" height="calc(100vh - 550px)" |
| | | <el-table border :data="inspectionItems" max-height="420" :span-method="handleSpanMethod" height="calc(100vh - 550px)" |
| | | style="width: 100%"> |
| | | <el-table-column type="index" label="序号" width="60"></el-table-column> |
| | | <el-table-column label="项目" prop="father"></el-table-column> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="operation" label="上报"> |
| | | <el-button type="primary" @click="escalation" size="small">上报</el-button> |
| | | <template slot-scope="scope"> |
| | | <el-button v-if="scope.row.conclusion === null || scope.row.conclusion === undefined" type="primary" @click="escalation" size="small">上报</el-button> |
| | | <el-button v-else type="success" size="small">已上报</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | |
| | | props: ['rowInfo'], |
| | | data() { |
| | | return { |
| | | isUpBtn: false, |
| | | showUp: false, |
| | | isAddProject: false, |
| | | detailId: 0, |
| | |
| | | } |
| | | }, |
| | | created() { |
| | | if(this.rowInfo.result!=null&&this.rowInfo.result!=''){ |
| | | this.isUpBtn=true |
| | | } |
| | | this.processInspectVo.orderNumber = this.rowInfo.order_number |
| | | this.processInspectVo.material = this.rowInfo.material |
| | | this.processInspectVo.materialCode = this.rowInfo.material_code |
| | |
| | | this.$axios.post(this.$api.url.processInspectUpdateProcessInspectsById, { |
| | | id: this.detailId |
| | | }).then(res => { |
| | | console.log(res); |
| | | if (res.code == 200) { |
| | | if(res.message==='项目未检验完!'){ |
| | | this.$message({ |
| | | message: res.message, |
| | | type: 'warning' |
| | | }); |
| | | return |
| | | } |
| | | this.$message({ |
| | | message: '上报成功', |
| | | type: 'success' |
| | | }); |
| | | this.$parent.combackMain(true) |
| | | } else { |
| | | this.$message({ |
| | | message: res.message, |
| | | type: 'warning' |
| | | }); |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | handleClick() { }, |