| | |
| | | </div> |
| | | <div style="margin: 10px 0"> |
| | | <el-table id="templateParamTable" ref="yearTable" :data="calibrationPlanDetailList" height="300px" |
| | | v-loading="yearTableLoading" |
| | | :header-cell-style="{ background: '#f8f8f9', color: '#515a6e' }" border |
| | | row-key="deviceId" style="width: 100% ;"> |
| | | <el-table-column label="设备名称及型号" min-width="190" prop="deviceName"> |
| | |
| | | planId: '', |
| | | calibrationPlanDetailList: [], |
| | | }, |
| | | operationType: '' |
| | | operationType: '', |
| | | yearTableLoading: false |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.form = { |
| | | planName: '', |
| | | planYear: '', |
| | | examinePlanDetailsList: [], |
| | | calibrationPlanDetailList: [], |
| | | } |
| | | this.calibrationPlanDetailList = [] |
| | | } else { |
| | | this.getRowInfo(row) |
| | | } |
| | | this.applicationForm = true |
| | | }, |
| | | getRowInfo(row) { |
| | | this.yearTableLoading = true |
| | | getDeviceCalibrationPlan({ planId: row.planId }).then(res => { |
| | | this.yearTableLoading = false |
| | | if (res.code == 200) { |
| | | this.calibrationPlanDetailList = res.data.calibrationPlanDetailList |
| | | this.form.planName = res.data.planName |
| | | this.form.planYear = res.data.planYear |
| | | this.form.planId = res.data.planId |
| | | } |
| | | }).catch(err => { |
| | | this.yearTableLoading = false |
| | | }) |
| | | }, |
| | | // 添加设备 |
| | |
| | | this.selectionRows.map(val => { |
| | | this.calibrationPlanDetailList.push({ |
| | | deviceId: val.id, deviceName: val.label, deviceNumber: val.value, |
| | | specificationModel: val.specificationModel, verificationCycles: val.calibrationDate, lastDate: val.lastCalibrationDate.substring(0, 10), planDate: val.nextCalibrationDate.substring(0, 10) |
| | | specificationModel: val.specificationModel, |
| | | verificationCycles: val.calibrationDate, |
| | | lastDate: val.lastCalibrationDate.substring(0, 10), |
| | | planDate: val.nextCalibrationDate.substring(0, 10), |
| | | verificationUnit: val.calibrationServices, |
| | | deviceAmount: 1 |
| | | }) |
| | | }) |
| | | this.addEquipDia = false |