Commit 3ed158d1 by 唐玉峰

.

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