li预案校验

liujun0703-新项目开发
liy 2024-07-27 10:09:43 +08:00
parent 85774048b9
commit 77b123af82
13 changed files with 139 additions and 17 deletions

View File

@ -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'
},

View File

@ -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: {

View File

@ -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: {

View File

@ -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: {

View File

@ -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: {

View File

@ -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' },

View File

@ -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">

View File

@ -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() {

View File

@ -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: {

View File

@ -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: {

View File

@ -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: {

View File

@ -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: {

View File

@ -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: {