Commit 8aa19e87 by 李承祥

智能分组默认提交第一个入组

parent 2633b547
...@@ -9,7 +9,14 @@ ...@@ -9,7 +9,14 @@
<!-- 智能分组 --> <!-- 智能分组 -->
<div class="outsetgrouping" id="setGroupingbox"> <div class="outsetgrouping" id="setGroupingbox">
<div class="outsetgrouping_button" style="margin-top: 15px"> <div class="outsetgrouping_button" style="margin-top: 15px">
<el-button class="outsetgrouping_button_Searchbtn" style="margin-left: 10px" size="mini" type="primary" @click="topage1">病案质控</el-button> <el-button
class="outsetgrouping_button_Searchbtn"
style="margin-left: 10px"
size="mini"
type="primary"
@click="topage1"
>病案质控</el-button
>
<el-button class="outsetgrouping_button_Searchbtn" type="primary" size="mini" @click="toPage"> <el-button class="outsetgrouping_button_Searchbtn" type="primary" size="mini" @click="toPage">
<span class="s2">费用监控</span> <span class="s2">费用监控</span>
</el-button> </el-button>
...@@ -24,39 +31,51 @@ ...@@ -24,39 +31,51 @@
<div class="outsetgrouping_top"> <div class="outsetgrouping_top">
<div class="outsetgrouping_top_message"> <div class="outsetgrouping_top_message">
<div class="outsetgrouping_top_message_left"> <div class="outsetgrouping_top_message_left">
<span class="outsetgrouping_top_message_left_tu1"><img src="../assets/img/peo.png" alt="" /> </span> <span class="outsetgrouping_top_message_left_tu1"
><img src="../assets/img/peo.png" alt="" />
</span>
<div class="outsetgrouping_top_message_left_t1"> <div class="outsetgrouping_top_message_left_t1">
住院号:<span>{{ casehisObj ? casehisObj.a48 : "" }}</span> 住院号:<span>{{ casehisObj ? casehisObj.a48 : '' }}</span>
</div> </div>
</div> </div>
<div class="outsetgrouping_top_message_left"> <div class="outsetgrouping_top_message_left">
<span class="outsetgrouping_top_message_left_tu1"><img src="../assets/img/peo.png" alt="" /> </span> <span class="outsetgrouping_top_message_left_tu1"
><img src="../assets/img/peo.png" alt="" />
</span>
<div class="outsetgrouping_top_message_left_t1"> <div class="outsetgrouping_top_message_left_t1">
姓名:<span>{{ casehisObj ? casehisObj.a11 : "" }}</span> 姓名:<span>{{ casehisObj ? casehisObj.a11 : '' }}</span>
</div> </div>
</div> </div>
<div class="outsetgrouping_top_message_centert"> <div class="outsetgrouping_top_message_centert">
<span class="outsetgrouping_top_message_centert_tu2"><img src="../assets/img/ka.png" alt="" /></span> <span class="outsetgrouping_top_message_centert_tu2"
><img src="../assets/img/ka.png" alt=""
/></span>
<div class="outsetgrouping_top_message_centert_t2"> <div class="outsetgrouping_top_message_centert_t2">
住院次数:<span>{{ casehisObj ? casehisObj.a49 : "" }}</span> 住院次数:<span>{{ casehisObj ? casehisObj.a49 : '' }}</span>
</div> </div>
</div> </div>
<div class="outsetgrouping_top_message_centert"> <div class="outsetgrouping_top_message_centert">
<span class="outsetgrouping_top_message_centert_tu2"><img src="../assets/img/ka.png" alt="" /></span> <span class="outsetgrouping_top_message_centert_tu2"
><img src="../assets/img/ka.png" alt=""
/></span>
<div class="outsetgrouping_top_message_centert_t2"> <div class="outsetgrouping_top_message_centert_t2">
实际住院天数:<span>{{ casehisObj ? casehisObj.b20 : "" }}</span> 实际住院天数:<span>{{ casehisObj ? casehisObj.b20 : '' }}</span>
</div> </div>
</div> </div>
<div class="outsetgrouping_top_message_right"> <div class="outsetgrouping_top_message_right">
<span class="outsetgrouping_top_message_right_tu3"><img src="../assets/img/qian.png" alt="" /></span> <span class="outsetgrouping_top_message_right_tu3"
><img src="../assets/img/qian.png" alt=""
/></span>
<div class="outsetgrouping_top_message_right_t3"> <div class="outsetgrouping_top_message_right_t3">
医疗付费方式:<span>{{ casehisObj ? casehisObj.a46C : "" }}</span> 医疗付费方式:<span>{{ casehisObj ? casehisObj.a46C : '' }}</span>
</div> </div>
</div> </div>
<div class="outsetgrouping_top_message_blow"> <div class="outsetgrouping_top_message_blow">
<span class="outsetgrouping_top_message_blow_tu7"><img src="../assets/img/daoru.png" alt="" /></span> <span class="outsetgrouping_top_message_blow_tu7"
><img src="../assets/img/daoru.png" alt=""
/></span>
<div class="outsetgrouping_top_message_blow_t4"> <div class="outsetgrouping_top_message_blow_t4">
分组类型:<span>{{ casehisObj ? casehisObj.drgs.disNature : "" }}</span> 分组类型:<span>{{ casehisObj ? casehisObj.drgs.disNature : '' }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -64,33 +83,43 @@ ...@@ -64,33 +83,43 @@
<div class="outsetgrouping_top2"> <div class="outsetgrouping_top2">
<div class="outsetgrouping_top2_message"> <div class="outsetgrouping_top2_message">
<div class="outsetgrouping_top2_message_left"> <div class="outsetgrouping_top2_message_left">
<span class="outsetgrouping_top2_message_left_tu4"><img src="../assets/img/bianma.png" alt="" /> </span> <span class="outsetgrouping_top2_message_left_tu4"
><img src="../assets/img/bianma.png" alt="" />
</span>
<div class="outsetgrouping_top2_message_left_t1"> <div class="outsetgrouping_top2_message_left_t1">
分组编码:<span>{{ casehisObj ? casehisObj.drgs.code : "" }}</span> 分组编码:<span>{{ casehisObj ? casehisObj.drgs.code : '' }}</span>
</div> </div>
</div> </div>
<div class="outsetgrouping_top2_message_right"> <div class="outsetgrouping_top2_message_right">
<span class="outsetgrouping_top2_message_centert_tu5"><img src="../assets/img/daoru.png" alt="" /></span> <span class="outsetgrouping_top2_message_centert_tu5"
><img src="../assets/img/daoru.png" alt=""
/></span>
<div class="outsetgrouping_top2_message_centert_t2"> <div class="outsetgrouping_top2_message_centert_t2">
分组名称:<span>{{ casehisObj ? casehisObj.drgs.name : "" }}</span> 分组名称:<span>{{ casehisObj ? casehisObj.drgs.name : '' }}</span>
</div> </div>
</div> </div>
<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">
预计DIP支付费用:<span>{{ casehisObj ? decimal(casehisObj.drgs.actualfee) : "" }}</span> 预计DIP支付费用:<span>{{ casehisObj ? decimal(casehisObj.drgs.actualfee) : '' }}</span>
</div> </div>
</div> </div>
<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">
总费用:<span>{{ casehisObj ? decimal(casehisObj.totalFee) : "" }}</span> 总费用:<span>{{ casehisObj ? decimal(casehisObj.totalFee) : '' }}</span>
</div> </div>
</div> </div>
<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">
预计盈亏:<span>{{ casehisObj ? decimal(casehisObj.drgs.profitLoss) : "" }}</span> 预计盈亏:<span>{{ casehisObj ? decimal(casehisObj.drgs.profitLoss) : '' }}</span>
</div> </div>
</div> </div>
</div> </div>
...@@ -101,14 +130,23 @@ ...@@ -101,14 +130,23 @@
<span class="outsetgrouping_title_span">智能疾病分组</span> <span class="outsetgrouping_title_span">智能疾病分组</span>
</div> </div>
<div class="outsetgrouping_centent"> <div class="outsetgrouping_centent">
<div class="outsetgrouping_centent_totalnum" v-for="(item, index) in CorePercents" :key="index"> <div
<div class="outsetgrouping_centent_totalnum_left"> class="outsetgrouping_centent_totalnum"
<div class="outsetgrouping_centent_totalnum_left_radios"> v-for="(item, index) in CorePercents"
<el-button class="outsetgrouping_button_Submitbtn" size="mini" type="primary" @click="submit(item.coreID)"> :key="index"
>
<div class="outsetgrouping_centent_totalnum_left" style="padding-top: 15px">
<!-- <div class="outsetgrouping_centent_totalnum_left_radios">
<el-button
class="outsetgrouping_button_Submitbtn"
size="mini"
type="primary"
@click="submit(item.coreID)"
>
<span class="iconfont icon-ipr_tijiao"></span> <span class="iconfont icon-ipr_tijiao"></span>
<span class="s2">分组提交</span> <span class="s2">分组提交</span>
</el-button> </el-button>
</div> </div> -->
<div class="outsetgrouping_centent_totalnum_left_text"> <div class="outsetgrouping_centent_totalnum_left_text">
<div class="outsetgrouping_centent_totalnum_left_text_msg1"> <div class="outsetgrouping_centent_totalnum_left_text_msg1">
...@@ -145,7 +183,10 @@ ...@@ -145,7 +183,10 @@
</div> </div>
<div class="outsetgrouping_centent_totalnum_right"> <div class="outsetgrouping_centent_totalnum_right">
<div class="patientDetails_fenqu" v-if="item.lowMagnification != 0 && item.highMagnification != 0"> <div
class="patientDetails_fenqu"
v-if="item.lowMagnification != 0 && item.highMagnification != 0"
>
<div class="patientDetails_fenqu_di"> <div class="patientDetails_fenqu_di">
<div class="patientDetails_fenqu_di_bb"> <div class="patientDetails_fenqu_di_bb">
<div class="patientDetails_fenqu_di_bb_div1"> <div class="patientDetails_fenqu_di_bb_div1">
...@@ -153,7 +194,7 @@ ...@@ -153,7 +194,7 @@
class="patientDetails_fenqu_di_bb_div1_num" class="patientDetails_fenqu_di_bb_div1_num"
:style="{ :style="{
'margin-left': item.totalwidth - 1 + '%', 'margin-left': item.totalwidth - 1 + '%',
color: item.totalcolor, color: item.totalcolor
}" }"
>{{ decimal(casehisObj.totalFee) }}</span >{{ decimal(casehisObj.totalFee) }}</span
> >
...@@ -161,27 +202,51 @@ ...@@ -161,27 +202,51 @@
class="patientDetails_fenqu_di_bb_div1_he" class="patientDetails_fenqu_di_bb_div1_he"
:style="{ :style="{
marginLeft: item.totalwidth + '%', marginLeft: item.totalwidth + '%',
backgroundColor: item.totalcolor, backgroundColor: item.totalcolor
}" }"
></span> ></span>
</div> </div>
<div class="patientDetails_fenqu_di_bb_div2"> <div class="patientDetails_fenqu_di_bb_div2">
<span class="patientDetails_fenqu_di_bb_div2_span1" :style="{ width: item.lowwidth + '%' }"> <span
<span class="patientDetails_fenqu_di_bb_div2_span1_t1" :title="'低倍率区域:&lt;=' + Math.round(item.lowMagnification)" class="patientDetails_fenqu_di_bb_div2_span1"
:style="{ width: item.lowwidth + '%' }"
>
<span
class="patientDetails_fenqu_di_bb_div2_span1_t1"
:title="'低倍率区域:&lt;=' + Math.round(item.lowMagnification)"
>低倍率区域:&lt;={{ Math.round(item.lowMagnification) }}</span >低倍率区域:&lt;={{ Math.round(item.lowMagnification) }}</span
> >
</span> </span>
<span class="patientDetails_fenqu_di_bb_div2_span2" :style="{ width: item.contentwidth + '%' }"> <span
class="patientDetails_fenqu_di_bb_div2_span2"
:style="{ width: item.contentwidth + '%' }"
>
<span <span
class="patientDetails_fenqu_di_bb_div2_span2_t2" class="patientDetails_fenqu_di_bb_div2_span2_t2"
:title="'正常区域:' + (Math.round(item.lowMagnification) + 1) + '~' + (Math.round(item.highMagnification) - 1)" :title="
'正常区域:' +
(Math.round(item.lowMagnification) + 1) +
'~' +
(Math.round(item.highMagnification) - 1)
"
> >
正常区域:{{ Math.round(item.lowMagnification) + 1 + "~" + (Math.round(item.highMagnification) - 1) }} 正常区域:{{
Math.round(item.lowMagnification) +
1 +
'~' +
(Math.round(item.highMagnification) - 1)
}}
</span> </span>
</span> </span>
<span class="patientDetails_fenqu_di_bb_div2_span3" :style="{ width: item.heightwidth + '%' }"> <span
<span class="patientDetails_fenqu_di_bb_div2_span3_t3" :title="'高倍率区域:>=' + Math.round(item.highMagnification)"> class="patientDetails_fenqu_di_bb_div2_span3"
:style="{ width: item.heightwidth + '%' }"
>
<span
class="patientDetails_fenqu_di_bb_div2_span3_t3"
:title="'高倍率区域:>=' + Math.round(item.highMagnification)"
>
高倍率区域:>={{ Math.round(item.highMagnification) }} 高倍率区域:>={{ Math.round(item.highMagnification) }}
</span> </span>
</span> </span>
...@@ -231,28 +296,33 @@ ...@@ -231,28 +296,33 @@
</div> </div>
<!-- 弹出层 --> <!-- 弹出层 -->
<el-dialog center :visible.sync="addrecordEnrollmentShow" :before-close="closeDialog" :fullscreen="true"> <el-dialog
center
:visible.sync="addrecordEnrollmentShow"
:before-close="closeDialog"
:fullscreen="true"
>
<diagList :code="casehisObj" :isshow="addrecordEnrollmentShow"></diagList> <diagList :code="casehisObj" :isshow="addrecordEnrollmentShow"></diagList>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script> <script>
import { decimal } from "../utils/decimal"; import { decimal } from '../utils/decimal'
import http from "../utils/http"; import http from '../utils/http'
import $ from "jquery"; import $ from 'jquery'
import { Message } from "element-ui"; import { Message } from 'element-ui'
import { initEcharts, categoryChart, categoryChart11 } from "../utils/echarts"; import { initEcharts, categoryChart, categoryChart11 } from '../utils/echarts'
import diagList from "./diagList"; import diagList from './diagList'
export default { export default {
name: "outHistorygrouping", name: 'outHistorygrouping',
components: { diagList }, components: { diagList },
data() { data() {
return { return {
abc: "", abc: '',
casehisObj: null, casehisObj: null,
searchForm: { searchForm: {
diagName: "", diagName: '',
opsName: "", opsName: ''
}, },
CorePercents: [], CorePercents: [],
coreID: 0, coreID: 0,
...@@ -269,8 +339,8 @@ export default { ...@@ -269,8 +339,8 @@ export default {
opsMapList: null, //医保手术编码集合 opsMapList: null, //医保手术编码集合
outaddsearchForm: { outaddsearchForm: {
diagName: "", diagName: '',
opsName: "", opsName: ''
}, },
addCorePercents: [], addCorePercents: [],
addnolistShow: true, //没有搜索数据的时候显示 addnolistShow: true, //没有搜索数据的时候显示
...@@ -282,76 +352,76 @@ export default { ...@@ -282,76 +352,76 @@ export default {
// 性别选择器 // 性别选择器
sexoptions: [ sexoptions: [
{ {
label: "未知", label: '未知',
value: "0", value: '0'
}, },
{ {
label: "男", label: '男',
value: "1", value: '1'
}, },
{ {
label: "女", label: '女',
value: "2", value: '2'
}, }
], ],
//离院方式选择器 //离院方式选择器
leaveoptions: [ leaveoptions: [
{ {
label: "医嘱离院", label: '医嘱离院',
value: "1", value: '1'
}, },
{ {
label: "医嘱转院", label: '医嘱转院',
value: "2", value: '2'
}, },
{ {
label: "医嘱转社区卫生服务机构/乡镇卫生院", label: '医嘱转社区卫生服务机构/乡镇卫生院',
value: "3", value: '3'
}, },
{ {
label: "非医嘱离院", label: '非医嘱离院',
value: "4", value: '4'
}, },
{ {
label: "死亡", label: '死亡',
value: "5", value: '5'
}, },
{ {
label: "其他", label: '其他',
value: "9", value: '9'
}, }
], ],
//性别输入框 //性别输入框
sexvalue: "0", sexvalue: '0',
//年龄 岁 //年龄 岁
ageinput: "0", ageinput: '0',
//年龄 天 //年龄 天
ageinput2: "0", ageinput2: '0',
//icu时长 //icu时长
icuinput: "0", icuinput: '0',
//离院方式 //离院方式
leavevalue: "1", leavevalue: '1',
otdiagName: "", //其他诊断 otdiagName: '', //其他诊断
otopsName: "", //其他手术 otopsName: '', //其他手术
zdoptions: [], //诊断的数据 zdoptions: [], //诊断的数据
otzdoptions: [], //其他诊断数据 otzdoptions: [], //其他诊断数据
ssoptions: [], //主手术 ssoptions: [], //主手术
otssoptions: [], //其他手术 otssoptions: [], //其他手术
diagList: [], //诊断 diagList: [], //诊断
opsList: [], //手术 opsList: [] //手术
}; }
}, },
async mounted() { async mounted() {
this.getCaseHis(this.$route.query.id); this.getCaseHis(this.$route.query.id)
}, },
methods: { methods: {
decimal, decimal,
goback() { goback() {
this.$router.go(-1); this.$router.go(-1)
}, },
//疾病查询 //疾病查询
gosear() { gosear() {
this.addrecordEnrollmentShow = true; this.addrecordEnrollmentShow = true
// this.outaddsearchForm = { // this.outaddsearchForm = {
// diagName: this.casehisObj.c03C || "", // diagName: this.casehisObj.c03C || "",
// }; // };
...@@ -359,73 +429,92 @@ export default { ...@@ -359,73 +429,92 @@ export default {
}, },
//获取基本数据 //获取基本数据
getCaseHis(code) { getCaseHis(code) {
http.post(`/medical/Get/casehisData?id=${code}`, {}) http
.post(`/medical/Get/casehisData?id=${code}`, {})
.then((data) => { .then((data) => {
this.casehisObj = data; this.casehisObj = data
this.diagMapList = data.diagMapList; this.diagMapList = data.diagMapList
this.opsMapList = data.opsMapList; this.opsMapList = data.opsMapList
this.getlist(); this.getlist()
}) })
.catch((error) => {}); .catch((error) => {})
}, },
//获取列表数据 //获取列表数据
getlist() { getlist() {
http.post(`/medical/get/GetCorePercents`, { http
.post(`/medical/get/GetCorePercents`, {
Type: 1, Type: 1,
DiagMapList: this.diagMapList, DiagMapList: this.diagMapList,
OpsMapList: this.opsMapList, OpsMapList: this.opsMapList,
id: this.$route.query.id, id: this.$route.query.id
}) })
.then((data) => { .then((data) => {
this.CorePercents = data.list; this.CorePercents = data.list
this.CorePercents.map((item) => { this.CorePercents.map((item) => {
// 高倍率>总费用 高倍率金额+高倍率金额*30% // 高倍率>总费用 高倍率金额+高倍率金额*30%
if (item.highMagnification > item.totalFee) { if (item.highMagnification > item.totalFee) {
item.heightnum = item.highMagnification + item.highMagnification * 0.3; item.heightnum = item.highMagnification + item.highMagnification * 0.3
} else if (item.highMagnification < item.totalFee) { } else if (item.highMagnification < item.totalFee) {
// 高倍率<总费用 患者总费用的金额+患者总费用的金额*30% // 高倍率<总费用 患者总费用的金额+患者总费用的金额*30%
item.heightnum = item.totalFee + item.totalFee * 0.3; item.heightnum = item.totalFee + item.totalFee * 0.3
} }
// 低倍率宽度 // 低倍率宽度
item.lowwidth = Math.round((Math.round(item.lowMagnification) / Math.round(item.heightnum)) * 100); item.lowwidth = Math.round(
(Math.round(item.lowMagnification) / Math.round(item.heightnum)) * 100
)
// 高倍率宽度 // 高倍率宽度
item.heightwidth = Math.round(((Math.round(item.heightnum) - Math.round(item.highMagnification)) / Math.round(item.heightnum)) * 100); item.heightwidth = Math.round(
((Math.round(item.heightnum) - Math.round(item.highMagnification)) /
Math.round(item.heightnum)) *
100
)
// 正常倍率宽度 // 正常倍率宽度
item.contentwidth = 100 - (item.lowwidth + item.heightwidth); item.contentwidth = 100 - (item.lowwidth + item.heightwidth)
//总费用宽度 //总费用宽度
item.totalwidth = Math.round((Math.round(item.totalFee) / Math.round(item.heightnum)) * 100); item.totalwidth = Math.round(
(Math.round(item.totalFee) / Math.round(item.heightnum)) * 100
)
// 判断总费用显示的颜色 // 判断总费用显示的颜色
if (item.totalFee < item.lowMagnification) { if (item.totalFee < item.lowMagnification) {
item.totalcolor = "#e9c622"; item.totalcolor = '#e9c622'
} else if (item.totalFee > item.lowMagnification && item.totalFee < item.highMagnification) { } else if (
item.totalcolor = "#22d016"; item.totalFee > item.lowMagnification &&
item.totalFee < item.highMagnification
) {
item.totalcolor = '#22d016'
} else if (item.totalFee > item.highMagnification) { } else if (item.totalFee > item.highMagnification) {
item.totalcolor = "#ff7e00"; item.totalcolor = '#ff7e00'
} }
if (item.lowMagnification == 0 || item.highMagnification == 0) { if (item.lowMagnification == 0 || item.highMagnification == 0) {
item.bottomheight = "80%"; item.bottomheight = '80%'
} else if (data.lowMagnification != 0) { } else if (data.lowMagnification != 0) {
item.bottomheight = "68%"; item.bottomheight = '68%'
}
})
if (this.CorePercents != null && this.CorePercents.length > 0) {
const coreId = this.CorePercents[0].coreID
if (this.casehisObj != null && coreId !== this.casehisObj.drgs.coreid)
this.submit(coreId)
} }
});
}) })
.catch((error) => {}); .catch((error) => {})
}, },
//提交 //提交
submit(coreID) { submit(coreID) {
http.post(`/medical/Update/casehisById?PatientId=${this.$route.query.id}&coreid=${coreID}`) http
.post(`/medical/Update/casehisById?PatientId=${this.$route.query.id}&coreid=${coreID}`)
.then((data) => { .then((data) => {
Message.success({ // Message.success({
message: `${data.message}`, // message: `${data.message}`,
type: "success", // type: 'success'
}); // })
this.getCaseHis(this.$route.query.id); this.getCaseHis(this.$route.query.id)
}) })
.catch((error) => {}); .catch((error) => {})
}, },
//关闭弹层前的回调 //关闭弹层前的回调
closeDialog() { closeDialog() {
this.addrecordEnrollmentShow = false; this.addrecordEnrollmentShow = false
// this.outaddsearchForm = { // this.outaddsearchForm = {
// diagName: "", // diagName: "",
// opsName: "", // opsName: "",
...@@ -434,55 +523,59 @@ export default { ...@@ -434,55 +523,59 @@ export default {
}, },
//清空输入框的值时触发 //清空输入框的值时触发
addclear() { addclear() {
this.addCorePercents = []; this.addCorePercents = []
this.addnodataShow = true; this.addnodataShow = true
}, },
//获取诊断数据 //获取诊断数据
remoteMethod(query) { remoteMethod(query) {
if (query) { if (query) {
http.post(`/medical/get/GetDiagOpss?diagName=${query}&type=${1}`, {}) http
.post(`/medical/get/GetDiagOpss?diagName=${query}&type=${1}`, {})
.then((data) => { .then((data) => {
this.zdoptions = data; this.zdoptions = data
}) })
.catch((error) => {}); .catch((error) => {})
} else { } else {
this.zdoptions = []; this.zdoptions = []
} }
}, },
//获取其他诊断数据 //获取其他诊断数据
otremoteMethod(query) { otremoteMethod(query) {
if (query) { if (query) {
http.post(`/medical/get/GetDiagOpss?diagName=${query}&type=${1}`, {}) http
.post(`/medical/get/GetDiagOpss?diagName=${query}&type=${1}`, {})
.then((data) => { .then((data) => {
this.otzdoptions = data; this.otzdoptions = data
}) })
.catch((error) => {}); .catch((error) => {})
} else { } else {
this.zdoptions = []; this.zdoptions = []
} }
}, },
//获取主手术,其他手术的数据 //获取主手术,其他手术的数据
ssremoteMethod(query) { ssremoteMethod(query) {
if (query) { if (query) {
http.post(`/medical/get/GetDiagOpss?diagName=${query}&type=${2}`, {}) http
.post(`/medical/get/GetDiagOpss?diagName=${query}&type=${2}`, {})
.then((data) => { .then((data) => {
this.ssoptions = data; this.ssoptions = data
}) })
.catch((error) => {}); .catch((error) => {})
} else { } else {
this.zdoptions = []; this.zdoptions = []
} }
}, },
//获取其他手术的数据 //获取其他手术的数据
otssremoteMethod(query) { otssremoteMethod(query) {
if (query) { if (query) {
http.post(`/medical/get/GetDiagOpss?diagName=${query}&type=${2}`, {}) http
.post(`/medical/get/GetDiagOpss?diagName=${query}&type=${2}`, {})
.then((data) => { .then((data) => {
this.otssoptions = data; this.otssoptions = data
}) })
.catch((error) => {}); .catch((error) => {})
} else { } else {
this.zdoptions = []; this.zdoptions = []
} }
}, },
//查询 //查询
...@@ -491,35 +584,36 @@ export default { ...@@ -491,35 +584,36 @@ export default {
if (this.outaddsearchForm.diagName) { if (this.outaddsearchForm.diagName) {
this.diagList.push({ this.diagList.push({
diagCode: this.outaddsearchForm.diagName, diagCode: this.outaddsearchForm.diagName,
diagOrder: "0", diagOrder: '0'
}); })
} }
if (!this.outaddsearchForm.diagName) { if (!this.outaddsearchForm.diagName) {
Message.warning("请输入主诊断"); Message.warning('请输入主诊断')
return; return
} }
this.addgetlist(); this.addgetlist()
}, },
//获取列表数据 //获取列表数据
addgetlist() { addgetlist() {
http.post(`/medical/post/GetCorePercentsByAssemble`, { http
a14: this.ageinput ? this.ageinput : "0", // 年龄 .post(`/medical/post/GetCorePercentsByAssemble`, {
a16: this.ageinput2 ? this.ageinput2 : "0", // 年龄不足一周岁(天) a14: this.ageinput ? this.ageinput : '0', // 年龄
a16: this.ageinput2 ? this.ageinput2 : '0', // 年龄不足一周岁(天)
a12C: this.sexvalue, // 性别 a12C: this.sexvalue, // 性别
icuTime: this.icuinput ? this.icuinput : "0", // icu总时长(分钟) icuTime: this.icuinput ? this.icuinput : '0', // icu总时长(分钟)
b34C: this.leavevalue, // 离院方式 b34C: this.leavevalue, // 离院方式
diagList: this.diagList, // 诊断集合 diagList: this.diagList, // 诊断集合
opsList: this.opsList, // 手术集合 opsList: this.opsList // 手术集合
}) })
.then((data) => { .then((data) => {
this.addCorePercents = data; this.addCorePercents = data
if (this.addCorePercents.length == 0) { if (this.addCorePercents.length == 0) {
this.addnolistShow = true; this.addnolistShow = true
} else { } else {
this.addnolistShow = false; this.addnolistShow = false
} }
this.diagList = []; this.diagList = []
this.opsList = []; this.opsList = []
// this.totalCount = data.totalCount; // this.totalCount = data.totalCount;
// for (var i = 0; i < this.addCorePercents.length; i++) { // for (var i = 0; i < this.addCorePercents.length; i++) {
// this.$nextTick(() => { // this.$nextTick(() => {
...@@ -532,16 +626,16 @@ export default { ...@@ -532,16 +626,16 @@ export default {
// (this.diagList = []), (this.opsList = []); // (this.diagList = []), (this.opsList = []);
// } // }
}) })
.catch((error) => {}); .catch((error) => {})
}, },
radios() { radios() {
let _this = this; let _this = this
$("input[type=radio][name=radios]").on("change", function () { $('input[type=radio][name=radios]').on('change', function () {
_this.radio = this.value; _this.radio = this.value
_this.coreID = _this.CorePercents.find((item) => item.id == this.value).coreID; _this.coreID = _this.CorePercents.find((item) => item.id == this.value).coreID
console.log(_this.coreID); console.log(_this.coreID)
console.log(this.value); console.log(this.value)
}); })
// console.log(e); // console.log(e);
// this.radio = e.target.value; // this.radio = e.target.value;
// this.coreID = this.CorePercents.find((item) => item.id == e.target.value).coreID; // this.coreID = this.CorePercents.find((item) => item.id == e.target.value).coreID;
...@@ -549,26 +643,28 @@ export default { ...@@ -549,26 +643,28 @@ export default {
}, },
toPage() { toPage() {
http.get(`/medical/get/JumpHisMAInfo?id=${this.$route.query.id}`, {}) http
.get(`/medical/get/JumpHisMAInfo?id=${this.$route.query.id}`, {})
.then((data) => { .then((data) => {
window.open(data.message); window.open(data.message)
}) })
.catch((error) => { .catch((error) => {
console.log(error); console.log(error)
}); })
}, },
topage1() { topage1() {
http.get(`/medical/get/JumpHisRules?id=${this.$route.query.id}`, {}) http
.get(`/medical/get/JumpHisRules?id=${this.$route.query.id}`, {})
.then((data) => { .then((data) => {
window.open(data.message); window.open(data.message)
}) })
.catch((error) => {}); .catch((error) => {})
}, }
}, }
}; }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "../styles/mixin.scss"; @import '../styles/mixin.scss';
// @import "../styles/outHistorygrouping.scss"; // @import "../styles/outHistorygrouping.scss";
.outsetgrouping { .outsetgrouping {
height: calc(100% - 20px); height: calc(100% - 20px);
...@@ -1451,7 +1547,7 @@ export default { ...@@ -1451,7 +1547,7 @@ export default {
} }
} }
} }
input[type="radio" i] { input[type='radio' i] {
width: 16px; width: 16px;
height: 16px; height: 16px;
} }
......
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