Commit 3ed158d1 by 唐玉峰

.

parent 75750759
...@@ -1089,10 +1089,7 @@ export default { ...@@ -1089,10 +1089,7 @@ export default {
} }
}, },
}, },
mounted() { mounted() {},
console.log(this.medicalrecord);
console.log(this.clicktitle);
},
methods: { methods: {
decimal, decimal,
transformTimestamp, transformTimestamp,
......
...@@ -18,18 +18,14 @@ function createHeader() { ...@@ -18,18 +18,14 @@ function createHeader() {
} }
function errorMsg(d) { function errorMsg(d) {
console.log(d.response);
if (d.response.status == "401") { if (d.response.status == "401") {
Vue.prototype.$message.error("登录信息失效,重新登录!"); Vue.prototype.$message.error("登录信息失效,重新登录!");
sessionStorage.clear(); sessionStorage.clear();
this.$router.push("/login").catch((err) => { this.$router.push("/login").catch((err) => {}); //改变路由
console.log("输出报错", err);
}); //改变路由
} }
if (d.response) { if (d.response) {
// 请求已发出,但服务器响应的状态码不在 2xx 范围内 // 请求已发出,但服务器响应的状态码不在 2xx 范围内
console.log(d.response);
} }
if (Vue.prototype.$notify) { if (Vue.prototype.$notify) {
...@@ -98,7 +94,6 @@ export default { ...@@ -98,7 +94,6 @@ export default {
axios axios
.post(url, params, { ...{ headers: createHeader() }, ...option }) .post(url, params, { ...{ headers: createHeader() }, ...option })
.then((res) => { .then((res) => {
console.log(res);
if (res.status !== 200) { if (res.status !== 200) {
errorMsg(res.data); errorMsg(res.data);
reject(res.data); reject(res.data);
......
...@@ -563,36 +563,29 @@ export default { ...@@ -563,36 +563,29 @@ export default {
if (row.retail_unit == row.min_unit) { if (row.retail_unit == row.min_unit) {
//使用量 //频率数量 //用药天数 //单位剂量 //使用量 //频率数量 //用药天数 //单位剂量
row.medicQuantity = Math.ceil((Number(row.medicUseQuantity) * num * row.useDay) / row.unit_dose); row.medicQuantity = Math.ceil((Number(row.medicUseQuantity) * num * row.useDay) / row.unit_dose);
console.log(num + "1");
//住院零售单位 //包装单位 //住院零售单位 //包装单位
} else if (row.retail_unit == row.package_unit) { } else if (row.retail_unit == row.package_unit) {
//使用量 //频率数量 //用药天数 //单位剂量 //包装数量 //使用量 //频率数量 //用药天数 //单位剂量 //包装数量
row.medicQuantity = Math.ceil((Number(row.medicUseQuantity) * num * row.useDay) / row.unit_dose / row.packagingnum); row.medicQuantity = Math.ceil((Number(row.medicUseQuantity) * num * row.useDay) / row.unit_dose / row.packagingnum);
console.log(num + "2");
} else { } else {
//使用量 //频率数量 //用药天数 //单位剂量 //包装数量 拆分系数 //使用量 //频率数量 //用药天数 //单位剂量 //包装数量 拆分系数
row.medicQuantity = Math.ceil( row.medicQuantity = Math.ceil(
(Number(row.medicUseQuantity) * num * row.useDay) / row.unit_dose / (row.packagingnum / row.split_num) (Number(row.medicUseQuantity) * num * row.useDay) / row.unit_dose / (row.packagingnum / row.split_num)
); );
console.log(num + "3");
} }
} else { } else {
if (row.order_round === "单次取整") { if (row.order_round === "单次取整") {
row.medicQuantity = Math.round(Math.ceil(Number(row.medicUseQuantity) / row.unit_dose) * num * row.useDay); row.medicQuantity = Math.round(Math.ceil(Number(row.medicUseQuantity) / row.unit_dose) * num * row.useDay);
console.log(num + "4");
} else if (retail_unit === package_unit) { } else if (retail_unit === package_unit) {
row.medicQuantity = Math.round(Math.ceil(Number(row.medicUseQuantity) / row.unit_dose / row.packagingnum) * num * row.useDay); row.medicQuantity = Math.round(Math.ceil(Number(row.medicUseQuantity) / row.unit_dose / row.packagingnum) * num * row.useDay);
console.log(num + "5");
} else { } else {
row.medicQuantity = Math.round( row.medicQuantity = Math.round(
Math.ceil(Number(row.medicUseQuantity) / row.unit_dose / (row.packagingnum / row.split_num)) * num * row.useDay Math.ceil(Number(row.medicUseQuantity) / row.unit_dose / (row.packagingnum / row.split_num)) * num * row.useDay
); );
console.log(num + "6");
} }
} }
} }
} }
console.log(row);
}, },
//药疗新增 //药疗新增
addRow(r) { addRow(r) {
...@@ -674,7 +667,6 @@ export default { ...@@ -674,7 +667,6 @@ export default {
rowdblclick(row, column, event) { rowdblclick(row, column, event) {
this.pushData(row, this.tableData); this.pushData(row, this.tableData);
console.log(row);
this.tempRow.isPop = false; this.tempRow.isPop = false;
}, },
pushData(row, arr) { pushData(row, arr) {
...@@ -737,7 +729,6 @@ export default { ...@@ -737,7 +729,6 @@ export default {
// //
tbChange(row) { tbChange(row) {
console.log(row);
if (row.children && row.children.length) { if (row.children && row.children.length) {
row.children.map((item) => { row.children.map((item) => {
item.medicalPurpose = row.medicalPurpose; item.medicalPurpose = row.medicalPurpose;
...@@ -884,19 +875,16 @@ export default { ...@@ -884,19 +875,16 @@ export default {
// j.edit = false; // j.edit = false;
this.toggleSelection(j, true); this.toggleSelection(j, true);
}); });
console.log(1);
} else { } else {
selection.map((v) => { selection.map((v) => {
this.toggleSelection(v, true); this.toggleSelection(v, true);
}); });
console.log(2);
} }
//取消 //取消
} else { } else {
this.toggleSelection(row, false); this.toggleSelection(row, false);
if (row.children && row.children.length) { if (row.children && row.children.length) {
console.log(3, row);
row.children.map((p) => { row.children.map((p) => {
if (p.children && p.children.length) { if (p.children && p.children.length) {
p.children.map((i) => { p.children.map((i) => {
...@@ -908,7 +896,6 @@ export default { ...@@ -908,7 +896,6 @@ export default {
this.toggleSelection(p, false); this.toggleSelection(p, false);
}); });
} else { } else {
console.log(4);
row.ischeck = 2; row.ischeck = 2;
this.toggleSelection(row, false); this.toggleSelection(row, false);
//取消的行数据 //取消的行数据
...@@ -1033,7 +1020,6 @@ export default { ...@@ -1033,7 +1020,6 @@ export default {
getIsRoute() { getIsRoute() {
http.post(`/ClinicalRoute/ClinicalRoute/IsRoute?pid=${this.$route.query.pid}`, {}) http.post(`/ClinicalRoute/ClinicalRoute/IsRoute?pid=${this.$route.query.pid}`, {})
.then((data) => { .then((data) => {
console.log(data);
if (data) { if (data) {
this.$router.push({ this.$router.push({
path: "Entrypath", path: "Entrypath",
...@@ -1094,12 +1080,10 @@ export default { ...@@ -1094,12 +1080,10 @@ export default {
}); });
} }
} else { } else {
console.log("error submit!!");
return false; return false;
} }
}); });
} else { } else {
console.log("error submit!!");
return false; return false;
} }
}); });
...@@ -1125,7 +1109,6 @@ export default { ...@@ -1125,7 +1109,6 @@ export default {
}); });
} }
} else { } else {
console.log("error submit!!");
return false; return false;
} }
}); });
...@@ -1143,17 +1126,14 @@ export default { ...@@ -1143,17 +1126,14 @@ export default {
} }
} }
} else { } else {
console.log("error submit!!");
return false; return false;
} }
}); });
} else { } else {
console.log("error submit!!");
return false; return false;
} }
}); });
} else { } else {
console.log("error submit!!");
return false; return false;
} }
}); });
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<div class="outsetgrouping_centent_totalnum_left"> <div class="outsetgrouping_centent_totalnum_left">
<div class="outsetgrouping_centent_totalnum_left_radios"> <div class="outsetgrouping_centent_totalnum_left_radios">
<!-- <input type="radio" name="radios" v-model="radio" /> --> <!-- <input type="radio" name="radios" v-model="radio" /> -->
<input type="radio" name="radios" :value="item.id" @input="radios" /> <input type="radio" name="radios" :value="item.id" @click="radios" />
</div> </div>
<div class="outsetgrouping_centent_totalnum_left_text"> <div class="outsetgrouping_centent_totalnum_left_text">
...@@ -317,11 +317,8 @@ ...@@ -317,11 +317,8 @@
</template> </template>
<script> <script>
import http from "../utils/http"; import http from "../utils/http";
import { reactive, toRefs, onMounted, nextTick, computed } from "@vue/composition-api"; import $ from "jquery";
import { decimal } from "../utils/decimal";
import { Message } from "element-ui"; import { Message } from "element-ui";
import { useRoute, useRouter } from "../utils/useVueRouter";
import { initEcharts, categoryChart, categoryChart11 } from "../utils/echarts"; import { initEcharts, categoryChart, categoryChart11 } from "../utils/echarts";
export default { export default {
name: "outHistorygrouping", name: "outHistorygrouping",
...@@ -631,9 +628,18 @@ export default { ...@@ -631,9 +628,18 @@ export default {
}) })
.catch((error) => {}); .catch((error) => {});
}, },
radios(e) { radios() {
this.radio = e.target.value; let _this = this;
this.coreID = this.CorePercents.find((item) => item.id == e.target.value).coreID; $("input[type=radio][name=radios]").on("change", function () {
_this.radio = this.value;
_this.coreID = _this.CorePercents.find((item) => item.id == this.value).coreID;
console.log(_this.coreID);
console.log(this.value);
});
// console.log(e);
// this.radio = e.target.value;
// this.coreID = this.CorePercents.find((item) => item.id == e.target.value).coreID;
// console.log(this.coreID);
}, },
}, },
}; };
......
...@@ -88,11 +88,8 @@ ...@@ -88,11 +88,8 @@
</el-dialog> </el-dialog>
</template> </template>
<script lang="ts"> <script lang="ts">
import { getItem, setItem, clear } from "../utils/auth";
import http from "../utils/http"; import http from "../utils/http";
import { reactive, toRefs, onMounted, nextTick, computed } from "@vue/composition-api"; import { reactive, toRefs, onMounted, nextTick, computed } from "@vue/composition-api";
import { decimal } from "../utils/decimal"; import { decimal } from "../utils/decimal";
import { initEcharts, categoryChart11 } from "../utils/echarts"; import { initEcharts, categoryChart11 } from "../utils/echarts";
......
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