li预案校验
parent
85774048b9
commit
77b123af82
|
@ -70,7 +70,7 @@
|
|||
<el-dialog :visible.sync="dialogFormEdit" :title="dialogType==='editUser'?'修改通讯录成员':'新增通讯录成员'" width="600px">
|
||||
<el-form ref="form" :rules="rules" :model="form" label-width="110px" style="width: 500px;">
|
||||
|
||||
<el-form-item label="内容" prop="CONTENT">
|
||||
<el-form-item label="姓名" prop="NAME">
|
||||
<el-input
|
||||
v-model="form.NAME"
|
||||
:rows="10"
|
||||
|
@ -168,7 +168,7 @@ export default {
|
|||
}
|
||||
],
|
||||
NAME: [
|
||||
{ required: true, message: '类型不能为空', trigger: 'blur' },
|
||||
{ required: true, message: '姓名不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 30, message: '长度在 2 到 30 个字符', trigger: 'blur' }],
|
||||
DEPARTMENT: [
|
||||
{ required: true, message: '部门不能为空', trigger: 'blur' },
|
||||
|
@ -228,7 +228,9 @@ export default {
|
|||
ADDRESS_ID: v.ADDRESS_ID,
|
||||
SEX: v.SEX,
|
||||
OFFICE_PHONE: v.OFFICE_PHONE,
|
||||
MOVE_PHONE: v.MOVE_PHONE
|
||||
MOVE_PHONE: v.MOVE_PHONE,
|
||||
DEPARTMENT: v.DEPARTMENT,
|
||||
POSITION: v.POSITION
|
||||
}
|
||||
this.dialogType = 'editUser'
|
||||
},
|
||||
|
|
|
@ -270,6 +270,15 @@ export default {
|
|||
ORG_NAME: [
|
||||
{ required: true, message: '机构名称不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
],
|
||||
LONGITUDE: [
|
||||
{ required: true, message: '经度不能为空', trigger: 'blur' }
|
||||
],
|
||||
LATITUDE: [
|
||||
{ required: true, message: '纬度不能为空', trigger: 'blur' }
|
||||
],
|
||||
DUTY_PHONE: [
|
||||
{ required: true, message: '值班电话不能为空', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
form: {
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
<pagination :total="total" :page.sync="listQuery.page" :limit.sync="listQuery.limit" @pagination="getList" />
|
||||
</div>
|
||||
<el-dialog :visible.sync="dialogFormEdit" :title="dialogType==='editUser'?'修改':'新增'" width="1000px">
|
||||
<el-form ref="form" :rules="rules" :model="form" label-width="250px">
|
||||
<el-form ref="form" :rules="rules" :model="form" label-width="160px">
|
||||
<el-form-item label="通信机构名称" prop="ORG_NAME">
|
||||
<el-input v-model="form.ORG_NAME" placeholder="请输入通信机构名称..." />
|
||||
</el-form-item>
|
||||
|
@ -340,6 +340,18 @@ export default {
|
|||
ORG_NAME: [
|
||||
{ required: true, message: '通信机构名称不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
],
|
||||
LONGITUDE: [
|
||||
{ required: true, message: '经度不能为空', trigger: 'blur' }
|
||||
],
|
||||
LATITUDE: [
|
||||
{ required: true, message: '纬度不能为空', trigger: 'blur' }
|
||||
],
|
||||
RESPONSIBLE_PERSON: [
|
||||
{ required: true, message: '负责人不能为空', trigger: 'blur' }
|
||||
],
|
||||
RESPONSIBLE_OFFICE_PHONE: [
|
||||
{ required: true, message: '负责人办公电话不能为空', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
// rules: {
|
||||
|
|
|
@ -334,6 +334,18 @@ export default {
|
|||
INSTITUTION_NAME: [
|
||||
{ required: true, message: '机构名称不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
],
|
||||
LONGITUDE: [
|
||||
{ required: true, message: '经度不能为空', trigger: 'blur' }
|
||||
],
|
||||
LATITUDE: [
|
||||
{ required: true, message: '纬度不能为空', trigger: 'blur' }
|
||||
],
|
||||
PERSON_IN_CHARGE: [
|
||||
{ required: true, message: '负责人不能为空', trigger: 'blur' }
|
||||
],
|
||||
PIC_OFFICE_PHONE: [
|
||||
{ required: true, message: '负责人办公电话不能为空', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
form: {
|
||||
|
|
|
@ -237,6 +237,18 @@ export default {
|
|||
SKILL_NAME: [
|
||||
{ required: true, message: '机构名称不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
],
|
||||
LONGITUDE: [
|
||||
{ required: true, message: '经度不能为空', trigger: 'blur' }
|
||||
],
|
||||
LATITUDE: [
|
||||
{ required: true, message: '纬度不能为空', trigger: 'blur' }
|
||||
],
|
||||
CONTACT_PERSON: [
|
||||
{ required: true, message: '联系人不能为空', trigger: 'blur' }
|
||||
],
|
||||
CONTACT_OFFICE_PHONE: [
|
||||
{ required: true, message: '联系人办公电话不能为空', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
// rules: {
|
||||
|
|
|
@ -315,6 +315,18 @@ export default {
|
|||
ORG_NAME: [
|
||||
{ required: true, message: '运输机构名称不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
],
|
||||
LONGITUDE: [
|
||||
{ required: true, message: '经度不能为空', trigger: 'blur' }
|
||||
],
|
||||
LATITUDE: [
|
||||
{ required: true, message: '纬度不能为空', trigger: 'blur' }
|
||||
],
|
||||
RESPONSIBLE_PERSON: [
|
||||
{ required: true, message: '负责人不能为空', trigger: 'blur' }
|
||||
],
|
||||
RESPONSIBLE_OFFICE_PHONE: [
|
||||
{ required: true, message: '负责人办公电话不能为空', trigger: 'blur' }
|
||||
]/*,
|
||||
ORG_TYPE: [
|
||||
{ required: true, message: '运输机构类型不能为空', trigger: 'blur' },
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
<el-image
|
||||
:src="config.fileUrl + row.FILE_PATH"
|
||||
:preview-src-list="[config.fileUrl +row.FILE_PATH]"
|
||||
style="width: 50px; height: 50px"/>
|
||||
style="width: 40px; height: 40px"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="220">
|
||||
|
|
|
@ -521,7 +521,7 @@ export default {
|
|||
CONTACT_PHONE: '',
|
||||
OTHER_INFO: '',
|
||||
UNIT_NAME: '',
|
||||
REGION: '',
|
||||
REGION: null,
|
||||
UNIT_ADDRESS: '',
|
||||
INDUSTRY_TYPE: '',
|
||||
ECONOMIC_TYPE: '',
|
||||
|
@ -567,7 +567,7 @@ export default {
|
|||
CONTACT_PHONE: '',
|
||||
OTHER_INFO: '',
|
||||
UNIT_NAME: '',
|
||||
REGION: '',
|
||||
REGION: null,
|
||||
UNIT_ADDRESS: '',
|
||||
INDUSTRY_TYPE: '',
|
||||
ECONOMIC_TYPE: '',
|
||||
|
@ -771,8 +771,8 @@ export default {
|
|||
handleRegionChange(value) {
|
||||
const selectedRegion = this.regionData.find(region => region.DICTIONARIES_ID === value)
|
||||
if (selectedRegion) {
|
||||
this.form.REGION_NAME = selectedRegion.name
|
||||
this.reportForm.REGION = selectedRegion.name
|
||||
// this.form.REGION_NAME = selectedRegion.name
|
||||
// this.reportForm.REGION = selectedRegion.name
|
||||
}
|
||||
},
|
||||
getQuery() {
|
||||
|
|
|
@ -417,6 +417,19 @@ export default {
|
|||
RESCUE_TEAM_NAME: [
|
||||
{ required: true, message: '救援队名称不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
],
|
||||
|
||||
LONGITUDE: [
|
||||
{ required: true, message: '经度不能为空', trigger: 'blur' }
|
||||
],
|
||||
LATITUDE: [
|
||||
{ required: true, message: '纬度不能为空', trigger: 'blur' }
|
||||
],
|
||||
RESPONSIBLE_PERSON: [
|
||||
{ required: true, message: '负责人不能为空', trigger: 'blur' }
|
||||
],
|
||||
RESPONSIBLE_OFFICE_PHONE: [
|
||||
{ required: true, message: '负责人办公电话不能为空', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
// rules: {
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人固定电话" prop="CONTACT_OFFICE_PHONE">
|
||||
<el-form-item label="联系人固定电话" prop="CONTACT_TELE_PHONE">
|
||||
<el-input v-model="form.CONTACT_TELE_PHONE" placeholder="请输入联系人固定电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -92,7 +92,7 @@
|
|||
<el-row :gutter="20">
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人移动电话" prop="CONTACT_PERSON">
|
||||
<el-form-item label="联系人移动电话" prop="CONTACT_MOBILE_PHONE">
|
||||
<el-input v-model="form.CONTACT_MOBILE_PHONE" placeholder="请输入联系人移动电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -213,7 +213,20 @@ export default {
|
|||
rules: {
|
||||
SHELTER_NAME: [
|
||||
{ required: true, message: '场区名称不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 30, message: '长度在 2 到 30 个字符', trigger: 'blur' }]
|
||||
{ min: 2, max: 30, message: '长度在 2 到 30 个字符', trigger: 'blur' }],
|
||||
|
||||
LONGITUDE: [
|
||||
{ required: true, message: '经度不能为空', trigger: 'blur' }
|
||||
],
|
||||
LATITUDE: [
|
||||
{ required: true, message: '纬度不能为空', trigger: 'blur' }
|
||||
],
|
||||
CONTACT_PERSON: [
|
||||
{ required: true, message: '联系人不能为空', trigger: 'blur' }
|
||||
],
|
||||
CONTACT_TELE_PHONE: [
|
||||
{ required: true, message: '联系人固定电话不能为空', trigger: 'blur' }
|
||||
]
|
||||
|
||||
},
|
||||
form: {
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责保管人固定电话" prop="CONTACT_OFFICE_PHONE">
|
||||
<el-form-item label="负责保管人固定电话" prop="CONTACT_TELE_PHONE">
|
||||
<el-input v-model="form.CONTACT_TELE_PHONE" placeholder="请输入负责保管人固定电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -90,7 +90,7 @@
|
|||
<el-row :gutter="20">
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责保管人移动电话" prop="CONTACT_PERSON">
|
||||
<el-form-item label="负责保管人移动电话" prop="CONTACT_MOBILE_PHONE">
|
||||
<el-input v-model="form.CONTACT_MOBILE_PHONE" placeholder="请输入负责保管人移动电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -205,6 +205,18 @@ export default {
|
|||
EQUIP_NAME: [
|
||||
{ required: true, message: '名称不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
],
|
||||
LONGITUDE: [
|
||||
{ required: true, message: '经度不能为空', trigger: 'blur' }
|
||||
],
|
||||
LATITUDE: [
|
||||
{ required: true, message: '纬度不能为空', trigger: 'blur' }
|
||||
],
|
||||
CONTACT_PERSON: [
|
||||
{ required: true, message: '负责保管人不能为空', trigger: 'blur' }
|
||||
],
|
||||
CONTACT_TELE_PHONE: [
|
||||
{ required: true, message: '负责保管人固定电话不能为空', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
form: {
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人电话" prop="CONTACT_OFFICE_PHONE">
|
||||
<el-form-item label="联系人电话" prop="CONTACT_MOBILE_PHONE">
|
||||
<el-input v-model="form.CONTACT_MOBILE_PHONE" placeholder="请输入联系人电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -88,7 +88,7 @@
|
|||
<el-row :gutter="20">
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item label="第二联系人" prop="CONTACT_PERSON">
|
||||
<el-form-item label="第二联系人" prop="CONTACT_PERSON_TOW">
|
||||
<el-input v-model="form.CONTACT_PERSON_TOW" placeholder="请输入第二联系人..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -202,6 +202,18 @@ export default {
|
|||
FAC_NAME: [
|
||||
{ required: true, message: '名称不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
],
|
||||
LONGITUDE: [
|
||||
{ required: true, message: '经度不能为空', trigger: 'blur' }
|
||||
],
|
||||
LATITUDE: [
|
||||
{ required: true, message: '纬度不能为空', trigger: 'blur' }
|
||||
],
|
||||
CONTACT_PERSON: [
|
||||
{ required: true, message: '联系人不能为空', trigger: 'blur' }
|
||||
],
|
||||
CONTACT_MOBILE_PHONE: [
|
||||
{ required: true, message: '联系人电话不能为空', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
form: {
|
||||
|
|
|
@ -90,7 +90,7 @@
|
|||
<el-row :gutter="20">
|
||||
|
||||
<el-col :span="12">
|
||||
<el-form-item label="负责保管人移动电话" prop="CONTACT_PERSON">
|
||||
<el-form-item label="负责保管人移动电话" prop="CONTACT_MOBILE_PHONE">
|
||||
<el-input v-model="form.CONTACT_MOBILE_PHONE" placeholder="请输入负责保管人移动电话..." />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
@ -205,6 +205,19 @@ export default {
|
|||
SUPPLIES_NAME: [
|
||||
{ required: true, message: '名称不能为空', trigger: 'blur' },
|
||||
{ min: 2, max: 255, message: '长度在 2 到 255 个字符', trigger: 'blur' }
|
||||
],
|
||||
|
||||
LONGITUDE: [
|
||||
{ required: true, message: '经度不能为空', trigger: 'blur' }
|
||||
],
|
||||
LATITUDE: [
|
||||
{ required: true, message: '纬度不能为空', trigger: 'blur' }
|
||||
],
|
||||
CONTACT_PERSON: [
|
||||
{ required: true, message: '负责保管人不能为空', trigger: 'blur' }
|
||||
],
|
||||
CONTACT_OFFICE_PHONE: [
|
||||
{ required: true, message: '负责保管人固定电话不能为空', trigger: 'blur' }
|
||||
]
|
||||
},
|
||||
form: {
|
||||
|
|
Loading…
Reference in New Issue