From c35eedb47bae5a7a49423e3026cb96c78a3f3d22 Mon Sep 17 00:00:00 2001
From: zhujiyan <17812234322@163.com>
Date: Thu, 6 Jun 2024 17:59:55 +0800
Subject: [PATCH] =?UTF-8?q?=E7=BB=88=E7=AB=AF=E5=85=A5=E7=BD=91=E6=A3=80?=
=?UTF-8?q?=E6=B5=8B=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/terminainal/addForm.vue | 40 ++++++++++++-------
1 file changed, 26 insertions(+), 14 deletions(-)
diff --git a/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/addForm.vue b/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/addForm.vue
index 4707e31d..1a9a239b 100644
--- a/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/addForm.vue
+++ b/src/views/pqs/supervise/terminalNetworkDetection/components/terminainal/addForm.vue
@@ -177,7 +177,13 @@
-
+
-
+
{
userId: '',
customSubstaionFlag: '0', //电站类型
acceptanceInspectionReport: [], //验收检验报告
- acceptanceInspectionReportSingle: [], //验收检验报告单
+ // acceptanceInspectionReportSingle: [], //验收检验报告单
deviceFilePath: [], //终端台账信息
factoryInspectionReport: [], //出厂检验报告
informationSecurityTestReport: [], //信息安全检测报告
@@ -848,7 +860,7 @@ const devReportForm: any = ref({
userName: '', //用户名称
userId: '',
acceptanceInspectionReport: [], //验收检验报告
- acceptanceInspectionReportSingle: [], //验收检验报告单
+ // acceptanceInspectionReportSingle: [], //验收检验报告单
deviceFilePath: [], //终端台账信息
factoryInspectionReport: [], //出厂检验报告
informationSecurityTestReport: [], //信息安全检测报告
@@ -1117,7 +1129,7 @@ const rules = ref({
],
simCardNumber: [
{
- required: true,
+ required: false,
message: '请输入SIM卡号',
trigger: 'blur'
}
@@ -1286,7 +1298,7 @@ const removeFile = (file: any, uploadFiles: any) => {
// 终端台账信息
const deviceFilePath = ref('')
//验收检验报告单
-const acceptanceInspectionReportSingle = ref('')
+// const acceptanceInspectionReportSingle = ref('')
//验收检验报告
const acceptanceInspectionReport = ref('')
//型式实验报告
@@ -1306,9 +1318,9 @@ const choose = (e: any) => {
deviceFilePath.value = res.data.name
}
//验收检验报告单
- else if (uploadName.value == 'acceptanceInspectionReportSingle') {
- acceptanceInspectionReportSingle.value = res.data.name
- }
+ // else if (uploadName.value == 'acceptanceInspectionReportSingle') {
+ // acceptanceInspectionReportSingle.value = res.data.name
+ // }
//验收检验报告
else if (uploadName.value == 'acceptanceInspectionReport') {
acceptanceInspectionReport.value = res.data.name
@@ -1351,7 +1363,7 @@ const open = async (row: any) => {
form.value = { customSubstaionFlag: '0', ...res.data, ...res.data.supervisionTempDeviceReport }
let list = [
'deviceFilePath',
- 'acceptanceInspectionReportSingle',
+ // 'acceptanceInspectionReportSingle',
'acceptanceInspectionReport',
'typeExperimentReport',
'factoryInspectionReport',
@@ -1370,7 +1382,7 @@ const open = async (row: any) => {
}
form.value.id = row.row.id
deviceFilePath.value = res.data.deviceFilePath
- acceptanceInspectionReportSingle.value = res.data.acceptanceInspectionReportSingle
+ // acceptanceInspectionReportSingle.value = res.data.acceptanceInspectionReportSingle
acceptanceInspectionReport.value = res.data.acceptanceInspectionReport
typeExperimentReport.value = res.data.typeExperimentReport
factoryInspectionReport.value = res.data.factoryInspectionReport
@@ -1403,7 +1415,7 @@ const confirmForm = () => {
confirmFormData = {
...confirmFormData,
acceptanceInspectionReport: acceptanceInspectionReport.value, //验收检验报告
- acceptanceInspectionReportSingle: acceptanceInspectionReportSingle.value, //验收检验报告单
+ // acceptanceInspectionReportSingle: acceptanceInspectionReportSingle.value, //验收检验报告单
deviceFilePath: deviceFilePath?.value, //终端台账信息
factoryInspectionReport: factoryInspectionReport.value, //出厂检验报告
informationSecurityTestReport: informationSecurityTestReport.value, //信息安全检测报告
@@ -1424,8 +1436,8 @@ const confirmForm = () => {
}
})
} else {
- confirmFormData.reporter = adminInfo.$state.id
- confirmFormData.orgId = adminInfo.$state.deptId
+ confirmFormData.reporter = adminInfo.$state.id
+ confirmFormData.orgId = adminInfo.$state.deptId
console.log(confirmFormData)
confirmFormData.supervisionTempDeviceReportParam.commissioningTime =
confirmFormData.supervisionTempDeviceReportParam.commissioningTime.replace('T', ' ')