diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue index 62195a48..77b3f871 100644 --- a/src/apps/AppMonitoringObject/Add.vue +++ b/src/apps/AppMonitoringObject/Add.vue @@ -194,8 +194,8 @@ 是否参加医保
-
-
+
+
@@ -206,8 +206,8 @@ 是否参加大病保险
-
-
+
+
@@ -218,8 +218,8 @@ 是否参加养老保险
-
-
+
+
@@ -227,11 +227,11 @@
* - 最低生活保障 + 是否享受最低生活保障
-
享受
-
未享受
+
享受
+
未享受
@@ -242,8 +242,8 @@ 是否特困供养
-
-
+
+
diff --git a/src/apps/AppMonitoringObject/Detail.vue b/src/apps/AppMonitoringObject/Detail.vue index e69de29b..7f839413 100644 --- a/src/apps/AppMonitoringObject/Detail.vue +++ b/src/apps/AppMonitoringObject/Detail.vue @@ -0,0 +1,616 @@ + + + + + diff --git a/src/apps/AppMonitoringObject/FamilyList.vue b/src/apps/AppMonitoringObject/FamilyList.vue deleted file mode 100644 index e69de29b..00000000 diff --git a/src/apps/AppMonitoringObject/List.vue b/src/apps/AppMonitoringObject/List.vue index bed731c5..a7307833 100644 --- a/src/apps/AppMonitoringObject/List.vue +++ b/src/apps/AppMonitoringObject/List.vue @@ -19,7 +19,7 @@
-
+
@@ -30,8 +30,8 @@ 待纳入
-

