Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant-assemble
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7630b093
authored
Jun 28, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
78550792
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
api/activityApi/ActivityApi.js
api/outputApi/output.js
packagesList/outDetail/index.wxs
api/activityApi/ActivityApi.js
View file @
7630b09
...
@@ -279,7 +279,7 @@ class ActivityApi {
...
@@ -279,7 +279,7 @@ class ActivityApi {
/**查询4s店商户产值总览、当日新增产值 --精品升级 */
/**查询4s店商户产值总览、当日新增产值 --精品升级 */
boutiquecouponOutputValue
(
data
)
{
boutiquecouponOutputValue
(
data
)
{
return
api
.
post
({
return
api
.
post
({
method
:
`scrm.api.boutiquecoupon.outputValue.overview`
,
method
:
`scrm.api.boutiquecoupon.outputValue.overview
.byDayReport
`
,
...
data
...
data
})
})
}
}
...
...
api/outputApi/output.js
View file @
7630b09
...
@@ -128,7 +128,7 @@ class outputApi {
...
@@ -128,7 +128,7 @@ class outputApi {
/** 业务经营汇总列表查询 */
/** 业务经营汇总列表查询 */
getBusiStatistics
(
data
)
{
getBusiStatistics
(
data
)
{
return
api
.
post
({
return
api
.
post
({
method
:
'scrm.api.boutiquecoupon.store.assistant.merchants.total.statistics'
,
method
:
'scrm.api.boutiquecoupon.store.assistant.merchants.total.statistics
.forStoreManager
'
,
...
data
...
data
})
})
}
}
...
...
packagesList/outDetail/index.wxs
View file @
7630b09
var arrInclues = function(num,arr)
{
var arrInclues = function (num, arr)
{
var flag = false
var flag = false
for
(var i = 0;i<arr.length;i++)
{
for
(var i = 0; i < arr.length; i++)
{
if
(num==arr[i])
{
if
(num == arr[i])
{
flag = true
flag = true
}
}
}
}
return flag
return flag
}
}
var accMul = function(arg1, arg2)
{
var accMul = function (arg1, arg2)
{
if (isNaN(arg1)) {
if (isNaN(arg1)) {
arg1 = 0;
arg1 = 0;
}
}
if (isNaN(arg2)) {
if (isNaN(arg2)) {
arg2 = 0;
arg2 = 0;
}
}
var m
=0, s1 = arg1.toString()
,
var m
= 0, s1 = arg1 + ''
,
s2 = arg2.toString()
;
s2 = arg2 + ''
;
m += (s1.split(".")[1] && s1.split(".")[1].length) || 0;
m += (s1.split(".")[1] && s1.split(".")[1].length) || 0;
m += (s2.split(".")[1] && s2.split(".")[1].length) || 0;
m += (s2.split(".")[1] && s2.split(".")[1].length) || 0;
var s = s1.replace(".", "") * s2.replace(".", ""),
var s = s1.replace(".", "") * s2.replace(".", ""),
p = Math.pow(10,
m)
p = Math.pow(10,
m)
return s
/
p
return s
/
p
};
};
module.exports = {
module.exports = {
arrInclues: arrInclues,
arrInclues: arrInclues,
accMul:accMul
}
\ No newline at end of file
\ No newline at end of file
accMul: accMul
}
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment