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
7d8b1db8
Commit
7d8b1db8
authored
Nov 01, 2022
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关联企业 修复部分bug
parent
e635fb90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
15 deletions
+30
-15
AffiliatedEnterprisesUpdate.vue
...personalCenter/components/AffiliatedEnterprisesUpdate.vue
+30
-15
No files found.
src/views/personalCenter/components/AffiliatedEnterprisesUpdate.vue
View file @
7d8b1db8
...
...
@@ -289,21 +289,21 @@
style=
"padding-left: 45px;"
:data=
"affiliateFrom.userEnterpriseOperateRelativeList"
>
<el-table-column
width=
"178"
label=
"年份"
prop=
"year"
:show-overflow-tooltip=
"true"
>
<el-table-column
width=
"178"
label=
"年份"
prop=
"year"
>
<
template
slot-scope=
"scope"
>
<el-input
class=
"first-input"
style=
"width: 100%"
size=
"medium"
v-model
.
trim=
"scope.row.year"
oninput=
"this.value= this.value.replace(/[^0-9]/g,'')"
placeholder=
"请输入年份"
maxlength=
"10"
type=
"number"
/>
</
template
>
</el-table-column>
<el-table-column
width=
"178"
align=
"center"
label=
"总资产(万元)"
prop=
"assetTotal"
:show-overflow-tooltip=
"true"
>
<el-table-column
width=
"178"
align=
"center"
label=
"总资产(万元)"
prop=
"assetTotal"
>
<
template
slot-scope=
"scope"
>
<el-input
class=
"first-input"
...
...
@@ -320,8 +320,7 @@
</el-input>
</
template
>
</el-table-column>
<el-table-column
width=
"178"
align=
"center"
label=
"净利润(万元)"
prop=
"netProfit"
:show-overflow-tooltip=
"true"
>
<el-table-column
width=
"178"
align=
"center"
label=
"净利润(万元)"
prop=
"netProfit"
>
<
template
slot-scope=
"scope"
>
<el-input
class=
"first-input"
...
...
@@ -336,8 +335,7 @@
</el-input>
</
template
>
</el-table-column>
<el-table-column
width=
"178"
align=
"center"
label=
"营业收入(万元)"
prop=
"operatingIncome"
:show-overflow-tooltip=
"true"
>
<el-table-column
width=
"178"
align=
"center"
label=
"营业收入(万元)"
prop=
"operatingIncome"
>
<
template
slot-scope=
"scope"
>
<el-input
class=
"first-input"
...
...
@@ -352,8 +350,7 @@
</el-input>
</
template
>
</el-table-column>
<el-table-column
width=
"178"
align=
"center"
label=
"主营业收入(万元)"
prop=
"mainBusinessIncome"
:show-overflow-tooltip=
"true"
>
<el-table-column
width=
"178"
align=
"center"
label=
"主营业收入(万元)"
prop=
"mainBusinessIncome"
>
<
template
slot-scope=
"scope"
>
<el-input
class=
"first-input"
...
...
@@ -368,7 +365,7 @@
</el-input>
</
template
>
</el-table-column>
<el-table-column
width=
"178"
align=
"center"
label=
"税收(万元)"
prop=
"tax"
:show-overflow-tooltip=
"true"
>
<el-table-column
width=
"178"
align=
"center"
label=
"税收(万元)"
prop=
"tax"
>
<
template
slot-scope=
"scope"
>
<el-input
class=
"first-input"
...
...
@@ -383,8 +380,7 @@
</el-input>
</
template
>
</el-table-column>
<el-table-column
width=
"178"
align=
"center"
label=
"研发投入(万元)"
prop=
"researchInvestment"
:show-overflow-tooltip=
"true"
>
<el-table-column
width=
"178"
align=
"center"
label=
"研发投入(万元)"
prop=
"researchInvestment"
>
<
template
slot-scope=
"scope"
>
<el-input
class=
"first-input"
...
...
@@ -535,6 +531,7 @@
class=
"first-input"
v-model
.
trim=
"scope.row.incubationCompanies"
oninput=
"this.value= this.value.replace(/[^0-9]/g,'')"
@
blur=
"InputNumberFoment('incubationCompanies',3)"
maxlength=
"4"
placeholder=
"请输入"
></el-input>
</
template
>
...
...
@@ -545,6 +542,7 @@
class=
"first-input"
v-model
.
trim=
"scope.row.graduateCompanies"
oninput=
"this.value= this.value.replace(/[^0-9]/g,'')"
@
blur=
"InputNumberFoment('graduateCompanies',3)"
maxlength=
"4"
placeholder=
"请输入"
></el-input>
</
template
>
...
...
@@ -923,18 +921,35 @@ export default {
this
.
ProjectInformation
[
0
][
val
]
=
this
.
thousand
.
fmoney
(
this
.
ProjectInformation
[
0
][
val
]);
//千分位反格式化
}
}
else
if
(
flag
===
3
)
{
// let number = this.VehicleInformation[0][val].substring(0,1)
// console.log('this.VehicleInformation[0][val]>>>',this.VehicleInformation[0][val])
// console.log("number===",number)
// console.log("1111111111",this.VehicleInformation[0][val].substring(1))
if
(
this
.
VehicleInformation
[
0
][
val
].
indexOf
(
'.'
)
!==
-
1
)
{
//截取整数
const
integer
=
this
.
VehicleInformation
[
0
][
val
].
substring
(
0
,
this
.
VehicleInformation
[
0
][
val
].
indexOf
(
'.'
))
//截取小数
const
decimal
=
this
.
VehicleInformation
[
0
][
val
].
substring
(
this
.
VehicleInformation
[
0
][
val
].
indexOf
(
'.'
),
this
.
VehicleInformation
[
0
][
val
].
length
)
this
.
VehicleInformation
[
0
][
val
]
=
integer
+
decimal
.
substring
(
0
,
3
);
//千分位反格式化
console
.
log
(
"this.VehicleInformation[0][val]>>>>>>"
,
this
.
VehicleInformation
[
0
][
val
])
}
else
{
this
.
VehicleInformation
[
0
][
val
]
=
this
.
VehicleInformation
[
0
][
val
]
let
number
=
this
.
VehicleInformation
[
0
][
val
].
substring
(
0
,
1
)
if
(
number
===
'0'
)
{
// console.log("number>>",number)
let
strarr
=
this
.
VehicleInformation
[
0
][
val
].
split
(
''
)
// console.log("strarr",strarr)
let
count
=
0
for
(
var
i
=
0
;
i
<
strarr
.
length
;
i
++
){
if
(
strarr
[
i
]
!==
'0'
){
count
=
i
;
break
}
}
// console.log("count>>",count)
// console.log("1111111111",this.VehicleInformation[0][val].substring(count))
this
.
VehicleInformation
[
0
][
val
]
=
this
.
VehicleInformation
[
0
][
val
].
substring
(
count
)
}
else
{
this
.
VehicleInformation
[
0
][
val
]
=
this
.
VehicleInformation
[
0
][
val
]
}
}
}
},
...
...
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