diff --git a/src/views/selfService/register/index.vue b/src/views/selfService/register/index.vue index b1fe0e0..c8f7f20 100644 --- a/src/views/selfService/register/index.vue +++ b/src/views/selfService/register/index.vue @@ -6,299 +6,367 @@ --> @@ -339,18 +391,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 +408,7 @@ export default { } else { return '禁止' } - }, + } }, data() { return { @@ -374,43 +423,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 +469,7 @@ export default { if (this.relContent.length == 0) { this.$message({ message: '请输入驳回信息', - type: 'warning', + type: 'warning' }) return false } @@ -436,7 +478,7 @@ export default { if (res.code == 200) { this.$message({ message: res.msg, - type: 'success', + type: 'success' }) this.isShow = false this.relContent = '' @@ -445,67 +487,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 +495,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 +517,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 +534,8 @@ export default { return 'success-row' } return '' - }, - }, + } + } }