Commit fa601a40 by 唐玉峰

.

parent fc07ee9c
...@@ -13,8 +13,11 @@ ...@@ -13,8 +13,11 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="favicon.ico" /> <link rel="icon" href="favicon.ico" />
<!-- <link rel="stylesheet" href="../src/assets/font/complete/iconfont.css"> --> <meta http-equiv="X-UA-Compatible" content="IE=8" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-control" content="no-cache" />
<meta http-equiv="Cache" content="no-cache" />
<title>基于病种精准管理系统</title> <title>基于病种精准管理系统</title>
</head> </head>
......
...@@ -552,6 +552,25 @@ export default { ...@@ -552,6 +552,25 @@ export default {
}, },
}, },
methods: { methods: {
// :prop="'tableList.' + getPropPosi(scope.row) + '.isAntibiotic'"
// 获取prop位置
getPropPosi(row) {
let posi = this.findPosi(this.formData.tableList, row, "", "");
return posi;
},
// 递归查找位置
findPosi(list, row, posi, current) {
for (let i = 0; i < list.length; i++) {
if (list[i].id == row.id) {
return current + i;
}
if (list[i].children && list[i].children?.length) {
posi = this.findPosi(list[i].children || [], row, posi, i + posi + ".children.");
}
}
return posi;
},
// 总量计算 // 总量计算
setIput(row) { setIput(row) {
if (!isNaN(parseFloat(row.medicUseQuantity)) && isFinite(row.medicUseQuantity) && row.medicUsePlan) { if (!isNaN(parseFloat(row.medicUseQuantity)) && isFinite(row.medicUseQuantity) && row.medicUsePlan) {
...@@ -615,7 +634,7 @@ export default { ...@@ -615,7 +634,7 @@ export default {
medicQuantity: 0, medicQuantity: 0,
medicUnit: null, medicUnit: null,
remark: "", remark: "",
inventoryNum: null, inventoryNum: 0,
orderType: r.orderType, orderType: r.orderType,
medicalPurpose: r.medicalPurpose, medicalPurpose: r.medicalPurpose,
price: null, price: null,
...@@ -1037,7 +1056,9 @@ export default { ...@@ -1037,7 +1056,9 @@ export default {
}, },
getTableData() { getTableData() {
http.post( http.post(
`/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${this.$route.query.pid}&case_routeid=${this.case_routeid}&searchQuery=${this.inhosdays}`, `/ClinicalRoute/ClinicalRoute/GetGetRouteAdvicesRight?pid=${this.$route.query.pid}&case_routeid=${this.case_routeid}&searchQuery=${
this.inhosdays
}&type=${this.radio}&t=${Math.random()}`,
{} {}
) )
.then((data) => { .then((data) => {
...@@ -1057,8 +1078,10 @@ export default { ...@@ -1057,8 +1078,10 @@ export default {
}); });
} }
}); });
this.newtable1 = data.route1; // console.log(data.route1);
this.newtable2 = data.route2; // console.log(data.route2);
// this.newtable1 = data.route1;
// this.newtable2 = data.route2;
this.tableData = this.radio == 1 ? data.route1 : data.route2; this.tableData = this.radio == 1 ? data.route1 : data.route2;
}) })
.catch((error) => { .catch((error) => {
...@@ -1073,7 +1096,8 @@ export default { ...@@ -1073,7 +1096,8 @@ export default {
this.$refs.numberValidateForm1.validate((valid) => { this.$refs.numberValidateForm1.validate((valid) => {
if (valid) { if (valid) {
this.radio = e; this.radio = e;
this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2; this.getTableData();
// this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2;
if (this.radio == 1) { if (this.radio == 1) {
this.multipleSelection.map((j) => { this.multipleSelection.map((j) => {
this.toggleSelection(j, true); this.toggleSelection(j, true);
...@@ -1102,7 +1126,8 @@ export default { ...@@ -1102,7 +1126,8 @@ export default {
this.$refs.medicalPurpose.validate((valid) => { this.$refs.medicalPurpose.validate((valid) => {
if (valid) { if (valid) {
this.radio = e; this.radio = e;
this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2; this.getTableData();
// this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2;
if (this.radio == 1) { if (this.radio == 1) {
this.multipleSelection.map((j) => { this.multipleSelection.map((j) => {
this.toggleSelection(j, true); this.toggleSelection(j, true);
...@@ -1118,7 +1143,8 @@ export default { ...@@ -1118,7 +1143,8 @@ export default {
}); });
} else { } else {
this.radio = e; this.radio = e;
this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2; this.getTableData();
// this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2;
if (this.radio == 1) { if (this.radio == 1) {
this.multipleSelection.map((j) => { this.multipleSelection.map((j) => {
this.toggleSelection(j, true); this.toggleSelection(j, true);
...@@ -1143,7 +1169,8 @@ export default { ...@@ -1143,7 +1169,8 @@ export default {
}); });
} else { } else {
this.radio = e; this.radio = e;
this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2; this.getTableData();
// this.tableData = this.radio == 1 ? this.newtable1 : this.newtable2;
if (this.radio == 1) { if (this.radio == 1) {
this.multipleSelection.map((j) => { this.multipleSelection.map((j) => {
this.toggleSelection(j, true); this.toggleSelection(j, true);
...@@ -1243,7 +1270,8 @@ export default { ...@@ -1243,7 +1270,8 @@ export default {
this.msg("error", item.msg); this.msg("error", item.msg);
} }
}); });
this.getlefttime(); // this.getlefttime();
this.getTableData();
}) })
.catch((error) => {}); .catch((error) => {});
......
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