diff --git a/pages/client-credit/index.vue b/pages/client-credit/index.vue index ba4ea52..873c48d 100644 --- a/pages/client-credit/index.vue +++ b/pages/client-credit/index.vue @@ -91,6 +91,12 @@ export default { hasCreditList: [] } }, + onLoad(option) { + if (option.enterpriseId) { + this.form.name = option.name + this.form.enterpriseId = option.enterpriseId + } + }, methods: { back, showCompany(e) { diff --git a/pages/client-detail/basic-information.vue b/pages/client-detail/basic-information.vue index 8421927..d1cd486 100644 --- a/pages/client-detail/basic-information.vue +++ b/pages/client-detail/basic-information.vue @@ -1,117 +1,131 @@ diff --git a/pages/client-detail/index.vue b/pages/client-detail/index.vue index 18d9c24..f231694 100644 --- a/pages/client-detail/index.vue +++ b/pages/client-detail/index.vue @@ -3,7 +3,7 @@ 客户详情 - 客户授信 + 客户授信 @@ -59,6 +59,17 @@ export default { onClickItem(e) { console.log('e', e) this.current = e.currentIndex + }, + makeCredit() { + let info = this.$refs.basicInformationRef.getCompanyInfo() + if (info.id) { + go2('client-credit', { enterpriseId: info.id, name: info.name }) + } else { + uni.showToast({ + title: '该企业基础信息不完善', + icon: 'none' + }) + } } } } diff --git a/pages/client-list/index.vue b/pages/client-list/index.vue index 7ed3d71..ead1686 100644 --- a/pages/client-list/index.vue +++ b/pages/client-list/index.vue @@ -15,7 +15,7 @@ > --> - + > @@ -90,7 +90,7 @@ export default { onStatusChange(e) { this.pagination.pageNum = 1 this.$refs.list.refresh() - this.getList() + // this.getList() // const value = e.detail.value }, getList() { diff --git a/pages/search/index.vue b/pages/search/index.vue index eca9d44..9c22c08 100644 --- a/pages/search/index.vue +++ b/pages/search/index.vue @@ -19,7 +19,7 @@ - + 搜索历史 @@ -30,6 +30,10 @@ + + + 搜索无内容,换个关键词在试一次吧 + diff --git a/static/imgs/client/search-empty.png b/static/imgs/client/search-empty.png new file mode 100644 index 0000000..63334c0 Binary files /dev/null and b/static/imgs/client/search-empty.png differ