From dc27ac30e9dd68579df2addcd8b8c6c0425b7012 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 7 Apr 2022 19:47:59 +0800 Subject: [PATCH] =?UTF-8?q?bug=C2=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../finance/AppFinanceProduct/productAdd.vue | 9 +-- .../AppFinanceProduct/productDetail.vue | 2 + .../AppFinancingNeeds/AppFinancingNeeds.vue | 60 ++++++++++++++++++- .../AppFinancingNeeds/needsDetail.vue | 9 +-- .../financing/AppFinancingNeeds/needsList.vue | 9 ++- .../AppFinancingNeeds/needsStatistics.vue | 49 +++++++++++++++ 6 files changed, 122 insertions(+), 16 deletions(-) create mode 100644 project/xiushan/apps/financing/AppFinancingNeeds/needsStatistics.vue diff --git a/project/xiushan/apps/finance/AppFinanceProduct/productAdd.vue b/project/xiushan/apps/finance/AppFinanceProduct/productAdd.vue index 3ac4774f..3fe68dba 100644 --- a/project/xiushan/apps/finance/AppFinanceProduct/productAdd.vue +++ b/project/xiushan/apps/finance/AppFinanceProduct/productAdd.vue @@ -40,10 +40,10 @@ - + - + @@ -123,8 +123,9 @@ export default { applyCondition: [{required: true, message: "请输入申请条件", trigger: 'blur'}], needMaterial: [{required: true, message: "请输入所需材料", trigger: 'blur'}], productFeatures: [{required: true, message: "请输入产品特色", trigger: 'blur'}], - bankCounterpart: [{required: true, message: "请输入客户经理姓名", trigger: 'blur'}], - consultationTelephone: [{required: true, message: "请输入客户经理电话", trigger: 'blur'}], + bankCounterpart: [{required: true, message: "请输入客户经理姓名", trigger: 'change'}], + consultationTelephone: [ {required: true, message: "请输入客户经理电话", trigger: 'change'}, + {pattern: /^1[3456789]\d{9}$/, message: "电话号码格式有误"}], } } }, diff --git a/project/xiushan/apps/finance/AppFinanceProduct/productDetail.vue b/project/xiushan/apps/finance/AppFinanceProduct/productDetail.vue index f71c7b8c..13f8b4f3 100644 --- a/project/xiushan/apps/finance/AppFinanceProduct/productDetail.vue +++ b/project/xiushan/apps/finance/AppFinanceProduct/productDetail.vue @@ -27,6 +27,8 @@ {{ detail.guaranteeModeLabel }} + {{ detail.bankCounterpart }} + {{ detail.consultationTelephone }} diff --git a/project/xiushan/apps/financing/AppFinancingNeeds/AppFinancingNeeds.vue b/project/xiushan/apps/financing/AppFinancingNeeds/AppFinancingNeeds.vue index 3f317442..72e21fbf 100644 --- a/project/xiushan/apps/financing/AppFinancingNeeds/AppFinancingNeeds.vue +++ b/project/xiushan/apps/financing/AppFinancingNeeds/AppFinancingNeeds.vue @@ -1,6 +1,21 @@ @@ -8,6 +23,7 @@ import NeedsDetail from "./needsDetail"; import NeedsList from "./needsList"; +import NeedsStatistics from "./needsStatistics"; export default { name: "AppFinancingNeeds", @@ -18,13 +34,51 @@ export default { dict: Object, permissions: Function }, + provide() { + return { + need: this + } + }, + data() { + return { + currIndex: '0', + showList: true, + currentPage: "", + detail: {}, + } + }, computed: { - currentComponent() { - return !!this.$route.query.id ? NeedsDetail : NeedsList + tabs() { + return [ + { + label: "融资需求", name: "NeedsList", value: "0", comp: NeedsList, detail: NeedsDetail, + permission: "" + }, + { + label: "融资统计", name: "NeedsStatistics", value: "1", comp: NeedsStatistics, + permission: "" + } + ] + }, + currentTab() { + return this.tabs[this.currIndex] || {} } }, created() { this.dict.load("productRepaymentTimeline", "financialFundPurpose","financingDemandApplyType") + }, + methods: { + goPage(obj) { + this.currentPage = this.tabs[Number(this.currIndex)][obj.key]; + obj.row && (this.detail = obj.row) + this.showList = false; + }, + goBack() { + this.showList = true; + this.$nextTick(() => { + this.$refs[this.currIndex][0].getTableData(); + }) + }, } } diff --git a/project/xiushan/apps/financing/AppFinancingNeeds/needsDetail.vue b/project/xiushan/apps/financing/AppFinancingNeeds/needsDetail.vue index c1e1af5d..0a05da67 100644 --- a/project/xiushan/apps/financing/AppFinancingNeeds/needsDetail.vue +++ b/project/xiushan/apps/financing/AppFinancingNeeds/needsDetail.vue @@ -1,7 +1,7 @@