|
|
@ -1,12 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<transition name="el-zoom-in-center">
|
|
|
|
<transition name="el-zoom-in-center">
|
|
|
|
<div class="JNPF-preview-main">
|
|
|
|
<div class="JNPF-preview-main">
|
|
|
|
<div class="JNPF-common-page-header">
|
|
|
|
<div class="JNPF-common-page-header">
|
|
|
|
<el-page-header @back="goBack"
|
|
|
|
<el-page-header @back="goBack" :content="!dataForm.id ? '新建' : '编辑'" />
|
|
|
|
:content="!dataForm.id ? '新建':'编辑'"/>
|
|
|
|
|
|
|
|
<div class="options">
|
|
|
|
<div class="options">
|
|
|
|
<el-dropdown class="dropdown" placement="bottom">
|
|
|
|
<el-dropdown class="dropdown" placement="bottom">
|
|
|
|
<el-button style="width:70px">
|
|
|
|
<el-button style="width:70px">
|
|
|
@ -26,141 +22,188 @@
|
|
|
|
{{ !dataForm.id ? '确定并新增' : '确定并继续' }}</el-dropdown-item>
|
|
|
|
{{ !dataForm.id ? '确定并新增' : '确定并继续' }}</el-dropdown-item>
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</el-dropdown-menu>
|
|
|
|
</el-dropdown>
|
|
|
|
</el-dropdown>
|
|
|
|
<el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading" :disabled='continueBtnLoading'> 保 存</el-button>
|
|
|
|
<el-button type="primary" @click="dataFormSubmit()" :loading="btnLoading"
|
|
|
|
|
|
|
|
:disabled='continueBtnLoading'> 保
|
|
|
|
|
|
|
|
存</el-button>
|
|
|
|
<el-button @click="goBack"> 取 消</el-button>
|
|
|
|
<el-button @click="goBack"> 取 消</el-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<el-row :gutter="15" class=" main" :style="{ margin: '0 auto', width: '100%' }">
|
|
|
|
<el-row :gutter="15" class=" main" :style="{ margin: '0 auto', width: '100%' }">
|
|
|
|
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px" label-position="right" >
|
|
|
|
<el-form ref="formRef" :model="dataForm" :rules="dataRule" size="small" label-width="100px"
|
|
|
|
|
|
|
|
label-position="right">
|
|
|
|
<template v-if="!loading">
|
|
|
|
<template v-if="!loading">
|
|
|
|
<!-- 具体表单 -->
|
|
|
|
<!-- 具体表单 -->
|
|
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
|
|
<div style="padding:15px 0px">
|
|
|
|
|
|
|
|
<span style="color: #409EFF;">▋</span>
|
|
|
|
|
|
|
|
<span style="font-size: 14px;font-weight: 500;color:rgb(102, 102, 102);">基础信息</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="设备编码" prop="equipmentCoding">
|
|
|
|
label="设备编码" prop="equipmentCoding" >
|
|
|
|
<JnpfInput v-model="dataForm.equipmentCoding"
|
|
|
|
<JnpfInput v-model="dataForm.equipmentCoding" @change="changeData('equipmentCoding',-1)"
|
|
|
|
@change="changeData('equipmentCoding', -1)" placeholder="请输入" clearable
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="设备名称" prop="deviceName">
|
|
|
|
label="设备名称" prop="deviceName" >
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.deviceName" @change="changeData('deviceName', -1)"
|
|
|
|
<JnpfInput v-model="dataForm.deviceName" @change="changeData('deviceName', -1)"
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="设备类型" prop="equipmentType">
|
|
|
|
label="设备类型" prop="equipmentType" >
|
|
|
|
|
|
|
|
<JnpfSelect v-model="dataForm.equipmentType" @change="changeData('equipmentType', -1)"
|
|
|
|
<JnpfSelect v-model="dataForm.equipmentType" @change="changeData('equipmentType', -1)"
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' :options="equipmentTypeOptions" :props="equipmentTypeProps" >
|
|
|
|
placeholder="请选择" clearable :style='{ "width": "100%" }'
|
|
|
|
|
|
|
|
:options="equipmentTypeOptions" :props="equipmentTypeProps">
|
|
|
|
</JnpfSelect>
|
|
|
|
</JnpfSelect>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="设备品牌" prop="equipmentBrand">
|
|
|
|
label="设备品牌" prop="equipmentBrand" >
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.equipmentBrand" @change="changeData('equipmentBrand', -1)"
|
|
|
|
<JnpfInput v-model="dataForm.equipmentBrand" @change="changeData('equipmentBrand', -1)"
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="供应商" prop="supplier">
|
|
|
|
label="供应商" prop="supplier" >
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.supplier" @change="changeData('supplier', -1)"
|
|
|
|
<JnpfInput v-model="dataForm.supplier" @change="changeData('supplier', -1)"
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="供应商联系电话" prop="supplierPhone">
|
|
|
|
label="供应商联系电话" prop="supplierPhone" >
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.supplierPhone" @change="changeData('supplierPhone', -1)"
|
|
|
|
<JnpfInput v-model="dataForm.supplierPhone" @change="changeData('supplierPhone', -1)"
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="设备保修期" prop="equipmentWarranty">
|
|
|
|
label="设备保修期" prop="equipmentWarranty" >
|
|
|
|
<JnpfInput v-model="dataForm.equipmentWarranty"
|
|
|
|
<JnpfInput v-model="dataForm.equipmentWarranty" @change="changeData('equipmentWarranty',-1)"
|
|
|
|
@change="changeData('equipmentWarranty', -1)" placeholder="请输入" clearable
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="保修开始时间" prop="warrantyStartTime">
|
|
|
|
label="保修开始时间" prop="warrantyStartTime" >
|
|
|
|
<JnpfDatePicker v-model="dataForm.warrantyStartTime"
|
|
|
|
<JnpfDatePicker v-model="dataForm.warrantyStartTime" @change="changeData('warrantyStartTime',-1)"
|
|
|
|
@change="changeData('warrantyStartTime', -1)"
|
|
|
|
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd" >
|
|
|
|
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')"
|
|
|
|
|
|
|
|
placeholder="请选择" clearable :style='{ "width": "100%" }' type="date"
|
|
|
|
|
|
|
|
format="yyyy-MM-dd">
|
|
|
|
</JnpfDatePicker>
|
|
|
|
</JnpfDatePicker>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="保修结束时间" prop="warrantyEndTime">
|
|
|
|
label="保修结束时间" prop="warrantyEndTime" >
|
|
|
|
<JnpfDatePicker v-model="dataForm.warrantyEndTime"
|
|
|
|
<JnpfDatePicker v-model="dataForm.warrantyEndTime" @change="changeData('warrantyEndTime',-1)"
|
|
|
|
@change="changeData('warrantyEndTime', -1)"
|
|
|
|
:startTime="dateTime(false,1,1,'','')" :endTime="dateTime(false,1,1,'','')" placeholder="请选择" clearable :style='{"width":"100%"}' type="date" format="yyyy-MM-dd" >
|
|
|
|
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')"
|
|
|
|
|
|
|
|
placeholder="请选择" clearable :style='{ "width": "100%" }' type="date"
|
|
|
|
|
|
|
|
format="yyyy-MM-dd">
|
|
|
|
</JnpfDatePicker>
|
|
|
|
</JnpfDatePicker>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="状态" prop="state">
|
|
|
|
label="状态" prop="state" >
|
|
|
|
<JnpfSelect v-model="dataForm.state" @change="changeData('state', -1)" placeholder="请选择"
|
|
|
|
<JnpfSelect v-model="dataForm.state" @change="changeData('state',-1)"
|
|
|
|
clearable :style='{ "width": "100%" }' :options="stateOptions" :props="stateProps">
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' :options="stateOptions" :props="stateProps" >
|
|
|
|
|
|
|
|
</JnpfSelect>
|
|
|
|
</JnpfSelect>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="设备状态(正常、异常)" prop="deviceStatus">
|
|
|
|
label="设备状态(正常、异常)" prop="deviceStatus" >
|
|
|
|
|
|
|
|
<JnpfSelect v-model="dataForm.deviceStatus" @change="changeData('deviceStatus', -1)"
|
|
|
|
<JnpfSelect v-model="dataForm.deviceStatus" @change="changeData('deviceStatus', -1)"
|
|
|
|
placeholder="请选择" clearable :style='{"width":"100%"}' :options="deviceStatusOptions" :props="deviceStatusProps" >
|
|
|
|
placeholder="请选择" clearable :style='{ "width": "100%" }'
|
|
|
|
|
|
|
|
:options="deviceStatusOptions" :props="deviceStatusProps">
|
|
|
|
</JnpfSelect>
|
|
|
|
</JnpfSelect>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="设备MAC地址" prop="deviceMacAddress">
|
|
|
|
label="设备MAC地址" prop="deviceMacAddress" >
|
|
|
|
<JnpfInput v-model="dataForm.deviceMacAddress"
|
|
|
|
<JnpfInput v-model="dataForm.deviceMacAddress" @change="changeData('deviceMacAddress',-1)"
|
|
|
|
@change="changeData('deviceMacAddress', -1)" placeholder="请输入" clearable
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
:style='{ "width": "100%" }'>
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="空间" prop="spaceId">
|
|
|
|
label="空间" prop="spaceId" >
|
|
|
|
<JnpfPopupSelect v-model="dataForm.spaceId" @change="spaceChange" :rowIndex="null"
|
|
|
|
<JnpfPopupSelect v-model="dataForm.spaceId" @change="changeData('spaceId',-1)"
|
|
|
|
:formData="dataForm" :templateJson="interfaceRes.spaceId" placeholder="请选择"
|
|
|
|
:rowIndex="null" :formData="dataForm" :templateJson="interfaceRes.spaceId" placeholder="请选择" propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog" relationField='name' field='spaceId' interfaceId="582825768971670725" :pageSize="20" :columnOptions="spaceIdcolumnOptions" clearable :style='{"width":"100%"}'>
|
|
|
|
propsValue="id" popupWidth="800px" popupTitle="选择数据" popupType="dialog"
|
|
|
|
|
|
|
|
relationField='name' field='spaceId' interfaceId="582825768971670725" :pageSize="20"
|
|
|
|
|
|
|
|
:columnOptions="spaceIdcolumnOptions" clearable :style='{ "width": "100%" }'>
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
</JnpfPopupSelect>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="8">
|
|
|
|
<el-col :span="8">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="所属区域" prop="regionName">
|
|
|
|
label="所属区域" prop="regionId" >
|
|
|
|
<JnpfInput v-model="dataForm.regionName" @change="changeData('regionName', -1)"
|
|
|
|
<JnpfInput v-model="dataForm.regionId" @change="changeData('regionId',-1)"
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }' :disabled="true">
|
|
|
|
placeholder="请输入" clearable :style='{"width":"100%"}'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
</JnpfInput>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="24">
|
|
|
|
<el-col :span="24">
|
|
|
|
<jnpf-form-tip-item
|
|
|
|
<jnpf-form-tip-item label="设备描述" prop="deviceDescription">
|
|
|
|
label="设备描述" prop="deviceDescription" >
|
|
|
|
<JnpfTextarea v-model="dataForm.deviceDescription"
|
|
|
|
<JnpfTextarea v-model="dataForm.deviceDescription" @change="changeData('deviceDescription',-1)"
|
|
|
|
@change="changeData('deviceDescription', -1)" placeholder="请输入"
|
|
|
|
placeholder="请输入" :style='{"width":"100%"}' true type="textarea" :autosize='{"minRows":4,"maxRows":4}' >
|
|
|
|
:style='{ "width": "100%" }' true type="textarea"
|
|
|
|
|
|
|
|
:autosize='{ "minRows": 4, "maxRows": 4 }'>
|
|
|
|
</JnpfTextarea>
|
|
|
|
</JnpfTextarea>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="24">
|
|
|
|
|
|
|
|
<div style="padding:15px 0px">
|
|
|
|
|
|
|
|
<span style="color: #409EFF;">▋</span>
|
|
|
|
|
|
|
|
<span style="font-size: 14px;font-weight: 500;color:rgb(102, 102, 102);">安装信息</span>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<jnpf-form-tip-item label="安装时间" prop="installationTime">
|
|
|
|
|
|
|
|
<JnpfDatePicker v-model="dataForm.installationTime"
|
|
|
|
|
|
|
|
@change="changeData('installationTime', -1)"
|
|
|
|
|
|
|
|
:startTime="dateTime(false, 1, 1, '', '')" :endTime="dateTime(false, 1, 1, '', '')"
|
|
|
|
|
|
|
|
placeholder="请选择" clearable :style='{ "width": "100%" }' type="date"
|
|
|
|
|
|
|
|
format="yyyy-MM-dd">
|
|
|
|
|
|
|
|
</JnpfDatePicker>
|
|
|
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<jnpf-form-tip-item label="负责人" prop="personInCharge">
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.personInCharge" @change="changeData('personInCharge', -1)"
|
|
|
|
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<jnpf-form-tip-item label="负责人联系电话" prop="chargePhone">
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.chargePhone" @change="changeData('chargePhone', -1)"
|
|
|
|
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
|
|
|
<jnpf-form-tip-item label="设备码" prop="equipmentCode">
|
|
|
|
|
|
|
|
<JnpfInput v-model="dataForm.equipmentCode" @change="changeData('equipmentCode', -1)"
|
|
|
|
|
|
|
|
placeholder="请输入" clearable :style='{ "width": "100%" }'>
|
|
|
|
|
|
|
|
</JnpfInput>
|
|
|
|
|
|
|
|
</jnpf-form-tip-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
<!-- 表单结束 -->
|
|
|
|
<!-- 表单结束 -->
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm"
|
|
|
|
<SelectDialog v-if="selectDialogVisible" :config="currTableConf" :formData="dataForm" ref="selectDialog"
|
|
|
|
ref="selectDialog" @select="addForSelect" @close="selectDialogVisible=false"/>
|
|
|
|
@select="addForSelect" @close="selectDialogVisible = false" />
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</transition>
|
|
|
|
</transition>
|
|
|
@ -220,9 +263,15 @@
|
|
|
|
deviceStatus: "1",
|
|
|
|
deviceStatus: "1",
|
|
|
|
deviceMacAddress: undefined,
|
|
|
|
deviceMacAddress: undefined,
|
|
|
|
spaceId: undefined,
|
|
|
|
spaceId: undefined,
|
|
|
|
|
|
|
|
spaceName: undefined,
|
|
|
|
regionId: undefined,
|
|
|
|
regionId: undefined,
|
|
|
|
|
|
|
|
regionName: undefined,
|
|
|
|
deviceDescription: undefined,
|
|
|
|
deviceDescription: undefined,
|
|
|
|
version: 0,
|
|
|
|
version: 0,
|
|
|
|
|
|
|
|
installationTime: undefined,
|
|
|
|
|
|
|
|
personInCharge: undefined,
|
|
|
|
|
|
|
|
chargePhone: undefined,
|
|
|
|
|
|
|
|
equipmentCode: undefined,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
tableRequiredData: {},
|
|
|
|
tableRequiredData: {},
|
|
|
|
dataRule:
|
|
|
|
dataRule:
|
|
|
@ -295,6 +344,39 @@
|
|
|
|
trigger: 'blur'
|
|
|
|
trigger: 'blur'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
|
|
|
|
|
|
|
installationTime: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
message: '请选择',
|
|
|
|
|
|
|
|
trigger: 'change'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
personInCharge: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
message: '请输入',
|
|
|
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
chargePhone: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
message: '请输入',
|
|
|
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pattern: /^1[3456789]\d{9}$|^0\d{2,3}-?\d{7,8}$/,
|
|
|
|
|
|
|
|
message: '请输入正确的联系方式',
|
|
|
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
equipmentCode: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
required: true,
|
|
|
|
|
|
|
|
message: '请输入',
|
|
|
|
|
|
|
|
trigger: 'blur'
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
equipmentTypeOptions: [{ "fullName": "类型1", "id": "10" }, { "fullName": "类型2", "id": "20" }],
|
|
|
|
equipmentTypeOptions: [{ "fullName": "类型1", "id": "10" }, { "fullName": "类型2", "id": "20" }],
|
|
|
|
equipmentTypeProps: { "label": "fullName", "value": "id" },
|
|
|
|
equipmentTypeProps: { "label": "fullName", "value": "id" },
|
|
|
@ -321,6 +403,10 @@
|
|
|
|
spaceId: [],
|
|
|
|
spaceId: [],
|
|
|
|
regionId: [],
|
|
|
|
regionId: [],
|
|
|
|
deviceDescription: [],
|
|
|
|
deviceDescription: [],
|
|
|
|
|
|
|
|
installationTime: [],
|
|
|
|
|
|
|
|
personInCharge: [],
|
|
|
|
|
|
|
|
chargePhone: [],
|
|
|
|
|
|
|
|
equipmentCode: [],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -335,6 +421,11 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() { },
|
|
|
|
mounted() { },
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
spaceChange(var1, var2) {
|
|
|
|
|
|
|
|
this.dataForm.spaceName = var2.name;
|
|
|
|
|
|
|
|
this.dataForm.regionId = var2.pid;
|
|
|
|
|
|
|
|
this.dataForm.regionName = var2.areaName;
|
|
|
|
|
|
|
|
},
|
|
|
|
prev() {
|
|
|
|
prev() {
|
|
|
|
this.index--
|
|
|
|
this.index--
|
|
|
|
if (this.index === 0) {
|
|
|
|
if (this.index === 0) {
|
|
|
|