diff --git a/src/utils/validate.js b/src/utils/validate.js index c9e98d3e9..04f6a0efb 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -37,7 +37,7 @@ export function isURL(s) { * @param {*} s */ export function isCard(s) { - return /^(\d{15}$)|(^\d{17}([0-9]|X)$)|^[a-zA-Z]{2}\d{7}$|^[a-zA-Z]{1}\d{8}$/.test(s); + return /^(\d{15}$)|(^\d{17}([0-9]|X)$)|^[a-zA-Z0-9]{8,9}$/.test(s); } /** * 护照 diff --git a/src/views/components/resiSearch.vue b/src/views/components/resiSearch.vue index 842806954..abff9a4ea 100644 --- a/src/views/components/resiSearch.vue +++ b/src/views/components/resiSearch.vue @@ -48,6 +48,7 @@ v-model.trim="form.VILLAGE_ID" placeholder="请选择小区" size="small" + filterable clearable class="resi-cell-select" @clear="handleClearVillage" @@ -65,6 +66,7 @@ v-model.trim="form.BUILD_ID" placeholder="楼号" size="small" + filterable clearable style="width: 120px;" class="resi-cell-select" @@ -85,6 +87,7 @@ :disabled="changeBDisabled" placeholder="单元" size="small" + filterable clearable style="width: 120px;" class="resi-cell-select" @@ -104,6 +107,7 @@ :disabled="changeDDisabled" placeholder="房号" size="small" + filterable clearable style="width: 120px;" class="resi-cell-select" diff --git a/src/views/modules/communityParty/regionalParty/activitysForm.vue b/src/views/modules/communityParty/regionalParty/activitysForm.vue index a45a5b80b..0ac5a774b 100644 --- a/src/views/modules/communityParty/regionalParty/activitysForm.vue +++ b/src/views/modules/communityParty/regionalParty/activitysForm.vue @@ -236,13 +236,17 @@ export default { data () { let initFormData = () => { let _form = { - unitName: '', + gridId: '', + serviceMatter: '',//服务事项 serviceMatterList: [], - type: '', - contact: '', - contactMobile: '', - memberCount: 0, - remark: '', //备注【最大500字】 + unitId: '',//单位ID + unitIdList: [], + title: '',//活动标题 + target: '',//活动目标 + content: '',//活动内容 + activityTime: '',//活动时间 + peopleCount: 0,//服务人数 + result: '', //活动结果 address: '', //详细地址 longitude: this.$store.state.user.longitude, //经度 latitude: this.$store.state.user.latitude//纬度 @@ -528,17 +532,22 @@ export default { this.activityId = '' this.keyWords = '' this.formData = { - unitName: '', + gridId: '', + serviceMatter: '',//服务事项 serviceMatterList: [], - type: '', - contact: '', - contactMobile: '', - memberCount: 0, - remark: '', //备注【最大500字】 + unitId: '',//单位ID + unitIdList: [], + title: '',//活动标题 + target: '',//活动目标 + content: '',//活动内容 + activityTime: '',//活动时间 + peopleCount: 0,//服务人数 + result: '', //活动结果 address: '', //详细地址 longitude: this.$store.state.user.longitude, //经度 latitude: this.$store.state.user.latitude//纬度 } + }, // 开启加载动画 startLoading () { diff --git a/src/views/modules/communityService/shzz/cpts/edit.vue b/src/views/modules/communityService/shzz/cpts/edit.vue index 993ca6ab8..f92de0974 100644 --- a/src/views/modules/communityService/shzz/cpts/edit.vue +++ b/src/views/modules/communityService/shzz/cpts/edit.vue @@ -294,7 +294,6 @@ export default { props: {}, watch: { "dataForm.serviceTime": function (val) { - console.log("watch start"+val+'_'+Array.isArray(val)) if (Array.isArray(val) && val.length == 2) { this.dataForm.serviceStartTime = val[0]; this.dataForm.serviceEndTime = val[1]; @@ -391,14 +390,11 @@ export default { return isPNG && isLt1M }, handleProgress(event, file, fileList) { - console.log('percentage', event, file.percentage) this.uploading = true this.unloadPencent = Number(file.percentage.toFixed(0)) }, handleImgSuccess(res, file) { if (res.code === 0 && res.msg === 'success') { - - console.log('res.data.url', res.data.url) this.uploading = false this.unloadPencent = 0 this.dataForm.imageList.push(res.data.url) @@ -423,7 +419,6 @@ export default { this.$refs.ref_form.resetFields(); this.formType = type; - console.log(row); this.dataForm.imageList = [] if (row) { this.dataForm = {...this.dataForm, ...row}; @@ -441,7 +436,6 @@ export default { async loadAgency() { const url = "/epmetuser/customerstaff/staffbasicinfo"; let params = {}; - console.log("======loadAgency") const {data, code, msg} = await requestPost(url, params); if (code === 0) { diff --git a/src/views/modules/communityService/shzz/index.vue b/src/views/modules/communityService/shzz/index.vue index 46c1405c9..9eb8398f2 100644 --- a/src/views/modules/communityService/shzz/index.vue +++ b/src/views/modules/communityService/shzz/index.vue @@ -1,108 +1,85 @@