| | |
| | | <script> |
| | | import BaseOpera from '@/components/base/BaseOpera' |
| | | import GlobalWindow from '@/components/common/GlobalWindow' |
| | | import {getChangeDetailList, exportJiajianBaoExcel} from "@/api/business/insuranceApply"; |
| | | import {check } from "@/api/business/applyChange"; |
| | | import {exportComFiles} from "@/api/business/company"; |
| | | import { getChangeDetailList, exportJiajianBaoExcel } from '@/api/business/insuranceApply' |
| | | import { check } from '@/api/business/applyChange' |
| | | import { exportComFiles } from '@/api/business/company' |
| | | export default { |
| | | name: 'ApplyChangeDetails', |
| | | extends: BaseOpera, |
| | |
| | | var delDetailList = [] |
| | | res.forEach(item1 => { |
| | | if (item1.type == 1) { |
| | | delDetailList.push(item1); |
| | | delDetailList.push(item1) |
| | | } else { |
| | | addDetailList.push(item1); |
| | | addDetailList.push(item1) |
| | | } |
| | | }) |
| | | var index = addDetailList.length > delDetailList.length?addDetailList.length : delDetailList.length |
| | | for (var i = 0;i<index;i++) { |
| | | var addModel = addDetailList.length > i?addDetailList[i]:{} |
| | | var delModel = delDetailList.length > i?delDetailList[i]:{} |
| | | that.detailList.push({add:addModel,del:delModel}); |
| | | that.detailList.push({ add: addModel, del: delModel }) |
| | | } |
| | | }).catch(err => {}) |
| | | }, |
| | |
| | | }) |
| | | .catch(() => { |
| | | }) |
| | | |
| | | }, |
| | | handleSizeChange(val) { |
| | | console.log(`每页 ${val} 条`); |
| | | console.log(`每页 ${val} 条`) |
| | | }, |
| | | handleCurrentChange(val) { |
| | | console.log(`当前页: ${val}`); |
| | | console.log(`当前页: ${val}`) |
| | | }, |
| | | handleClick(tab, event) { |
| | | console.log(tab, event); |
| | | console.log(tab, event) |
| | | }, |
| | | onSubmit() { |
| | | |