| | |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <i class="el-icon-s-operation" style="color:#42b983;margin: -20px 10px 20px 0" />设备点检点检信息 |
| | | <i class="el-icon-s-operation" style="color:#42b983;margin: -20px 10px 20px 0" />设备关联点检项信息: |
| | | </div> |
| | | <div style="margin-bottom:10px"> |
| | | <el-button type="primary" icon="el-icon-circle-plus-outline" @click="addRow">新增</el-button> |
| | | </div> |
| | | <div class="elTableDiv"> |
| | | <el-table |
| | | ref="tableDataDialogRef" |
| | | :data="tableDataDialog" |
| | | :height="(tableHeight-300)+'px'" |
| | | border |
| | |
| | | </el-table-column> |
| | | |
| | | <el-table-column |
| | | prop="chkdesc" |
| | | prop="checkitem_descr" |
| | | label="点检要求" |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <div v-if="row.isVisible===0">{{ row.chkdesc }}</div> |
| | | <el-input v-else v-model="row.chkdesc" /> |
| | | <div v-if="row.isVisible===0">{{ row.checkitem_descr }}</div> |
| | | <el-input v-else v-model="row.checkitem_descr" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | this.getDeviceCheckItemSelect() |
| | | this.$nextTick(() => { |
| | | this.$refs.tableDataDialogRef.doLayout() |
| | | }) |
| | | }, |
| | | // 修改按钮 |
| | | edit(operation, row) { |
| | | this.operation = operation |
| | | this.dialogVisible = true |
| | | this.getDeviceCheckItemSelect() |
| | | |
| | | this.$nextTick(() => { |
| | | this.$refs.tableDataDialogRef.doLayout() |
| | | }) |
| | | this.$nextTick(() => { |
| | | this.dialogForm.OrgCode = row.org_code |
| | | this.dialogForm.OrgName = row.org_name |
| | |
| | | }, |
| | | |
| | | selectChange(val, row) { |
| | | row.chkdesc = this.checkItemSelectArr.find(item => { |
| | | row.checkitem_descr = this.checkItemSelectArr.find(item => { |
| | | return item.code === val || item.name === val |
| | | }).description |
| | | |
| | |
| | | this.tableDataDialog.push({ |
| | | checkitem_code: '', |
| | | checkitem_name: '', |
| | | chkdesc: '', |
| | | checkitem_descr: '', |
| | | isscan: 'Y', |
| | | cycle: 'D', |
| | | isVisible: 1 |
| | |
| | | this.tableDataDialog.splice(index, 1, { |
| | | checkitem_code: row.checkitem_code, |
| | | checkitem_name: row.checkitem_name, |
| | | chkdesc: row.chkdesc, |
| | | checkitem_descr: row.checkitem_descr, |
| | | isscan: row.isscan, |
| | | cycle: row.cycle, |
| | | isVisible: 1 |