Commit d3fb5422 by 张立顺

feat 功能联调

1 parent da9c4e94
......@@ -419,7 +419,7 @@ export function limitPrice(
pointDigit,
minValue,
maxValue,
regRule,
regRule
) {
let reg = {
priceReg: /^\d[\d\.]*$/, // eslint-disable-line
......@@ -427,8 +427,8 @@ export function limitPrice(
};
regRule = regRule || "priceReg";
if (
newValue
&& ((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
newValue &&
((minValue && newValue < minValue) || (maxValue && newValue > maxValue))
) {
return oldValue || "";
}
......@@ -437,18 +437,18 @@ export function limitPrice(
newValue = newValue + "";
let interger = newValue.split(".")[0];
let point = newValue.split(".")[1];
let intergerNum
= interger.length > intergerDigit
let intergerNum =
interger.length > intergerDigit
? oldValue.split(".")[0]
: interger;
let pointNum
= point.length > pointDigit ? point.slice(0, pointDigit) : point;
let pointNum =
point.length > pointDigit ? point.slice(0, pointDigit) : point;
newValue = pointDigit
? intergerNum + "." + pointNum
: newValue.split(".")[0];
} else {
newValue
= newValue.length > intergerDigit
newValue =
newValue.length > intergerDigit
? oldValue.slice(0, intergerDigit)
: newValue;
}
......@@ -481,13 +481,11 @@ export const appointDays = 35;
export const afterTodayOptions = {
disabledDate(date) {
if (
date < new Date(new Date().toLocaleDateString())
|| date
> new Date(
new Date().setDate(
new Date().getDate() + (appointDays - 1),
),
)
date < new Date(new Date().toLocaleDateString()) ||
date >
new Date(
new Date().setDate(new Date().getDate() + (appointDays - 1))
)
) {
return true;
}
......@@ -1111,9 +1109,9 @@ export const businessOptShowText = {
};
// 预警管理 所属业务 显示文字
export const orderBusinessType = {
"0": "轻改",
"1": "权益",
"2": "延保",
0: "轻改",
1: "权益",
2: "延保",
"-1": "其他",
};
......@@ -1683,14 +1681,14 @@ export const evaluationSourceOpt = [
{ confId: 4, confValue: "车况生成" },
];
export const evaluationStatusOptMap = {
"10": "#FDB757",
"20": "#2CCA74",
"30": "#2CCA74",
"31": "#2CCA74",
"32": "#2CCA74",
"40": "#2CCA74",
"50": "#2CCA74",
"100": "#8C8C8C",
10: "#FDB757",
20: "#2CCA74",
30: "#2CCA74",
31: "#2CCA74",
32: "#2CCA74",
40: "#2CCA74",
50: "#2CCA74",
100: "#8C8C8C",
"-1": "#EB4E4E",
};
// 合同类型
......@@ -1968,6 +1966,10 @@ export const djOrderTypeList = [
confId: "1",
confLabel: "正常订单",
},
{
confId: "6",
confLabel: "内部结算",
},
];
export const goodsAuditStatusList = [
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!