供需类型
-
{{ finalDetail.type === 1 ? '供应' : '需求' }}
+
{{ finalDetail.type === 1 ? '供应' : finalDetail.type === 2 ? '需求' : finalDetail.type === 3 ? '投融资' : '' }}
标题
{{ finalDetail.title || '-' }}
-
+
+
详细描述
{{ finalDetail.content || '-' }}
-
+
行业标签
{{ finalDetail.tag || '-' }}
+
+
+
+
+
资金类型
+
{{ finalDetail.fund_type || '-' }}
+
+
+
金额
+
{{ formatAmount(finalDetail.amount) }}
+
+
+
融资阶段
+
{{ finalDetail.fund_stage || '-' }}
+
+
+
期望资金属性
+
{{ finalDetail.expect_fund_attr || '-' }}
+
+
+
行业类型
+
{{ finalDetail.industry_type || '-' }}
+
+
+
主要产品
+
{{ finalDetail.product || '-' }}
+
+
+
简要描述
+
{{ finalDetail.desc || '-' }}
+
+
联系人
{{ finalDetail.contact_name || '-' }}
@@ -127,6 +160,11 @@ export default {
}
},
methods: {
+ formatAmount(val) {
+ const n = typeof val === 'number' ? val : parseFloat(val)
+ if (Number.isNaN(n)) return '-'
+ return n.toFixed(2)
+ },
async fetchDetail() {
if (!this.id) return
diff --git a/src/views/student/components/SupplyDemandEdit.vue b/src/views/student/components/SupplyDemandEdit.vue
index 780d3ce..8dfba26 100644
--- a/src/views/student/components/SupplyDemandEdit.vue
+++ b/src/views/student/components/SupplyDemandEdit.vue
@@ -5,15 +5,17 @@
供应
需求
+ 投融资
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
item.response?.id || item.id).filter(Boolean)
}
+ // 投融资类型下提交专属字段,其它类型清空
+ if (this.form.type === 3) {
+ data.fund_type = this.form.fund_type
+ data.amount = this.form.amount
+ data.fund_stage = this.form.fund_stage
+ data.expect_fund_attr = this.form.expect_fund_attr
+ data.industry_type = this.form.industry_type
+ data.product = this.form.product
+ data.desc = this.form.desc
+ // 投融资不提交行业标签与原描述
+ data.tag = ''
+ } else {
+ data.fund_type = ''
+ data.amount = 0
+ data.fund_stage = ''
+ data.expect_fund_attr = ''
+ data.industry_type = ''
+ data.product = ''
+ data.desc = ''
+ }
// 如果存在新上传的文件,确保它们都包含在 file_ids 中
if (this.newUploadedFileIds && this.newUploadedFileIds.length) {
const fileIdSet = new Set(data.file_ids)
diff --git a/src/views/student/components/addCompany.vue b/src/views/student/components/addCompany.vue
index 663143a..28703bb 100644
--- a/src/views/student/components/addCompany.vue
+++ b/src/views/student/components/addCompany.vue
@@ -51,10 +51,12 @@
集团标签:
-
+
+
+
diff --git a/src/views/student/index.vue b/src/views/student/index.vue
index 3ff74fd..88fbfd2 100644
--- a/src/views/student/index.vue
+++ b/src/views/student/index.vue
@@ -138,6 +138,9 @@
-->
+
+
+
@@ -347,6 +350,7 @@
company_area: '',
company_type: '',
company_industry: '',
+ company_tag: '',
is_vip: '',
is_schoolmate: '',
courses_end_date: '',
@@ -593,6 +597,7 @@
this.select.company_area = ''
this.select.company_type = ''
this.select.company_industry = ''
+ this.select.company_tag = ''
this.select.is_vip = ''
this.select.courses_end_date = ''
this.select.is_schoolmate = ''
@@ -625,6 +630,7 @@
company_area: this.select.company_area,
company_type: this.select.company_type,
company_industry: this.select.company_industry,
+ company_tag: this.select.company_tag,
is_vip: this.select.is_vip,
courses_end_date: this.select.courses_end_date,
is_schoolmate: this.select.is_schoolmate,
diff --git a/src/views/student/interaction_stats.vue b/src/views/student/interaction_stats.vue
index 8b903c2..e9e62c8 100644
--- a/src/views/student/interaction_stats.vue
+++ b/src/views/student/interaction_stats.vue
@@ -53,6 +53,7 @@
+
@@ -460,6 +461,7 @@ export default {
getTypeDisplayValue(type) {
if (type === 'demand' || type === 2) return '需求'
if (type === 'supply' || type === 1) return '供应'
+ if (type === 'finance' || type === 3) return '投融资'
return '未知'
},
@@ -467,6 +469,7 @@ export default {
getTypeTagType(type) {
if (type === 'demand' || type === 2) return 'warning'
if (type === 'supply' || type === 1) return 'success'
+ if (type === 'finance' || type === 3) return 'warning'
return 'info'
},
diff --git a/src/views/student/schoolmate.vue b/src/views/student/schoolmate.vue
index 8db321d..2ea28b6 100644
--- a/src/views/student/schoolmate.vue
+++ b/src/views/student/schoolmate.vue
@@ -138,6 +138,9 @@
-->
+
+
+
@@ -316,6 +319,7 @@
company_area: '',
company_type: '',
company_industry: '',
+ company_tag: '',
is_vip: '',
is_schoolmate: 1,
courses_end_date: '',
@@ -499,6 +503,7 @@
this.select.company_type = ''
this.select.company_industry = ''
this.select.is_vip = ''
+ this.select.company_tag = ''
this.select.courses_end_date = ''
this.select.is_schoolmate = 1
this.select.education = ''
@@ -530,6 +535,7 @@
company_area: this.select.company_area,
company_type: this.select.company_type,
company_industry: this.select.company_industry,
+ company_tag: this.select.company_tag,
is_vip: this.select.is_vip,
courses_end_date: this.select.courses_end_date,
is_schoolmate: this.select.is_schoolmate,
diff --git a/src/views/student/schoolmateCompany.vue b/src/views/student/schoolmateCompany.vue
index ce70310..8dc3b7a 100644
--- a/src/views/student/schoolmateCompany.vue
+++ b/src/views/student/schoolmateCompany.vue
@@ -16,12 +16,13 @@
-
-
-
-
-
-
+
+
查询
@@ -79,7 +80,7 @@
-
+
@@ -186,7 +187,7 @@
align: 'center',
width: 260
}, {
- prop: 'tag',
+ prop: 'company_tag',
label: '集团标签',
align: 'center',
width: 160,
diff --git a/src/views/student/supply_demand.vue b/src/views/student/supply_demand.vue
index 3fd135d..6f8a24a 100644
--- a/src/views/student/supply_demand.vue
+++ b/src/views/student/supply_demand.vue
@@ -31,6 +31,7 @@
+
@@ -63,7 +64,7 @@
- {{ scope.row.type === 1 ? '供应' : '需求' }}
+ {{ scope.row.type === 1 ? '供应' : scope.row.type === 2 ? '需求' : scope.row.type === 3 ? '投融资' : '' }}
@@ -244,7 +245,7 @@ export default {
return statusText[status] || '未知'
},
getTypeTagType(type) {
- return type === 1 ? 'success' : 'primary'
+ return type === 1 ? 'success' : type === 2 ? 'primary' : type === 3 ? 'warning' : 'info'
},
async handleApprove(row) {
try {