|  |  | 
 |  |  |     } | 
 |  |  |     this.getData() | 
 |  |  |   }, | 
 |  |  |   mounted() {}, | 
 |  |  |   methods: { | 
 |  |  |     setTable() { | 
 |  |  |       this.tableList = { | 
 |  |  | 
 |  |  |     }, | 
 |  |  |     // 请求数据 | 
 |  |  |     async getData() { | 
 |  |  |       // console.log() | 
 |  |  |       this.loading = true | 
 |  |  |       await getReceiptList({ | 
 |  |  |         keyword: this.keyword, | 
 |  |  |         keywordType: this.keywordType, | 
 |  |  |         page: this.pagerOptions.currPage, | 
 |  |  |         pageSize: this.pagerOptions.pageSize | 
 |  |  |       }) | 
 |  |  |       let params = {} | 
 |  |  |       let sourceTyle = this.addConfig.keywordType === "销售明细单" || this.addConfig.keywordType === "客户名称" ? 1 : 2 | 
 |  |  |       if (this.addConfig.id) { | 
 |  |  |         params = { | 
 |  |  |           sourceId: this.addConfig.id, | 
 |  |  |           sourceType: sourceTyle, | 
 |  |  |           page: this.pagerOptions.currPage, | 
 |  |  |           pageSize: this.pagerOptions.pageSize, | 
 |  |  |           client_id: this.addConfig.client_id | 
 |  |  |         } | 
 |  |  |       } else { | 
 |  |  |         params = { | 
 |  |  |           keyword: this.keyword, | 
 |  |  |           keywordType: this.keywordType, | 
 |  |  |           page: this.pagerOptions.currPage, | 
 |  |  |           pageSize: this.pagerOptions.pageSize, | 
 |  |  |           client_id: this.addConfig.client_id | 
 |  |  |         } | 
 |  |  |       } | 
 |  |  |       await getReceiptList(params) | 
 |  |  |         .then((res) => { | 
 |  |  |           if (res.data.code === 200) { | 
 |  |  |             const resList = res?.data?.data?.data ?? [] | 
 |  |  |           if (res.code === 200) { | 
 |  |  |             const resList = res?.data?.data ?? [] | 
 |  |  |             if (resList.length > 0) { | 
 |  |  |               const list = resList.map((item) => { | 
 |  |  |                 return { | 
 |  |  | 
 |  |  |                 } | 
 |  |  |               }) | 
 |  |  |               this.tableList.tableInfomation = list || [] | 
 |  |  |               this.pagerOptions.totalCount = res.data.data.count | 
 |  |  |               this.pagerOptions.totalCount = res.data.count | 
 |  |  |             } else { | 
 |  |  |               this.tableList.tableInfomation = [] | 
 |  |  |             } | 
 |  |  | 
 |  |  |     addBtnClick() { | 
 |  |  |       this.editConfig.visible = true | 
 |  |  |       this.editConfig.title = "新建" | 
 |  |  |       this.editConfig.sourceType = this.sourceType | 
 |  |  |       this.editConfig.infomation = { ...this.addConfig, number: "" } | 
 |  |  |       this.editConfig.sourceType = this.addConfig.keywordType === "客户名称" ? 1 : this.sourceType | 
 |  |  |       console.log(this.addConfig) | 
 |  |  |       this.editConfig.infomation = { ...this.addConfig, saleDetailNumber: "" } | 
 |  |  |     } | 
 |  |  |   } | 
 |  |  | } |