yangfeng
2023-10-17 a63d71177a2899b01da37e5bfc2d498bec5f80be
src/views/other/payment/collectionPlan/index.vue
@@ -136,7 +136,7 @@
    } else {
      this.serviceContractId = this.addConfig.id
    }
    // this.getData()
    this.getData()
  },
  methods: {
    setTable() {
@@ -169,19 +169,21 @@
    // 请求数据
    async getData() {
      this.loading = true
      console.log(this.addConfig)
      await getCollectionPlanList({
        serviceContractId: this.serviceContractId
        sourceType: this.addConfig.keywordType === "销售明细单" ? 1 : 2,
        sourceId: this.addConfig.id
      })
        .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
                }
              })
              this.tableList.tableInfomation = list || []
              this.pagerOptions.totalCount = res.data.data.count
              this.pagerOptions.totalCount = res.data.count
            } else {
              this.tableList.tableInfomation = []
            }