|  |  | 
 |  |  |       keyword: "", | 
 |  |  |       keywordType: "", | 
 |  |  |       tableColumn: [ | 
 |  |  |         { label: "发票编号", prop: "invoiceNumber", default: true }, | 
 |  |  |         { label: "发票编号", prop: "number", default: true }, | 
 |  |  |         { label: "主题", prop: "subject" }, | 
 |  |  |         { label: "客户名称", prop: "client_name" }, | 
 |  |  |         { label: "票据类型", prop: "invoiceType_name" }, | 
 |  |  | 
 |  |  |     // 请求数据 | 
 |  |  |     async getData() { | 
 |  |  |       this.loading = true | 
 |  |  |       await getInvoiceList({ | 
 |  |  |         keyword: this.keyword, | 
 |  |  |         keywordType: this.keywordType, | 
 |  |  |         page: this.pagerOptions.currPage, | 
 |  |  |         pageSize: this.pagerOptions.pageSize | 
 |  |  |       }) | 
 |  |  |       console.log(this.addConfig) | 
 |  |  |       let params = {} | 
 |  |  |       let sourceTyle = this.addConfig.keywordType === "销售明细单" ? 1 : 2 | 
 |  |  |       if (this.addConfig.id) { | 
 |  |  |         params = { | 
 |  |  |           sourceId: this.addConfig.id, | 
 |  |  |           sourceType: sourceTyle, | 
 |  |  |           page: this.pagerOptions.currPage, | 
 |  |  |           pageSize: this.pagerOptions.pageSize | 
 |  |  |         } | 
 |  |  |       } else { | 
 |  |  |         params = { | 
 |  |  |           keyword: this.keyword, | 
 |  |  |           keywordType: this.keywordType, | 
 |  |  |           page: this.pagerOptions.currPage, | 
 |  |  |           pageSize: this.pagerOptions.pageSize | 
 |  |  |         } | 
 |  |  |       } | 
 |  |  |       await getInvoiceList(params) | 
 |  |  |         .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) => { | 
 |  |  |                 return { | 
 |  |  |                   ...item, | 
 |  |  |                   client_name: item.Client.name, | 
 |  |  | 
 |  |  |                 } | 
 |  |  |               }) | 
 |  |  |               this.tableList.tableInfomation = list || [] | 
 |  |  |               this.pagerOptions.totalCount = res.data.data.count | 
 |  |  |               this.pagerOptions.totalCount = res.data.count | 
 |  |  |             } else { | 
 |  |  |               this.tableList.tableInfomation = [] | 
 |  |  |             } |