| | |
| | | </table> |
| | | </fieldset> |
| | | <template #footer><span class="dialog-footer"> |
| | | <el-button @click="closeDia">取 消</el-button> |
| | | <el-button @click="closeDia">{{ operationType === 'view' ? '关闭' : '取 消' }}</el-button> |
| | | <el-button v-if="operationType !== 'view'" :loading="editLoad" type="primary" @click="handleEdit">提 交</el-button> |
| | | </span></template> |
| | | </el-dialog> |
| | | <ViewDeviceDialog v-if="viewDeviceDialog" ref="viewDeviceDialog" @closDeviceDia="closDeviceDia" @handleDeviceInfo="handleDeviceInfo"></ViewDeviceDialog> |
| | | <ViewTestRecord v-if="viewTestRecordDialog" ref="viewTestRecordDialog"></ViewTestRecord> |
| | | <ViewDeviceDialog v-if="viewDeviceDialog" ref="viewDeviceDialog" :read-only="operationType === 'view'" @closDeviceDia="closDeviceDia" @handleDeviceInfo="handleDeviceInfo"></ViewDeviceDialog> |
| | | <ViewTestRecord v-if="viewTestRecordDialog" ref="viewTestRecordDialog" :read-only="operationType === 'view'"></ViewTestRecord> |
| | | <ViewWorkPermitDia v-if="viewWorkPermitDia" ref="viewWorkPermitDia"></ViewWorkPermitDia> |
| | | <calibrations-file-dia v-if="calibrationsFileDia" ref="calibrationsFileDia"></calibrations-file-dia> |
| | | </div> |
| | |
| | | }, |
| | | // 提交 |
| | | handleEdit() { |
| | | if (this.operationType === 'view') return |
| | | this.editLoad = true |
| | | const processMethodSearchNews = this.HaveJson(this.form) |
| | | processMethodSearchNews.confirmUser = processMethodSearchNews.confirmUser && processMethodSearchNews.confirmUser.join(',') |
| | |
| | | }, |
| | | // 评审意见勾选(三选一,再点一次取消) |
| | | toggleReview (value, checked) { |
| | | if (this.operationType === 'view') return |
| | | this.form.reviewResult = checked ? value : '' |
| | | }, |
| | | // 审批意见勾选(三选一,再点一次取消) |
| | | toggleApproval (value, checked) { |
| | | if (this.operationType === 'view') return |
| | | this.form.approvalResult = checked ? value : '' |
| | | }, |
| | | // 查看上岗证 |
| | |
| | | }, |
| | | // 提交设备信息 |
| | | handleDeviceInfo (machineAttachmentList) { |
| | | if (this.operationType === 'view') return |
| | | this.viewDeviceDialog = false |
| | | this.form.machineAttachmentList = machineAttachmentList |
| | | }, |