diff --git a/pages/client-credit/index.vue b/pages/client-credit/index.vue index 873c48d..05f4460 100644 --- a/pages/client-credit/index.vue +++ b/pages/client-credit/index.vue @@ -95,6 +95,13 @@ export default { if (option.enterpriseId) { this.form.name = option.name this.form.enterpriseId = option.enterpriseId + if (option.name) { + getCompanyList({ enterpriseName: option.name }).then((res) => { + if (res) { + this.searchList = res.records + } + }) + } } }, methods: { diff --git a/pages/client-detail/index.vue b/pages/client-detail/index.vue index 43e7e9d..f2eb3d8 100644 --- a/pages/client-detail/index.vue +++ b/pages/client-detail/index.vue @@ -103,7 +103,15 @@ export default { this.dialogType = 3 this.$refs.popup.open() } else { - go2('client-credit') + let info = this.$refs.basicInformationRef.getCompanyInfo() + if (info.id) { + go2('client-credit', { enterpriseId: info.id, name: info.name }) + } else { + uni.showToast({ + title: '该企业基础信息不完善', + icon: 'error' + }) + } } }, cancelTap() { @@ -131,17 +139,6 @@ export default { default: break } - }, - makeCredit() { - let info = this.$refs.basicInformationRef.getCompanyInfo() - if (info.id) { - go2('client-credit', { enterpriseId: info.id, name: info.name }) - } else { - uni.showToast({ - title: '该企业基础信息不完善', - icon: 'error' - }) - } } } } diff --git a/pages/client/index.nvue b/pages/client/index.nvue index 260f947..f521398 100644 --- a/pages/client/index.nvue +++ b/pages/client/index.nvue @@ -35,7 +35,7 @@ - + 去报价 @@ -80,6 +80,7 @@ export default { } }, methods: { + go2, mapChange(data) { let params = { cooperationState: 0, @@ -170,6 +171,13 @@ export default { clearInterval(this.transitionTimer) this.transitionTimer = null } + }, + // 前往询价详情 + jumpEnquiryDetail() { + let target = this.enquiryList[this.curIndex] + if(target) { + go2('submit-quotation',{title:'提交报价',id:target.id}) + } } }, computed: { diff --git a/pages/follow-up-records/index.vue b/pages/follow-up-records/index.vue index 8fe2f22..5946918 100644 --- a/pages/follow-up-records/index.vue +++ b/pages/follow-up-records/index.vue @@ -1,260 +1,260 @@ + diff --git a/pages/mine/index.vue b/pages/mine/index.vue index a3ac149..ac4482d 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -112,10 +112,10 @@ 合同管理 - + 授信记录