Commit 4169eb02 authored by 潘自豪's avatar 潘自豪

营业额明细

parent a435bee0
...@@ -21,7 +21,7 @@ export const userLogin = (username, pass, captchaSign, verificationcode, captcha ...@@ -21,7 +21,7 @@ export const userLogin = (username, pass, captchaSign, verificationcode, captcha
}, 'POST'); }, 'POST');
//首页营业额率值 -汇总 //首页营业额率值 -汇总
export const getBusinessConditionDatas = (cur_day) => fetch('/api/query/*/action/get_business_condition_datas', { export const getBusinessConditionDatas = (cur_day) => fetch('/api/query/*/action/get_business_condition_datas', {
aux: { aux: {
cur_day: cur_day cur_day: cur_day
} }
...@@ -30,7 +30,7 @@ export const getBusinessConditionDatas = (cur_day) => fetch('/api/query/*/action ...@@ -30,7 +30,7 @@ export const getBusinessConditionDatas = (cur_day) => fetch('/api/query/*/action
//明细页营业额汇月 -汇总 //明细页营业额汇月 -汇总
export const getBusinessConditionDataByMonth = (cur_day) => fetch('/api/query/*/action/get_business_condition_datas_by_month', { export const getBusinessConditionDataByMonth = (cur_day) => fetch('/api/query/*/action/get_business_condition_datas_by_month', {
aux: { aux: {
cur_day: cur_dayS cur_day: cur_day
} }
}, 'POST'); }, 'POST');
...@@ -53,3 +53,18 @@ export const arMonthlyBar = () => fetch("/api/query/dash_board/action/get_ar_mon ...@@ -53,3 +53,18 @@ export const arMonthlyBar = () => fetch("/api/query/dash_board/action/get_ar_mon
export const arCompanyMonthlyBar = (company) => fetch("/api/query/dash_board/action/get_ar_company_monthly_bar", {aux: {company: company}}, "POST") export const arCompanyMonthlyBar = (company) => fetch("/api/query/dash_board/action/get_ar_company_monthly_bar", {aux: {company: company}}, "POST")
// 开票月份 应收账款(结算单位) // 开票月份 应收账款(结算单位)
export const arMonthlyCompanyBar = (month) => fetch("/api/query/dash_board/action/get_ar_monthly_company_bar", {aux: {month: month}}, "POST") export const arMonthlyCompanyBar = (month) => fetch("/api/query/dash_board/action/get_ar_monthly_company_bar", {aux: {month: month}}, "POST")
//明细页营业额汇月 -汇总
export const getAllTypeBusinessConditionDatas = (cur_day) => fetch('/api/query/*/action/get_all_type_business_condition_datas', {
aux: {
cur_day: cur_day
}
}, 'POST');
//明细页各种运输类型营业额明细
export const getAllTypeBusinessConditionDetailByDay = (cur_day) => fetch('/api/query/*/action/get_all_type_business_condition_detail_by_day', {
aux: {
cur_day: cur_day
}
}, 'POST');
This diff is collapsed.
...@@ -18,10 +18,19 @@ export const conver_num_rate = function (amont) { ...@@ -18,10 +18,19 @@ export const conver_num_rate = function (amont) {
if (amont > 0) { if (amont > 0) {
return "+" + amont + "%" return "+" + amont + "%"
} else { } else {
return "-" + amont + "%" return amont + "%"
} }
}; };
/**
* 保留两位小数
* @param amont
* @returns {string|*}
*/
export const conver_num_retain = function (amont) {
return formater(amont)
}
//数字金额显示 //数字金额显示
function formater(data) { function formater(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment