|  |  |  | 
|---|
|  |  |  | import { all } from '@/api/business/solutions' | 
|---|
|  |  |  | import { getDetail } from '@/api/business/insuranceApply' | 
|---|
|  |  |  | import { create, getChangeCountCyclePriceVO } from '@/api/business/applyChange' | 
|---|
|  |  |  | import { getDate } from '@/utils/util' | 
|---|
|  |  |  | export default { | 
|---|
|  |  |  | name: 'additionSubtractionApplication', | 
|---|
|  |  |  | extends: BaseOpera, | 
|---|
|  |  |  | 
|---|
|  |  |  | getDetail(this.form.id) | 
|---|
|  |  |  | .then(res => { | 
|---|
|  |  |  | this.list.push(res) | 
|---|
|  |  |  | this.item = res | 
|---|
|  |  |  | this.endTime = res.endTime | 
|---|
|  |  |  | this.form.solutionId = res.solutionId | 
|---|
|  |  |  | this.form.solutionsName = res.solutionsName | 
|---|
|  |  |  | this.pickerOptions = { | 
|---|
|  |  |  | disabledDate(time) { | 
|---|
|  |  |  | // - 8.64e7 | 
|---|
|  |  |  | if (getDate()) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return time.getTime() > new Date(res.endTime).getTime() || time.getTime() < new Date(res.lastChangeDate ? res.lastChangeDate : res.startTime).getTime() | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }; | 
|---|
|  |  |  | this.changeSolution1(res.solutionId) | 
|---|
|  |  |  | // this.changeSolution1(res.solutionId) | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | getSummaries(param) { | 
|---|
|  |  |  | 
|---|
|  |  |  | // 切换方案 | 
|---|
|  |  |  | changeSolution1(e) { | 
|---|
|  |  |  | this.company.forEach(item => { | 
|---|
|  |  |  | console.log(item.id + '-----' + e) | 
|---|
|  |  |  | if (item.id === e) { | 
|---|
|  |  |  | console.log(item) | 
|---|
|  |  |  | this.item = item | 
|---|
|  |  |  | 
|---|
|  |  |  | this.seleData = e.map(item => item.name) | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | getValue(list) { | 
|---|
|  |  |  | console.log(list) | 
|---|
|  |  |  | if (this.activeName === '0') { | 
|---|
|  |  |  | this.form.addDetailList.push(...list) | 
|---|
|  |  |  | } else { | 
|---|