| | |
| | | keyword: "", |
| | | keywordType: "", |
| | | tableColumn: [ |
| | | { label: "发票编号", prop: "invoiceNumber", default: true }, |
| | | { label: "发票编号", prop: "number", default: true }, |
| | | { label: "主题", prop: "subject" }, |
| | | { label: "客户名称", prop: "client_name" }, |
| | | { label: "票据类型", prop: "invoiceType_name" }, |
| | |
| | | let sourceTyle = this.addConfig.keywordType === "销售明细单" ? 1 : 2 |
| | | if (this.addConfig.id) { |
| | | params = { |
| | | sourceID: this.addConfig.id, |
| | | sourceId: this.addConfig.id, |
| | | sourceType: sourceTyle, |
| | | 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 = [] |
| | | } |