dev
This commit is contained in:
parent
ad012dfcab
commit
f4de43ac6a
|
|
@ -9,14 +9,16 @@
|
||||||
<el-table-column prop="number" label="数量">
|
<el-table-column prop="number" label="数量">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<div v-if="data.status == 0">
|
<div v-if="data.status == 0">
|
||||||
<el-input-number v-model="scope.row.selectedNum" min="0" @change="handleNumChange" size="small"></el-input-number>
|
<el-input-number v-model="scope.row.selectedNum" min="0" @change="handleNumChange"
|
||||||
|
size="small"></el-input-number>
|
||||||
<el-dropdown>
|
<el-dropdown>
|
||||||
<span style="line-height: 30px;margin-left: 10px">{{ scope.row.selectedUnit }}</span>
|
<span style="line-height: 30px;margin-left: 10px">{{ scope.row.selectedUnit }}</span>
|
||||||
<template #dropdown>
|
<template #dropdown>
|
||||||
<el-dropdown-menu v-if="scope.row.trdnFlag == 1">
|
<el-dropdown-menu v-if="scope.row.trdnFlag == 1">
|
||||||
<el-dropdown-item @click="selectUnit(scope.row,scope.row.packagingUnit)">{{ scope.row.packagingUnit }}
|
<el-dropdown-item @click="selectUnit(scope.row,scope.row.packagingUnit)">{{ scope.row.packagingUnit }}
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
<el-dropdown-item @click="selectUnit(scope.row,scope.row.minPackagingUnit)">{{ scope.row.minPackagingUnit }}
|
<el-dropdown-item @click="selectUnit(scope.row,scope.row.minPackagingUnit)">
|
||||||
|
{{ scope.row.minPackagingUnit }}
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -39,8 +41,11 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<SearchInput v-if="data.status == 0" :request-api="goodsSearchApi" :show-config="goodsShowConfig" @selectedCallBack="goodsSelect"></SearchInput>
|
<div class="bottom">
|
||||||
|
<SearchInput v-if="data.status == 0" :request-api="goodsSearchApi" :show-config="goodsShowConfig"
|
||||||
|
@selectedCallBack="goodsSelect"></SearchInput>
|
||||||
<span>合计:¥{{ getTotalPrice() }}</span>
|
<span>合计:¥{{ getTotalPrice() }}</span>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import SearchInput from "@/components/SearchInput.vue";
|
import SearchInput from "@/components/SearchInput.vue";
|
||||||
|
|
@ -104,4 +109,8 @@ const getTotalPrice =()=>{
|
||||||
:deep(.el-table__cell) {
|
:deep(.el-table__cell) {
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bottom {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -136,11 +136,9 @@ import {onMounted, ref} from "vue";
|
||||||
import {post} from "@/utils/request.ts";
|
import {post} from "@/utils/request.ts";
|
||||||
const seeDockerInfo = ref<any>();
|
const seeDockerInfo = ref<any>();
|
||||||
const getSeeDockerInfo = (newValue:any) => {
|
const getSeeDockerInfo = (newValue:any) => {
|
||||||
debugger
|
|
||||||
if (!newValue)return;
|
if (!newValue)return;
|
||||||
post('medical/record/getSeeDockerInfo', {regisId: newValue}).then((res: any) => {
|
post('medical/record/getSeeDockerInfo', {regisId: newValue}).then((res: any) => {
|
||||||
seeDockerInfo.value = res
|
seeDockerInfo.value = res
|
||||||
debugger
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const init =(regisId:any)=>{
|
const init =(regisId:any)=>{
|
||||||
|
|
|
||||||
|
|
@ -25,9 +25,12 @@
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
<div class="bottom">
|
||||||
<SearchInput v-if="data.status == 0" :request-api="serviceSearchApi" :show-config="serviceShowConfig"
|
<SearchInput v-if="data.status == 0" :request-api="serviceSearchApi" :show-config="serviceShowConfig"
|
||||||
@selectedCallBack="serviceSelect"></SearchInput>
|
@selectedCallBack="serviceSelect"></SearchInput>
|
||||||
<span>合计:¥{{getTotalPrice()}}</span>
|
<span>合计:¥{{getTotalPrice()}}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import SearchInput from "@/components/SearchInput.vue";
|
import SearchInput from "@/components/SearchInput.vue";
|
||||||
|
|
@ -75,4 +78,7 @@ const getTotalPrice =()=>{
|
||||||
:deep(.el-table__cell){
|
:deep(.el-table__cell){
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
}
|
}
|
||||||
|
.bottom{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<el-input v-model="keyword" style="width:100%;height: 100%" @input="changeInput" :disabled="disabled" @click="changeInput"
|
<el-input v-model="keyword" :style="{width:props.width+'px',height: 100+'%'}" @input="changeInput" :disabled="disabled" @click="changeInput"
|
||||||
placeholder="诊断选择" ref="inputRef" @focus="focus"></el-input>
|
placeholder="诊断选择" ref="inputRef" @focus="focus"></el-input>
|
||||||
|
|
||||||
<el-popover placement="bottom-start" trigger="click" :width="props.width" ref="popoverRef" @before-enter="beforeShow" :virtual-ref="inputRef" @hide ="afterShow">
|
<el-popover placement="bottom-start" trigger="click" :width="props.width" ref="popoverRef" @before-enter="beforeShow" :virtual-ref="inputRef" @hide ="afterShow">
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
</Panel>
|
</Panel>
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {onMounted, ref, watch} from "vue";
|
import {nextTick, onMounted, ref, watch} from "vue";
|
||||||
import Panel from "@/components/common/Panel.vue";
|
import Panel from "@/components/common/Panel.vue";
|
||||||
import {post} from "@/utils/request.ts";
|
import {post} from "@/utils/request.ts";
|
||||||
import {formatTime} from "@/utils/dateUtils.ts";
|
import {formatTime} from "@/utils/dateUtils.ts";
|
||||||
|
|
@ -56,6 +56,7 @@ const search = ref('')
|
||||||
const curItem = ref<any>('')
|
const curItem = ref<any>('')
|
||||||
const emit = defineEmits(['getId', 'changeDetail', 'getStatus'])
|
const emit = defineEmits(['getId', 'changeDetail', 'getStatus'])
|
||||||
const tab = (item: any) => {
|
const tab = (item: any) => {
|
||||||
|
nextTick(()=>{
|
||||||
emit('getStatus', item.value)
|
emit('getStatus', item.value)
|
||||||
init()
|
init()
|
||||||
if (item.value == 3) {
|
if (item.value == 3) {
|
||||||
|
|
@ -63,6 +64,7 @@ const tab = (item: any) => {
|
||||||
} else {
|
} else {
|
||||||
emit('changeDetail', false)
|
emit('changeDetail', false)
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
const list = ref<any>([])
|
const list = ref<any>([])
|
||||||
|
|
|
||||||
|
|
@ -7,21 +7,15 @@
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div>
|
<div>
|
||||||
<Panel title="医疗诊断">
|
<Panel title="医疗诊断">
|
||||||
<template #tools>
|
|
||||||
<el-cascader
|
|
||||||
v-model="formData.doctorId"
|
|
||||||
:options="sectionDoctorOption"
|
|
||||||
:props="props"
|
|
||||||
@change="handleChange"
|
|
||||||
clearable
|
|
||||||
/>
|
|
||||||
</template>
|
|
||||||
<template #default>
|
<template #default>
|
||||||
<div style="height:64px;padding:0 24px 24px">
|
<div class="diagnosis-content">
|
||||||
|
<div class="diagnosis">
|
||||||
|
诊断:
|
||||||
<DiagnosisSearchInput
|
<DiagnosisSearchInput
|
||||||
v-model="diagnosisKeyword"
|
v-model="diagnosisKeyword"
|
||||||
:request-api="diagnosisSearchApi"
|
:request-api="diagnosisSearchApi"
|
||||||
:show-config="diagnosisShowConfig"
|
:show-config="diagnosisShowConfig"
|
||||||
|
:width="600"
|
||||||
@selectedCallBack="diagnosisSelect"
|
@selectedCallBack="diagnosisSelect"
|
||||||
ref="diagnosisSearchRef"
|
ref="diagnosisSearchRef"
|
||||||
:show-header="false"
|
:show-header="false"
|
||||||
|
|
@ -30,6 +24,20 @@
|
||||||
>
|
>
|
||||||
</DiagnosisSearchInput>
|
</DiagnosisSearchInput>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="doctor">
|
||||||
|
医生:
|
||||||
|
<el-cascader
|
||||||
|
v-model="formData.doctorId"
|
||||||
|
:options="sectionDoctorOption"
|
||||||
|
:props="props"
|
||||||
|
@change="handleChange"
|
||||||
|
clearable
|
||||||
|
size="large"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</Panel>
|
</Panel>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -235,6 +243,12 @@ const generateOptions = () => {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
.diagnosis-content{
|
||||||
|
height:64px;
|
||||||
|
padding:0 24px 24px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: left;
|
||||||
|
}
|
||||||
|
|
||||||
.case {
|
.case {
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue