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