modified: src/views/quality/finishedProductInspection/finishedProduct-form.vue
modified: src/views/quality/processInspect/processInspect-form.vue
| | |
| | | <span v-if="resultVal!=null && processInspectVo.id!=null" v-text="scope.row.ename"></span> |
| | | <div v-else> |
| | | <el-select style="width:100%" v-model="scope.row.eId" |
| | | v-if="scope.row.iname != null" filterable @change="updateDevice(scope.row)"> |
| | | v-if="scope.row.iname != null" filterable @change="updateDevice(scope.row,scope.$index)"> |
| | | <el-option v-for="(item,index) in deviceList" |
| | | :key="index" :value="item.id" :label="item.number +'-'+ item.name"></el-option> |
| | | </el-select> |
| | |
| | | this.deviceList = res.data.data |
| | | }) |
| | | }, |
| | | updateDevice(row){ |
| | | updateDevice(row,index){ |
| | | updateDeviceById({equiomentId: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 = [] |
| | | } |
| | | }) |
| | | }).catch(error=>{ |
| | | console.log(error) |
| | | }) |
| | |
| | | <span v-if="resultVal != null && scope.row.iname != null" v-text="scope.row.ename"></span> |
| | | <div v-else> |
| | | <el-select style="width:100%" v-model="scope.row.eId" |
| | | v-if="scope.row.iname != null" filterable @change="updateDevice(scope.row)"> |
| | | v-if="scope.row.iname != null" filterable @change="updateDevice(scope.row,scope.$index)"> |
| | | <el-option v-for="(item,index) in deviceList" |
| | | :key="index" :value="item.id" :label="item.number +'-'+ item.name"></el-option> |
| | | </el-select> |
| | |
| | | this.deviceList = res.data.data |
| | | }) |
| | | }, |
| | | updateDevice(row){ |
| | | updateDevice(row,index){ |
| | | updateDeviceBypppId({equiomentId:row.eId,ppid: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 = [] |
| | | } |
| | | }) |
| | | }).catch(error=>{ |
| | | console.log(error) |
| | | }) |
| | |
| | | }).catch(error=>{ |
| | | console.log(error) |
| | | }) |
| | | this.$router.go(-1) |
| | | }, |
| | | selectInfoByOrderId() { |
| | | chooseMater({ |