Commit b42671fb by tangyufeng

1.智能分组, 其他文字修改

parent 5b537046
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"dependencies": { "dependencies": {
"@vue/composition-api": "^1.6.2", "@vue/composition-api": "^1.6.2",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"dayjs": "^1.11.7",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
...@@ -5100,6 +5101,11 @@ ...@@ -5100,6 +5101,11 @@
"node": ">=0.10" "node": ">=0.10"
} }
}, },
"node_modules/dayjs": {
"version": "1.11.7",
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.7.tgz",
"integrity": "sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ=="
},
"node_modules/de-indent": { "node_modules/de-indent": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmmirror.com/de-indent/-/de-indent-1.0.2.tgz", "resolved": "https://registry.npmmirror.com/de-indent/-/de-indent-1.0.2.tgz",
...@@ -19378,6 +19384,11 @@ ...@@ -19378,6 +19384,11 @@
"assert-plus": "^1.0.0" "assert-plus": "^1.0.0"
} }
}, },
"dayjs": {
"version": "1.11.7",
"resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.7.tgz",
"integrity": "sha512-+Yw9U6YO5TQohxLcIkrXBeY73WP3ejHWVvx8XCk3gxvQDCTEmS48ZrSZCKciI7Bhl/uCMyxYtE9UqRILmFphkQ=="
},
"de-indent": { "de-indent": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmmirror.com/de-indent/-/de-indent-1.0.2.tgz", "resolved": "https://registry.npmmirror.com/de-indent/-/de-indent-1.0.2.tgz",
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"dependencies": { "dependencies": {
"@vue/composition-api": "^1.6.2", "@vue/composition-api": "^1.6.2",
"core-js": "^3.6.5", "core-js": "^3.6.5",
"dayjs": "^1.11.7",
"element-ui": "^2.15.6", "element-ui": "^2.15.6",
"jquery": "^3.6.0", "jquery": "^3.6.0",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
......
...@@ -5,30 +5,31 @@ ...@@ -5,30 +5,31 @@
* @LastEditTime: 2023-01-06 17:16:34 * @LastEditTime: 2023-01-06 17:16:34
* @Description: * @Description:
*/ */
import Vue from 'vue' import Vue from "vue";
import App from './App.vue' import App from "./App.vue";
import store from './store' import store from "./store";
import router from '@/router/index' import router from "@/router/index";
Vue.config.productionTip = false; Vue.config.productionTip = false;
import http from '@/utils/http.js' import http from "@/utils/http.js";
Vue.prototype.$http = http; Vue.prototype.$http = http;
import ElementUI from 'element-ui'; import ElementUI from "element-ui";
import 'element-ui/lib/theme-chalk/index.css'; import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI); Vue.use(ElementUI);
import VueCompositionApi from '@vue/composition-api' import VueCompositionApi from "@vue/composition-api";
Vue.use(VueCompositionApi)
Vue.use(VueCompositionApi);
//引入 dayjs
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";
dayjs.locale("zh-cn");
new Vue({ new Vue({
store, store,
router, router,
render: h => h(App), render: (h) => h(App),
}).$mount('#app') }).$mount("#app");
\ No newline at end of file
...@@ -9,66 +9,48 @@ ...@@ -9,66 +9,48 @@
* @description format 季度 + 星期 + 几周:"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ" * @description format 季度 + 星期 + 几周:"YYYY-mm-dd HH:MM:SS WWW QQQQ ZZZ"
* @returns 返回拼接后的时间字符串 * @returns 返回拼接后的时间字符串
*/ */
import dayjs from "dayjs";
export function formatDate(date, format) { export function formatDate(date, format) {
const we = date.getDay() // 星期 const we = date.getDay(); // 星期
const z = getWeek(date) // 周 const z = getWeek(date); // 周
const qut = Math.floor((date.getMonth() + 3) / 3).toString() // 季度 const qut = Math.floor((date.getMonth() + 3) / 3).toString(); // 季度
const opt = { const opt = {
'Y+': date.getFullYear().toString(), // 年 "Y+": date.getFullYear().toString(), // 年
'm+': (date.getMonth() + 1).toString(), // 月(月份从0开始,要+1) "m+": (date.getMonth() + 1).toString(), // 月(月份从0开始,要+1)
'd+': date.getDate().toString(), // 日 "d+": date.getDate().toString(), // 日
'H+': date.getHours().toString(), // 时 "H+": date.getHours().toString(), // 时
'M+': date.getMinutes().toString(), // 分 "M+": date.getMinutes().toString(), // 分
'S+': date.getSeconds().toString(), // 秒 "S+": date.getSeconds().toString(), // 秒
'q+': qut, // 季度 "q+": qut, // 季度
} };
// 中文数字 (星期) // 中文数字 (星期)
const week = { const week = {
0: '日', 0: "日",
1: '一', 1: "一",
2: '二', 2: "二",
3: '三', 3: "三",
4: '四', 4: "四",
5: '五', 5: "五",
6: '六', 6: "六",
} };
// 中文数字(季度) // 中文数字(季度)
const quarter = { const quarter = {
1: '一', 1: "一",
2: '二', 2: "二",
3: '三', 3: "三",
4: '四', 4: "四",
} };
if (/(W+)/.test(format)) { if (/(W+)/.test(format)) {
format = format.replace( format = format.replace(RegExp.$1, RegExp.$1.length > 1 ? (RegExp.$1.length > 2 ? "星期" + week[we] : "周" + week[we]) : week[we]);
RegExp.$1,
RegExp.$1.length > 1
? RegExp.$1.length > 2
? '星期' + week[we]
: '周' + week[we]
: week[we],
)
} }
if (/(Q+)/.test(format)) if (/(Q+)/.test(format)) format = format.replace(RegExp.$1, RegExp.$1.length == 4 ? "第" + quarter[qut] + "季度" : quarter[qut]);
format = format.replace( if (/(Z+)/.test(format)) format = format.replace(RegExp.$1, RegExp.$1.length == 3 ? "第" + z + "周" : z + "");
RegExp.$1,
RegExp.$1.length == 4 ? '第' + quarter[qut] + '季度' : quarter[qut],
)
if (/(Z+)/.test(format))
format = format.replace(
RegExp.$1,
RegExp.$1.length == 3 ? '第' + z + '周' : z + '',
)
for (const k in opt) { for (const k in opt) {
const r = new RegExp('(' + k + ')').exec(format) const r = new RegExp("(" + k + ")").exec(format);
// 若输入的长度不为1,则前面补零 // 若输入的长度不为1,则前面补零
if (r) if (r) format = format.replace(r[1], RegExp.$1.length == 1 ? opt[k] : opt[k].padStart(RegExp.$1.length, "0"));
format = format.replace(
r[1],
RegExp.$1.length == 1 ? opt[k] : opt[k].padStart(RegExp.$1.length, '0'),
)
} }
return format return format;
} }
/** /**
...@@ -77,19 +59,19 @@ export function formatDate(date, format) { ...@@ -77,19 +59,19 @@ export function formatDate(date, format) {
* @returns 返回第几周数字值 * @returns 返回第几周数字值
*/ */
export function getWeek(dateTime) { export function getWeek(dateTime) {
const temptTime = new Date(dateTime.getTime()) const temptTime = new Date(dateTime.getTime());
// 周几 // 周几
const weekday = temptTime.getDay() || 7 const weekday = temptTime.getDay() || 7;
// 周1+5天=周六 // 周1+5天=周六
temptTime.setDate(temptTime.getDate() - weekday + 1 + 5) temptTime.setDate(temptTime.getDate() - weekday + 1 + 5);
let firstDay = new Date(temptTime.getFullYear(), 0, 1) let firstDay = new Date(temptTime.getFullYear(), 0, 1);
const dayOfWeek = firstDay.getDay() const dayOfWeek = firstDay.getDay();
let spendDay = 1 let spendDay = 1;
if (dayOfWeek != 0) spendDay = 7 - dayOfWeek + 1 if (dayOfWeek != 0) spendDay = 7 - dayOfWeek + 1;
firstDay = new Date(temptTime.getFullYear(), 0, 1 + spendDay) firstDay = new Date(temptTime.getFullYear(), 0, 1 + spendDay);
const d = Math.ceil((temptTime.valueOf() - firstDay.valueOf()) / 86400000) const d = Math.ceil((temptTime.valueOf() - firstDay.valueOf()) / 86400000);
const result = Math.ceil(d / 7) const result = Math.ceil(d / 7);
return result return result;
} }
/** /**
...@@ -105,38 +87,36 @@ export function getWeek(dateTime) { ...@@ -105,38 +87,36 @@ export function getWeek(dateTime) {
*/ */
export function formatPast(param, format) { export function formatPast(param, format) {
// 传入格式处理、存储转换值 // 传入格式处理、存储转换值
let t, s let t, s;
// 获取js 时间戳 // 获取js 时间戳
let time = new Date().getTime() let time = new Date().getTime();
// 是否是对象 // 是否是对象
typeof param === 'string' || 'object' typeof param === "string" || "object" ? (t = new Date(param).getTime()) : (t = param);
? (t = new Date(param).getTime())
: (t = param)
// 当前时间戳 - 传入时间戳 // 当前时间戳 - 传入时间戳
time = Number.parseInt(`${time - t}`) time = Number.parseInt(`${time - t}`);
if (time < 10000) { if (time < 10000) {
// 10秒内 // 10秒内
return '刚刚' return "刚刚";
} else if (time < 60000 && time >= 10000) { } else if (time < 60000 && time >= 10000) {
// 超过10秒少于1分钟内 // 超过10秒少于1分钟内
s = Math.floor(time / 1000) s = Math.floor(time / 1000);
return `${s}秒前` return `${s}秒前`;
} else if (time < 3600000 && time >= 60000) { } else if (time < 3600000 && time >= 60000) {
// 超过1分钟少于1小时 // 超过1分钟少于1小时
s = Math.floor(time / 60000) s = Math.floor(time / 60000);
return `${s}分钟前` return `${s}分钟前`;
} else if (time < 86400000 && time >= 3600000) { } else if (time < 86400000 && time >= 3600000) {
// 超过1小时少于24小时 // 超过1小时少于24小时
s = Math.floor(time / 3600000) s = Math.floor(time / 3600000);
return `${s}小时前` return `${s}小时前`;
} else if (time < 259200000 && time >= 86400000) { } else if (time < 259200000 && time >= 86400000) {
// 超过1天少于3天内 // 超过1天少于3天内
s = Math.floor(time / 86400000) s = Math.floor(time / 86400000);
return `${s}天前` return `${s}天前`;
} else { } else {
// 超过3天 // 超过3天
const date = typeof param === 'string' || 'object' ? new Date(param) : param const date = typeof param === "string" || "object" ? new Date(param) : param;
return formatDate(date, format) return formatDate(date, format);
} }
} }
...@@ -147,58 +127,53 @@ export function formatPast(param, format) { ...@@ -147,58 +127,53 @@ export function formatPast(param, format) {
* @returns 返回拼接后的时间字符串 * @returns 返回拼接后的时间字符串
*/ */
export function formatAxis(param) { export function formatAxis(param) {
const hour = new Date(param).getHours() const hour = new Date(param).getHours();
if (hour < 6) return '凌晨好' if (hour < 6) return "凌晨好";
else if (hour < 9) return '早上好' else if (hour < 9) return "早上好";
else if (hour < 12) return '上午好' else if (hour < 12) return "上午好";
else if (hour < 14) return '中午好' else if (hour < 14) return "中午好";
else if (hour < 17) return '下午好' else if (hour < 17) return "下午好";
else if (hour < 19) return '傍晚好' else if (hour < 19) return "傍晚好";
else if (hour < 22) return '晚上好' else if (hour < 22) return "晚上好";
else return '夜里好' else return "夜里好";
} }
export function transformTimestamp(timestamp) { export function transformTimestamp(timestamp) {
const date = new Date(timestamp) const date = new Date(timestamp);
const Y = date.getFullYear() const Y = date.getFullYear();
const M = const M = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 const D = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
const D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() const h = (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":";
const h = const m = (date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()) + ":";
(date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':' const s = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); // 秒
const m = const dateString = `${Y}-${M}-${D} ${h}${m}${s}`;
(date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':' return dateString;
const s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() // 秒
const dateString = `${Y}-${M}-${D} ${h}${m}${s}`
return dateString
} }
//获取实时时间 //获取实时时间
export function transformTimestampnow() { export function transformTimestampnow() {
const date = new Date() // const date = new Date();
const Y = date.getFullYear() // const Y = date.getFullYear()
const M = // const M =
date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 // date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1
const D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() // const D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
const h = // const h =
(date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':' // (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
const m = // const m =
(date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':' // (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':'
const s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() // 秒 // const s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() // 秒
const dateString = `${Y}-${M}-${D} ${h}${m}${s}` // const dateString = `${Y}-${M}-${D} ${h}${m}${s}`
return dateString const dateString = dayjs().format("YYYY-MM-DD HH:mm:ss");
return dateString;
} }
export function transformTimestamps(timestamp) { export function transformTimestamps(timestamp) {
const date = new Date(timestamp) const date = new Date(timestamp);
const Y = date.getFullYear() const Y = date.getFullYear();
const M = const M = date.getMonth() + 1 < 10 ? "0" + (date.getMonth() + 1) : date.getMonth() + 1;
date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1 const D = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
const D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate() const h = (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":";
const h = const m = (date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()) + ":";
(date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':' const s = date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds(); // 秒
const m = const dateString = `${Y}-${M}-${D}`;
(date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':' return dateString;
const s = date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds() // 秒
const dateString = `${Y}-${M}-${D}`
return dateString
} }
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<div class="outsetgrouping_top2_message_right"> <div class="outsetgrouping_top2_message_right">
<span class="outsetgrouping_top2_message_right_tu6"><img src="../assets/img/jiner.png" alt="" /></span> <span class="outsetgrouping_top2_message_right_tu6"><img src="../assets/img/jiner.png" alt="" /></span>
<div class="outsetgrouping_top2_message_right_t3"> <div class="outsetgrouping_top2_message_right_t3">
预计DRG支付费用:<span>{{ casehisObj ? casehisObj.drgs.actualfee : "" }}</span> 预计DIP支付费用:<span>{{ casehisObj ? casehisObj.drgs.actualfee : "" }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -103,11 +103,11 @@ ...@@ -103,11 +103,11 @@
<span>入组编码:{{ item.code }}</span> <span>入组编码:{{ item.code }}</span>
<span>入组名称:{{ item.coreName }}</span> <span>入组名称:{{ item.coreName }}</span>
<span>病种分值:{{ item.score }}</span> <span>病种分值:{{ item.score }}</span>
<span>预计DRG支付费用:{{ item.unitfee }}</span> <span>预计DIP支付费用:{{ item.unitfee }}</span>
</div> </div>
<!-- <div class="outsetgrouping_centent_totalnum_left_text_msg2_text5"> <!-- <div class="outsetgrouping_centent_totalnum_left_text_msg2_text5">
<span>预计DRG支付费用:{{ item.unitfee }}</span <span>预计DIP支付费用:{{ item.unitfee }}</span
><span>院内历年平均费用:{{ item.avgFee }}</span ><span>院内历年平均费用:{{ item.avgFee }}</span
><span>院内历年平均住院天数:{{ item.avgInHosDay }}</span> ><span>院内历年平均住院天数:{{ item.avgInHosDay }}</span>
</div> --> </div> -->
...@@ -275,7 +275,7 @@ ...@@ -275,7 +275,7 @@
</div> </div>
<div class="outaddrecordEnrollment_centent_totalnum_left_text3"> <div class="outaddrecordEnrollment_centent_totalnum_left_text3">
<span>预计DRG支付费用:{{ item.unitfee }}</span <span>预计DIP支付费用:{{ item.unitfee }}</span
><span>院内历年平均费用:{{ item.avgFee }}</span ><span>院内历年平均费用:{{ item.avgFee }}</span
><span>院内历年平均住院天数:{{ item.avgInHosDay }}</span> ><span>院内历年平均住院天数:{{ item.avgInHosDay }}</span>
</div> </div>
......
...@@ -54,9 +54,8 @@ ...@@ -54,9 +54,8 @@
<span>基准点数:{{ item.score }}</span> <span>基准点数:{{ item.score }}</span>
</div> </div>
<div class="outaddrecordEnrollment_centent_totalnum_left_text3"> <div class="outaddrecordEnrollment_centent_totalnum_left_text3">
<span>预计DRG支付费用:{{ item.unitfee }}</span <span>预计DIP支付费用:{{ item.unitfee }}</span
><span>院内历年平均费用:{{ item.avgFee }}</span ><span>院内历年平均费用:{{ item.avgFee }}</span
><span>院内历年平均住院天数:{{ item.avgInHosDay }}</span> ><span>院内历年平均住院天数:{{ item.avgInHosDay }}</span>
</div> </div>
...@@ -84,45 +83,28 @@ ...@@ -84,45 +83,28 @@
</div> </div>
</div> </div>
<div class="outaddrecordEnrollment_pagination"> <div class="outaddrecordEnrollment_pagination"></div>
</div>
</div> </div>
</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 { reactive, toRefs, onMounted, nextTick, computed } from "@vue/composition-api";
import { decimal } from "../utils/decimal";
import { getItem, setItem, clear } from '../utils/auth'; import { initEcharts, categoryChart11 } from "../utils/echarts";
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'
export default { export default {
props: { props: {
dialogVisible: Boolean, //弹出层是否显示 dialogVisible: Boolean, //弹出层是否显示
}, },
setup() { setup() {
const state = reactive({ const state = reactive({
outaddsearchForm: { outaddsearchForm: {
diagName: '', diagName: "",
opsName: '', opsName: "",
}, },
addCorePercents: [], addCorePercents: [],
addnodataShow: true, //没有搜索时显示 addnodataShow: true, //没有搜索时显示
...@@ -133,11 +115,9 @@ export default { ...@@ -133,11 +115,9 @@ export default {
addgroupArr2: [], addgroupArr2: [],
}); });
//获取主诊断模糊数据 //获取主诊断模糊数据
function addgroupListMe() { function addgroupListMe() {
http http.post(`/medical/get/GetDiagOpss?diagName=${state.outaddsearchForm.diagName}&type=${1}`, {})
.post(`/medical/get/GetDiagOpss?diagName=${state.outaddsearchForm.diagName}&type=${1}`, {})
.then((data) => { .then((data) => {
state.addgroupList = data; state.addgroupList = data;
for (let item of state.addgroupList) { for (let item of state.addgroupList) {
...@@ -149,22 +129,21 @@ export default { ...@@ -149,22 +129,21 @@ export default {
.catch((error) => {}); .catch((error) => {});
} }
function addquerySearchGroup(queryString, cb) { function addquerySearchGroup(queryString, cb) {
if(state.outaddsearchForm.diagName.length>0){ if (state.outaddsearchForm.diagName.length > 0) {
addgroupListMe(); addgroupListMe();
} }
state.addgroupArr=[]; state.addgroupArr = [];
cb(state.addgroupArr); cb(state.addgroupArr);
} }
//清空输入框的值时触发 //清空输入框的值时触发
const addclear=()=>{ const addclear = () => {
state.addCorePercents=[] state.addCorePercents = [];
state.addnodataShow=true state.addnodataShow = true;
} };
//获取主手术模糊数据 //获取主手术模糊数据
function addgroupListMe2() { function addgroupListMe2() {
http http.post(`/medical/get/GetDiagOpss?diagName=${state.outaddsearchForm.opsName}&type=${2}`, {})
.post(`/medical/get/GetDiagOpss?diagName=${state.outaddsearchForm.opsName}&type=${2}`, {})
.then((data) => { .then((data) => {
state.addgroupList2 = data; state.addgroupList2 = data;
for (let item of state.addgroupList2) { for (let item of state.addgroupList2) {
...@@ -176,24 +155,19 @@ export default { ...@@ -176,24 +155,19 @@ export default {
.catch((error) => {}); .catch((error) => {});
} }
function addquerySearchGroup2(queryString, cb) { function addquerySearchGroup2(queryString, cb) {
if(state.outaddsearchForm.opsName.length>0){ if (state.outaddsearchForm.opsName.length > 0) {
addgroupListMe2(); addgroupListMe2();
} }
state.addgroupArr2=[]; state.addgroupArr2 = [];
cb(state.addgroupArr2); cb(state.addgroupArr2);
} }
//获取列表数据 //获取列表数据
const addgetlist = () => { const addgetlist = () => {
http.post(`/medical/get/GetaddCorePercents`, {
http
.post(`/medical/get/GetaddCorePercents`,
{
// PageNumber:state.currentPage, // PageNumber:state.currentPage,
diagName:state.outaddsearchForm.diagName, diagName: state.outaddsearchForm.diagName,
opsName:state.outaddsearchForm.opsName, opsName: state.outaddsearchForm.opsName,
// pageSize:state.pageSize, // pageSize:state.pageSize,
}) })
.then((data) => { .then((data) => {
...@@ -204,21 +178,17 @@ export default { ...@@ -204,21 +178,17 @@ export default {
} }
// state.totalCount = data.totalCount; // state.totalCount = data.totalCount;
for (var i = 0; i < state.addCorePercents.length; i++) { for (var i = 0; i < state.addCorePercents.length; i++) {
initEcharts(categoryChart11("药占比",state.addCorePercents[i].drugPercent,'#2CABE3'), `indexChart11${i}`); initEcharts(categoryChart11("药占比", state.addCorePercents[i].drugPercent, "#2CABE3"), `indexChart11${i}`);
initEcharts(categoryChart11("耗材占比",state.addCorePercents[i].materialsPercent,'#71D875'), `indexChart11two${i}`); initEcharts(categoryChart11("耗材占比", state.addCorePercents[i].materialsPercent, "#71D875"), `indexChart11two${i}`);
initEcharts(categoryChart11("检查占比",state.addCorePercents[i].inspectPercent,'#F35E77'), `indexChart11tree${i}`); initEcharts(categoryChart11("检查占比", state.addCorePercents[i].inspectPercent, "#F35E77"), `indexChart11tree${i}`);
initEcharts(categoryChart11("检验占比",state.addCorePercents[i].testPercent,'#FFB321'), `indexChart11fore${i}`); initEcharts(categoryChart11("检验占比", state.addCorePercents[i].testPercent, "#FFB321"), `indexChart11fore${i}`);
initEcharts(categoryChart11("其他",state.addCorePercents[i].otherPercent,'#C05EF3'), `indexChart11file${i}`); initEcharts(categoryChart11("其他", state.addCorePercents[i].otherPercent, "#C05EF3"), `indexChart11file${i}`);
} }
}) })
.catch((error) => { .catch((error) => {});
});
}; };
//查询 //查询
const addsearch = () => { const addsearch = () => {
state.addCorePercents = []; state.addCorePercents = [];
addgetlist(); addgetlist();
if (state.outaddsearchForm.diagName) { if (state.outaddsearchForm.diagName) {
...@@ -231,17 +201,12 @@ export default { ...@@ -231,17 +201,12 @@ export default {
}; };
onMounted(() => { onMounted(() => {
if (state.outaddsearchForm.diagName.length > 0) { if (state.outaddsearchForm.diagName.length > 0) {
addgetlist(); addgetlist();
} }
}); });
return { return {
...toRefs(state), ...toRefs(state),
decimal, decimal,
...@@ -252,14 +217,13 @@ export default { ...@@ -252,14 +217,13 @@ export default {
addquerySearchGroup2, addquerySearchGroup2,
addgroupListMe2, addgroupListMe2,
addclear, addclear,
}; };
}, },
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
@import 'styles/mixin.scss'; @import "styles/mixin.scss";
.outaddrecordEnrollment { .outaddrecordEnrollment {
height: calc(100% - 50px); height: calc(100% - 50px);
...@@ -506,6 +470,5 @@ export default { ...@@ -506,6 +470,5 @@ export default {
} }
} }
} }
} }
</style> </style>
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
<span class="outpatientDetails_msg_tu4"><img src="../assets/img/zu.png" alt="" /></span> <span class="outpatientDetails_msg_tu4"><img src="../assets/img/zu.png" alt="" /></span>
<span>分组:{{ HistoryInfo.doctorName }}</span> <span>分组:{{ HistoryInfo.doctorName }}</span>
<span>病种分值:{{ decimal(HistoryInfo.rw) }}</span> <span>病种分值:{{ decimal(HistoryInfo.rw) }}</span>
<span>预计DRG支付费用:{{ decimal(HistoryInfo.actualfee) }}</span> <span>预计DIP支付费用:{{ decimal(HistoryInfo.actualfee) }}</span>
<span>总费用:{{ decimal(HistoryInfo.totalFee) }}</span> <span>总费用:{{ decimal(HistoryInfo.totalFee) }}</span>
<span>预计盈亏:{{ decimal(HistoryInfo.profitLoss) }}</span> <span>预计盈亏:{{ decimal(HistoryInfo.profitLoss) }}</span>
<!-- <span>院内历年平均费用:{{ decimal(HistoryInfo.avgFee) }}</span> <!-- <span>院内历年平均费用:{{ decimal(HistoryInfo.avgFee) }}</span>
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
></span ></span
> >
</div> </div>
<div class="outpatientDetails_fenqu_di_bb_div3"> <!-- <div class="outpatientDetails_fenqu_di_bb_div3">
<span class="outpatientDetails_fenqu_di_bb_div3_span1" :style="{ width: lowwidth + '%' }"> 0 </span> <span class="outpatientDetails_fenqu_di_bb_div3_span1" :style="{ width: lowwidth + '%' }"> 0 </span>
<span class="outpatientDetails_fenqu_di_bb_div3_span2" :style="{ width: contentwidth + '%' }"> <span class="outpatientDetails_fenqu_di_bb_div3_span2" :style="{ width: contentwidth + '%' }">
{{ Math.round(lowMagnification) }} {{ Math.round(lowMagnification) }}
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<span class="outpatientDetails_fenqu_di_bb_div3_span2_nmm1">{{ Math.round(highMagnification) }}</span> <span class="outpatientDetails_fenqu_di_bb_div3_span2_nmm1">{{ Math.round(highMagnification) }}</span>
<span class="outpatientDetails_fenqu_di_bb_div3_span2_nmm2">{{ Math.round(heightnum) }}</span> <span class="outpatientDetails_fenqu_di_bb_div3_span2_nmm2">{{ Math.round(heightnum) }}</span>
</span> </span>
</div> </div> -->
</div> </div>
</div> </div>
</div> </div>
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
{{ scope.row.proportion != undefined ? decimal(scope.row.proportion) + "%" : "" }} {{ scope.row.proportion != undefined ? decimal(scope.row.proportion) + "%" : "" }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="coreTotalFee" label="预计DRG设定费用(参考)" width="100" header-align="center" align="right"> <el-table-column prop="coreTotalFee" label="预计DIP设定费用(参考)" width="100" header-align="center" align="right">
<template slot-scope="scope"> <template slot-scope="scope">
{{ decimal(scope.row.coreTotalFee) }} {{ decimal(scope.row.coreTotalFee) }}
</template> </template>
...@@ -845,7 +845,7 @@ export default { ...@@ -845,7 +845,7 @@ export default {
} }
span:nth-child(2) { span:nth-child(2) {
margin-left: 21px; margin-left: 21px;
width: 200px; flex: 1;
height: 39px; height: 39px;
background-color: #fff; background-color: #fff;
font-size: 14px; font-size: 14px;
...@@ -858,7 +858,7 @@ export default { ...@@ -858,7 +858,7 @@ export default {
padding-left: 10px; padding-left: 10px;
} }
span:nth-child(3) { span:nth-child(3) {
width: 200px; flex: 1;
height: 39px; height: 39px;
background-color: #fff; background-color: #fff;
font-size: 14px; font-size: 14px;
...@@ -871,7 +871,7 @@ export default { ...@@ -871,7 +871,7 @@ export default {
align-items: center; align-items: center;
} }
span:nth-child(4) { span:nth-child(4) {
width: 258px; flex: 1;
height: 39px; height: 39px;
background-color: #fff; background-color: #fff;
font-size: 14px; font-size: 14px;
...@@ -884,7 +884,7 @@ export default { ...@@ -884,7 +884,7 @@ export default {
align-items: center; align-items: center;
} }
span:nth-child(5) { span:nth-child(5) {
width: 200px; flex: 1;
height: 39px; height: 39px;
background-color: #fff; background-color: #fff;
font-size: 14px; font-size: 14px;
...@@ -897,7 +897,7 @@ export default { ...@@ -897,7 +897,7 @@ export default {
padding-left: 10px; padding-left: 10px;
} }
span:nth-child(6) { span:nth-child(6) {
width: 200px; flex: 1;
height: 39px; height: 39px;
background-color: #fff; background-color: #fff;
font-size: 14px; font-size: 14px;
...@@ -910,7 +910,7 @@ export default { ...@@ -910,7 +910,7 @@ export default {
align-items: center; align-items: center;
} }
span:nth-child(n + 7) { span:nth-child(n + 7) {
width: 258px; flex: 1;
height: 39px; height: 39px;
background-color: #fff; background-color: #fff;
font-size: 14px; font-size: 14px;
......
...@@ -5,27 +5,27 @@ ...@@ -5,27 +5,27 @@
* @LastEditTime: 2023-02-28 09:38:48 * @LastEditTime: 2023-02-28 09:38:48
* @Description: * @Description:
*/ */
const path = require('path') const path = require("path");
function resolve(dir) { function resolve(dir) {
return path.join(__dirname, dir) return path.join(__dirname, dir);
} }
module.exports = { module.exports = {
publicPath: './', //导出路径 publicPath: "./", //导出路径
assetsDir: 'web', //静态资源文件夹 assetsDir: "web", //静态资源文件夹
productionSourceMap: false, productionSourceMap: false,
devServer: { devServer: {
//测试环境代理 //测试环境代理
port: 8066, //测试端口 port: 8066, //测试端口
proxy: { proxy: {
'/api': { "/api": {
//target: 'http://192.168.18.166:8099/', //target: 'http://192.168.18.166:8099/',
//target: 'http://192.168.18.166:8100/', //drg测试站点 //target: 'http://192.168.18.166:8100/', //drg测试站点
target: 'http://192.168.18.166:8033/', //dip测试站点 target: "http://192.168.18.166:8033/", //dip测试站点
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/': '/', "^/": "/",
}, },
}, },
}, },
...@@ -33,7 +33,7 @@ module.exports = { ...@@ -33,7 +33,7 @@ module.exports = {
configureWebpack: { configureWebpack: {
resolve: { resolve: {
alias: { alias: {
'@': resolve('src'), "@": resolve("src"),
}, },
}, },
}, },
...@@ -48,4 +48,4 @@ module.exports = { ...@@ -48,4 +48,4 @@ module.exports = {
// } // }
}, },
}, },
} };
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