@@ -44,37 +44,55 @@ export default {
},
isShowDate: false,
form: {
- type: '',
- checkTime: '',
- name: '',
- partyId: ''
+ id: '',
+ linksageDate: '',
+ description: '',
},
userList: []
}
},
onShow() {
this.$dict.load('agriculturalType')
- this.getFourResident()
+ this.getUserList()
},
methods: {
onDateChange(e) {
- this.form.checkTime = `${e.year}-${e.month}-${e.day}`
+ this.form.linksageDate = `${e.year}-${e.month}-${e.day}`
},
- getFourResident() {
- this.$instance.post('/app/apppartyfourresident/listFourResident', null, {
- params: {
- size: 10,
- partyId: this.form.partyId,
- },
- }).then((res) => {
- if (res.code == 0) {
- this.userList = res.data.records
+ getUserList() {
+ this.$instance.post('/app/apppartyfourresident/listFourResidentByApplet').then((res) => {
+ if(res?.data) {
+ res.data.map((item) => {
+ this.userList.push({
+ label: item.name,
+ value: item.id,
+ })
+ })
}
})
},
confirm() {
- if(!this.form.checkTime)
- this.$instance.post('/app/apppartyfourlinkage/addOrUpdate')
+ if(!this.form.id) {
+ return this.$u.toast('请选择四邻对象')
+ }
+ if(!this.form.linksageDate) {
+ return this.$u.toast('请选择事件日期')
+ }
+ if(!this.form.description) {
+ return this.$u.toast('请输入事件描述')
+ }
+
+ this.$instance.post('/app/apppartyfourlinkage/addOrUpdate',{
+ ...this.form
+ }).then(res => {
+ if(res.code == 0) {
+ this.$u.toast('添加联动记录成功')
+ uni.$emit('update')
+ setTimeout(() => {
+ uni.navigateBack()
+ },600)
+ }
+ })
}
}
diff --git a/project/sanjianxi/AppNeighborLinkage/familyInfo.vue b/project/sanjianxi/AppNeighborLinkage/familyInfo.vue
index b99fc83..fe8b847 100644
--- a/project/sanjianxi/AppNeighborLinkage/familyInfo.vue
+++ b/project/sanjianxi/AppNeighborLinkage/familyInfo.vue
@@ -1,16 +1,17 @@
-
+
-
李白
-
42068219980502252x
+
{{ item.name }}
+
{{ item.idNumber.replace(/(.{6}).*(.{4})/, '$1********$2') }}
-
- 户主
+
+ {{ $dict.getLabel('householdRelation',item.householdRelation) }}
@@ -25,11 +26,29 @@ export default {
name: 'familyInfo',
appName: '家庭详情',
data() {
- return {}
+ return {
+ idNumber: '',
+ familyList: {},
+ }
},
- onShow() {
- // document.title('家庭详情')
+ onLoad(o) {
+ this.$dict.load('householdRelation')
+ this.idNumber = o.idNumber
+ this.getList()
},
+ methods: {
+ getList() {
+ this.$instance.post('/app/appresident/queryHomeMember',null,{
+ params: {
+ idNumber: this.idNumber
+ }
+ }).then(res => {
+ if(res.code == 0) {
+ this.familyList = res.data.family
+ }
+ })
+ }
+ }
}
diff --git a/project/sanjianxi/AppNeighborLinkage/myNeighborInfo.vue b/project/sanjianxi/AppNeighborLinkage/myNeighborInfo.vue
index 22be4ef..0822670 100644
--- a/project/sanjianxi/AppNeighborLinkage/myNeighborInfo.vue
+++ b/project/sanjianxi/AppNeighborLinkage/myNeighborInfo.vue
@@ -1,13 +1,14 @@
-
+
-
李白
-
42068219980502252x
+
{{ item.name }}
+
{{ item.idNumber.replace(/(.{6}).*(.{4})/, '$1********$2') }}
@@ -20,7 +21,26 @@
@@ -36,6 +56,7 @@ export default {
padding: 32px;
border-radius: 16px;
box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.04);
+ margin-bottom: 24px;
.userpic {
width: 96px;
height: 96px;
diff --git a/project/sanjianxi/AppNeighborLinkage/neighborDetail.vue b/project/sanjianxi/AppNeighborLinkage/neighborDetail.vue
index 8699d77..50e1016 100644
--- a/project/sanjianxi/AppNeighborLinkage/neighborDetail.vue
+++ b/project/sanjianxi/AppNeighborLinkage/neighborDetail.vue
@@ -59,6 +59,7 @@ export default {
this.$instance.post(`/app/apppartyfourlinkage/delete?ids=${this.id}`).then(res => {
if(res.code == 0) {
this.$u.toast('删除成功')
+ uni.$emit('update')
setTimeout(() => {
uni.navigateBack()
},600)