Browse Source

缴费记录添加所属党组织查询字段

shibei_master
wanggongfeng 3 years ago
parent
commit
0ca506ec6d
  1. 37
      src/views/modules/partymember/icpartymemberpayrecorddetail.vue
  2. 5
      src/views/modules/partymember/icpartymemberpoint.vue

37
src/views/modules/partymember/icpartymemberpayrecorddetail.vue

@ -3,6 +3,15 @@
<div class="mod-rent__rentDeath} resi-container">
<el-card ref="searchCard" class="search-card">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item prop="mySelectOrg" label="所属党组织">
<el-cascader
v-model="mySelectOrg"
:options="orgList"
placeholder="请选择党组织"
:props="{ checkStrictly: true, label: 'partyOrgName', value: 'id', children: 'children' }"
@change="handleChangeOrg"
clearable />
</el-form-item>
<el-form-item label="姓名"
prop="name">
<el-input v-model="dataForm.name"
@ -121,7 +130,8 @@
idCard: '',
mobile: '',
year: '',
month: ''
month: '',
orgId: ''
},
monthArr: [
{ dictValue: '01', dictName: '一月' },
@ -136,18 +146,24 @@
{ dictValue: '10', dictName: '十月' },
{ dictValue: '11', dictName: '十一月' },
{ dictValue: '12', dictName: '十二月' }
]
],
mySelectOrg: '',
orgList: [],
}
},
components: {
AddOrUpdate
},
created() {
this.getOrgList()
},
methods: {
resetForm(formName) {
for(const n in this.dataForm) {
this.dataForm[n] = ''
}
this.getDataList()
this.mySelectOrg = ''
},
yearChangeHandler(){
if(this.dataForm.year === '' || this.dataForm.year === null){
@ -164,6 +180,23 @@
this.currentPage = val
this.getDataList()
},
//
getOrgList() {
return this.$http.get('/resi/partymember/icPartyOrg/getTreelist', {params: {agencyId: localStorage.getItem('agencyId')}}).then(({data: res}) => {
if (res.code !== 0) {
return this.$message.error(res.msg)
}
this.orgList = res.data
}).catch(() => {})
},
//
handleChangeOrg(e) {
if (this.mySelectOrg.length > 0 && this.mySelectOrg) {
this.dataForm.orgId = this.mySelectOrg[this.mySelectOrg.length - 1]
} else {
this.dataForm.orgId = ''
}
}
}
}
</script>

5
src/views/modules/partymember/icpartymemberpoint.vue

@ -3,12 +3,12 @@
<div class="mod-rent__rentDeath} resi-container">
<el-card ref="searchCard" class="search-card">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
<el-form-item prop="mySelectOrg" label="上级组织">
<el-form-item prop="mySelectOrg" label="所属党组织">
<el-cascader
style="width:300px"
v-model="mySelectOrg"
:options="orgList"
placeholder="请选择上级组织"
placeholder="请选择组织"
:props="{ checkStrictly: true, label: 'partyOrgName', value: 'id', children: 'children' }"
@change="handleChangeOrg"
clearable />
@ -122,6 +122,7 @@
this.dataForm[n] = ''
}
this.getDataList()
this.mySelectOrg = ''
},
handleSizeChange (val) {
console.log(`每页 ${val}`)

Loading…
Cancel
Save