yangfeng
2023-10-13 d3a5476064256802f9e0c0626bed6b8048e51bc0
src/views/other/payment/receipt/index.vue
@@ -146,6 +146,8 @@
    }
    this.getData()
  },
  mounted() {
  },
  methods: {
    setTable() {
      this.tableList = {
@@ -176,13 +178,28 @@
    },
    // 请求数据
    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 === "销售明细单" ? 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 ?? []