From fcbba75febaa36d23c6c49473ab5bcee0e1a2c04 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 08 四月 2025 09:37:11 +0800
Subject: [PATCH] 检验项目新增是否委托要求字段
---
src/views/CNAS/resourceDemand/device/component/addYearPlanDia.vue | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/views/CNAS/resourceDemand/device/component/addYearPlanDia.vue b/src/views/CNAS/resourceDemand/device/component/addYearPlanDia.vue
index 16734fb..c26a8de 100644
--- a/src/views/CNAS/resourceDemand/device/component/addYearPlanDia.vue
+++ b/src/views/CNAS/resourceDemand/device/component/addYearPlanDia.vue
@@ -12,7 +12,9 @@
</el-date-picker>
</div>
<div style="margin: 10px 0">
- <el-table id="templateParamTable" ref="yearTable" :data="calibrationPlanDetailList" height="300px" border
+ <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">
<template slot-scope="scope">
@@ -114,7 +116,8 @@
planId: '',
calibrationPlanDetailList: [],
},
- operationType: ''
+ operationType: '',
+ yearTableLoading: false
}
},
mounted() {
@@ -128,21 +131,26 @@
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
})
},
// 娣诲姞璁惧
@@ -157,7 +165,12 @@
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
--
Gitblit v1.9.3