Commit 8f72a377 by 唐玉峰

添加 是否皮试列 临床

parent ebd7fc90
......@@ -421,6 +421,8 @@
<el-table-column prop="diaG_CODE" label="疾病编码"></el-table-column>
<el-table-column prop="diaG_ORDERNAME" label="诊断类型"> </el-table-column>
<el-table-column prop="diaG_ILLNESS" label="入院病情"></el-table-column>
<el-table-column prop="coreName" label="病组编码"> </el-table-column>
<el-table-column prop="coreScore" label=" 分值"></el-table-column>
</el-table>
</el-row>
<el-row>
......
......@@ -117,6 +117,18 @@
<span v-if="scope.row.ischeck == 1 && scope.row.orderType">{{ scope.row.tickTime }}</span>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip property="isSkin" label="是否皮试" width="110">
<template #default="scope">
<template v-if="scope.row.orderType == '药疗' && scope.row.isnew">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType && scope.row.isSkinCheck == 1">
<el-select size="mini" v-model="scope.row.isSkin">
<el-option v-for="item in isSkinoptions" :key="item.label" :label="item.label" :value="item.value"> </el-option>
</el-select>
</template>
<!-- <div v-else>{{ scope.row.isSkin == 1 ? "是" : "否" }}</div> -->
</template>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip property="orderType" label="类型" width="50">
<template #default="scope">
<div v-if="scope.row.orderType == '药疗'">
......@@ -175,7 +187,7 @@
</el-table-column>
<el-table-column show-overflow-tooltip property="specifications" label="规格说明" width="80" />
<el-table-column show-overflow-tooltip property="dosage" label="药品剂型" width="70" />
<el-table-column show-overflow-tooltip property="isAntibiotic" label="抗生素" width="85">
<el-table-column show-overflow-tooltip property="isAntibiotic" label="抗生素" width="110">
<template #default="scope">
<el-select v-if="scope.row.ischeck == 1 && scope.row.orderType" size="mini" v-model="scope.row.isAntibiotic">
<el-option v-for="item in chargeTypeoptions" :key="item.label" :label="item.label" :value="item.label"> </el-option>
......@@ -186,9 +198,36 @@
<el-table-column show-overflow-tooltip property="medicalPurpose" label="用药目的" width="135">
<template #default="scope">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType">
<template v-if="scope.row.isAntibiotic == '是' && scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicalPurpose" class="demo-ruleForm">
<el-form-item prop="medicalPurpose" :rules="[{ required: true, message: '请选择' }]">
<el-form-item
prop="medicalPurpose"
:rules="[
{
required:
scope.row.isSkin == 1 && scope.row.orderType == '药疗'
? true
: scope.row.isAntibiotic == '是' && scope.row.orderType == '药疗'
? true
: false,
message: '请选择',
},
]"
>
<template #label> <span></span></template>
<el-select size="mini" v-model="scope.row.medicalPurpose">
<el-option v-for="item in medicalPurposeoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</el-form-item>
</el-form>
<!-- <template v-if="scope.row.isAntibiotic == '是' && scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicalPurpose" class="demo-ruleForm">
<el-form-item
prop="medicalPurpose"
:rules="[
{ required: scope.row.isAntibiotic == '是' && scope.row.orderType == '药疗' ? true : false, message: '请选择' },
]"
>
<template #label> <span></span></template>
<el-select size="mini" v-model="scope.row.medicalPurpose">
<el-option v-for="item in medicalPurposeoptions" :key="item.id" :label="item.describe" :value="item.describe">
......@@ -202,7 +241,7 @@
<el-option v-for="item in medicalPurposeoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</template>
</template> -->
</template>
<span v-else>{{ scope.row.medicalPurpose }}</span>
</template>
......@@ -210,9 +249,21 @@
<el-table-column prop="medicUseQuantity" label="用量" width="85">
<template #default="scope">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType">
<template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUseQuantity" class="demo-ruleForm">
<el-form-item prop="medicUseQuantity" :rules="[{ required: true, message: '请填写' }]">
<el-form-item
prop="medicUseQuantity"
:rules="[{ required: scope.row.orderType == '药疗' && scope.row.isSkin != 1 ? true : false, message: '请填写' }]"
>
<template #label> <span></span></template>
<el-input v-model="scope.row.medicUseQuantity" @input="setIput(scope.row, $event)" size="mini"></el-input>
</el-form-item>
</el-form>
<!-- <template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUseQuantity" class="demo-ruleForm">
<el-form-item
prop="medicUseQuantity"
:rules="[{ required: scope.row.orderType == '药疗' && scope.row.isSkin == '是' ? true : false, message: '请填写' }]"
>
<template #label> <span></span></template>
<el-input v-model="scope.row.medicUseQuantity" @input="setIput(scope.row, $event)" size="mini"></el-input>
</el-form-item>
......@@ -220,7 +271,7 @@
</template>
<template v-else>
<el-input v-model="scope.row.medicUseQuantity" @input="setIput(scope.row, $event)" size="mini"></el-input>
</template>
</template> -->
</template>
<span v-else>{{ scope.row.medicUseQuantity }}</span>
</template>
......@@ -229,7 +280,19 @@
<el-table-column show-overflow-tooltip property="medicUseMode" label="途径" width="120">
<template #default="scope">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType">
<template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUseMode" class="demo-ruleForm">
<el-form-item
prop="medicUseMode"
:rules="[{ required: scope.row.orderType == '药疗' && scope.row.isSkin != 1 ? true : false, message: '请选择' }]"
>
<template #label> <span></span></template>
<el-select size="mini" v-model="scope.row.medicUseMode" filterable remote :filter-method="remoteMethod">
<el-option v-for="item in medicUseModeoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</el-form-item>
</el-form>
<!-- <template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUseMode" class="demo-ruleForm">
<el-form-item prop="medicUseMode" :rules="[{ required: true, message: '请选择' }]">
<template #label> <span></span></template>
......@@ -245,7 +308,7 @@
<el-option v-for="item in medicUseModeoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</template>
</template> -->
</template>
<span v-else>{{ scope.row.medicUseMode }}</span>
</template>
......@@ -253,7 +316,19 @@
<el-table-column show-overflow-tooltip property="medicUsePlan" label="频率" width="130">
<template #default="scope">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType">
<template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUsePlan" class="demo-ruleForm">
<el-form-item
prop="medicUsePlan"
:rules="[{ required: scope.row.orderType == '药疗' && scope.row.isSkin != 1 ? true : false, message: '请选择' }]"
>
<template #label> <span></span></template>
<el-select size="mini" v-model="scope.row.medicUsePlan" @change="setIput(scope.row, $event)">
<el-option v-for="item in medicUsePlanoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</el-form-item>
</el-form>
<!-- <template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUsePlan" class="demo-ruleForm">
<el-form-item prop="medicUsePlan" :rules="[{ required: true, message: '请选择' }]">
<template #label> <span></span></template>
......@@ -269,7 +344,7 @@
<el-option v-for="item in medicUsePlanoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</template>
</template> -->
</template>
<span v-else>{{ scope.row.medicUsePlan }}</span>
</template>
......@@ -451,7 +526,16 @@ export default {
reasonoptions: [], //变异原因
crid: null,
chickid: [], //选中的id
isSkinoptions: [
{
label: "是",
value: 1,
},
{
label: "否",
value: 2,
},
],
chargeTypeoptions: [
{
label: "是",
......@@ -601,6 +685,8 @@ export default {
useDay: 1,
packagingnum: 1,
split_num: 1,
isSkin: undefined,
isSkinCheck: r.isSkinCheck,
};
this.toggleSelection(newData, true);
this.cout = cout + 1;
......@@ -669,6 +755,7 @@ export default {
item.useDay = row.useDay;
item.packagingnum = row.packagingnum;
item.split_num = row.split_num;
item.isSkin = row.isSkin;
}
if (item.children && item.children.length > 0) {
this.pushData(row, item.children);
......
......@@ -18,35 +18,19 @@
<div class="outseeQualityControl_box_Content">
<div class="outseeQualityControl_box_Content_left">
<medical-record-homepage
:medicalrecord="medicalrecord"
:clicktitle="clicktitle"
>
</medical-record-homepage>
<medical-record-homepage :medicalrecord="medicalrecord" :clicktitle="clicktitle"> </medical-record-homepage>
</div>
<div class="outseeQualityControl_box_Content_right">
<div class="outseeQualityControl_box_Content_right_top">
<!--非编码问题 -->
<div
:class="[
isleftcodeShow
? 'outseeQualityControl_box_Content_right_top_left'
: 'outseeQualityControl_box_Content_right_top_left11',
]"
:class="[isleftcodeShow ? 'outseeQualityControl_box_Content_right_top_left' : 'outseeQualityControl_box_Content_right_top_left11']"
@click="leftcode"
>
<div class="outseeQualityControl_box_Content_right_top_left_div1">
<img
src="../assets/img/fbm.png"
alt=""
v-show="isleftcodeShow"
/>
<img
src="../assets/img/bm.png"
alt=""
v-show="!isleftcodeShow"
/>
<img src="../assets/img/fbm.png" alt="" v-show="isleftcodeShow" />
<img src="../assets/img/bm.png" alt="" v-show="!isleftcodeShow" />
</div>
<div class="outseeQualityControl_box_Content_right_top_left_div2">
<span
......@@ -70,29 +54,15 @@
<!-- 编码问题 -->
<div
:class="[
isleftcodeShow
? 'outseeQualityControl_box_Content_right_top_right'
: 'outseeQualityControl_box_Content_right_top_right11',
isleftcodeShow ? 'outseeQualityControl_box_Content_right_top_right' : 'outseeQualityControl_box_Content_right_top_right11',
]"
@click="rightcode"
>
<div
class="outseeQualityControl_box_Content_right_top_right_div1"
>
<img
src="../assets/img/fbm.png"
alt=""
v-show="!isleftcodeShow"
/>
<img
src="../assets/img/bm.png"
alt=""
v-show="isleftcodeShow"
/>
<div class="outseeQualityControl_box_Content_right_top_right_div1">
<img src="../assets/img/fbm.png" alt="" v-show="!isleftcodeShow" />
<img src="../assets/img/bm.png" alt="" v-show="isleftcodeShow" />
</div>
<div
class="outseeQualityControl_box_Content_right_top_right_div2"
>
<div class="outseeQualityControl_box_Content_right_top_right_div2">
<span
:class="[
isleftcodeShow
......@@ -113,21 +83,12 @@
</div>
</div>
<div class="outseeQualityControl_box_Content_right_center">
<div
class="outseeQualityControl_box_Content_right_center_line"
v-show="isleftcodeShow"
></div>
<div
class="outseeQualityControl_box_Content_right_center_line2"
v-show="!isleftcodeShow"
></div>
<div class="outseeQualityControl_box_Content_right_center_line" v-show="isleftcodeShow"></div>
<div class="outseeQualityControl_box_Content_right_center_line2" v-show="!isleftcodeShow"></div>
</div>
<div class="outseeQualityControl_box_Content_right_bottom">
<!-- <div class="outseeQualityControl_box_Content_right_bottom_title">患者基本信息</div> -->
<div
class="outseeQualityControl_box_Content_right_bottom_tree"
v-show="isleftcodeShow"
>
<div class="outseeQualityControl_box_Content_right_bottom_tree" v-show="isleftcodeShow">
<el-tree
:data="departmentTree"
:props="defaultProps"
......@@ -138,18 +99,10 @@
>
<template #default="{ node, data }">
<span class="custom-tree-node">
<div
class="leftbox"
:class="[data.ruleName != '非编码问题' ? 'leftboxs' : '']"
>
<div class="leftbox" :class="[data.ruleName != '非编码问题' ? 'leftboxs' : '']">
<el-tooltip placement="bottom" trigger="hover">
<template #content>{{ data.ruleName }} </template>
<span
:class="[
data.ruleName == '非编码问题' ? 'spans' : '',
]"
>{{ data.ruleName }}</span
>
<span :class="[data.ruleName == '非编码问题' ? 'spans' : '']">{{ data.ruleName }}</span>
</el-tooltip>
</div>
</span>
......@@ -157,10 +110,7 @@
</el-tree>
</div>
<div
class="outseeQualityControl_box_Content_right_bottom_tree"
v-show="!isleftcodeShow"
>
<div class="outseeQualityControl_box_Content_right_bottom_tree" v-show="!isleftcodeShow">
<el-tree
:data="rightdepartmentTree"
:props="defaultProps"
......@@ -172,41 +122,18 @@
>
<template #default="{ node, data }">
<span class="custom-tree-node">
<div
class="leftbox"
:class="[data.ruleName != '编码问题' ? 'leftboxs' : '']"
>
<div class="leftbox" :class="[data.ruleName != '编码问题' ? 'leftboxs' : '']">
<el-tooltip placement="bottom" trigger="hover">
<template #content>{{ data.ruleName }} </template>
<span
:class="[data.ruleName == '编码问题' ? 'spans' : '']"
>{{ data.ruleName }}</span
>
<span :class="[data.ruleName == '编码问题' ? 'spans' : '']">{{ data.ruleName }}</span>
</el-tooltip>
</div>
</span>
</template>
</el-tree>
<div
class="
outseeQualityControl_box_Content_right_bottom_tree_nodata
"
v-show="isnodataShow"
>
<img
class="
outseeQualityControl_box_Content_right_bottom_tree_nodata_img
"
src="../assets/img/mininodata.png"
alt=""
/>
<div
class="
outseeQualityControl_box_Content_right_bottom_tree_nodata_text
"
>
暂无数据
</div>
<div class="outseeQualityControl_box_Content_right_bottom_tree_nodata" v-show="isnodataShow">
<img class="outseeQualityControl_box_Content_right_bottom_tree_nodata_img" src="../assets/img/mininodata.png" alt="" />
<div class="outseeQualityControl_box_Content_right_bottom_tree_nodata_text">暂无数据</div>
</div>
</div>
</div>
......@@ -218,18 +145,12 @@
<script>
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 medicalRecordHomepage from "../components/medicalRecordHomepage/index.vue";
import { useRoute, useRouter } from "../utils/useVueRouter";
import $ from "jquery";
import { setItem, getItem } from "../utils/auth";
import { Message ,Loading} from "element-ui";
import { Message, Loading } from "element-ui";
export default {
components: {
medicalRecordHomepage,
......@@ -266,8 +187,7 @@ export default {
//同步数据
const getSynchronous = (id) => {
http
.post(`/medical/get/Synchronization?id=${route.value.query.id}`)
http.post(`/medical/get/Synchronization?id=${route.value.query.id}`)
.then((data) => {
Message.success(data.message);
})
......@@ -312,8 +232,7 @@ export default {
//获取患者基本信息树形数据
function getScoringDetails(id) {
var loadingInstance1 = Loading.service(loadingOption1);
http
.post(`/medical/get/GetCaseHisRule?id=${id}`, {})
http.post(`/medical/get/GetCaseHisRule?id=${id}`, {})
.then((data) => {
state.departmentTree = data[0].rulesLists;
state.rightdepartmentTree = data[1].rulesLists;
......@@ -332,9 +251,7 @@ export default {
// 获取病案首页数据
function getHomePage(id) {
http
.post(`/medical/Get/HomeHisPage?id=${id}`, {})
http.post(`/medical/Get/HomeHisPage?id=${id}`, {})
.then((data) => {
state.medicalrecord = data;
state.keys = Object.keys(data);
......@@ -372,7 +289,6 @@ export default {
</script>
<style lang="scss">
// @import '../styles/mixin.scss';
// @import 'styles/media/components/outseeQualityControl.scss';
......@@ -399,7 +315,7 @@ export default {
display: flex;
justify-content: flex-end;
margin-bottom: 10px;
&_button{
&_button {
background-color: #2cabe3;
color: #fff;
}
......
......@@ -95,11 +95,10 @@
<el-radio :label="2">临时医嘱</el-radio>
</el-radio-group>
</div>
<el-form ref="tableDataform" :model="tableDataform">
<el-table
ref="multipleTable"
row-key="id"
:data="tableDataform.tableData"
:data="tableData"
height="100%"
style="width: 100%"
:tree-props="{ children: 'children', hasChildren: 'hasChildren' }"
......@@ -118,6 +117,18 @@
<span v-if="scope.row.ischeck == 1 && scope.row.orderType">{{ scope.row.tickTime }}</span>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip property="isSkin" label="是否皮试" width="110">
<template #default="scope">
<template v-if="scope.row.orderType == '药疗' && scope.row.isnew">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType && scope.row.isSkinCheck == 1">
<el-select size="mini" v-model="scope.row.isSkin">
<el-option v-for="item in isSkinoptions" :key="item.label" :label="item.label" :value="item.value"> </el-option>
</el-select>
</template>
<!-- <div v-else>{{ scope.row.isSkin == 1 ? "是" : "否" }}</div> -->
</template>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip property="orderType" label="类型" width="50">
<template #default="scope">
<div v-if="scope.row.orderType == '药疗'">
......@@ -176,7 +187,7 @@
</el-table-column>
<el-table-column show-overflow-tooltip property="specifications" label="规格说明" width="80" />
<el-table-column show-overflow-tooltip property="dosage" label="药品剂型" width="70" />
<el-table-column show-overflow-tooltip property="isAntibiotic" label="抗生素" width="85">
<el-table-column show-overflow-tooltip property="isAntibiotic" label="抗生素" width="110">
<template #default="scope">
<el-select v-if="scope.row.ischeck == 1 && scope.row.orderType" size="mini" v-model="scope.row.isAntibiotic">
<el-option v-for="item in chargeTypeoptions" :key="item.label" :label="item.label" :value="item.label"> </el-option>
......@@ -187,21 +198,50 @@
<el-table-column show-overflow-tooltip property="medicalPurpose" label="用药目的" width="135">
<template #default="scope">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType">
<template v-if="scope.row.isAntibiotic == '是' && scope.row.orderType == '药疗'">
<el-form-item prop="medicalPurpose" :rules="[{ required: true, message: '请选择' }]">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicalPurpose" class="demo-ruleForm">
<el-form-item
prop="medicalPurpose"
:rules="[
{
required:
scope.row.isSkin == 1 && scope.row.orderType == '药疗'
? true
: scope.row.isAntibiotic == '是' && scope.row.orderType == '药疗'
? true
: false,
message: '请选择',
},
]"
>
<template #label> <span></span></template>
<el-select size="mini" v-model="scope.row.medicalPurpose">
<el-option v-for="item in medicalPurposeoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</el-form-item>
</el-form>
<!-- <template v-if="scope.row.isAntibiotic == '是' && scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicalPurpose" class="demo-ruleForm">
<el-form-item
prop="medicalPurpose"
:rules="[
{ required: scope.row.isAntibiotic == '是' && scope.row.orderType == '药疗' ? true : false, message: '请选择' },
]"
>
<template #label> <span></span></template>
<el-select size="mini" v-model="scope.row.medicalPurpose">
<el-option v-for="item in medicalPurposeoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</el-form-item>
</el-form>
</template>
<template v-else>
<el-select size="mini" v-model="scope.row.medicalPurpose">
<el-option v-for="item in medicalPurposeoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</template>
</template> -->
</template>
<span v-else>{{ scope.row.medicalPurpose }}</span>
</template>
......@@ -209,15 +249,29 @@
<el-table-column prop="medicUseQuantity" label="用量" width="85">
<template #default="scope">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType">
<template v-if="scope.row.orderType == '药疗'">
<el-form-item prop="medicUseQuantity" :rules="[{ required: true, message: '请填写' }]">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUseQuantity" class="demo-ruleForm">
<el-form-item
prop="medicUseQuantity"
:rules="[{ required: scope.row.orderType == '药疗' && scope.row.isSkin != 1 ? true : false, message: '请填写' }]"
>
<template #label> <span></span></template>
<el-input v-model="scope.row.medicUseQuantity" @input="setIput(scope.row, $event)" size="mini"></el-input>
</el-form-item>
</el-form>
<!-- <template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUseQuantity" class="demo-ruleForm">
<el-form-item
prop="medicUseQuantity"
:rules="[{ required: scope.row.orderType == '药疗' && scope.row.isSkin == '是' ? true : false, message: '请填写' }]"
>
<template #label> <span></span></template>
<el-input v-model="scope.row.medicUseQuantity" @input="setIput(scope.row, $event)" size="mini"></el-input>
</el-form-item>
</el-form>
</template>
<template v-else>
<el-input v-model="scope.row.medicUseQuantity" @input="setIput(scope.row, $event)" size="mini"></el-input>
</template>
</template> -->
</template>
<span v-else>{{ scope.row.medicUseQuantity }}</span>
</template>
......@@ -226,7 +280,20 @@
<el-table-column show-overflow-tooltip property="medicUseMode" label="途径" width="120">
<template #default="scope">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType">
<template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUseMode" class="demo-ruleForm">
<el-form-item
prop="medicUseMode"
:rules="[{ required: scope.row.orderType == '药疗' && scope.row.isSkin != 1 ? true : false, message: '请选择' }]"
>
<template #label> <span></span></template>
<el-select size="mini" v-model="scope.row.medicUseMode" filterable remote :filter-method="remoteMethod">
<el-option v-for="item in medicUseModeoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</el-form-item>
</el-form>
<!-- <template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUseMode" class="demo-ruleForm">
<el-form-item prop="medicUseMode" :rules="[{ required: true, message: '请选择' }]">
<template #label> <span></span></template>
<el-select size="mini" v-model="scope.row.medicUseMode" filterable remote :filter-method="remoteMethod">
......@@ -234,13 +301,14 @@
</el-option>
</el-select>
</el-form-item>
</el-form>
</template>
<template v-else>
<el-select size="mini" v-model="scope.row.medicUseMode" filterable remote :filter-method="remoteMethod">
<el-option v-for="item in medicUseModeoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</template>
</template> -->
</template>
<span v-else>{{ scope.row.medicUseMode }}</span>
</template>
......@@ -248,7 +316,20 @@
<el-table-column show-overflow-tooltip property="medicUsePlan" label="频率" width="130">
<template #default="scope">
<template v-if="scope.row.ischeck == 1 && scope.row.orderType">
<template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUsePlan" class="demo-ruleForm">
<el-form-item
prop="medicUsePlan"
:rules="[{ required: scope.row.orderType == '药疗' && scope.row.isSkin != 1 ? true : false, message: '请选择' }]"
>
<template #label> <span></span></template>
<el-select size="mini" v-model="scope.row.medicUsePlan" @change="setIput(scope.row, $event)">
<el-option v-for="item in medicUsePlanoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</el-form-item>
</el-form>
<!-- <template v-if="scope.row.orderType == '药疗'">
<el-form :model="scope.row" label-width="15px" label-position="left" ref="medicUsePlan" class="demo-ruleForm">
<el-form-item prop="medicUsePlan" :rules="[{ required: true, message: '请选择' }]">
<template #label> <span></span></template>
<el-select size="mini" v-model="scope.row.medicUsePlan" @change="setIput(scope.row, $event)">
......@@ -256,13 +337,14 @@
</el-option>
</el-select>
</el-form-item>
</el-form>
</template>
<template v-else>
<el-select size="mini" v-model="scope.row.medicUsePlan" @change="setIput(scope.row, $event)">
<el-option v-for="item in medicUsePlanoptions" :key="item.id" :label="item.describe" :value="item.describe">
</el-option>
</el-select>
</template>
</template> -->
</template>
<span v-else>{{ scope.row.medicUsePlan }}</span>
</template>
......@@ -301,11 +383,15 @@
<el-table-column prop="description" label="诊断描述" width="150">
<template #default="scope">
<el-form-item
prop="description"
:rules="[{ required: true, message: '请输入内容' }]"
<el-form
:model="scope.row"
label-width="15px"
label-position="left"
ref="numberValidateForm"
class="demo-ruleForm"
v-if="scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit && scope.row.orderType"
>
<el-form-item prop="description" :rules="[{ required: true, message: '请输入内容' }]">
<template #label> <span></span></template>
<el-input
v-model="scope.row.description"
......@@ -315,15 +401,20 @@
:autosize="{ minRows: 2 }"
></el-input>
</el-form-item>
</el-form>
</template>
</el-table-column>
<el-table-column prop="symptom" label="症状及体征" width="150">
<template #default="scope">
<el-form-item
prop="symptom"
:rules="[{ required: true, message: '请输入内容' }]"
<el-form
:model="scope.row"
label-width="15px"
label-position="left"
ref="numberValidateForm1"
class="demo-ruleForm"
v-if="scope.row.ischeck == 1 && scope.row.type != 1 && scope.row.isedit && scope.row.orderType"
>
<el-form-item prop="symptom" :rules="[{ required: true, message: '请输入内容' }]">
<template #label> <span></span></template>
<el-input
v-model="scope.row.symptom"
......@@ -333,6 +424,7 @@
:autosize="{ minRows: 2 }"
></el-input>
</el-form-item>
</el-form>
</template>
</el-table-column>
<el-table-column show-overflow-tooltip property="emergency" label="急诊" width="85">
......@@ -355,7 +447,6 @@
</template>
</el-table-column>
</el-table>
</el-form>
</div>
</div>
<!-- 更多弹框开始 -->
......@@ -430,15 +521,21 @@ export default {
reason: "", //变异原因
remarks: "", //备注
},
tableDataform: {
tableData: [],
},
//路径天数下拉数据
options: [],
reasonoptions: [], //变异原因
crid: null,
chickid: [], //选中的id
isSkinoptions: [
{
label: "是",
value: 1,
},
{
label: "否",
value: 2,
},
],
chargeTypeoptions: [
{
label: "是",
......@@ -557,7 +654,7 @@ export default {
stockID: null,
dosage: null,
isAntibiotic: "",
medicUseQuantity: 0.0,
medicUseQuantity: 0,
medicUseUnit: null,
medicUseMode: null,
medicUsePlan: null,
......@@ -580,6 +677,16 @@ export default {
inspectRemarks: null,
description: null,
isPop: false,
order_round: "",
min_unit: "",
package_unit: "",
retail_unit: "",
unit_dose: 1,
useDay: 1,
packagingnum: 1,
split_num: 1,
isSkin: undefined,
isSkinCheck: r.isSkinCheck,
};
this.toggleSelection(newData, true);
this.cout = cout + 1;
......@@ -640,6 +747,15 @@ export default {
item.description = row.description;
// item.adviceType = row.adviceType;
// item.advice_name = row.advice_name;
item.order_round = row.order_round;
item.min_unit = row.min_unit;
item.package_unit = row.package_unit;
item.retail_unit = row.retail_unit;
item.unit_dose = row.unit_dose;
item.useDay = row.useDay;
item.packagingnum = row.packagingnum;
item.split_num = row.split_num;
item.isSkin = row.isSkin;
}
if (item.children && item.children.length > 0) {
this.pushData(row, item.children);
......@@ -966,7 +1082,7 @@ export default {
});
this.newtable1 = data.route1;
this.newtable2 = data.route2;
this.tableDataform.tableData = this.radio == 1 ? data.route1 : data.route2;
this.tableData = this.radio == 1 ? data.route1 : data.route2;
})
.catch((error) => {
console.log(error);
......@@ -974,11 +1090,6 @@ export default {
},
//单选
radiochange(e) {
console.log(this.$refs.medicalPurpose);
this.$refs.tableDataform.validate((valid) => {
console.log(valid);
});
return;
if (this.$refs.numberValidateForm || this.$refs.numberValidateForm1) {
this.$refs.numberValidateForm.validate((valid) => {
if (valid) {
......
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