终端入网检测问题修改
This commit is contained in:
@@ -177,7 +177,13 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item for="-" label="终端型号:" prop="terminalType">
|
<el-form-item for="-" label="终端型号:" prop="terminalType">
|
||||||
<el-select v-model="form.terminalType" filterable clearable style="width: 100%" placeholder="请选择终端型号">
|
<el-select
|
||||||
|
v-model="form.terminalType"
|
||||||
|
filterable
|
||||||
|
clearable
|
||||||
|
style="width: 100%"
|
||||||
|
placeholder="请选择终端型号"
|
||||||
|
>
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in terminalTypeList"
|
v-for="item in terminalTypeList"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@@ -464,7 +470,13 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-upload>
|
</el-upload>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item for="-" label="验收检验报告单:" class="uploadFile" prop="acceptanceInspectionReportSingle">
|
<el-form-item
|
||||||
|
v-if="false"
|
||||||
|
for="-"
|
||||||
|
label="验收检验报告单:"
|
||||||
|
class="uploadFile"
|
||||||
|
prop="acceptanceInspectionReportSingle"
|
||||||
|
>
|
||||||
<el-upload
|
<el-upload
|
||||||
v-model:file-list="form.acceptanceInspectionReportSingle"
|
v-model:file-list="form.acceptanceInspectionReportSingle"
|
||||||
ref="uploadRef"
|
ref="uploadRef"
|
||||||
@@ -790,7 +802,7 @@ const resetForm: any = async () => {
|
|||||||
userId: '',
|
userId: '',
|
||||||
customSubstaionFlag: '0', //电站类型
|
customSubstaionFlag: '0', //电站类型
|
||||||
acceptanceInspectionReport: [], //验收检验报告
|
acceptanceInspectionReport: [], //验收检验报告
|
||||||
acceptanceInspectionReportSingle: [], //验收检验报告单
|
// acceptanceInspectionReportSingle: [], //验收检验报告单
|
||||||
deviceFilePath: [], //终端台账信息
|
deviceFilePath: [], //终端台账信息
|
||||||
factoryInspectionReport: [], //出厂检验报告
|
factoryInspectionReport: [], //出厂检验报告
|
||||||
informationSecurityTestReport: [], //信息安全检测报告
|
informationSecurityTestReport: [], //信息安全检测报告
|
||||||
@@ -848,7 +860,7 @@ const devReportForm: any = ref({
|
|||||||
userName: '', //用户名称
|
userName: '', //用户名称
|
||||||
userId: '',
|
userId: '',
|
||||||
acceptanceInspectionReport: [], //验收检验报告
|
acceptanceInspectionReport: [], //验收检验报告
|
||||||
acceptanceInspectionReportSingle: [], //验收检验报告单
|
// acceptanceInspectionReportSingle: [], //验收检验报告单
|
||||||
deviceFilePath: [], //终端台账信息
|
deviceFilePath: [], //终端台账信息
|
||||||
factoryInspectionReport: [], //出厂检验报告
|
factoryInspectionReport: [], //出厂检验报告
|
||||||
informationSecurityTestReport: [], //信息安全检测报告
|
informationSecurityTestReport: [], //信息安全检测报告
|
||||||
@@ -1117,7 +1129,7 @@ const rules = ref({
|
|||||||
],
|
],
|
||||||
simCardNumber: [
|
simCardNumber: [
|
||||||
{
|
{
|
||||||
required: true,
|
required: false,
|
||||||
message: '请输入SIM卡号',
|
message: '请输入SIM卡号',
|
||||||
trigger: 'blur'
|
trigger: 'blur'
|
||||||
}
|
}
|
||||||
@@ -1286,7 +1298,7 @@ const removeFile = (file: any, uploadFiles: any) => {
|
|||||||
// 终端台账信息
|
// 终端台账信息
|
||||||
const deviceFilePath = ref('')
|
const deviceFilePath = ref('')
|
||||||
//验收检验报告单
|
//验收检验报告单
|
||||||
const acceptanceInspectionReportSingle = ref('')
|
// const acceptanceInspectionReportSingle = ref('')
|
||||||
//验收检验报告
|
//验收检验报告
|
||||||
const acceptanceInspectionReport = ref('')
|
const acceptanceInspectionReport = ref('')
|
||||||
//型式实验报告
|
//型式实验报告
|
||||||
@@ -1306,9 +1318,9 @@ const choose = (e: any) => {
|
|||||||
deviceFilePath.value = res.data.name
|
deviceFilePath.value = res.data.name
|
||||||
}
|
}
|
||||||
//验收检验报告单
|
//验收检验报告单
|
||||||
else if (uploadName.value == 'acceptanceInspectionReportSingle') {
|
// else if (uploadName.value == 'acceptanceInspectionReportSingle') {
|
||||||
acceptanceInspectionReportSingle.value = res.data.name
|
// acceptanceInspectionReportSingle.value = res.data.name
|
||||||
}
|
// }
|
||||||
//验收检验报告
|
//验收检验报告
|
||||||
else if (uploadName.value == 'acceptanceInspectionReport') {
|
else if (uploadName.value == 'acceptanceInspectionReport') {
|
||||||
acceptanceInspectionReport.value = res.data.name
|
acceptanceInspectionReport.value = res.data.name
|
||||||
@@ -1351,7 +1363,7 @@ const open = async (row: any) => {
|
|||||||
form.value = { customSubstaionFlag: '0', ...res.data, ...res.data.supervisionTempDeviceReport }
|
form.value = { customSubstaionFlag: '0', ...res.data, ...res.data.supervisionTempDeviceReport }
|
||||||
let list = [
|
let list = [
|
||||||
'deviceFilePath',
|
'deviceFilePath',
|
||||||
'acceptanceInspectionReportSingle',
|
// 'acceptanceInspectionReportSingle',
|
||||||
'acceptanceInspectionReport',
|
'acceptanceInspectionReport',
|
||||||
'typeExperimentReport',
|
'typeExperimentReport',
|
||||||
'factoryInspectionReport',
|
'factoryInspectionReport',
|
||||||
@@ -1370,7 +1382,7 @@ const open = async (row: any) => {
|
|||||||
}
|
}
|
||||||
form.value.id = row.row.id
|
form.value.id = row.row.id
|
||||||
deviceFilePath.value = res.data.deviceFilePath
|
deviceFilePath.value = res.data.deviceFilePath
|
||||||
acceptanceInspectionReportSingle.value = res.data.acceptanceInspectionReportSingle
|
// acceptanceInspectionReportSingle.value = res.data.acceptanceInspectionReportSingle
|
||||||
acceptanceInspectionReport.value = res.data.acceptanceInspectionReport
|
acceptanceInspectionReport.value = res.data.acceptanceInspectionReport
|
||||||
typeExperimentReport.value = res.data.typeExperimentReport
|
typeExperimentReport.value = res.data.typeExperimentReport
|
||||||
factoryInspectionReport.value = res.data.factoryInspectionReport
|
factoryInspectionReport.value = res.data.factoryInspectionReport
|
||||||
@@ -1403,7 +1415,7 @@ const confirmForm = () => {
|
|||||||
confirmFormData = {
|
confirmFormData = {
|
||||||
...confirmFormData,
|
...confirmFormData,
|
||||||
acceptanceInspectionReport: acceptanceInspectionReport.value, //验收检验报告
|
acceptanceInspectionReport: acceptanceInspectionReport.value, //验收检验报告
|
||||||
acceptanceInspectionReportSingle: acceptanceInspectionReportSingle.value, //验收检验报告单
|
// acceptanceInspectionReportSingle: acceptanceInspectionReportSingle.value, //验收检验报告单
|
||||||
deviceFilePath: deviceFilePath?.value, //终端台账信息
|
deviceFilePath: deviceFilePath?.value, //终端台账信息
|
||||||
factoryInspectionReport: factoryInspectionReport.value, //出厂检验报告
|
factoryInspectionReport: factoryInspectionReport.value, //出厂检验报告
|
||||||
informationSecurityTestReport: informationSecurityTestReport.value, //信息安全检测报告
|
informationSecurityTestReport: informationSecurityTestReport.value, //信息安全检测报告
|
||||||
@@ -1424,8 +1436,8 @@ const confirmForm = () => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
confirmFormData.reporter = adminInfo.$state.id
|
confirmFormData.reporter = adminInfo.$state.id
|
||||||
confirmFormData.orgId = adminInfo.$state.deptId
|
confirmFormData.orgId = adminInfo.$state.deptId
|
||||||
console.log(confirmFormData)
|
console.log(confirmFormData)
|
||||||
confirmFormData.supervisionTempDeviceReportParam.commissioningTime =
|
confirmFormData.supervisionTempDeviceReportParam.commissioningTime =
|
||||||
confirmFormData.supervisionTempDeviceReportParam.commissioningTime.replace('T', ' ')
|
confirmFormData.supervisionTempDeviceReportParam.commissioningTime.replace('T', ' ')
|
||||||
|
|||||||
Reference in New Issue
Block a user