| | |
| | | > |
| | | <div class="info"> |
| | | <div class="info_left"> |
| | | 姓名:{{form.name}} 身份证号:{{form.idcardNo}} 状态: |
| | | <span style="color: green;" v-if="form.solutionsStatus === 1">保障中</span> |
| | | <span v-else>不在保</span> |
| | | 姓名:{{form.name}} 身份证号:{{form.idcardNo}} |
| | | <!-- 状态: <span style="color: green;" v-if="form.solutionsStatus === 1">保障中</span> |
| | | <span v-else>不在保</span>--> |
| | | </div> |
| | | <el-button type="primary" @click="expr">导出记录</el-button> |
| | | </div> |
| | |
| | | <span>{{scope.$index + 1}}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="status" |
| | | label="状态"> |
| | | <template scope="{row}"> |
| | | <span v-if="row.isValid == 1" style="color: red">不在保</span> |
| | | <span v-else style="color: green">保障中</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="solutionName" |
| | | label="保险方案"> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { findList, exportExcel } from '@/api/business/member' |
| | | export default { |
| | | name: 'insuranceRecords', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | form: { |
| | | id: null, |
| | | name: '', |
| | | idcardNo: '', |
| | | solutionsStatus: '' |
| | | }, |
| | | list: [] |
| | | } |
| | | }, |
| | | methods: { |
| | | open (title, target) { |
| | | this.title = title |
| | | this.list = [] |
| | | this.visible = true |
| | | // 新建 |
| | | if (target == null) { |
| | | this.$nextTick(() => { |
| | | this.$refs.form.resetFields() |
| | | this.form[this.configData['field.id']] = null |
| | | }) |
| | | return |
| | | } |
| | | // 编辑 |
| | | this.$nextTick(() => { |
| | | for (const key in this.form) { |
| | | this.form[key] = target[key] |
| | | } |
| | | }) |
| | | this.getList() |
| | | }, |
| | | expr() { |
| | | exportExcel({ |
| | | capacity: 1000, |
| | | page: 1, |
| | | model: { |
| | | memberId: this.form.id |
| | | } |
| | | }).then(res => { |
| | | console.log(res) |
| | | this.download(res) |
| | | }) |
| | | }, |
| | | getList() { |
| | | findList({ |
| | | memberId: this.form.id |
| | | }).then(res => { |
| | | console.log(res) |
| | | this.list = res |
| | | }) |
| | | } |
| | | } |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import { findList, exportExcel } from '@/api/business/member' |
| | | export default { |
| | | name: 'insuranceRecords', |
| | | extends: BaseOpera, |
| | | components: { GlobalWindow }, |
| | | data () { |
| | | return { |
| | | form: { |
| | | id: null, |
| | | name: '', |
| | | idcardNo: '', |
| | | solutionsStatus: '' |
| | | }, |
| | | list: [] |
| | | } |
| | | }, |
| | | methods: { |
| | | open (title, target) { |
| | | this.title = title |
| | | this.list = [] |
| | | this.visible = true |
| | | this.form = { |
| | | id: null, |
| | | name: '', |
| | | idcardNo: '', |
| | | solutionsStatus: '' |
| | | } |
| | | this.form = target |
| | | // 新建 |
| | | this.getList() |
| | | }, |
| | | expr () { |
| | | exportExcel({ |
| | | capacity: 1000, |
| | | page: 1, |
| | | model: { |
| | | memberId: this.form.id |
| | | } |
| | | }).then(res => { |
| | | console.log(res) |
| | | this.download(res) |
| | | }) |
| | | }, |
| | | getList () { |
| | | findList({ |
| | | memberId: this.form.id || -1 |
| | | }).then(res => { |
| | | console.log(res) |
| | | this.list = res |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |