| | |
| | | <el-form-item label="保险方案" prop="name"> |
| | | <el-input v-model="searchForm.name" placeholder="请输入" @keypress.enter.native="search"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="启用状态" prop="status"> |
| | | <el-form-item label="启用状态" prop="status" v-if="userInfo.type !== 1"> |
| | | <el-select v-model="searchForm.status" placeholder="请选择" @keypress.enter.native="search"> |
| | | <el-option label="启用" value="0"></el-option> |
| | | <el-option label="禁用" value="1"></el-option> |
| | |
| | | <!-- 表格和分页 --> |
| | | <template v-slot:table-wrap> |
| | | <ul class="toolbar" v-permissions="['business:solutions:create']"> |
| | | <li><el-button type="primary" @click="$refs.operaSolutionsWindow.open('新建保险方案')" v-permissions="['business:solutions:create']">添加方案</el-button></li> |
| | | <template v-if="userInfo.type !== 1"> |
| | | <li><el-button type="primary" @click="$refs.operaSolutionsWindow.open('新建保险方案')" v-permissions="['business:solutions:create']">添加方案</el-button></li> |
| | | </template> |
| | | </ul> |
| | | <el-table |
| | | v-loading="isWorking.search" |
| | |
| | | </el-table-column> |
| | | <el-table-column label="投保生效日期" min-width="100px"> |
| | | <template slot-scope="{row}"> |
| | | <span v-if="row.validType === 0">日后生效</span> |
| | | <span v-if="row.validType === 0">{{row.validTypeNum}}日后生效</span> |
| | | <span v-if="row.validType === 1">次月生效</span> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | <span v-if="row.timeUnit === 3">年</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="status" label="启用状态" min-width="100px"> |
| | | <el-table-column prop="status" label="启用状态" min-width="100px" v-if="userInfo.type !== 1"> |
| | | <template slot-scope="{row}"> |
| | | <el-switch |
| | | @change="changeStatus($event, row)" |
| | |
| | | > |
| | | <template slot-scope="{row}"> |
| | | <el-button type="text" @click="$refs.OperaSolutionsDescWindow.open('方案详情', { id: row.id })" icon="el-icon-edit" v-permissions="['business:solutions:update']">查看详情</el-button> |
| | | <el-button type="text" @click="$refs.operaSolutionsWindow.open('编辑保险方案', { id: row.id })" icon="el-icon-edit" v-permissions="['business:solutions:update']">修改</el-button> |
| | | <template v-if="userInfo.type !== 1"> |
| | | <el-button type="text" @click="$refs.operaSolutionsWindow.open('编辑保险方案', { id: row.id })" icon="el-icon-edit" v-permissions="['business:solutions:update']">修改</el-button> |
| | | </template> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | import OperaSolutionsWindow from '@/components/business/OperaSolutionsWindow' |
| | | import OperaSolutionsDescWindow from '@/components/business/OperaSolutionsDescWindow' |
| | | import { updateStatus } from '@/api/business/solutions' |
| | | import { mapState } from 'vuex' |
| | | export default { |
| | | name: 'Solutions', |
| | | extends: BaseTable, |
| | |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | ...mapState(['userInfo']) |
| | | }, |
| | | created () { |
| | | this.config({ |
| | | module: '保险方案信息表', |
| | |
| | | 'field.id': 'id', |
| | | 'field.main': 'id' |
| | | }) |
| | | if (this.userInfo.type === 1) { |
| | | this.searchForm.status = '0' |
| | | } else { |
| | | this.searchForm.status = '' |
| | | } |
| | | this.search() |
| | | }, |
| | | methods: { |