Commit 9ab632f5 by 唐玉峰

..

parent 08b1b57d
......@@ -54,6 +54,11 @@ const router = new Router({
name: "outpatientDetails",
component: (resolve) => require(["@/views/outpatientDetails_pingguo.vue"], resolve),
},
{
path: "/seeSettlementList",
name: "seeSettlementList",
component: (resolve) => require(["@/views/seeSettlementList.vue"], resolve),
},
],
// mode: 'history' /*hash*/ /*不显示路由中的#*/
});
......
......@@ -12,14 +12,14 @@ export function decimal(num) {
} else {
result = Math.round(num * 100) / 100;
var s_x = result.toString();
var pos_decimal = s_x.indexOf('.');
var pos_decimal = s_x.indexOf(".");
if (pos_decimal < 0) {
//不是小数
pos_decimal = s_x.length;
s_x += '.';
s_x += ".";
}
while (s_x.length <= pos_decimal + 2) {
s_x += '0';
s_x += "0";
}
return s_x;
}
......@@ -27,26 +27,24 @@ export function decimal(num) {
export function toPercent(point) {
var str = Number(point * 100).toFixed(2);
str += '%';
str += "%";
return str;
}
export function keepTwoDecimalFull(num) {
var result = parseFloat(num);
result = Math.round(num * 100) / 100;
var s_x = result.toString();
var pos_decimal = s_x.indexOf('.');
var pos_decimal = s_x.indexOf(".");
if (pos_decimal < 0) {
pos_decimal = s_x.length;
s_x += '.';
s_x += ".";
}
while (s_x.length <= pos_decimal + 2) {
s_x += '0';
s_x += "0";
}
return s_x;
}
export function changeArr(
data
) {
export function changeArr(data) {
let arr = data.map((o) => [
o.cmi,
o.feeConsumeIndex,
......@@ -69,5 +67,3 @@ export function changeArr(
return arr;
}
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