From 2eaca5c7f885457e7893bd84528b43d4e49c1fbc Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期二, 17 十月 2023 14:07:09 +0800
Subject: [PATCH] fix: 修复销售机会通过弹窗添加客户后联系人不可选择的问题
---
src/views/other/payment/collectionPlan/index.vue | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/src/views/other/payment/collectionPlan/index.vue b/src/views/other/payment/collectionPlan/index.vue
index b118f45..0751b85 100644
--- a/src/views/other/payment/collectionPlan/index.vue
+++ b/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 = []
}
--
Gitblit v1.8.0