Commit c1606a17 by 张立顺

feat 报表设配

1 parent 21f58477
...@@ -404,7 +404,10 @@ export const warehouseStatusList = [ ...@@ -404,7 +404,10 @@ export const warehouseStatusList = [
// 获取最近n个月,默认6个月 // 获取最近n个月,默认6个月
export function getCurrentSixMonth(n = 5) { export function getCurrentSixMonth(n = 5) {
return [new Date(new Date().setMonth(new Date().getMonth() - n)), new Date()]; return [
new Date(new Date().setMonth(new Date().getMonth() - n)),
new Date(),
];
} }
// 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则 // 新值,旧值,整数部分位数,小数部分位数,最小值,最大值,规则
...@@ -423,8 +426,8 @@ export function limitPrice( ...@@ -423,8 +426,8 @@ export function limitPrice(
}; };
regRule = regRule || "priceReg"; regRule = regRule || "priceReg";
if ( if (
newValue newValue &&
&& ((minValue && newValue < minValue) || (maxValue && newValue > maxValue)) ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
) { ) {
return oldValue || ""; return oldValue || "";
} }
...@@ -433,16 +436,18 @@ export function limitPrice( ...@@ -433,16 +436,18 @@ export function limitPrice(
newValue = newValue + ""; newValue = newValue + "";
let interger = newValue.split(".")[0]; let interger = newValue.split(".")[0];
let point = newValue.split(".")[1]; let point = newValue.split(".")[1];
let intergerNum let intergerNum =
= interger.length > intergerDigit ? oldValue.split(".")[0] : interger; interger.length > intergerDigit
let pointNum ? oldValue.split(".")[0]
= point.length > pointDigit ? point.slice(0, pointDigit) : point; : interger;
let pointNum =
point.length > pointDigit ? point.slice(0, pointDigit) : point;
newValue = pointDigit newValue = pointDigit
? intergerNum + "." + pointNum ? intergerNum + "." + pointNum
: newValue.split(".")[0]; : newValue.split(".")[0];
} else { } else {
newValue newValue =
= newValue.length > intergerDigit newValue.length > intergerDigit
? oldValue.slice(0, intergerDigit) ? oldValue.slice(0, intergerDigit)
: newValue; : newValue;
} }
...@@ -475,9 +480,13 @@ export const appointDays = 35; ...@@ -475,9 +480,13 @@ export const appointDays = 35;
export const afterTodayOptions = { export const afterTodayOptions = {
disabledDate(date) { disabledDate(date) {
if ( if (
date < new Date(new Date().toLocaleDateString()) date < new Date(new Date().toLocaleDateString()) ||
|| date date >
> new Date(new Date().setDate(new Date().getDate() + (appointDays - 1))) new Date(
new Date().setDate(
new Date().getDate() + (appointDays - 1),
),
)
) { ) {
return true; return true;
} }
...@@ -913,7 +922,10 @@ export const downloadReportManage_reportType = [ ...@@ -913,7 +922,10 @@ export const downloadReportManage_reportType = [
{ confId: "sellerPerformance", confValue: "零售人员业绩提成数据表" }, { confId: "sellerPerformance", confValue: "零售人员业绩提成数据表" },
{ confId: "multiCategoryOperation", confValue: "多品类运营" }, { confId: "multiCategoryOperation", confValue: "多品类运营" },
{ confId: "multiCategoryOperationMerchant", confValue: "多品类运营-门店" }, { confId: "multiCategoryOperationMerchant", confValue: "多品类运营-门店" },
{ confId: "selleruseruserdipadanalysis", confValue: "驻店人员平板使用分析" }, {
confId: "selleruseruserdipadanalysis",
confValue: "驻店人员平板使用分析",
},
{ confId: "dailybehaviorsummary", confValue: "日行为汇总表" }, { confId: "dailybehaviorsummary", confValue: "日行为汇总表" },
{ confId: "weeklybehaviorsummary", confValue: "周行为汇总表" }, { confId: "weeklybehaviorsummary", confValue: "周行为汇总表" },
{ confId: "businessDataSummary", confValue: "业务数据汇总" }, { confId: "businessDataSummary", confValue: "业务数据汇总" },
...@@ -937,6 +949,10 @@ export const downloadReportManage_reportType = [ ...@@ -937,6 +949,10 @@ export const downloadReportManage_reportType = [
confId: "BIAnalysisReport", confId: "BIAnalysisReport",
confValue: "BI数据分析表", confValue: "BI数据分析表",
}, },
{
confId: "noDailyReportMerchantOutputReport",
confValue: "无日报门店产值表",
},
]; ];
// 下载报表 业务类型 // 下载报表 业务类型
...@@ -1090,9 +1106,9 @@ export const businessOptShowText = { ...@@ -1090,9 +1106,9 @@ export const businessOptShowText = {
}; };
// 预警管理 所属业务 显示文字 // 预警管理 所属业务 显示文字
export const orderBusinessType = { export const orderBusinessType = {
"0": "轻改", 0: "轻改",
"1": "权益", 1: "权益",
"2": "延保", 2: "延保",
"-1": "其他", "-1": "其他",
}; };
...@@ -1658,14 +1674,14 @@ export const evaluationSourceOpt = [ ...@@ -1658,14 +1674,14 @@ export const evaluationSourceOpt = [
{ confId: 4, confValue: "车况生成" }, { confId: 4, confValue: "车况生成" },
]; ];
export const evaluationStatusOptMap = { export const evaluationStatusOptMap = {
"10": "#FDB757", 10: "#FDB757",
"20": "#2CCA74", 20: "#2CCA74",
"30": "#2CCA74", 30: "#2CCA74",
"31": "#2CCA74", 31: "#2CCA74",
"32": "#2CCA74", 32: "#2CCA74",
"40": "#2CCA74", 40: "#2CCA74",
"50": "#2CCA74", 50: "#2CCA74",
"100": "#8C8C8C", 100: "#8C8C8C",
"-1": "#EB4E4E", "-1": "#EB4E4E",
}; };
// 合同类型 // 合同类型
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!