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 @@