审核党员
This commit is contained in:
		| @@ -120,7 +120,7 @@ | |||||||
|               <el-button type="text" @click="toDetail(row.id)">详情</el-button> |               <el-button type="text" @click="toDetail(row.id)">详情</el-button> | ||||||
|               <el-button type="text" @click="toAdd(row.id)">编辑</el-button> |               <el-button type="text" @click="toAdd(row.id)">编辑</el-button> | ||||||
|               <el-button type="text" @click="remove(row.id)">删除</el-button> |               <el-button type="text" @click="remove(row.id)">删除</el-button> | ||||||
|               <el-button type="text" @click="dialogVisible = true">审核</el-button> |               <el-button type="text" v-show="row.auditStatus == 0" @click="review(row)">审核</el-button> | ||||||
|               <!-- <el-button type="text" @click="showNeighbourSetting(row.id)" |               <!-- <el-button type="text" @click="showNeighbourSetting(row.id)" | ||||||
|                          v-if="permissions('app_apppartyfourresident_detail')">四邻设置 |                          v-if="permissions('app_apppartyfourresident_detail')">四邻设置 | ||||||
|               </el-button> --> |               </el-button> --> | ||||||
| @@ -131,21 +131,29 @@ | |||||||
|           <span style="margin-right: 8px;" @click="removeAll">批量删除</span> |           <span style="margin-right: 8px;" @click="removeAll">批量删除</span> | ||||||
|         </div> |         </div> | ||||||
|       </ai-table> |       </ai-table> | ||||||
|  |       <el-dialog width="644px" title="党员认证" :visible.sync="dialogVisible" class="select-party" @closed="dialogVisible=false,form={}"> | ||||||
|  |         <el-form ref="form" :model="form" :rules="formRules" size="small"  label-width="150px"> | ||||||
|  |           <el-form-item label="审核" prop="pass"> | ||||||
|  |             <el-radio v-model="form.pass" label="1">通过</el-radio> | ||||||
|  |             <el-radio v-model="form.pass" label="0">驳回</el-radio> | ||||||
|  |           </el-form-item> | ||||||
|  |           <el-form-item label="党组织" v-if="form.pass == 1" :prop="form.pass == 1? 'partyOrgId': ''"> | ||||||
|  |             <el-input size="small" disabled placeholder="请选择党组织" v-model="form.partyOrgName"> | ||||||
|  |               <template slot="append"> | ||||||
|  |                 <ai-party :instance="instance" size="small" :value="form.partyOrgId" @origin="handlePartyOrgSelect"/> | ||||||
|  |               </template> | ||||||
|  |             </el-input> | ||||||
|  |           </el-form-item> | ||||||
|  |           <el-form-item label="审核意见" v-if="form.pass === 0" :prop="form.pass == 0? 'opinion': ''"> | ||||||
|  |             <el-input type="textarea" :rows="5" v-model="form.votingInstructions" placeholder="请输入" show-word-limit maxlength="500"></el-input> | ||||||
|  |           </el-form-item> | ||||||
|  |         </el-form> | ||||||
|  |         <div slot="footer" style="text-align: center;"> | ||||||
|  |           <el-button style="width:92px" size="small" class="delete-btn" @click="dialogVisible=false,form={}">取消</el-button> | ||||||
|  |           <el-button style="width:92px" size="small" type="primary" @click="dialogVisible=false,confirmBtn()">确认</el-button> | ||||||
|  |         </div> | ||||||
|  |       </el-dialog> | ||||||
|     </template> |     </template> | ||||||
|     <el-dialog width="644px" title="选择党组织" :visible.sync="dialogVisible" class="select-party"> |  | ||||||
|       <el-form ref="form" :model="form" :rules="formRules" size="small"  label-width="150px"> |  | ||||||
|         <el-form-item label="党组织"> |  | ||||||
|           <el-input size="small" disabled placeholder="请选择党组织" v-model="form.organizationName"> |  | ||||||
|             <template slot="append"> |  | ||||||
|               <ai-party :instance="instance" size="small" :value="form.partyOrgId" @origin="handlePartyOrgSelect"/> |  | ||||||
|             </template> |  | ||||||
|           </el-input> |  | ||||||
|         </el-form-item> |  | ||||||
|         <el-form-item label="审核意见"> |  | ||||||
|           <el-input type="textarea" :rows="5" v-model="form.votingInstructions" placeholder="请输入" show-word-limit maxlength="500"></el-input> |  | ||||||
|         </el-form-item> |  | ||||||
|       </el-form> |  | ||||||
|     </el-dialog> |  | ||||||
|   </ai-list> |   </ai-list> | ||||||
| </template> | </template> | ||||||
|  |  | ||||||
| @@ -189,10 +197,10 @@ export default { | |||||||
|         {prop: 'name', label: '姓名', align: 'center'}, |         {prop: 'name', label: '姓名', align: 'center'}, | ||||||
|         {prop: 'sex', label: '性别', align: 'center', dict: 'sex'}, |         {prop: 'sex', label: '性别', align: 'center', dict: 'sex'}, | ||||||
|         {prop: 'age', label: '年龄', align: 'center'}, |         {prop: 'age', label: '年龄', align: 'center'}, | ||||||
|         // { |         { | ||||||
|         //   prop: 'auditStatus', label: '审核状态', align: 'center', |           prop: 'auditStatus', label: '审核状态', align: 'center', | ||||||
|         //   render: (h, {row}) => h('span', {class: `audit-${row.auditStatus}`}, this.dict.getLabel('auditStatus', row.auditStatus)) |           render: (h, {row}) => h('span', {class: `audit-${row.auditStatus}`}, this.dict.getLabel('auditStatus', row.auditStatus)) | ||||||
|         // }, |         }, | ||||||
|         {prop: 'partyStatus', label: '党籍状态', align: 'center', dict: 'partyStatus'}, |         {prop: 'partyStatus', label: '党籍状态', align: 'center', dict: 'partyStatus'}, | ||||||
|         {prop: 'joinPartyTime', label: '入党日期', align: 'center'}, |         {prop: 'joinPartyTime', label: '入党日期', align: 'center'}, | ||||||
|         {prop: 'partyPosition', label: '党内职务', align: 'center', dict: 'partyPosition'}, |         {prop: 'partyPosition', label: '党内职务', align: 'center', dict: 'partyPosition'}, | ||||||
| @@ -200,7 +208,14 @@ export default { | |||||||
|       ], |       ], | ||||||
|       tableData: [], |       tableData: [], | ||||||
|       ids: '', |       ids: '', | ||||||
|       dialogVisible: false,  //弹窗 |       dialogVisible: false,  // 弹窗 | ||||||
|  |       form: { | ||||||
|  |         id: '', | ||||||
|  |         pass: '', | ||||||
|  |         partyOrgId: '', | ||||||
|  |         partyOrgName: '', | ||||||
|  |         opinion: '', | ||||||
|  |       }, | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   computed: { |   computed: { | ||||||
| @@ -217,6 +232,13 @@ export default { | |||||||
|     }, |     }, | ||||||
|     isShowAddBtn() { |     isShowAddBtn() { | ||||||
|       return this.selected.isLeaf == 1 |       return this.selected.isLeaf == 1 | ||||||
|  |     }, | ||||||
|  |     formRules() { | ||||||
|  |       return { | ||||||
|  |         pass: [{required: true, message: "请选择审核状态", trigger: "change"}], | ||||||
|  |         partyOrgId: [{required: true, message: "请选择党组织", trigger: "change"}], | ||||||
|  |         opinion: [{required: true, message: "请输入审核意见", trigger: "change"}], | ||||||
|  |       } | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   created() { |   created() { | ||||||
| @@ -232,6 +254,13 @@ export default { | |||||||
|       this.getList(e.id) |       this.getList(e.id) | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
|  |     review(row) { | ||||||
|  |       this.dialogVisible = true | ||||||
|  |       this.form.id = row.id | ||||||
|  |       this.form.partyOrgId = row.partyOrgId | ||||||
|  |       this.form.partyOrgName = row.partyOrgName | ||||||
|  |     }, | ||||||
|  |  | ||||||
|     onSearch(v) { |     onSearch(v) { | ||||||
|       this.orgTree.filter(v) |       this.orgTree.filter(v) | ||||||
|     }, |     }, | ||||||
| @@ -281,7 +310,32 @@ export default { | |||||||
|     }, |     }, | ||||||
|     toAdd(id) { |     toAdd(id) { | ||||||
|       this.$router.push({query: {id}, hash: "#add"}) |       this.$router.push({query: {id}, hash: "#add"}) | ||||||
|     } |  | ||||||
|  |     }, | ||||||
|  |     // 选党组织 | ||||||
|  |     handlePartyOrgSelect(e) { | ||||||
|  |       console.log(e); | ||||||
|  |       let {isLeaf, name, id} = e?.[0] || {}; | ||||||
|  |       if (isLeaf == 1) { | ||||||
|  |         this.form.partyOrgName = name; | ||||||
|  |         this.form.partyOrgId = id; | ||||||
|  |       } | ||||||
|  |     }, | ||||||
|  |     confirmBtn() { | ||||||
|  |       this.$refs.form.validate((valid) => { | ||||||
|  |         if (valid) { | ||||||
|  |           this.instance.post(`/app/appparty/examine`, null, { | ||||||
|  |             params: {...this.form} | ||||||
|  |           }).then(res => { | ||||||
|  |             if(res.code == 0) { | ||||||
|  |               this.dialogVisible = false | ||||||
|  |               this.$message.success('审核成功') | ||||||
|  |               this.getList() | ||||||
|  |             } | ||||||
|  |           }) | ||||||
|  |         } | ||||||
|  |       }) | ||||||
|  |     }, | ||||||
|   } |   } | ||||||
| } | } | ||||||
| </script> | </script> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user