| | |
| | | } |
| | | this.getData() |
| | | }, |
| | | mounted() { |
| | | }, |
| | | mounted() {}, |
| | | methods: { |
| | | setTable() { |
| | | this.tableList = { |
| | |
| | | // console.log() |
| | | this.loading = true |
| | | let params = {} |
| | | let sourceTyle = this.addConfig.keywordType === "销售明细单" ? 1 : 2 |
| | | let sourceTyle = this.addConfig.keywordType === "销售明细单" || 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, |
| | | client_id:this.addConfig.client_id, |
| | | client_id: this.addConfig.client_id |
| | | } |
| | | } else { |
| | | params = { |
| | |
| | | keywordType: this.keywordType, |
| | | page: this.pagerOptions.currPage, |
| | | pageSize: this.pagerOptions.pageSize, |
| | | client_id:this.addConfig.client_id, |
| | | 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: "" } |
| | | } |
| | | } |
| | | } |