|
@@ -44,7 +44,10 @@
|
|
|
<el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="huiZhenShenQing.reqComment"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="目前主要诊断:" prop="hzZd">
|
|
|
- <el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="huiZhenShenQing.hzZd"></el-input>
|
|
|
+ <el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="huiZhenShenQing.hzZd" maxlength="100"
|
|
|
+ show-word-limit></el-input>
|
|
|
+ <el-button @click="dianJiChaXunZhuYaoZhenDuan(1)" type="primary">本院主要诊断</el-button>
|
|
|
+ <el-button @click="dianJiChaXunZhuYaoZhenDuan(2)" type="primary">医保主要诊断</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="会诊目的:" prop="hzMd">
|
|
|
<el-input type="textarea" :rows="3" placeholder="请输入内容" v-model="huiZhenShenQing.hzMd"></el-input>
|
|
@@ -54,21 +57,40 @@
|
|
|
<el-tag style="margin-left: 20px">申请时间:{{ huiZhenShenQing.inputDate }}</el-tag>
|
|
|
</el-form>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog v-model="chaXunZhuYaoZhenDuanDuiHuaKuang" title="患者主要诊断">
|
|
|
+ <el-table :data="zhuYaoZhenDuanShuJu">
|
|
|
+ <el-table-column prop="code" label="编码"></el-table-column>
|
|
|
+ <el-table-column prop="name" label="名称"></el-table-column>
|
|
|
+ <el-table-column label="添加">
|
|
|
+ <template #default="scope">
|
|
|
+ <el-button @click="dianJiTianJiaZhuYaoZhenDuan(scope.row.name)">添加</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </el-dialog>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {cptSex} from "@/utils/computed";
|
|
|
-import {onMounted, ref, unref, watch} from "vue";
|
|
|
-import {gethuiZhenLeiBie, huiZhenYiSheng, queryDept, submitHuiZhenShenQing} from "@/api/case-front-sheet";
|
|
|
-import {ElMessageBox} from "element-plus";
|
|
|
+import {computed, onMounted, ref, unref, watch} from "vue";
|
|
|
+import {
|
|
|
+ gethuiZhenLeiBie,
|
|
|
+ huiZhenYiSheng,
|
|
|
+ huoQuHuanZheZhuYaoZhenDuan,
|
|
|
+ queryDept,
|
|
|
+ submitHuiZhenShenQing
|
|
|
+} from "@/api/case-front-sheet";
|
|
|
+import {ElMessage, ElMessageBox} from "element-plus";
|
|
|
import {huanZheXinXi, youWuXuanZheHuanZhe} from "@/views/hospitalization/zhu-yuan-yi-sheng/public-js/zhu-yuan-yi-sheng";
|
|
|
-import {getDeptName} from "@/api/case-front-sheet/jie-shou-hui-zhen";
|
|
|
import store from "@/store"
|
|
|
import {getServerDateApi} from "@/api/public-api";
|
|
|
|
|
|
export default {
|
|
|
name: "TianJiaHuiZhenShenQing",
|
|
|
setup() {
|
|
|
+ const windowSize = computed(() => {
|
|
|
+ return store.state.app.windowSize
|
|
|
+ })
|
|
|
//会诊申请的字段
|
|
|
const huiZhenShenQing = ref({
|
|
|
inpatientNo: '', //住院号
|
|
@@ -191,6 +213,30 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
+ // 查询主要诊断
|
|
|
+ const dianJiChaXunZhuYaoZhenDuan = (val) => {
|
|
|
+ if (youWuXuanZheHuanZhe()) return
|
|
|
+ dianJiChaXunZhenDuan(val)
|
|
|
+ }
|
|
|
+
|
|
|
+ const dianJiChaXunZhenDuan = (val) => {
|
|
|
+ huoQuHuanZheZhuYaoZhenDuan(huanZheXinXi.value.inpatientNo, huanZheXinXi.value.admissTimes, val).then((res) => {
|
|
|
+ zhuYaoZhenDuanShuJu.value = res
|
|
|
+ chaXunZhuYaoZhenDuanDuiHuaKuang.value = true
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ const chaXunZhuYaoZhenDuanDuiHuaKuang = ref(false)
|
|
|
+ const zhuYaoZhenDuanShuJu = ref([])
|
|
|
+
|
|
|
+ const dianJiTianJiaZhuYaoZhenDuan = (val) => {
|
|
|
+ if (huiZhenShenQing.value.hzZd.length + val.length >= 100) {
|
|
|
+ ElMessage.error("主要诊断过长。")
|
|
|
+ }
|
|
|
+ huiZhenShenQing.value.hzZd += val + ','
|
|
|
+ }
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
gethuiZhenLeiBie().then((res) => {
|
|
|
huiZhenLeiBieList.value = res
|
|
@@ -209,7 +255,13 @@ export default {
|
|
|
huiZhenTypeList,
|
|
|
huiZhenShenQingClick,
|
|
|
huiZhenShenQingRules,
|
|
|
- huiZhenShenQingForm
|
|
|
+ huiZhenShenQingForm,
|
|
|
+ chaXunZhuYaoZhenDuanDuiHuaKuang,
|
|
|
+ dianJiChaXunZhuYaoZhenDuan,
|
|
|
+ zhuYaoZhenDuanShuJu,
|
|
|
+ dianJiChaXunZhenDuan,
|
|
|
+ dianJiTianJiaZhuYaoZhenDuan,
|
|
|
+ windowSize
|
|
|
}
|
|
|
}
|
|
|
}
|