Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-4
Overview
Overview
Details
Activity
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
office
haoban-4
Commits
34d63e2b
Commit
34d63e2b
authored
Nov 26, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改保存导购
parent
d49034af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
perfect-day-target.vue
src/views/apps/target-manage/perfect-day-target.vue
+13
-3
perfect-sale-target.vue
src/views/apps/target-manage/perfect-sale-target.vue
+3
-3
No files found.
src/views/apps/target-manage/perfect-day-target.vue
View file @
34d63e2b
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:47:17
* @LastEditors: 无尘
* @LastEditTime: 2020-11-26 1
4:37:35
* @LastEditTime: 2020-11-26 1
8:01:52
-->
<
template
>
<div
class=
"common-app-right"
style=
"padding: 20px 0;color: #303133"
>
...
...
@@ -52,7 +52,7 @@
<li
v-for=
"(item, i) in tableData"
:key=
"i"
>
<div>
{{
item
.
performanceDay
}}
</div>
<el-input-number
v-model=
"item.performanceValue"
:disabled=
"disableSetting"
:precision=
"2"
:controls=
"false"
:max=
"99999999
9
"
style=
"width: 80px;margin-left:40px;margin-top:5px"
></el-input-number>
<el-input-number
v-model=
"item.performanceValue"
:disabled=
"disableSetting"
:precision=
"2"
:controls=
"false"
:max=
"99999999"
style=
"width: 80px;margin-left:40px;margin-top:5px"
></el-input-number>
</li>
<!-- 补充空白 -->
...
...
@@ -85,7 +85,7 @@
指标额
</span>
<el-input
v-model=
"targetForm.value"
style=
"width: 289px
"
>
<el-input
v-model=
"targetForm.value"
maxlength=
"11"
style=
"width: 289px"
@
blur=
"value => inputPerformance(value)
"
>
<span
slot=
"prefix"
style=
"color:#303133;padding-left:5px"
>
¥
</span>
</el-input>
</el-form-item>
...
...
@@ -175,6 +175,16 @@ export default {
this
.
$store
.
dispatch
(
'clearStoreData'
);
},
methods
:
{
/**
* @description:输入
* @param {Function} val
* @author: 无尘
*/
inputPerformance
:
function
(
val
)
{
const
that
=
this
;
that
.
targetForm
.
value
=
!!
Number
(
that
.
targetForm
.
value
.
replace
(
/
[^\d
.
]
/g
,
''
))
?
that
.
targetForm
.
value
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
''
)
:
''
;
that
.
targetForm
.
value
=
Number
(
that
.
targetForm
.
value
).
toFixed
(
2
)
>
99999999.99
?
99999999.99
:
Number
(
that
.
targetForm
.
value
).
toFixed
(
2
);
},
// 修改月指标
modMonthTarget
()
{
const
that
=
this
;
...
...
src/views/apps/target-manage/perfect-sale-target.vue
View file @
34d63e2b
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-11-12 10:48:40
* @LastEditors: 无尘
* @LastEditTime: 2020-11-26 1
0:52:29
* @LastEditTime: 2020-11-26 1
8:02:46
-->
<
template
>
<div
class=
"common-app-right"
>
...
...
@@ -30,7 +30,7 @@
<el-table-column
label=
"月指标"
>
<
template
slot-scope=
"scope"
>
<div>
<el-input
class=
"w-120 p-l-8"
maxlength=
"
50
"
v-model=
"scope.row.performanceValue"
placeholder=
"请输入"
:disabled=
"disableSetting"
@
blur=
"value => inputPerformance(value, scope.$index, scope.row)"
>
<el-input
class=
"w-120 p-l-8"
maxlength=
"
11
"
v-model=
"scope.row.performanceValue"
placeholder=
"请输入"
:disabled=
"disableSetting"
@
blur=
"value => inputPerformance(value, scope.$index, scope.row)"
>
<i
slot=
"prefix"
style=
"font-style: normal;position: absolute;top: 4px;left: 12px;"
>
¥
</i>
</el-input>
</div>
...
...
@@ -136,7 +136,7 @@ export default {
inputPerformance
:
function
(
val
,
index
,
row
)
{
const
that
=
this
;
row
.
performanceValue
=
!!
Number
(
row
.
performanceValue
.
replace
(
/
[^\d
.
]
/g
,
''
))
?
row
.
performanceValue
.
replace
(
/
[^\d
+(.
\d
+)
]
/g
,
''
)
:
''
;
row
.
performanceValue
=
Number
(
row
.
performanceValue
).
toFixed
(
2
);
row
.
performanceValue
=
Number
(
row
.
performanceValue
).
toFixed
(
2
)
>
99999999.99
?
99999999.99
:
Number
(
row
.
performanceValue
).
toFixed
(
2
);
;
let
sumData
=
0
;
that
.
tableData
.
forEach
(
ele
=>
{
sumData
+=
Number
(
ele
.
performanceValue
);
...
...
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