{{ item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') }}

-

{{ item.currentAreaName }}

+

{{ item.idNumber || '' }}

+

{{ item.addressArea }}

@@ -75,30 +75,33 @@ export default { ...mapState(['user']), }, created() { - this.areaId = this.$store.state.user.areaId - this.areaName = this.$store.state.user.areaId + this.areaId = this.user.areaId + this.areaName = this.user.areaName + this.getList() }, onShow() { - document.title = '查看居民档案' + document.title = '监测对象' }, methods: { getList() { - var residentType = ['', 0, 1][this.currentTabs] - this.$http - .post('/app/appresident/list', null, { + this.$http.post('/app/apppreventionreturntopoverty/list', null, { params: { - size: 20, current: this.current, - con: this.keyword, - areaId: this.areaId, - residentType: residentType, - auditStatus: 1 + size: 15, + status: this.currIndex === 1 ? '1' : '', + addressAreaId: this.areaId, + name: this.keyword }, }) .then((res) => { if (res.code == 0) { + res.data.records.map((item) => { + if( item.idNumber) { + item.idNumber = item.idNumber.replace(/^(\w{6})\w{8}(.*)$/, '$1********$2') + } + }) this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records - + console.log(this.list) this.pages = res.data.pages } }) @@ -111,8 +114,8 @@ export default { this.getList() }, - toDetailCard(item) { - uni.navigateTo({url: `./DetailCard?id=${item.id}`}) + toDetail(item) { + uni.navigateTo({url: `./Detail?id=${item.id}`}) }, seachObj(e) { diff --git a/src/apps/AppMonitoringObject/AddFamily.vue b/src/apps/AppMonitoringObject/MonitorAddFamilyMember.vue similarity index 64% rename from src/apps/AppMonitoringObject/AddFamily.vue rename to src/apps/AppMonitoringObject/MonitorAddFamilyMember.vue index 5684da59..820bbed6 100644 --- a/src/apps/AppMonitoringObject/AddFamily.vue +++ b/src/apps/AppMonitoringObject/MonitorAddFamilyMember.vue @@ -8,10 +8,12 @@ 与户主关系
- +
+ +
@@ -19,8 +21,7 @@ 姓名
- +
@@ -31,8 +32,7 @@ 身份证号
- +
@@ -43,8 +43,40 @@ 性别
- + +
+ + +
+
+
+ * + 民族 +
+
+ +
+
+
+
+
+
+ * + 政治面貌 +
+
+ +
+
+
+
+
+
+ * + 文化程度 +
+
+
@@ -72,48 +104,13 @@
{{ form.addressArea }} - 请选择 + 请选择
- -
-
-
-
- * - 民族 -
-
- -
-
-
-
-
-
- * - 政治面貌 -
-
- -
-
-
-
-
-
- * - 文化程度 -
-
- -
-
-
@@ -139,16 +136,26 @@
-
- * + * 在校情况
- + +
+
+
+
+
+
+ * + 健康状况 +
+
+
@@ -159,7 +166,7 @@ 劳动技能
- +
@@ -170,7 +177,7 @@ 务工区域
- +
@@ -178,10 +185,11 @@
* - 务工时间/月 + 务工时长(月)
- +
@@ -194,8 +202,8 @@ 是否参加医保
-
-
+
+
@@ -206,8 +214,8 @@ 是否参加大病保险
-
-
+
+
@@ -218,8 +226,8 @@ 是否参加养老保险
-
-
+
+
@@ -227,11 +235,11 @@
* - 最低生活保障 + 是否享受最低生活保障
-
享受
-
未享受
+
享受
+
未享受
@@ -242,15 +250,13 @@ 是否特困供养
-
-
+
+
- - -
{{ isEdit ? '保存' : '申请纳入监测' }}
+
提交
@@ -260,59 +266,102 @@ export default { data() { return { form: { - addressAreaId: '', - address: '', - addressArea: '', - move: '02', - place: '', - placeAreaId: '', - placeArea: '', - type: '', - files: [] + destitute: '', + education: '', + endowmentInsurance: '', + health: '', + idNumber: '', + laborSkills: '', + medicalInsurance: '', + name: '', + nation: '', + politicalOutlook: '', + relationship: '', + relocation: '', + sex: '', + sicknessInsurance: '', + studentsInSchool: '', + subsistenceAllowance: '', + workArea: '', + workingMonths: '' }, - $areaId: '', - isEdit: false, id: '', - areaName: '', + info: {}, + isEdit: false, + index: '' } }, - created() { - this.areaName = this.$store.state.user.areaFullName - this.$dict.load(['fpType', 'fpYesOrNo']) - }, - onLoad(query) { - if (query.id) { - this.isEdit = true - this.id = query.id + uni.showLoading() + this.id = query.id + this.$dict.load(['fpRelationship', 'sex', 'fpNation', 'fpHealth', 'fpEducation', 'fpYesOrNo', 'fpLaborSkills', 'fpPoliticalOutlook', + 'fpRelationship', 'fpStudentsInSchool', 'fpFnancialAssistance', 'fpHealthAssistance', 'fpHousingSecurity']).then(() => { + this.getInfo(query.id) + }) + document.title = query.index ? '编辑家庭成员' : '添加家庭成员' - this.getInfo(this.id) + if (query.index > -1) { + this.isEdit = true + this.index = Number(query.index) } - document.title = query.id ? '编辑监测对象' : '添加监测对象' }, methods: { + getInfo(id) { + this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => { + if (res.code === 0) { + if (this.isEdit) { + this.form = { + ...res.data.familyList[this.index] + } + } + this.info = res.data + } + + uni.hideLoading() + }) + }, + + rules() { + return { + relationship: '请选择与户主关系', + name: '请输入姓名', + idNumber: '请输入身份证号', + sex: '请选择性别', + studentsInSchool: '请选择在校情况', + health: '请选择健康状况', + medicalInsurance: '请选择是否参加医保', + sicknessInsurance: '请选择是否参加大病保险', + endowmentInsurance: '请选择是否参加养老保险', + subsistenceAllowance: '请选择是否享受最低生活保障', + destitute: '请选择是否特困供养', + } + }, + submit() { - if (!this.form.type) { - return this.$u.toast('请选择监测类型') - } + const rules = this.rules() - if (!this.form.phone) { - return this.$u.toast('请输入联系方式') - } - - if (!this.form.addressAreaId) { - return this.$u.toast('请选择住址') + for (let v of Object.keys(rules)) { + if (!this.form[v]) { + return this.$u.toast(rules[v]) + } } uni.showLoading() + let familyList = this.info.familyList + if (this.isEdit) { + familyList[this.index] = this.form + } else { + familyList.push(this.form) + } this.$http.post('/app/apppreventionreturntopoverty/addOrUpdate', { - ...this.form, - id: this.isEdit ? this.id : '' + ...this.info, + familyList, + id: this.id }).then(res => { if (res.code === 0) { - this.$u.toast(this.isEdit ? '保存成功' : '提交成功') + this.$u.toast(this.isEdit ? '编辑成功' : '提交成功') uni.$emit('reload') uni.navigateBack({ delta: 1 @@ -320,25 +369,6 @@ export default { } uni.hideLoading() }) - }, - - onAreaChange(e) { - this.form.addressAreaId = e - }, - - onChange(e) { - this.form.placeAreaId = e - }, - - getInfo(id) { - this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => { - if (res.code === 0) { - this.form = { - ...this.form, - ...res.data - } - } - }) } } } @@ -348,28 +378,6 @@ export default { .add { padding-bottom: 120px; - .aiArea { - display: flex; - align-items: center; - - .label { - max-width: 480px; - height: 112px; - overflow: hidden; - text-overflow:ellipsis; - white-space: nowrap; - color: #303133 !important; - font-size: 30px; - } - - i { - margin-left: 4px; - font-style: normal; - color: #999999; - font-size: 30px; - } - } - ::v-deep .u-radio { &:last-child { .u-radio__label { diff --git a/src/apps/AppMonitoringObject/MonitorAddLog.vue b/src/apps/AppMonitoringObject/MonitorAddLog.vue new file mode 100644 index 00000000..8d0ab0ec --- /dev/null +++ b/src/apps/AppMonitoringObject/MonitorAddLog.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/apps/AppMonitoringObject/MonitorFamilyMember.vue b/src/apps/AppMonitoringObject/MonitorFamilyMember.vue new file mode 100644 index 00000000..0d7724be --- /dev/null +++ b/src/apps/AppMonitoringObject/MonitorFamilyMember.vue @@ -0,0 +1,333 @@ + + + + + diff --git a/src/apps/AppMonitoringObject/EditFamily.vue b/src/apps/AppMonitoringObject/MonitorFamilySituation.vue similarity index 69% rename from src/apps/AppMonitoringObject/EditFamily.vue rename to src/apps/AppMonitoringObject/MonitorFamilySituation.vue index d74b7a70..b809be64 100644 --- a/src/apps/AppMonitoringObject/EditFamily.vue +++ b/src/apps/AppMonitoringObject/MonitorFamilySituation.vue @@ -19,8 +19,8 @@ 是否危房
-
-
+
+
@@ -31,8 +31,8 @@ 是否饮水安全问题
-
-
+
+
@@ -43,15 +43,14 @@ 是否搬迁
-
-
+
+
- -
保存
+ @@ -61,56 +60,42 @@ export default { data() { return { form: { - addressAreaId: '', - address: '', - addressArea: '', - move: '02', - place: '', - placeAreaId: '', - placeArea: '', - type: '', - files: [] + dilapidatedHouse: '', + drinkingWaterSafety: '', + riskType: '' }, - $areaId: '', - isEdit: false, - id: '', - areaName: '', + id: '' } }, - created() { - this.areaName = this.$store.state.user.areaFullName - this.$dict.load(['fpType', 'fpYesOrNo']) - }, onLoad(query) { - if (query.id) { - this.isEdit = true - this.id = query.id - - this.getInfo(this.id) - } - document.title = query.id ? '编辑监测对象' : '添加监测对象' + this.$dict.load(['fpYesOrNo', 'fpRiskType']) + uni.showLoading() + this.id = query.id + this.getInfo(query.id) + document.title = query.id ? '编辑家庭情况' : '添加家庭情况' }, methods: { + getInfo(id) { + this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => { + if (res.code === 0) { + this.form = { + ...this.form, + ...res.data + } + } + + uni.hideLoading() + }) + }, + submit() { - if (!this.form.type) { - return this.$u.toast('请选择监测类型') - } - - if (!this.form.phone) { - return this.$u.toast('请输入联系方式') - } - - if (!this.form.addressAreaId) { - return this.$u.toast('请选择住址') - } - uni.showLoading() this.$http.post('/app/apppreventionreturntopoverty/addOrUpdate', { ...this.form, - id: this.isEdit ? this.id : '' + id: this.id }).then(res => { if (res.code === 0) { this.$u.toast(this.isEdit ? '保存成功' : '提交成功') @@ -122,25 +107,6 @@ export default { uni.hideLoading() }) }, - - onAreaChange(e) { - this.form.addressAreaId = e - }, - - onChange(e) { - this.form.placeAreaId = e - }, - - getInfo(id) { - this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => { - if (res.code === 0) { - this.form = { - ...this.form, - ...res.data - } - } - }) - } } } @@ -149,28 +115,27 @@ export default { .add { padding-bottom: 120px; - .aiArea { - display: flex; - align-items: center; + .form-textarea { + padding: 32px; - .label { - max-width: 480px; - height: 112px; - overflow: hidden; - text-overflow:ellipsis; - white-space: nowrap; - color: #303133 !important; - font-size: 30px; + h2 { + margin-bottom: 32px; + color: #333333; + font-size: 32px; + font-weight: 500; } - i { - margin-left: 4px; - font-style: normal; - color: #999999; - font-size: 30px; + textarea { + width: 100%; + height: 200px; } } + & > div { + margin-bottom: 16px; + background: #fff; + } + ::v-deep .u-radio { &:last-child { .u-radio__label { @@ -179,11 +144,6 @@ export default { } } - & > div { - margin-bottom: 16px; - background: #fff; - } - .form-group { .form-item { padding-left: 32px; @@ -328,13 +288,5 @@ export default { font-size: 32px; background: #3192F4; } - .upload { - width: 100%; - padding: 10px 32px 32px 32px; - box-sizing: border-box; - } - .border-b0{ - border-bottom: 0!important; - } } diff --git a/src/apps/AppMonitoringObject/MonitorIncome.vue b/src/apps/AppMonitoringObject/MonitorIncome.vue new file mode 100644 index 00000000..4a4adfaf --- /dev/null +++ b/src/apps/AppMonitoringObject/MonitorIncome.vue @@ -0,0 +1,275 @@ + + + + + diff --git a/src/apps/AppMonitoringObject/MonitorPoorStatus.vue b/src/apps/AppMonitoringObject/MonitorPoorStatus.vue new file mode 100644 index 00000000..e17941ec --- /dev/null +++ b/src/apps/AppMonitoringObject/MonitorPoorStatus.vue @@ -0,0 +1,347 @@ + + + + +