| | |
| | | <el-select v-model="form.confirmUser" multiple :multiple-limit="5" placeholder="请选择检测人员" :disabled="isView"> |
| | | <el-option v-for="user in userList" :key="user.id" :label="user.name" :value="user.id"/> |
| | | </el-select> |
| | | <el-link v-if="operationType !== 'add'" type="primary" @click="viewWorkPermit">查看上岗证</el-link> |
| | | <el-link type="primary" @click="viewWorkPermit">查看上岗证</el-link> |
| | | </div> |
| | | <div v-if="item.key === 'equipment'" class="row-extra"> |
| | | <el-link type="primary" @click="viewDevice">查看设备</el-link> |
| | | <el-link v-if="operationType !== 'add'" type="primary" @click="viewCalibrationsFileDia">查看校准证书 |
| | | <el-link type="primary" @click="viewCalibrationsFileDia">查看校准证书 |
| | | </el-link> |
| | | </div> |
| | | </td> |
| | |
| | | this.openChild('deviceVisible', 'device', this.form) |
| | | }, |
| | | viewCalibrationsFileDia() { |
| | | this.openChild('calibrationVisible', 'calibration', this.form) |
| | | if (this.operationType === 'add' && !(this.form.machineAttachmentList || []).some(device => device.deviceId)) { |
| | | this.$message.warning('请先选择设备') |
| | | return |
| | | } |
| | | this.openChild('calibrationVisible', 'calibration', { |
| | | ...this.form, |
| | | useCurrentDevices: this.operationType === 'add' |
| | | }) |
| | | }, |
| | | viewTestRecord() { |
| | | this.openChild('recordVisible', 'record', this.info) |