| | |
| | | // 请求数据 |
| | | async getData() { |
| | | this.loading = true |
| | | await getServiceContractList({ |
| | | keyword: this.keyword, |
| | | keywordType: this.keywordType, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | contactId:this.addConfig.client_id |
| | | }) |
| | | let params = {} |
| | | console.log(this.addConfig) |
| | | if (this.addConfig.id && this.addConfig.keywordType === "销售机会") { |
| | | params = { |
| | | saleChanceId: this.addConfig.id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | } |
| | | } else if (this.addConfig.id && this.addConfig.keywordType === "销售明细单") { |
| | | params = { |
| | | salesDetailsId: this.addConfig.id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | } |
| | | } else if (this.addConfig.id && this.addConfig.keywordType === "报价单") { |
| | | params = { |
| | | quotationId: this.addConfig.id, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize |
| | | } |
| | | } else { |
| | | params = { |
| | | keyword: this.keyword, |
| | | keywordType: this.keywordType, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | contactId: this.addConfig.client_id |
| | | } |
| | | } |
| | | await getServiceContractList(params) |
| | | .then((res) => { |
| | | console.log(res) |
| | | if (res.code === 200) { |
| | |
| | | this.editConfig.infomation = { |
| | | ...this.addConfig, |
| | | currency: "人民币", |
| | | client_name: "", |
| | | client_name: Object.keys(this.addConfig).length === 0 ? "" : this.addConfig.client_name, |
| | | contact_name: "", |
| | | sale_chance_name: "", |
| | | sale_chance_name: Object.keys(this.addConfig).length === 0 ? "" : this.addConfig.sale_chance_name, |
| | | contract_number: "", |
| | | quotation_number: "" |
| | | } |
| | |
| | | quotation_number: row.quotation.number, |
| | | currency: "人民币", |
| | | sale_chance_name: row.SaleChance.name, |
| | | contact_name: row.contact.name |
| | | contact_name: row.contact.name, |
| | | serviceContractTypeId: row.serviceContractTypeId === 0 ? null : row.serviceContractTypeId, |
| | | serviceContractStatusId: row.serviceContractStatusId === 0 ? null : row.serviceContractStatusId |
| | | } |
| | | }, |
| | | // 删除 |