终端入网检测问题修改
This commit is contained in:
@@ -177,7 +177,13 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<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
|
||||
v-for="item in terminalTypeList"
|
||||
:key="item.id"
|
||||
@@ -464,7 +470,13 @@
|
||||
</template>
|
||||
</el-upload>
|
||||
</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
|
||||
v-model:file-list="form.acceptanceInspectionReportSingle"
|
||||
ref="uploadRef"
|
||||
@@ -790,7 +802,7 @@ const resetForm: any = async () => {
|
||||
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', ' ')
|
||||
|
||||
Reference in New Issue
Block a user