| | |
| | | <h2 v-else>编辑-产品检验单</h2> |
| | | </div> |
| | | <div class="btn-group header-right"> |
| | | <el-button @click="addTestProject" type="primary" v-if="processInspectVo.id==null">生成检验项目</el-button> |
| | | <el-button @click="addTestProject" v-if="processInspectVo.id==null">生成检验项目</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="page-main"> |
| | |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="inspectionValue" :key="index" |
| | | <el-table-column prop="inspectionValue" :key="index" |
| | | label="检验描述" width="240" style="text-align: center;"> |
| | | <template slot-scope="scope"> |
| | | <el-col v-if="scope.row.itype === '1'"> |
| | |
| | | this.init() |
| | | }, |
| | | methods: { |
| | | |
| | | |
| | | submitSave(){ |
| | | let pro = 0 |
| | | this.inspectionItems.forEach(item => { |
| | |
| | | }) |
| | | }, |
| | | updateDevice(row,index){ |
| | | updateDeviceById({deviceId:row.eId,fpid:row.iId}).then(res=>{ |
| | | let rowId=JSON.stringify(row.iid) |
| | | console.log(row); |
| | | updateDeviceById({deviceId:row.eId,fpid:row.iid}).then(res=>{ |
| | | this.inspectionItems.forEach(obj=>{ |
| | | if(obj.children){ |
| | | obj.children[index-1].inspectionValue = '' |
| | | obj.children[index-1].iresult = null |
| | | obj.children[index-1].empiricalValueAddss = [] |
| | | obj.children[index-1].inote='' |
| | | obj.children.forEach(c=>{ |
| | | if(c.iid==rowId){ |
| | | c.inspectionValue = null |
| | | c.iresult = null |
| | | c.empiricalValueAddss = [] |
| | | c.inote='' |
| | | } |
| | | }) |
| | | |
| | | } |
| | | // if(obj.children){ |
| | | // obj.children[index-1].inspectionValue = '' |
| | | // obj.children[index-1].iresult = null |
| | | // obj.children[index-1].empiricalValueAddss = [] |
| | | // obj.children[index-1].inote='' |
| | | |
| | | // } |
| | | }) |
| | | }).catch(error=>{ |
| | | console.log(error) |