| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="150"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="primary" v-if="isIfReport(scope.row)" |
| | | <el-button size="mini" :disabled="!isIfReport(scope.row)" type="primary" v-if="scope.row.orderNum == '01'" |
| | | @click="addReported(scope.row.id)">上报</el-button> |
| | | <el-button size="mini" type="text" @click="openUpDia(scope.row)" |
| | | v-if="scope.row.orderNum=='02'">分配</el-button> |
| | |
| | | <el-row style="line-height: 50px;"> |
| | | <el-col :span="4" style="font-size: 14px;text-align: right;">人员:</el-col> |
| | | <el-col :span="16" :offset="1"> |
| | | <el-select v-model="upData.checker" size="medium" clearable style="width: 100%;"> |
| | | <el-select @change="selectChecker" v-model="upData.checker" size="medium" clearable style="width: 100%;"> |
| | | <el-option v-for="(a, ai) in users" :key="ai" :label="a.name" :value="a.id"></el-option> |
| | | </el-select> |
| | | </el-col> |
| | |
| | | </el-input> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="60"> |
| | | <el-table-column label="操作" width="80"> |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" type="text" |
| | | @click.native.prevent="deleteRow(scope.$index, upData.testValue)">删除</el-button> |
| | |
| | | row.children.forEach(a => { |
| | | if (a.testState != null && a.testState != undefined) count++ |
| | | }) |
| | | return row.testState == undefined && row.orderNum == '01' && count == row |
| | | return row.testState == undefined && count == row |
| | | .children.length |
| | | }, |
| | | openUpDia(row) { |
| | | // console.log(row); |
| | | this.upDia = true |
| | | this.upData = { |
| | | id: row.code, |
| | | checker: null, |
| | | device: null |
| | | } |
| | | this.upData.checker=row.uId |
| | | this.upData.device=row.isuId |
| | | }, |
| | | submitUpData() { |
| | | // console.log(this.upData.device); |
| | | // console.log(this.devices); |
| | | // return; |
| | | if (this.upData.checker == null || this.upData.checker == '') { |
| | | this.$message.error('人员未分配') |
| | | return |
| | |
| | | this.selectDataList() |
| | | }) |
| | | }, |
| | | selectChecker(){ |
| | | // console.log(this.upData.checker); |
| | | }, |
| | | openUpInsDia(row) { |
| | | this.upInsDia = true |
| | | this.upData = this.HaveJson(row) |