| | |
| | | fixed="right" |
| | | min-width="120px"> |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.editMemberWindow.open('编辑', row)" v-if="userInfo.type === 0">编辑</el-button> |
| | | <el-button type="text" @click="$refs.insuranceRecords.open('投保记录', row)">投保记录</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </template> |
| | | <!-- 新建/修改 --> |
| | | <OperaMemberWindow ref="operaMemberWindow" @success="handlePageChange" /> |
| | | <!-- 编辑 --> |
| | | <EditMemberWindow ref="editMemberWindow" @success="handlePageChange" /> |
| | | <!-- 投保记录 --> |
| | | <insuranceRecords ref="insuranceRecords" @success="handlePageChange" /> |
| | | </TableLayout> |
| | |
| | | import TableLayout from '@/layouts/TableLayout' |
| | | import Pagination from '@/components/common/Pagination' |
| | | import OperaMemberWindow from '@/components/business/OperaMemberWindow' |
| | | import EditMemberWindow from '@/components/business/EditMemberWindow' |
| | | import insuranceRecords from '@/components/enterprise/insuranceRecords' |
| | | import { all } from '@/api/business/solutions' |
| | | import { findListByDTO } from '@/api/business/dispatchUnit' |
| | |
| | | export default { |
| | | name: 'Member', |
| | | extends: BaseTable, |
| | | components: { TableLayout, Pagination, OperaMemberWindow, insuranceRecords }, |
| | | components: { TableLayout, Pagination, OperaMemberWindow, EditMemberWindow, insuranceRecords }, |
| | | data () { |
| | | return { |
| | | // 搜索 |
| | |
| | | .then(res => { |
| | | this.solutions = res |
| | | }) |
| | | /* if(this.userInfo.type ==1){ |
| | | findListByDTO({ dataType: 2 }) |
| | | .then(res => { |
| | | this.options = res |
| | | if (this.userInfo.type === 0) { |
| | | companyAll({}).then(res => { |
| | | this.companyList = res |
| | | }) |
| | | }*/ |
| | | |
| | | companyAll({}).then(res => { |
| | | this.companyList = res |
| | | }) |
| | | } |
| | | }, |
| | | calculateAge(idNumber) { |
| | | if (!idNumber) return |