Commit 9ab632f5 by 唐玉峰

..

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