From 56bbbd54159164e4271273d214f036dc01bf947f Mon Sep 17 00:00:00 2001 From: woody Date: Mon, 26 May 2025 17:08:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat(register):=20=E8=87=AA=E5=8A=A9?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=88=B7=E7=B1=8D=E5=8F=98=E6=9B=B4=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E5=AE=A1=E6=A0=B8=E7=9B=B8=E5=85=B3=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/selfService/register/index.vue | 1184 ++++++++++++---------- 1 file changed, 625 insertions(+), 559 deletions(-) diff --git a/src/views/selfService/register/index.vue b/src/views/selfService/register/index.vue index b1fe0e0..b436e35 100644 --- a/src/views/selfService/register/index.vue +++ b/src/views/selfService/register/index.vue @@ -6,299 +6,391 @@ --> @@ -339,18 +415,15 @@ import * as api from '@/api/giftGoods.js' import { DomicileDetails, domicileReject, - getDomicileChangeList, + getDomicileChangeList } from '@/api/settle' -import { getApproveStatus } from '@/api/financial' import { Message } from 'element-ui' import { isLocals } from '@/utils/numberToCurrency' -import Editor from '@/components/Editor/index.vue' export default { name: 'Bzpz', components: { - topBar, - Editor, + topBar }, filters: { isAgree(val) { @@ -359,7 +432,7 @@ export default { } else { return '禁止' } - }, + } }, data() { return { @@ -374,43 +447,36 @@ export default { // 查询参数 queryParams: { pageNum: 1, - pageSize: 50, + pageSize: 50 }, addOrEdit: '', total: 0, dialogVisible: false, tableData: [], - loading:false, + loading: false, moren: 'Register', topList: [ { name: '户籍变更', - path: 'Register', - }, + path: 'Register' + } ], form: { - name: '', + name: '' }, rules: { name: [ - { required: true, message: '请输入规格类型', trigger: 'blur' }, - ], + { required: true, message: '请输入规格类型', trigger: 'blur' } + ] }, - actStatus: [], + actStatus: [] } }, mounted() { - // 获取下拉 - this.getData() // 获取列表 this.getDataList() }, methods: { - handleClose1() { - this.isShow = false - this.relContent = '' - this.relId = '' - }, isLocals, closeTc() { this.registerFlag = false @@ -427,7 +493,7 @@ export default { if (this.relContent.length == 0) { this.$message({ message: '请输入驳回信息', - type: 'warning', + type: 'warning' }) return false } @@ -436,7 +502,7 @@ export default { if (res.code == 200) { this.$message({ message: res.msg, - type: 'success', + type: 'success' }) this.isShow = false this.relContent = '' @@ -445,67 +511,6 @@ export default { } ) }, - reject_s(id) { - this.isShow = true - this.relId = id - // this.$confirm('是否驳回该申请?', '警告', { - // confirmButtonText: '确定', - // cancelButtonText: '取消', - // type: 'warning' - // }).then((_) => { - // domicileReject({ 'pkId': id }).then((res) => { - // if (res.code == '200') { - // Message({ - // message: res.msg, - // type: 'success' - // }) - // this.getDataList() - // } else { - // Message({ - // message: res.msg, - // type: 'error' - // }) - // } - // }) - // }) - }, - rejects(id) { - const flags = this.verifySelect() - if (id != '' || flags != undefined) { - if ( - this.$refs.multipleTable.selection[0].approveStatus == 2 || - this.$refs.multipleTable.selection[0].approveStatus == 4 - ) { - this.$confirm('是否驳回该申请?', '警告', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning', - }).then((_) => { - domicileReject({ - pkId: id || this.$refs.multipleTable.selection[0].pkId, - }).then((res) => { - if (res.code == '200') { - Message({ - message: res.msg, - type: 'success', - }) - this.getDataList() - } else { - Message({ - message: res.msg, - type: 'error', - }) - } - }) - }) - } else if (this.$refs.multipleTable.selection[0].approveStatus == 3) { - Message({ - message: '用户申请户籍变更已被驳回,请勿重复申请', - type: 'warning', - }) - } - } - }, check(id) { DomicileDetails({ pkId: id }).then((res) => { if (res.code == '200') { @@ -514,127 +519,19 @@ export default { } else { Message({ message: res.msg, - type: 'error', + type: 'error' }) } }) }, - agree(item) { - const flags = this.verifySelect() - if (item != '' || flags != undefined) { - if ( - this.$refs.multipleTable.selection[0].approveStatus == 2 || - this.$refs.multipleTable.selection[0].approveStatus == 4 - ) { - this.$router.push({ - path: 'hjbgQc', - query: { - data: JSON.stringify([ - item || this.$refs.multipleTable.selection[0], - ]), - approvalBusiness: 132, - }, - }) - } else if (this.$refs.multipleTable.selection[0].approveStatus == 3) { - Message({ - message: '用户申请户籍变更已被驳回,请勿重复申请', - type: 'warning', - }) - } - } - }, - agrees(item) { - this.$router.push({ - path: 'hjbgQc', - query: { - data: JSON.stringify([item]), - approvalBusiness: 132, - }, - }) - }, - getData() { - getApproveStatus().then((res) => { - this.actStatus = res.data - }) - }, - verifySelect() { - const len = this.$refs.multipleTable.selection.length - if (len === 0) { - Message({ message: '请选择一条数据', type: 'warning' }) - } else if (len > 1) { - Message({ message: '只能选择一条', type: 'warning' }) - } else { - return true - } - }, + changeTime(val) { if (val) { this.select.startDate = val[0] this.select.endDate = val[1] } }, - // 点击修改 - toFixed(id, index) { - // this.addOrEdit = false - // this.dialogVisible = true - this.$router.push({ - path: 'addGiftGoodsInfo', - query: { - pkId: id, - type: index, - // functionType:this.select.functionType - }, - }) - }, - // 删除 - handleDelete(id) { - this.$confirm('确认删除?', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning', - }).then(() => { - api.activityRemove(id).then((res) => { - this.getDataList() - }) - }) - }, - onSubmit(formName) { - this.$refs[formName].validate((valid) => { - if (valid) { - let url = '' - if (this.addOrEdit == true) { - url = classifySave - } else { - url = classifyUpdate - } - url(this.form).then((res) => { - if (res.code == 200) { - this.$message({ - message: res.msg, - type: 'success', - }) - this.dialogVisible = false - // 充值数据 - this.$refs[formName].resetFields() - // 获取列表 - this.getDataList() - } - }) - } else { - return false - } - }) - }, - handleClose() { - this.dialogVisible = false - this.$refs['form'].clearValidate() - this.$refs['form'].resetFields() - }, - openDig() { - this.$router.push({ - path: 'addGiftGoodsInfo', - }) - }, + getDataList() { this.loading = true if (this.creationTime == '' || this.creationTime == null) { @@ -644,31 +541,16 @@ export default { getDomicileChangeList(this.select).then((res) => { this.loading = false this.tableData = res.rows - const regex = new RegExp('{ - if(item.rejectMsg){ - item.rejectMsg= item.rejectMsg.replace(regex, ` { + if (item.rejectMsg) { + item.rejectMsg = item.rejectMsg.replace(regex, ` { - this.download(response) - }) - }, tableRowClassName({ row, rowIndex }) { if (rowIndex % 2 == 1) { return 'warning-row' @@ -676,8 +558,8 @@ export default { return 'success-row' } return '' - }, - }, + } + } }