diff --git a/src/views/modules/communityService/dqfwzx/cpts/edit.vue b/src/views/modules/communityService/dqfwzx/cpts/edit.vue new file mode 100644 index 00000000..df346a61 --- /dev/null +++ b/src/views/modules/communityService/dqfwzx/cpts/edit.vue @@ -0,0 +1,468 @@ + + + + + + + diff --git a/src/views/modules/communityService/dqfwzx/index.vue b/src/views/modules/communityService/dqfwzx/index.vue new file mode 100644 index 00000000..2afa5533 --- /dev/null +++ b/src/views/modules/communityService/dqfwzx/index.vue @@ -0,0 +1,316 @@ + + + + + diff --git a/src/views/modules/communityService/ninePlaces/inspect/inspect.vue b/src/views/modules/communityService/ninePlaces/inspect/inspect.vue index b8849d20..abf64bea 100644 --- a/src/views/modules/communityService/ninePlaces/inspect/inspect.vue +++ b/src/views/modules/communityService/ninePlaces/inspect/inspect.vue @@ -6,7 +6,33 @@ ref="ref_searchform" :label-width="'100px'">
- + + + + + + + + + + + + + - - - - - +
+
+ + - @@ -44,42 +64,19 @@ -
-
- + + - - - - - - - - - - - - -
-
- 新增 - - 导入 - - 导出 - - - -
+ 新增 - + label="场所名称" + min-width="180"> - + label="场所类型" + min-width="180"> - + label="分队名称" + min-width="180"> - + label="检察人员" + min-width="180"> - + label="首次巡检时间" + min-width="150"> - + label="隐患明细" + min-width="280"> - + label="首次检查结果" + min-width="180"> - + label="拟复查时间" + min-width="110"> - + label="最新结果" + min-width="110"> + + + @@ -216,7 +196,7 @@ @@ -232,12 +212,25 @@ width="850px" top="5vh" @closed="diaClose"> - + + + + + +
@@ -245,7 +238,8 @@ + + diff --git a/src/views/modules/communityService/ninePlaces/inspect/inspectReview.vue b/src/views/modules/communityService/ninePlaces/inspect/inspectReview.vue new file mode 100644 index 00000000..7af12868 --- /dev/null +++ b/src/views/modules/communityService/ninePlaces/inspect/inspectReview.vue @@ -0,0 +1,439 @@ + + + + + + diff --git a/src/views/modules/communityService/ninePlaces/inspect/unitsForm.vue b/src/views/modules/communityService/ninePlaces/inspect/unitsForm.vue deleted file mode 100644 index 383174ba..00000000 --- a/src/views/modules/communityService/ninePlaces/inspect/unitsForm.vue +++ /dev/null @@ -1,553 +0,0 @@ - - - - - - diff --git a/src/views/modules/communityService/ninePlaces/places/places.vue b/src/views/modules/communityService/ninePlaces/places/places.vue index 0d0dd69f..46a14735 100644 --- a/src/views/modules/communityService/ninePlaces/places/places.vue +++ b/src/views/modules/communityService/ninePlaces/places/places.vue @@ -61,9 +61,9 @@ + prop="ninePlaceVal"> + prop="ninePlaceVal"> + prop="ninePlaceVal"> - - + width="180"> - + width="110"> - - - - { + let timeArray = item.time.split(' ') + item.time = timeArray[0] + }); } else { this.$message.error(msg) } @@ -365,8 +370,8 @@ export default { }, async deleteTeam (row) { - // const url = "/gov/org/placepatrolteam/del" - const url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/del" + const url = "/gov/org/placepatrolteam/del" + // const url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/del" let params = { teamId: row.teamId @@ -392,7 +397,7 @@ export default { personInCharge: '',//负责人 mobile: '',//联系电话 gridId: '',//负责区域【网格Id】 - ninePlacsVal: '',//场所类型【九小场所Value值】 + ninePlaceVal: '',//场所类型【九小场所Value值】 isPage: true,//是否分页(是:true 否:false) 有这个参数是给新增巡查记录时用的,默认是 } }, diff --git a/src/views/modules/communityService/ninePlaces/team/teamForm.vue b/src/views/modules/communityService/ninePlaces/team/teamForm.vue index 534afb1f..db819678 100644 --- a/src/views/modules/communityService/ninePlaces/team/teamForm.vue +++ b/src/views/modules/communityService/ninePlaces/team/teamForm.vue @@ -37,12 +37,12 @@ + v-model="formData.ninePlaceArray"> {{item.label}} @@ -69,7 +69,7 @@ prop="time" label-width="150px"> @@ -102,7 +102,6 @@ prop="member"> @@ -110,24 +109,24 @@ :key="index" class="div_person_list"> 姓名 - {{item.name}} + v-else>{{item.name}} 联系电话 - {{item.mobile}} + v-else>{{item.mobile}} { + item.isSet = false + }); } else { this.$message.error(msg) } }, - - async handleComfirm () { this.btnDisable = true @@ -255,7 +252,7 @@ export default { let obj = { name: '', mobile: '', - isEdit: true + isSet: true } this.memberList.push(obj) @@ -278,21 +275,32 @@ export default { } else { return false } - if (this.formData.ninePlacsArray.length > 0) { - this.formData.ninePlacsVals = this.formData.ninePlacsArray.join(',') + if (this.formData.ninePlaceArray.length > 0) { + this.formData.ninePlaceVals = this.formData.ninePlaceArray.join(',') } else { return false } + let msgMember = this.validataMemeberList() + if (msgMember) { + this.$message({ + type: 'warning', + message: msgMember + }) + return false + } + + this.formData.memberList = this.memberList + let url = '' if (this.formType === 'edit') { - // url = '/gov/org/placeorg/edit' - url = 'http://yapi.elinkservice.cn/mock/245/gov/org/placeorg/edit' + url = '/gov/org/placepatrolteam/edit' + // url = 'http://yapi.elinkservice.cn/mock/245/gov/org/placeorg/edit' } else { - // url = "/gov/org/placepatrolteam/add" - url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/add" + url = "/gov/org/placepatrolteam/add" + // url = "http://yapi.elinkservice.cn/mock/245/gov/org/placepatrolteam/add" } const { data, code, msg } = await requestPost(url, this.formData) @@ -312,6 +320,18 @@ export default { }, + validataMemeberList () { + if (this.memberList.length === 0) { + return '成员列表不能为空' + } + this.memberList.forEach(element => { + if (!element.mobile || !element.name) { + return '成员的姓名和电话不能为空' + } + }); + return '' + }, + handleCancle () { this.resetData() @@ -326,14 +346,15 @@ export default { teamName: '',//分队名称 gridIds: '',//负责区域,多个值逗号分隔 gridIdArray: [], - ninePlacsVals: '',//负责场所类型,多个值逗号分隔 - ninePlacsArray: [], + ninePlaceVals: '',//负责场所类型,多个值逗号分隔 + ninePlaceArray: [], plan: '',//巡查计划 time: '',//时间 personInCharge: '',//负责人 mobile: '',//联系电话 member: '1'//成员信息集合 } + this.memberList = [] }, // 开启加载动画 startLoading () { @@ -360,7 +381,7 @@ export default { gridIdArray: [ { required: true, message: '负责区域不能为空', trigger: 'blur' }, ], - ninePlacsArray: [ + ninePlaceArray: [ { required: true, message: '场所类型不能为空', trigger: 'blur' } ], diff --git a/src/views/modules/communityService/sqzzz/index.vue b/src/views/modules/communityService/sqzzz/index.vue index cfa8d72c..e0a6ec96 100644 --- a/src/views/modules/communityService/sqzzz/index.vue +++ b/src/views/modules/communityService/sqzzz/index.vue @@ -183,8 +183,8 @@ export default { fmData: { organizationName: "", - startDate: "", - endDate: "", + startTime: "", + endTime: "", createTime: ["", ""], }, @@ -201,11 +201,11 @@ export default { watch: { "fmData.createTime": function (val) { if (Array.isArray(val) && val.length == 2) { - this.fmData.startDate = val[0]; - this.fmData.endDate = val[1]; + this.fmData.startTime = val[0]; + this.fmData.endTime = val[1]; } else { - this.fmData.startDate = ""; - this.fmData.endDate = ""; + this.fmData.startTime = ""; + this.fmData.endTime = ""; } }, },