dev
This commit is contained in:
parent
2814cc4da7
commit
acb47d04ce
|
|
@ -53,10 +53,11 @@
|
|||
<GoodsDetail v-model="formData.goodsDetail" :status="formData.status == 0"
|
||||
@totalPriceChange="getOrderTotalPrice" :statusDisabled="statusDisabled==1"></GoodsDetail>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<TotalPrice v-model="formData.totalPrice" @save="charge" :status="formData.status ==0" @openSettlement="charge" @openCheckOut ="openCheckoutDetail(formData.goodsDetail,formData.patientRegistration.psnNo)"></TotalPrice>
|
||||
</div>
|
||||
</el-scrollbar>
|
||||
<div class="bottom">
|
||||
<TotalPrice v-model="formData.totalPrice" @save="charge" :status="formData.status ==0" @openSettlement="charge"
|
||||
@openCheckOut="openCheckoutDetail(formData.goodsDetail,formData.patientRegistration.psnNo)"></TotalPrice>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="top">
|
||||
|
|
@ -67,7 +68,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<CheckoutDetail ref="checkoutDetailRef" @confirm ="saveAndCharge"></CheckoutDetail>
|
||||
<CheckoutDetail ref="checkoutDetailRef" @confirm="saveAndCharge"></CheckoutDetail>
|
||||
<Settlement
|
||||
ref="settlementRef"
|
||||
@orderCompleted="orderCompleted"
|
||||
|
|
@ -117,7 +118,7 @@ const charge = () => {
|
|||
saveAndCharge()
|
||||
} else {
|
||||
//打开追溯码详情页
|
||||
openCheckoutDetail(formData.value.goodsDetail,formData.value.patientRegistration.psnNo)
|
||||
openCheckoutDetail(formData.value.goodsDetail, formData.value.patientRegistration.psnNo)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -137,8 +138,8 @@ const checkTraceCode = (goodsList: any[]) => {
|
|||
return true;
|
||||
|
||||
}
|
||||
const checkoutDetailRef = ref()
|
||||
const openCheckoutDetail = (goodsList: any[],psnNo:string) => {
|
||||
const checkoutDetailRef = ref()
|
||||
const openCheckoutDetail = (goodsList: any[], psnNo: string) => {
|
||||
if (!goodsList || goodsList.length == 0) {
|
||||
ElMessage({
|
||||
message: '没有商品信息,请先选择需要售卖的商品',
|
||||
|
|
@ -148,21 +149,21 @@ const checkTraceCode = (goodsList: any[]) => {
|
|||
return
|
||||
}
|
||||
nextTick(() => {
|
||||
checkoutDetailRef.value.init(goodsList,psnNo);
|
||||
checkoutDetailRef.value.init(goodsList, psnNo);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
const saveAndCharge = () => {
|
||||
const saveAndCharge = () => {
|
||||
post('charge/save', {data: {...formData.value, doctorId: doctorId.value}}).then((res: any) => {
|
||||
formData.value.code = res
|
||||
nextTick(() => {
|
||||
settlementRef.value?.init(res, formData.value.patientRegistration.psnNo)
|
||||
})
|
||||
})
|
||||
}
|
||||
const diagnosisSearchRef = ref()
|
||||
const diagnosisSearchApi = "social/diagnose/search"
|
||||
const diagnosisShowConfig = [
|
||||
}
|
||||
const diagnosisSearchRef = ref()
|
||||
const diagnosisSearchApi = "social/diagnose/search"
|
||||
const diagnosisShowConfig = [
|
||||
{
|
||||
label: "诊断名称",
|
||||
prop: "name",
|
||||
|
|
@ -171,26 +172,26 @@ const checkTraceCode = (goodsList: any[]) => {
|
|||
label: "诊断编码",
|
||||
prop: "code",
|
||||
}
|
||||
]
|
||||
const diagnosisSelect = (list: any) => {
|
||||
]
|
||||
const diagnosisSelect = (list: any) => {
|
||||
const diagnosisNames = list.map((item: any) => item.name).join(',')
|
||||
formData.value.diagnosisMedicalRecord.diagnosisDetail = JSON.stringify(list)
|
||||
formData.value.diagnosisMedicalRecord.diagnosisSummary = diagnosisNames
|
||||
}
|
||||
const recordsConsumptionRef = ref<any>("")
|
||||
const patientCardRef = ref()
|
||||
const clickItem = async (item: any, status: any) => {
|
||||
}
|
||||
const recordsConsumptionRef = ref<any>("")
|
||||
const patientCardRef = ref()
|
||||
const clickItem = async (item: any, status: any) => {
|
||||
statusDisabled.value = status
|
||||
formData.value = await post('medical/record/getByDiagnosisCode', {diagnosisCode: item.code})
|
||||
//添加追溯码应采字段
|
||||
for (let i =0;i<formData.value.goodsDetail.length;i++){
|
||||
let goodsItem =formData.value.goodsDetail[i]
|
||||
if (goodsItem.packagingUnit == goodsItem.selectedUnit){
|
||||
for (let i = 0; i < formData.value.goodsDetail.length; i++) {
|
||||
let goodsItem = formData.value.goodsDetail[i]
|
||||
if (goodsItem.packagingUnit == goodsItem.selectedUnit) {
|
||||
goodsItem.shouldNumber = goodsItem.selectedNum;
|
||||
}else {
|
||||
} else {
|
||||
goodsItem.shouldNumber = Math.ceil(goodsItem.selectedNum / goodsItem.minPackagingNumber);
|
||||
}
|
||||
goodsItem.idCode = goodsItem.idCode?goodsItem.idCode==""?null:goodsItem.idCode.split(","):null
|
||||
goodsItem.idCode = goodsItem.idCode ? goodsItem.idCode == "" ? null : goodsItem.idCode.split(",") : null
|
||||
}
|
||||
|
||||
getOrderTotalPrice()
|
||||
|
|
@ -201,22 +202,22 @@ const checkTraceCode = (goodsList: any[]) => {
|
|||
recordsConsumptionRef.value?.init(formData.value.patientInfo.id);
|
||||
patientCardRef.value?.init(formData.value.registrationId);
|
||||
})
|
||||
}
|
||||
const dockerList = ref<any[]>([])
|
||||
const getDockerList = () => {
|
||||
}
|
||||
const dockerList = ref<any[]>([])
|
||||
const getDockerList = () => {
|
||||
let query = {
|
||||
role: 1
|
||||
}
|
||||
post('organization/member/search', {query: query}).then((res: any) => {
|
||||
dockerList.value = res
|
||||
})
|
||||
}
|
||||
const orderCompleted = () => {
|
||||
}
|
||||
const orderCompleted = () => {
|
||||
nextTick(() => {
|
||||
chargeQueueRef.value?.getOrderList()
|
||||
})
|
||||
}
|
||||
const orderCanceled = () => {
|
||||
}
|
||||
const orderCanceled = () => {
|
||||
nextTick(() => {
|
||||
chargeQueueRef.value?.getOrderList()
|
||||
})
|
||||
|
|
@ -260,7 +261,7 @@ const list = () => {
|
|||
doctorList.value = res
|
||||
})
|
||||
}
|
||||
const getStatus=(status:any)=>{
|
||||
const getStatus = (status: any) => {
|
||||
statusDisabled.value = status
|
||||
formData.value = {
|
||||
patientInfo: {},
|
||||
|
|
|
|||
|
|
@ -9,13 +9,14 @@
|
|||
</div>
|
||||
<div class="left-bottom">
|
||||
<Panel title="医生列表">
|
||||
<div class="search" style="padding: 0 24px ;height: 42px">
|
||||
<div class="panel-content" style="display: flex;flex-direction: column;height: 100%">
|
||||
<div class="search">
|
||||
<el-input style="height: 100%" v-model="keyword" placeholder="搜索医生姓名"
|
||||
@keydown.enter="initDoctor" :prefix-icon="Search"></el-input>
|
||||
</div>
|
||||
<div class="content_list" style="padding: 0 24px">
|
||||
<div class="role_list">
|
||||
<ul>
|
||||
<ul class="role_list">
|
||||
<el-scrollbar style="height: 100%">
|
||||
<li v-for="(item, index) in roleList" :key="index"
|
||||
:class="{active:isShowNum==index}">
|
||||
<span class="name">{{ item.name }}</span>
|
||||
|
|
@ -23,17 +24,19 @@
|
|||
<span class="btn" @click="openDialog(item,index)"
|
||||
@mouseover="isShowNum = index"
|
||||
@mouseleave="isShowNum = -1">
|
||||
<img v-if="isShowNum==index" src="/static/images/registration/3-active.png" style="width: 15px;height: 14px;margin-right: 8px" alt="">
|
||||
<img v-else src="/static/images/registration/3.png" alt="" style="width: 15px;height: 14px;margin-right: 8px">
|
||||
<img v-if="isShowNum==index" src="/static/images/registration/3-active.png"
|
||||
style="width: 15px;height: 14px;margin-right: 8px" alt="">
|
||||
<img v-else src="/static/images/registration/3.png" alt=""
|
||||
style="width: 15px;height: 14px;margin-right: 8px">
|
||||
挂号
|
||||
</span>
|
||||
</li>
|
||||
</el-scrollbar>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</Panel>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="right">
|
||||
<Panel title="挂号列表">
|
||||
|
|
@ -151,8 +154,8 @@ const close = () => {
|
|||
id.value = null
|
||||
getPatientList()
|
||||
}
|
||||
const reset=() =>{
|
||||
keyword.value=''
|
||||
const reset = () => {
|
||||
keyword.value = ''
|
||||
getPatientList()
|
||||
}
|
||||
</script>
|
||||
|
|
@ -183,8 +186,25 @@ const reset=() =>{
|
|||
flex: 1;
|
||||
min-height: 0;
|
||||
margin-top: 20px;
|
||||
|
||||
.panel-content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.search {
|
||||
padding: 0 24px;
|
||||
height: 42px;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.content_list {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
margin-top: 10px;
|
||||
|
||||
.role_list {
|
||||
height: 100%;
|
||||
|
||||
li {
|
||||
height: 50px;
|
||||
display: flex;
|
||||
|
|
@ -222,6 +242,7 @@ const reset=() =>{
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
&:hover {
|
||||
background: #4D6DE4;
|
||||
color: #FFF;
|
||||
|
|
@ -231,14 +252,6 @@ const reset=() =>{
|
|||
|
||||
}
|
||||
|
||||
.search {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.content_list {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.active {
|
||||
background: #4D6DE4;
|
||||
|
||||
|
|
@ -255,6 +268,11 @@ const reset=() =>{
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
margin-left: 20px;
|
||||
|
|
|
|||
Loading…
Reference in New Issue