From d9bc5a12eb000968749005f0bb80613971a927f9 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Fri, 4 Aug 2023 18:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=9D=E9=9A=9C=E6=88=BF=E4=BA=BA=E5=91=98,?= =?UTF-8?q?=E4=BD=8E=E4=BF=9D=E4=BA=BA=E5=91=98=E9=A1=B5=E9=9D=A2,?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E6=AE=8B=E7=96=BE=E5=AD=97=E6=AE=B5=E4=BF=AE?= =?UTF-8?q?=E6=94=B9,bug#462,bug#459,bug#452?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/columns/constants/index.js | 4 +- .../housingNature/addForm.vue | 579 ++++++++++++++ .../housingNature/housingNature.vue | 750 ++++++++++++++++++ .../subsistenceAllowance/addForm.vue | 579 ++++++++++++++ .../subsistenceAllowance.vue | 750 ++++++++++++++++++ .../unemployment/addForm.vue | 18 +- .../unemployment/unemployment.vue | 39 +- .../communityService/commonDemand/index.vue | 2 +- .../modules/communityService/gxxq/addForm.vue | 162 ++-- .../modules/communityService/gxxq/index.vue | 2 +- .../communityService/measure/index.vue | 4 +- 11 files changed, 2779 insertions(+), 110 deletions(-) create mode 100644 src/views/modules/base/residentManagement/housingNature/addForm.vue create mode 100644 src/views/modules/base/residentManagement/housingNature/housingNature.vue create mode 100644 src/views/modules/base/residentManagement/subsistenceAllowance/addForm.vue create mode 100644 src/views/modules/base/residentManagement/subsistenceAllowance/subsistenceAllowance.vue diff --git a/src/js/columns/constants/index.js b/src/js/columns/constants/index.js index 978ba307e..e967b65cc 100644 --- a/src/js/columns/constants/index.js +++ b/src/js/columns/constants/index.js @@ -2,7 +2,7 @@ * @Author: mk 2403457699@qq.com * @Date: 2023-08-01 10:13:40 * @LastEditors: mk 2403457699@qq.com - * @LastEditTime: 2023-08-01 10:17:32 + * @LastEditTime: 2023-08-04 18:02:54 * @Description: 此文件针对于本地字典,常用的男女或者是否一类需要在前端写的可以在此文件中添加 * * @@ -39,7 +39,7 @@ export const politicsStatusList = [ value: 0, }, ]; -export const healthyStatusList = [ +export const healthStatusList = [ { label: "健康", value: 1, diff --git a/src/views/modules/base/residentManagement/housingNature/addForm.vue b/src/views/modules/base/residentManagement/housingNature/addForm.vue new file mode 100644 index 000000000..51e9912cd --- /dev/null +++ b/src/views/modules/base/residentManagement/housingNature/addForm.vue @@ -0,0 +1,579 @@ + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/base/residentManagement/housingNature/housingNature.vue b/src/views/modules/base/residentManagement/housingNature/housingNature.vue new file mode 100644 index 000000000..958e41413 --- /dev/null +++ b/src/views/modules/base/residentManagement/housingNature/housingNature.vue @@ -0,0 +1,750 @@ + + + + + + \ No newline at end of file diff --git a/src/views/modules/base/residentManagement/subsistenceAllowance/addForm.vue b/src/views/modules/base/residentManagement/subsistenceAllowance/addForm.vue new file mode 100644 index 000000000..51e9912cd --- /dev/null +++ b/src/views/modules/base/residentManagement/subsistenceAllowance/addForm.vue @@ -0,0 +1,579 @@ + + + + + + + + \ No newline at end of file diff --git a/src/views/modules/base/residentManagement/subsistenceAllowance/subsistenceAllowance.vue b/src/views/modules/base/residentManagement/subsistenceAllowance/subsistenceAllowance.vue new file mode 100644 index 000000000..958e41413 --- /dev/null +++ b/src/views/modules/base/residentManagement/subsistenceAllowance/subsistenceAllowance.vue @@ -0,0 +1,750 @@ + + + + + + \ No newline at end of file diff --git a/src/views/modules/base/residentManagement/unemployment/addForm.vue b/src/views/modules/base/residentManagement/unemployment/addForm.vue index 39d01522a..c356a9917 100644 --- a/src/views/modules/base/residentManagement/unemployment/addForm.vue +++ b/src/views/modules/base/residentManagement/unemployment/addForm.vue @@ -237,19 +237,19 @@
是否残疾: {{ - formData.healthyStatus != null - ? formData.healthyStatus == 1 + formData.healthStatus != null + ? formData.healthStatus == 1 ? "健康" - : formData.healthyStatus == 0 + : formData.healthStatus == 0 ? "伤残" : "--" : "--" }}
- + - +
残疾类别: @@ -494,7 +494,7 @@ import nextTick from "dai-js/tools/nextTick"; import { genderList, binaryOptionList, - healthyStatusList, + healthStatusList, } from "@/js/columns/constants"; let loading; // 加载动画 @@ -518,7 +518,7 @@ export default { genderList, binaryOptionList, - healthyStatusList, + healthStatusList, formData: { name: "", @@ -532,7 +532,7 @@ export default { placeOfDomicile: "", currentResidence: "", cultureLevel: "", - healthyStatus: null, + healthStatus: null, originWorkUnit: "", disabilityCategoryCode: "", disabilityLevel: "", diff --git a/src/views/modules/base/residentManagement/unemployment/unemployment.vue b/src/views/modules/base/residentManagement/unemployment/unemployment.vue index 130a21515..594c0fd27 100644 --- a/src/views/modules/base/residentManagement/unemployment/unemployment.vue +++ b/src/views/modules/base/residentManagement/unemployment/unemployment.vue @@ -2,7 +2,11 @@
@@ -551,7 +570,7 @@ import { requestPost } from "@/js/dai/request"; import { genderList, binaryOptionList, - healthyStatusList, + healthStatusList, } from "@/js/columns/constants"; import nextTick from "dai-js/tools/nextTick"; import { mapGetters } from "vuex"; @@ -587,11 +606,11 @@ export default { tableLoading: false, user: {}, agencyId: "", - searchH: 170, + searchH: 130, tableData: [], genderList, binaryOptionList, - healthyStatusList, + healthStatusList, formData: { name: "", mobile: "", @@ -600,7 +619,7 @@ export default { birthdayEnd: "", currentResidence: "", cultureLevel: "", - healthyStatus: null, + healthStatus: null, unemploymentTimeStart: "", unemploymentTimeEnd: "", unemploymentNum: "", @@ -635,6 +654,8 @@ export default { multiSelection: [], // 多选结果 importLoading: false, + showSercahStatus:false, + dicts: { educationList: [], nationList: [], diff --git a/src/views/modules/communityService/commonDemand/index.vue b/src/views/modules/communityService/commonDemand/index.vue index b34b0a56d..e51869fe3 100644 --- a/src/views/modules/communityService/commonDemand/index.vue +++ b/src/views/modules/communityService/commonDemand/index.vue @@ -465,7 +465,7 @@ export default { tableLoading: false, user: {}, agencyId: "", - searchH: 170, + searchH: 120, tableData: [], statusArray: [ diff --git a/src/views/modules/communityService/gxxq/addForm.vue b/src/views/modules/communityService/gxxq/addForm.vue index ea76456e5..e917360ca 100644 --- a/src/views/modules/communityService/gxxq/addForm.vue +++ b/src/views/modules/communityService/gxxq/addForm.vue @@ -101,7 +101,6 @@ {{ formData.resiSearchTagName }} - 按标签查找 @@ -304,19 +303,18 @@ export default { if (this.newFormData.serviceTimeStart) { let serviceTimeStart = new Date(this.newFormData.serviceTimeStart); return ( - time.getTime() < serviceTimeStart- 24 * 60 * 60 * 1000 || - time.getTime() === serviceTimeStart- 24 * 60 * 60 * 1000 + time.getTime() < serviceTimeStart - 24 * 60 * 60 * 1000 || + time.getTime() === serviceTimeStart - 24 * 60 * 60 * 1000 ); } else { - return (time.getTime() > nowData || time.getTime() === nowData) ; + return time.getTime() > nowData || time.getTime() === nowData; } }; let startDisabledDate = (time) => { //这个关键属性我们一定要写在data的里面并且return的外面,这是动态改变区间的关键 let nowData = Date.now() - 24 * 60 * 60 * 1000; - return (time.getTime() < nowData || - time.getTime() === nowData); + return time.getTime() < nowData || time.getTime() === nowData; }; return { @@ -349,13 +347,13 @@ export default { content: "", // }, endPickerOptions: { - disabledDate: endDisabledDate - }, - startPickerOptions: { - disabledDate: startDisabledDate - }, + disabledDate: endDisabledDate, + }, + startPickerOptions: { + disabledDate: startDisabledDate, + }, newFormData: { - noticeApproches: [],//服务范围 + noticeApproches: [], //服务范围 serviceScopeList: [], //通知服务方 serviceTimeStart: "", //服务起始时间yyyy-MM-dd serviceTimeEnd: "", //服务截止时间yyyy-MM-dd @@ -374,6 +372,9 @@ export default { { required: true, message: "详细说明不能为空", trigger: "bulr" }, { max: 1000, message: "不能超出1000个字符", trigger: "blur" }, ], + resiSearchTagId: [ + { required: false, message: "指派人员不能为空", trigger: "bulr" }, + ], }, newDataRule: { serverOrgId: [ @@ -403,8 +404,14 @@ export default { this.formData.serviceTimeEnd = arrayTemp[0] + " 23:59:59"; } }, + "formData.assignFlag"(newValue) { + if (newValue === 1) { + this.dataRule.resiSearchTagId[0].required = true; + } else { + this.dataRule.resiSearchTagId[0].required = false; + } + }, }, - components: { labelForm }, created() {}, async mounted() { @@ -447,21 +454,21 @@ export default { this.formData.commonServiceTypeId = data.commonServiceTypeId; this.formData.title = data.title; this.formData.content = data.content; - this.formData.assignFlag = data.assignFlag + this.formData.assignFlag = data.assignFlag; this.formData.resiSearchTagId = data.resiSearchTagId; - if( data.assignInfo){ - this.newFormData.serviceTimeStart = data.assignInfo.serviceTimeStart; - this.newFormData.serviceTimeEnd = data.assignInfo.serviceTimeEnd; - this.newFormData.serverOrgType = data.assignInfo.serverOrgType; - this.newFormData.serverOrgId = data.assignInfo.serverOrgId; - this.newFormData.noticeApproches = data.assignInfo.noticeApproches; - - for (let i in data.assignInfo.serviceScopeList) { - this.newFormData.serviceScopeList.push( - data.assignInfo.serviceScopeList[i].objectId - ); - } - await this.getServiceuserList(data.assignInfo.serverOrgType); + if (data.assignInfo) { + this.newFormData.serviceTimeStart = data.assignInfo.serviceTimeStart; + this.newFormData.serviceTimeEnd = data.assignInfo.serviceTimeEnd; + this.newFormData.serverOrgType = data.assignInfo.serverOrgType; + this.newFormData.serverOrgId = data.assignInfo.serverOrgId; + this.newFormData.noticeApproches = data.assignInfo.noticeApproches; + + for (let i in data.assignInfo.serviceScopeList) { + this.newFormData.serviceScopeList.push( + data.assignInfo.serviceScopeList[i].objectId + ); + } + await this.getServiceuserList(data.assignInfo.serverOrgType); } await this.handleChangeServiceTypeLevel1(); await // this.formData = { ...data }; @@ -511,8 +518,8 @@ export default { }, // 如果服务方有选择第一个的话让它更新 handleChangeServiceTypeLevel2() { - if (this.formData.assignInfo.serviceOrgType) { - this.getServiceuserList(this.formData.assignInfo.serviceOrgType); + if (this.newFormData.serverOrgType) { + this.getServiceuserList(this.newFormData.serverOrgType); } else { return; } @@ -590,11 +597,7 @@ export default { }, async getServiceuserList(serverOrgType) { - if (!serverOrgType) return false; - if (this.formData.commonServiceTypeId == "") { - this.$message.error("请先选择需求类别!"); - return; - } + if (this.formData.commonServiceTypeId == "" || !serverOrgType) return; const url = "/actual/base/serviceitem/listServerOrg"; let params = { serviceTypeId: this.formData.commonServiceTypeId, @@ -619,24 +622,24 @@ export default { ++this.iscascaderShow; this.casOptions = []; this.scopeIdArray = []; - await this.handleData(data.children) + await this.handleData(data.children); this.casOptions.push(data); } else { this.$message.error(rspMsg); } }, //子级为空数组的赋值为null解决有空白页的问题 - handleData(data){ - for(let i=0;i { if (typeof item != "string") { arr.push(item); } }); - - this.newFormData.serviceScopeList = arr; - var url = ""; - var params = {}; - if (this.formType == "edit") { + + this.newFormData.serviceScopeList = arr; + + let params = { + title: this.formData.title, + content: this.formData.content, + commonServiceTypeId: this.formData.commonServiceTypeId, + resiSearchTagId: this.formData.resiSearchTagId, + assignFlag: this.formData.assignFlag, + }; + + if (this.formData.assignFlag === 1) { + params.assignInfo = this.newFormData; + } + + let url = "/governance/commonDemand/save"; + if (this.formType === "edit") { url = "/governance/commonDemand/update"; - params = { - title: this.formData.title, - content: this.formData.content, - commonServiceTypeId: this.formData.commonServiceTypeId, - resiSearchTagId: this.formData.resiSearchTagId, - assignFlag: this.formData.assignFlag, - assignInfo: this.newFormData, - id: this.scopeId, - }; - if(this.formData.assignFlag!=1){ - delete params.assignInfo - } - } else { - url = "/governance/commonDemand/save"; - params = { - title: this.formData.title, - content: this.formData.content, - commonServiceTypeId: this.formData.commonServiceTypeId, - resiSearchTagId: this.formData.resiSearchTagId, - assignFlag: this.formData.assignFlag, - assignInfo: this.newFormData, - }; - if(this.formData.assignFlag!=1){ - delete params.assignInfo - } + params.id = this.scopeId; } - // const url = 'http://yapi.elinkservice.cn/mock/245/governance/icServiceProject/service/initiate' + console.log(params); - const { data, code, msg } = await requestPost(url, params); - - if (code === 0) { - this.$message.success("添加成功"); - this.resetData(); - this.$emit("handleComfirm"); - } else if(code>=8000){ - this.$message.error(msg); - } + const { data, code, msg } = await requestPost(url, params); + + if (code === 0) { + this.$message.success("添加成功"); + this.resetData(); + this.$emit("handleComfirm"); + } else if (code >= 8000) { + this.$message.error(msg); + } }, handleCancle() { diff --git a/src/views/modules/communityService/gxxq/index.vue b/src/views/modules/communityService/gxxq/index.vue index c99d69edf..9bf15fc88 100644 --- a/src/views/modules/communityService/gxxq/index.vue +++ b/src/views/modules/communityService/gxxq/index.vue @@ -24,7 +24,7 @@ > - -- + diff --git a/src/views/modules/communityService/measure/index.vue b/src/views/modules/communityService/measure/index.vue index 3ec485b08..2e11ec813 100644 --- a/src/views/modules/communityService/measure/index.vue +++ b/src/views/modules/communityService/measure/index.vue @@ -913,8 +913,8 @@ export default { computed: { ...mapGetters(["clientHeight", "iframeHeight"]), tableHeight() { - const h = this.clientHeight - this.searchH - 450 + this.iframeHeigh; - const _h = this.clientHeight - 450 - this.searchH; + const h = this.clientHeight - this.searchH - 445 + this.iframeHeigh; + const _h = this.clientHeight - 445 - this.searchH; return this.$store.state.inIframe ? h : _h; }, },