|  |  |  | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.serviceContractId = this.addConfig.id | 
|---|
|  |  |  | } | 
|---|
|  |  |  | // this.getData() | 
|---|
|  |  |  | this.getData() | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | methods: { | 
|---|
|  |  |  | setTable() { | 
|---|
|  |  |  | 
|---|
|  |  |  | // 请求数据 | 
|---|
|  |  |  | async getData() { | 
|---|
|  |  |  | this.loading = true | 
|---|
|  |  |  | console.log(this.addConfig) | 
|---|
|  |  |  | await getCollectionPlanList({ | 
|---|
|  |  |  | serviceContractId: this.serviceContractId | 
|---|
|  |  |  | sourceType: this.addConfig.keywordType === "销售明细单" ? 1 : 2, | 
|---|
|  |  |  | sourceId: this.addConfig.id | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | .then((res) => { | 
|---|
|  |  |  | if (res.data.code === 200) { | 
|---|
|  |  |  | if (res.data.data.data && res.data.data.data.length > 0) { | 
|---|
|  |  |  | const list = res.data.data.data.map((item) => { | 
|---|
|  |  |  | if (res.code === 200) { | 
|---|
|  |  |  | if (res.data.data && res.data.data.length > 0) { | 
|---|
|  |  |  | const list = res.data.data.map((item) => { | 
|---|
|  |  |  | item.client_name=this.addConfig.client_name | 
|---|
|  |  |  | item.number=item.term | 
|---|
|  |  |  | return { | 
|---|
|  |  |  | ...item | 
|---|
|  |  |  | ...item, | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | this.tableList.tableInfomation = list || [] | 
|---|
|  |  |  | this.pagerOptions.totalCount = res.data.data.count | 
|---|
|  |  |  | this.pagerOptions.totalCount = res.data.count | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | this.tableList.tableInfomation = [] | 
|---|
|  |  |  | } | 
|---|