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
9c0e4863
Commit
9c0e4863
authored
Nov 23, 2020
by
Kyle_Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 日指标
parent
24dadec6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
perfect-day-target.vue
src/views/apps/target-manage/perfect-day-target.vue
+20
-6
No files found.
src/views/apps/target-manage/perfect-day-target.vue
View file @
9c0e4863
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
<li
v-for=
"(item, i) in zerofill"
:key=
"i"
></li>
<li
v-for=
"(item, i) in zerofill"
:key=
"i"
></li>
<li
v-for=
"(item, i) in tableData"
:key=
"i"
>
<li
v-for=
"(item, i) in tableData"
:key=
"i"
>
<div>
{{
item
.
perf
ro
manceDay
}}
</div>
<div>
{{
item
.
perf
or
manceDay
}}
</div>
<el-input-number
v-model=
"item.performanceValue"
:precision=
"2"
:controls=
"false"
style=
"width: 80px;margin-left:40px;margin-top:5px"
></el-input-number>
<el-input-number
v-model=
"item.performanceValue"
:precision=
"2"
:controls=
"false"
style=
"width: 80px;margin-left:40px;margin-top:5px"
></el-input-number>
</li>
</li>
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
// import errMsg from '@/common/js/error';
// import errMsg from '@/common/js/error';
// import showMsg from '@/common/js/showmsg';
// import showMsg from '@/common/js/showmsg';
import
fetch
from
'@/api/target-manage-app.js'
;
import
fetch
from
'@/api/target-manage-app.js'
;
const
{
changeStorePerformanceDay
,
getStorePerformanceDay
}
=
fetch
;
const
{
changeStorePerformanceDay
,
getStorePerformanceDay
,
changeStorePerformanceMonth
}
=
fetch
;
export
default
{
export
default
{
name
:
'PerfectDayTarget'
,
name
:
'PerfectDayTarget'
,
components
:
{},
components
:
{},
...
@@ -167,7 +167,7 @@ export default {
...
@@ -167,7 +167,7 @@ export default {
this
.
zerofill
=
new
Array
(
week
).
fill
(
null
);
// 补空白
this
.
zerofill
=
new
Array
(
week
).
fill
(
null
);
// 补空白
this
.
tableData
=
new
Array
(
days
).
fill
(
null
).
map
((
item
,
i
)
=>
{
this
.
tableData
=
new
Array
(
days
).
fill
(
null
).
map
((
item
,
i
)
=>
{
return
{
return
{
perf
ro
manceDay
:
i
+
1
,
perf
or
manceDay
:
i
+
1
,
performanceValue
:
0
performanceValue
:
0
};
};
});
});
...
@@ -188,16 +188,30 @@ export default {
...
@@ -188,16 +188,30 @@ export default {
};
};
getStorePerformanceDay
(
par
,
{
headers
:
{
sign
:
this
.
brandId
}
})
getStorePerformanceDay
(
par
,
{
headers
:
{
sign
:
this
.
brandId
}
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
lo
9g
(
res
.
perfro
manceValue
);
console
.
lo
g
(
res
.
perfor
manceValue
);
});
});
}
}
},
},
// 修改月指标
confirmMonthTarget
()
{
confirmMonthTarget
()
{
this
.
$refs
.
targetForm
.
validate
(
valid
=>
{
this
.
$refs
.
targetForm
.
validate
(
valid
=>
{
if
(
!
valid
)
return
;
if
(
!
valid
)
return
;
const
{
performanceYm
,
performanceType
,
storeInfoId
}
=
this
.
form
;
let
params
=
{
...
this
.
haoban
,
performanceYm
,
performanceType
,
storeInfoId
,
performanceValue
:
this
.
targetForm
.
value
};
changeStorePerformanceMonth
(
params
,
{
headers
:
{
sign
:
this
.
brandId
}
})
.
then
(
res
=>
{
});
});
});
},
},
// 修改
月
指标
// 修改
日
指标
confirm
()
{
confirm
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
let
params
=
{
let
params
=
{
...
@@ -224,7 +238,7 @@ export default {
...
@@ -224,7 +238,7 @@ export default {
return
{
return
{
performanceValue
,
performanceValue
,
performanceSubType
:
this
.
form
.
performanceSubType
,
performanceSubType
:
this
.
form
.
performanceSubType
,
performanceDay
:
`
${
this
.
form
.
performanceYm
}
-
${
performanceDay
}
`
performanceDay
:
`
${
this
.
form
.
performanceYm
}
-
${
performanceDay
.
toString
().
padStart
(
2
,
'0'
)
}
`
};
};
}));
}));
},
},
...
...
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