Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
enterprise-serevice-platform-web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
enterprise-serevice-platform-web
Commits
a0ea7fe8
Commit
a0ea7fe8
authored
Oct 29, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
33c8d16b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
158 additions
and
34 deletions
+158
-34
api.js
src/views/PolicyDirect/api.js
+12
-2
policyRecommendation.vue
src/views/PolicyDirect/components/policyRecommendation.vue
+136
-22
login.vue
src/views/login/login.vue
+10
-10
No files found.
src/views/PolicyDirect/api.js
View file @
a0ea7fe8
...
...
@@ -12,14 +12,24 @@ export function getDicts(dictType) {
}
})
}
/** 通过企业名称获取数据*/
export
function
getListByName
(
data
)
{
return
request
({
url
:
'/policyRecommendation/enterpriseInfo/getEnterpriseByName/'
+
data
,
method
:
'get'
})
}
/** 点击获取报告提交表单*/
export
function
submitForm
(
data
)
{
return
request
({
url
:
'/policyRecommendation/enterpriseInfo/addOrUpdateUserEnterprise '
,
method
:
'post'
,
data
,
headers
:
{
'Content-Type'
:
'application/json'
}
})
}
export
function
listPolicy
(
data
)
{
const
{
pageNum
,
pageSize
}
=
data
return
request
({
...
...
src/views/PolicyDirect/components/policyRecommendation.vue
View file @
a0ea7fe8
...
...
@@ -65,6 +65,7 @@
clearable
:append-to-body=
"false"
class=
"sortType-class"
value-format=
"yyyy-MM-dd"
style=
"width: 100%"
type=
"date"
placeholder=
"选择日期"
...
...
@@ -74,7 +75,7 @@
<el-col
:span=
"8"
>
<el-form-item
label=
"注册地址"
prop=
"address"
>
<el-cascader
v-model=
"
form.
address"
v-model=
"address"
:popper-append-to-body=
"false"
class=
"sortType-class"
style=
"width: 100%"
...
...
@@ -225,10 +226,10 @@
</el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"营业收入"
prop=
"
i
ncome"
:show-overflow-tooltip=
"true"
>
<el-table-column
align=
"center"
label=
"营业收入"
prop=
"
operatingI
ncome"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model
.
trim=
"scope.row.
i
ncome"
v-model
.
trim=
"scope.row.
operatingI
ncome"
clearable
placeholder=
"请输入营业收入"
>
...
...
@@ -236,10 +237,21 @@
</el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"
税收"
prop=
"taxRevenu
e"
:show-overflow-tooltip=
"true"
>
<el-table-column
align=
"center"
label=
"
主营业务收入"
prop=
"mainBusinessIncom
e"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model
.
trim=
"scope.row.taxRevenue"
v-model
.
trim=
"scope.row.mainBusinessIncome"
clearable
placeholder=
"请输入营业收入"
>
<span
slot=
"suffix"
>
万元
</span>
</el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"税收"
prop=
"tax"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model
.
trim=
"scope.row.tax"
clearable
placeholder=
"请输入税收"
>
...
...
@@ -247,10 +259,10 @@
</el-input>
</
template
>
</el-table-column>
<el-table-column
align=
"center"
label=
"研发投入"
prop=
"
i
nvestment"
:show-overflow-tooltip=
"true"
>
<el-table-column
align=
"center"
label=
"研发投入"
prop=
"
researchI
nvestment"
:show-overflow-tooltip=
"true"
>
<
template
slot-scope=
"scope"
>
<el-input
v-model
.
trim=
"scope.row.
i
nvestment"
v-model
.
trim=
"scope.row.
researchI
nvestment"
clearable
placeholder=
"请输入研发投入"
>
...
...
@@ -316,6 +328,7 @@
clearable
class=
"sortType-class"
style=
"width: 100%"
value-format=
"yyyy-MM-dd"
type=
"date"
placeholder=
"选择日期"
/>
...
...
@@ -384,7 +397,7 @@
// import YaInputDigit from '@/views/PolicyDirect/components/YaInputDigit'
import
{
mapActions
,
mapGetters
}
from
'vuex'
import
{
stringIsEmpty
}
from
'@/utils/common'
import
{
getAddressByCode
,
policyTabGetByName
,
getListByName
}
from
'@/views/PolicyDirect/api'
import
{
getAddressByCode
,
policyTabGetByName
,
getListByName
,
submitForm
}
from
'@/views/PolicyDirect/api'
export
default
{
name
:
'PolicyRecommendation'
,
...
...
@@ -430,6 +443,8 @@ export default {
value
:
'5'
}
],
enterpriseNotExist
:
false
,
// 企业是否存在
address
:
''
,
form
:
{
name
:
''
,
socialCreditCode
:
''
,
...
...
@@ -549,7 +564,7 @@ export default {
enterpriseTypeId
:
[{
required
:
true
,
message
:
'企业类型不能为空'
,
trigger
:
'
blur
'
trigger
:
'
change
'
}]
},
// 地址信息
...
...
@@ -596,6 +611,7 @@ export default {
if
(
name
)
{
getListByName
(
name
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
enterpriseNotExist
=
false
this
.
form
=
res
.
data
this
.
form
.
fwEnterpriseOperateRelativeList
=
[
{
...
...
@@ -626,12 +642,37 @@ export default {
researchInvestment
:
''
}
]
this
.
form
.
intellectualPropertyData
=
[
{
intellectualProperty
:
''
,
patentsNumber
:
''
,
trademarksNumber
:
''
,
softwareWorksNumber
:
''
}
]
this
.
form
.
projectInformationData
=
[
{
projectInvestment
:
''
,
implementationTime
:
''
,
projectStatus
:
''
}
]
this
.
form
.
carrierInformation
=
[
{
carrierDominanceArea
:
''
,
incubationCompanies
:
''
,
graduateCompanies
:
''
}
]
}
}).
catch
(()
=>
{
this
.
enterpriseNotExist
=
true
})
}
},
/** 清空*/
handleClearForm
()
{
this
.
address
=
''
this
.
form
=
{
name
:
''
,
socialCreditCode
:
''
,
...
...
@@ -718,29 +759,102 @@ export default {
},
/** 获取报告*/
handleGetReports
()
{
console
.
log
(
'form.enterpriseTypeId'
,
this
.
form
.
enterpriseTypeId
)
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
arrayToString
()
// 提交时数组转字符串
if
(
this
.
enterpriseNotExist
)
{
this
.
$message
({
type
:
'error'
,
message
:
'当前企业不存在,无法获取报告'
})
}
else
{
this
.
arrayToString
()
// 提交时数组转字符串
this
.
dataProcess
()
// 把前端放在列表里的字段拿出来
submitForm
(
this
.
form
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
({
type
:
'success'
,
message
:
'操作成功'
})
}
})
}
}
})
},
/** 提交时数组转字符串*/
arrayToString
()
{
//
企业性质
if
(
this
.
form
.
enterpriseNature
)
{
this
.
form
.
enterpriseNature
=
this
.
form
.
enterpriseNature
.
toString
(
)
//
地址
if
(
this
.
address
.
length
>
0
)
{
this
.
form
.
address
=
this
.
address
.
join
(
''
)
}
// 所属领域
if
(
this
.
form
.
enterpriseField
)
{
this
.
form
.
enterpriseField
=
this
.
form
.
enterpriseField
.
toString
()
// // 企业性质
// if (this.form.enterpriseNature) {
// this.form.enterpriseNature = this.form.enterpriseNature.toString()
// }
// // 所属领域
// if (this.form.enterpriseField) {
// this.form.enterpriseField = this.form.enterpriseField.toString()
// }
// // 企业资质
// if (this.form.enterpriseQualifications) {
// this.form.enterpriseQualifications = this.form.enterpriseQualifications.toString()
// }
// // 企业技术能力
// if (this.form.enterpriseAblity) {
// this.form.enterpriseAblity = this.form.enterpriseAblity.toString()
// }
},
/** 数据处理,把前端放在列表里的字段拿出来*/
dataProcess
()
{
// 知识产权table
if
(
this
.
form
.
intellectualPropertyData
.
length
>
0
)
{
// 知识产权总数
if
(
this
.
form
.
intellectualPropertyData
[
0
].
intellectualProperty
)
{
this
.
form
.
intellectualProperty
=
this
.
form
.
intellectualPropertyData
[
0
].
intellectualProperty
}
// 专利总数
if
(
this
.
form
.
intellectualPropertyData
[
0
].
patentsNumber
)
{
this
.
form
.
patentsNumber
=
this
.
form
.
intellectualPropertyData
[
0
].
patentsNumber
}
// 注册商标总数
if
(
this
.
form
.
intellectualPropertyData
[
0
].
trademarksNumber
)
{
this
.
form
.
trademarksNumber
=
this
.
form
.
intellectualPropertyData
[
0
].
trademarksNumber
}
// 软件著作总数
if
(
this
.
form
.
intellectualPropertyData
[
0
].
softwareWorksNumber
)
{
this
.
form
.
softwareWorksNumber
=
this
.
form
.
intellectualPropertyData
[
0
].
softwareWorksNumber
}
}
// 企业资质
if
(
this
.
form
.
enterpriseQualifications
)
{
this
.
form
.
enterpriseQualifications
=
this
.
form
.
enterpriseQualifications
.
toString
()
// 项目信息
if
(
this
.
form
.
projectInformationData
.
length
>
0
)
{
// 项目总投资
if
(
this
.
form
.
projectInformationData
[
0
].
projectInvestment
)
{
this
.
form
.
projectInvestment
=
this
.
form
.
projectInformationData
[
0
].
projectInvestment
}
// 项目实施时间
if
(
this
.
form
.
projectInformationData
[
0
].
implementationTime
)
{
this
.
form
.
implementationTime
=
this
.
form
.
projectInformationData
[
0
].
implementationTime
}
// 项目情况
if
(
this
.
form
.
projectInformationData
[
0
].
projectStatus
)
{
this
.
form
.
projectStatus
=
this
.
form
.
projectInformationData
[
0
].
projectStatus
}
}
// 企业技术能力
if
(
this
.
form
.
enterpriseAblity
)
{
this
.
form
.
enterpriseAblity
=
this
.
form
.
enterpriseAblity
.
toString
()
// 载体信息
if
(
this
.
form
.
carrierInformation
.
length
>
0
)
{
// 载体支配面积
if
(
this
.
form
.
carrierInformation
[
0
].
carrierDominanceArea
)
{
this
.
form
.
carrierDominanceArea
=
this
.
form
.
carrierInformation
[
0
].
carrierDominanceArea
}
// 在孵企业数
if
(
this
.
form
.
carrierInformation
[
0
].
incubationCompanies
)
{
this
.
form
.
incubationCompanies
=
this
.
form
.
carrierInformation
[
0
].
incubationCompanies
}
// 毕业企业数
if
(
this
.
form
.
carrierInformation
[
0
].
graduateCompanies
)
{
this
.
form
.
graduateCompanies
=
this
.
form
.
carrierInformation
[
0
].
graduateCompanies
}
}
},
/** 获取企业类型,企业性质,企业技术能力,企业资质,所属领域的下拉*/
...
...
src/views/login/login.vue
View file @
a0ea7fe8
...
...
@@ -133,16 +133,16 @@
忘记密码
</div>
</div>
<div
v-if=
"loginType === 'password' || loginType === 'phone'"
>
<div
class=
"otherWay"
>
<el-divider
/
>
<div
class=
"otherBtn"
>
其它登录方式
</div
>
<el-divider
/
>
</div
>
<div
style=
"text-align: center"
>
<img
:src=
"weixinLogo"
class=
"sc-img"
>
</div
>
</div
>
<!--
<div
v-if=
"loginType === 'password' || loginType === 'phone'"
>
--
>
<!--
<div
class=
"otherWay"
>
--
>
<!--
<el-divider
/>
--
>
<!--
<div
class=
"otherBtn"
>
其它登录方式
</div>
--
>
<!--
<el-divider
/>
--
>
<!--
</div>
--
>
<!--
<div
style=
"text-align: center"
>
--
>
<!--
<img
:src=
"weixinLogo"
class=
"sc-img"
>
--
>
<!--
</div>
--
>
<!--
</div>
--
>
</div>
</el-form>
<!-- 底部 -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment