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 @@
-
+
抢单
取消发布
@@ -132,7 +132,8 @@ export default {
props: {
instance: Function,
dict: Object,
- permissions: Function
+ permissions: Function,
+ row: Object,
},
computed: {
...mapState(['user']),
@@ -183,7 +184,7 @@ export default {
},
methods: {
getDetail() {
- let {id} = this.$route.query
+ let {id} = this.row
this.instance.post("/appfinancingdemand/queryDetailById", null, {
params: {id}
}).then(res => {
@@ -228,7 +229,7 @@ export default {
}).catch(() => 0)
},
back() {
- this.$router.push({query: {}})
+ this.$emit('goBack')
}
},
created() {
diff --git a/project/xiushan/apps/financing/AppFinancingNeeds/needsList.vue b/project/xiushan/apps/financing/AppFinancingNeeds/needsList.vue
index 0245b681..9d1d935d 100644
--- a/project/xiushan/apps/financing/AppFinancingNeeds/needsList.vue
+++ b/project/xiushan/apps/financing/AppFinancingNeeds/needsList.vue
@@ -1,7 +1,6 @@
-
@@ -13,7 +12,7 @@
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
- 详情
+ 详情
@@ -63,9 +62,9 @@ export default {
}
})
},
- showDetail(id) {
- this.$router.push({query: {id}})
- }
+ goTo(key = '', row) {
+ this.$emit('goPage', {key, row});
+ },
},
created() {
this.getTableData()
diff --git a/project/xiushan/apps/financing/AppFinancingNeeds/needsStatistics.vue b/project/xiushan/apps/financing/AppFinancingNeeds/needsStatistics.vue
new file mode 100644
index 00000000..7487f6c4
--- /dev/null
+++ b/project/xiushan/apps/financing/AppFinancingNeeds/needsStatistics.vue
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+