会员项目调整
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<!--YYYY-MM-DD HH:mm:ss-->
|
<!--YYYY-MM-DD HH:mm:ss-->
|
||||||
<a-date-picker
|
<a-date-picker
|
||||||
|
style="width: 100%"
|
||||||
v-if="showType === 'time'"
|
v-if="showType === 'time'"
|
||||||
dropdownClassName="j-date-picker"
|
dropdownClassName="j-date-picker"
|
||||||
:disabled="disabled || readOnly"
|
:disabled="disabled || readOnly"
|
||||||
@@ -16,6 +17,7 @@
|
|||||||
</a-date-picker>
|
</a-date-picker>
|
||||||
<!--YYYY-MM-DD-->
|
<!--YYYY-MM-DD-->
|
||||||
<a-date-picker
|
<a-date-picker
|
||||||
|
style="width: 100%"
|
||||||
v-if="showType === 'day'"
|
v-if="showType === 'day'"
|
||||||
dropdownClassName="j-date-picker"
|
dropdownClassName="j-date-picker"
|
||||||
:disabled="disabled || readOnly"
|
:disabled="disabled || readOnly"
|
||||||
@@ -30,6 +32,7 @@
|
|||||||
</a-date-picker>
|
</a-date-picker>
|
||||||
<!--YYYY-MM-->
|
<!--YYYY-MM-->
|
||||||
<a-month-picker
|
<a-month-picker
|
||||||
|
style="width: 100%"
|
||||||
v-if="showType === 'month'"
|
v-if="showType === 'month'"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:value="momVal"
|
:value="momVal"
|
||||||
@@ -41,6 +44,7 @@
|
|||||||
</a-month-picker>
|
</a-month-picker>
|
||||||
<!--YYYY-->
|
<!--YYYY-->
|
||||||
<a-date-picker
|
<a-date-picker
|
||||||
|
style="width: 100%"
|
||||||
v-if="showType === 'year'"
|
v-if="showType === 'year'"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
mode="year"
|
mode="year"
|
||||||
@@ -107,7 +111,6 @@
|
|||||||
computed: {
|
computed: {
|
||||||
//透传给下级组件的事件,需要排除本组件使用的change事件
|
//透传给下级组件的事件,需要排除本组件使用的change事件
|
||||||
childListeners() {
|
childListeners() {
|
||||||
const vm = this
|
|
||||||
let result = Object.assign({},
|
let result = Object.assign({},
|
||||||
this.$listeners,
|
this.$listeners,
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {duplicateCheck} from '@api/api'
|
import {duplicateCheck} from '@api/api'
|
||||||
import {phoneReg, isEmail, passwordReg, isPhone,chineseReg} from '@/utils/validate'
|
import {phoneReg, isEmail, chineseReg} from '@/utils/validate'
|
||||||
|
|
||||||
// 手机校验的错误信息提示
|
// 手机校验的错误信息提示
|
||||||
const phoneErrMsg = {
|
const phoneErrMsg = {
|
||||||
@@ -17,12 +17,12 @@ const usernameErrMsg = {
|
|||||||
}
|
}
|
||||||
// 角色编码校验信息提示
|
// 角色编码校验信息提示
|
||||||
const roleCodeErrMsg = {
|
const roleCodeErrMsg = {
|
||||||
err1:'请输入角色编码',
|
err1: '请输入角色编码',
|
||||||
err2:'角色编码不可输入汉字'
|
err2: '角色编码不可输入汉字'
|
||||||
}
|
}
|
||||||
// 数据字典拜尼马错误信息提示
|
// 数据字典拜尼马错误信息提示
|
||||||
const dictCodeErrMsg = {
|
const dictCodeErrMsg = {
|
||||||
err1:'请输入字典编码'
|
err1: '请输入字典编码'
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -128,8 +128,9 @@ export async function checkDictCode(value, id, {err1 = dictCodeErrMsg.err1} = {}
|
|||||||
}
|
}
|
||||||
|
|
||||||
const departNameErrMsg = {
|
const departNameErrMsg = {
|
||||||
err1:'请输入机构/部门名称'
|
err1: '请输入机构/部门名称'
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 部门管理部门名称唯一校验
|
* 部门管理部门名称唯一校验
|
||||||
* @param value:要校验的值
|
* @param value:要校验的值
|
||||||
@@ -147,3 +148,24 @@ export async function checkDepartName(value, id, {err1 = departNameErrMsg.err1}
|
|||||||
return err1
|
return err1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员项目唯一校验
|
||||||
|
*
|
||||||
|
* */
|
||||||
|
const memberCompanyNameErrMsg = {
|
||||||
|
err1: '请输入会员项目'
|
||||||
|
}
|
||||||
|
|
||||||
|
export async function checkMemberCompanyName(value, id, {err1 = memberCompanyNameErrMsg.err1} = {}) {
|
||||||
|
if (value) {
|
||||||
|
const param = {
|
||||||
|
confusionCode: 'member_project_name',
|
||||||
|
fieldVal: value,
|
||||||
|
dataId: id
|
||||||
|
}
|
||||||
|
return duplicateCheck(param)
|
||||||
|
} else {
|
||||||
|
return err1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
||||||
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
<a-button @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
<!-- 操作按钮区域 -->
|
<!-- 操作按钮区域 -->
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<a-button @click="handleAdd" type="primary" icon="plus">添加</a-button>
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
||||||
<a-button type="primary" icon="download" @click="handleExportXls('会员项目')">导出</a-button>
|
<a-button type="primary" icon="download" @click="handleExportXls('会员项目')">导出</a-button>
|
||||||
<a-button type="danger" icon="delete" @click="batchDel">批量删除</a-button>
|
<a-button type="danger" icon="delete" @click="batchDel">批量删除</a-button>
|
||||||
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"-->
|
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"-->
|
||||||
|
|||||||
@@ -1,36 +1,39 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div>
|
||||||
|
<page-header-title :is-level-one="false" :level-two-title="currentInfo.projectName"></page-header-title>
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<!-- 会员项目基本信息-->
|
<!-- 会员项目基本信息-->
|
||||||
<section class="project-base-info-title">
|
|
||||||
<span @click="handleReback" class="back"><a-icon type="left"/></span>
|
|
||||||
<h2 class="title">会员项目信息</h2>
|
|
||||||
</section>
|
|
||||||
<div class="line"></div>
|
|
||||||
<div class="project-base-info">
|
<div class="project-base-info">
|
||||||
|
<div class="part-title">
|
||||||
|
<div class="part-title-text">会员项目信息</div>
|
||||||
|
</div>
|
||||||
<section class="project-base-info-content">
|
<section class="project-base-info-content">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :xl="6" :lg="4" :md="4" :sm="8">
|
<a-col :xxl="8" :xl="12" :sm="24">
|
||||||
<label>会员项目:</label><span>{{ currentInfo.projectName }}</span>
|
<label>会员项目:</label><span>{{ currentInfo.projectName }}</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :xl="4" :lg="4" :md="4" :sm="8">
|
<a-col :xxl="8" :xl="12" :sm="24">
|
||||||
<label>负责人:</label><span>{{ currentInfo.directorName }}</span>
|
<label>负责人:</label><span>{{ currentInfo.directorName }}</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :xl="5" :lg="4" :md="4" :sm="8">
|
<a-col :xxl="8" :xl="12" :sm="24">
|
||||||
<label>收费标准:</label><span>{{ currentInfo.chargeStandard }}</span>
|
<label>收费标准:</label><span>{{ currentInfo.chargeStandard }}</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :xl="4" :lg="4" :md="4" :sm="8">
|
<a-col :xxl="8" :xl="12" :sm="24">
|
||||||
<label>收费通知号:</label><span>{{ currentInfo.chargeNoticeNo }}</span>
|
<label>收费通知号:</label><span>{{ currentInfo.chargeNoticeNo }}</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :xl="5" :lg="4" :md="4" :sm="8">
|
<a-col :xxl="8" :xl="12" :sm="24">
|
||||||
<label>收费通知:</label><span class="primary-color">{{ currentInfo.fileName }}</span>
|
<label>收费通知:</label><span class="primary-color">{{ currentInfo.fileName }}</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :xl="8" :lg="8" :md="8" :sm="24">
|
<a-col :xxl="8" :xl="12" :sm="24">
|
||||||
<label>备注:</label><span>{{ currentInfo.remark }}</span>
|
<label>备注:</label><span>{{ currentInfo.remark }}</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<!-- 查询区域 -->
|
<!-- 查询区域 -->
|
||||||
|
<div class="part-title">
|
||||||
|
<div class="part-title-text">会员单位信息</div>
|
||||||
|
</div>
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
@@ -47,7 +50,7 @@
|
|||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
||||||
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
<a-button @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -57,7 +60,7 @@
|
|||||||
|
|
||||||
<!-- 操作按钮区域 -->
|
<!-- 操作按钮区域 -->
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<a-button @click="handleAdd" type="primary" icon="plus">添加</a-button>
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>
|
||||||
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
|
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"
|
||||||
@change="handleImportExcel">
|
@change="handleImportExcel">
|
||||||
<a-button type="primary" icon="import">导入</a-button>
|
<a-button type="primary" icon="import">导入</a-button>
|
||||||
@@ -72,17 +75,17 @@
|
|||||||
<div>
|
<div>
|
||||||
|
|
||||||
<a-table
|
<a-table
|
||||||
ref="table"
|
ref="table"
|
||||||
size="middle"
|
size="middle"
|
||||||
bordered
|
bordered
|
||||||
rowKey="id"
|
rowKey="id"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="ipagination"
|
:pagination="ipagination"
|
||||||
:loading="loading"
|
:loading="loading"
|
||||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||||
class="j-table-force-nowrap"
|
class="j-table-force-nowrap"
|
||||||
@change="handleTableChange">
|
@change="handleTableChange">
|
||||||
|
|
||||||
<template slot="text" slot-scope="text">
|
<template slot="text" slot-scope="text">
|
||||||
<j-ellipsis v-if="text" :value="text" :length="20"></j-ellipsis>
|
<j-ellipsis v-if="text" :value="text" :length="20"></j-ellipsis>
|
||||||
@@ -111,6 +114,7 @@
|
|||||||
<!--项目详情模态框-->
|
<!--项目详情模态框-->
|
||||||
<project-detail-modal ref="projectDetail"></project-detail-modal>
|
<project-detail-modal ref="projectDetail"></project-detail-modal>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -121,7 +125,7 @@ import SafeguardMemberModal from '@views/incomePayments/memberManage/modules/Saf
|
|||||||
import ProjectDetailModal from '@comp/ProjectDetailModal'
|
import ProjectDetailModal from '@comp/ProjectDetailModal'
|
||||||
import StatusSlot from '@comp/tools/StatusSlot'
|
import StatusSlot from '@comp/tools/StatusSlot'
|
||||||
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
||||||
import IconImg from '@/assets/imgs/icon/icon_company_management.png'
|
|
||||||
|
|
||||||
import {getAction} from '@api/manage'
|
import {getAction} from '@api/manage'
|
||||||
import {getFileInfo} from '@api/api'
|
import {getFileInfo} from '@api/api'
|
||||||
@@ -139,7 +143,6 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
description: '会员项目成员维护页面',
|
description: '会员项目成员维护页面',
|
||||||
IconImg,
|
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: '序号',
|
title: '序号',
|
||||||
@@ -243,12 +246,6 @@ export default {
|
|||||||
openDetail(record) {
|
openDetail(record) {
|
||||||
this.$refs.projectDetail.open(record)
|
this.$refs.projectDetail.open(record)
|
||||||
},
|
},
|
||||||
/*
|
|
||||||
* 返回上级
|
|
||||||
* */
|
|
||||||
handleReback() {
|
|
||||||
this.$router.go(-1)
|
|
||||||
},
|
|
||||||
loadData(arg) {
|
loadData(arg) {
|
||||||
if (!this.url.list) {
|
if (!this.url.list) {
|
||||||
this.$message.error('请设置url.list属性!')
|
this.$message.error('请设置url.list属性!')
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div>
|
||||||
|
<page-header-title :is-level-one="false" :level-two-title="$route.query.projectName"></page-header-title>
|
||||||
<a-card :bordered="false">
|
<a-card :bordered="false">
|
||||||
<!-- 查询区域 -->
|
<!-- 查询区域 -->
|
||||||
<div class="table-page-search-wrapper">
|
<div class="table-page-search-wrapper">
|
||||||
@@ -18,14 +20,13 @@
|
|||||||
class="table-page-search-submitButtons"
|
class="table-page-search-submitButtons"
|
||||||
>
|
>
|
||||||
<a-button type="primary" @click="searchQuery" icon="search"
|
<a-button type="primary" @click="searchQuery" icon="search"
|
||||||
>查询</a-button
|
>查询</a-button
|
||||||
>
|
>
|
||||||
<a-button
|
<a-button
|
||||||
type="primary"
|
|
||||||
@click="searchReset"
|
@click="searchReset"
|
||||||
icon="reload"
|
icon="reload"
|
||||||
style="margin-left: 8px"
|
style="margin-left: 8px"
|
||||||
>重置</a-button
|
>重置</a-button
|
||||||
>
|
>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -41,7 +42,7 @@
|
|||||||
type="primary"
|
type="primary"
|
||||||
icon="download"
|
icon="download"
|
||||||
@click="handleExportXls('标协会员')"
|
@click="handleExportXls('标协会员')"
|
||||||
>导出</a-button
|
>导出</a-button
|
||||||
>
|
>
|
||||||
<!-- <a-button type="danger" icon="delete" @click="batchDel">批量删除</a-button>-->
|
<!-- <a-button type="danger" icon="delete" @click="batchDel">批量删除</a-button>-->
|
||||||
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"-->
|
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl"-->
|
||||||
@@ -99,6 +100,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<project-detail-modal ref="projectDetail"></project-detail-modal>
|
<project-detail-modal ref="projectDetail"></project-detail-modal>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -107,6 +109,7 @@ import { JeroListMixin } from '@/mixins/JeroListMixin'
|
|||||||
import ProjectDetailModal from '@comp/ProjectDetailModal'
|
import ProjectDetailModal from '@comp/ProjectDetailModal'
|
||||||
import '@/assets/less/TableExpand.less'
|
import '@/assets/less/TableExpand.less'
|
||||||
import StatusSlot from '@comp/tools/StatusSlot'
|
import StatusSlot from '@comp/tools/StatusSlot'
|
||||||
|
import PageHeaderTitle from '@comp/layouts/PageHeaderTitle'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SafeguardStardsMemberList',
|
name: 'SafeguardStardsMemberList',
|
||||||
@@ -114,6 +117,7 @@ export default {
|
|||||||
components: {
|
components: {
|
||||||
ProjectDetailModal,
|
ProjectDetailModal,
|
||||||
StatusSlot,
|
StatusSlot,
|
||||||
|
PageHeaderTitle
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||||
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
|
||||||
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
|
||||||
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
<a-button @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
|
||||||
</span>
|
</span>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
@@ -116,7 +116,8 @@ export default {
|
|||||||
this.$router.push({
|
this.$router.push({
|
||||||
path: '/incomePayments/memberManage/SafeguardStardsMemberList',
|
path: '/incomePayments/memberManage/SafeguardStardsMemberList',
|
||||||
query: {
|
query: {
|
||||||
id:record.id
|
id:record.id,
|
||||||
|
projectName:record.projectName
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ export default {
|
|||||||
|
|
||||||
// 如果没有id 就是新增 新增需要将上级的项目收费通知与文件回显
|
// 如果没有id 就是新增 新增需要将上级的项目收费通知与文件回显
|
||||||
let flag = Object.prototype.hasOwnProperty.call(record, 'id')
|
let flag = Object.prototype.hasOwnProperty.call(record, 'id')
|
||||||
if (flag) {
|
if (!flag) {
|
||||||
// 加定时器是因为第一次赋值不成功
|
// 加定时器是因为第一次赋值不成功
|
||||||
this.timer = setTimeout(() => {
|
this.timer = setTimeout(() => {
|
||||||
this.form.setFieldsValue({
|
this.form.setFieldsValue({
|
||||||
|
|||||||
Reference in New Issue
Block a user