Commit 7630b093 by 杨明

fixed

1 parent 78550792
...@@ -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
}) })
} }
......
...@@ -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
}) })
} }
......
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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!