Compare commits

..

No commits in common. "66cd25806903b1c6320378d8c11c9a6bc83a77ad" and "4b180c6da0e735fc1e82612daebf4ac79e7b2edc" have entirely different histories.

4 changed files with 23 additions and 77 deletions

View File

@ -38,12 +38,7 @@ const visitType = ref<any>({
}) })
const roleList = ref<any>([]) const roleList = ref<any>([])
const initDoctor=()=> { const initDoctor=()=> {
let query={ post('organization/member/allDoctorList').then((res: any) => {
name: null,
sectionId: null,
role:1
}
post('organization/member/search',{query:query}).then((res: any) => {
roleList.value=res roleList.value=res
}) })
} }

View File

@ -1,67 +1,36 @@
<template> <template>
<Mask :width="1000" :height="560" :is-show="show" @close="show = false" title="订单详情"> <Mask :width="1000" :height="560" :is-show="show" @close="show = false">
<div class="container"> <div class="container">
<div class="title"> <div class="title">
<CloseBtn @click="show = false"></CloseBtn> <CloseBtn @click="show = false"></CloseBtn>
</div> </div>
<div class="content"> <div class="content">
<div class="left"> <div class="left">
<div class="goods-detail"> <el-table border :header-cell-style="{ backgroundColor: '#f5f7fa' }" :data="orderInfo.retailOrderList" style="height: 100%">
<div class="title">药品详情</div> <el-table-column label="商品" prop="goodsName" show-overflow-tooltip></el-table-column>
<el-table border :header-cell-style="{ backgroundColor: '#f5f7fa' }" :data="orderInfo.goodsDetail" style="height: 100%"> <el-table-column label="数量" prop="number" width="60" show-overflow-tooltip></el-table-column>
<el-table-column label="商品" prop="name" width="100" show-overflow-tooltip></el-table-column> <el-table-column label="单位" prop="unit" width="60" show-overflow-tooltip></el-table-column>
<el-table-column label="数量" prop="number" width="100" show-overflow-tooltip></el-table-column> <el-table-column label="单价" show-overflow-tooltip>
<el-table-column label="单位" prop="unit" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="单价" width="100" show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
{{ scope.row.preUnitPrice }} {{ scope.row.preUnitPrice }}
</template> </template>
</el-table-column > </el-table-column >
<el-table-column label="实价" width="100" show-overflow-tooltip> <el-table-column label="实价" show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
{{ scope.row.unitPrice }} {{ scope.row.unitPrice }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="小计" width="100" show-overflow-tooltip> <el-table-column label="小计" show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
{{ scope.row.subTotalPrice }} {{ scope.row.subTotalPrice }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="追溯码" show-overflow-tooltip> <el-table-column label="追溯码" show-overflow-tooltip>
<template #default="scope"> <template #default="scope">
{{ scope.row.traceabilityCode?.length ==2 ?"未绑定追溯码":scope.row.traceabilityCode}} {{ scope.row.traceabilityCode.length ==2 ?"未绑定追溯码":scope.row.traceabilityCode}}
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div>
<div class="service-detail">
<div class="title">服务详情</div>
<el-table border :header-cell-style="{ backgroundColor: '#f5f7fa' }" :data="orderInfo.serviceDetail" style="height: 100%">
<el-table-column label="商品" prop="name" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="数量" prop="number" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="单位" prop="unit" width="100" show-overflow-tooltip></el-table-column>
<el-table-column label="单价" width="100" show-overflow-tooltip>
<template #default="scope">
{{ scope.row.preUnitPrice }}
</template>
</el-table-column >
<el-table-column label="实价" width="100" show-overflow-tooltip>
<template #default="scope">
{{ scope.row.unitPrice }}
</template>
</el-table-column>
<el-table-column label="小计" width="100" show-overflow-tooltip>
<template #default="scope">
{{ scope.row.subTotalPrice }}
</template>
</el-table-column>
<el-table-column label="追溯码" show-overflow-tooltip>
<template #default="scope">
-
</template>
</el-table-column>
</el-table>
</div>
</div> </div>
<div class="right"> <div class="right">
<div class="right_head"> <div class="right_head">
@ -128,13 +97,13 @@
</div> </div>
</div> </div>
<div class="footer"> <div class="footer">
<!-- <el-button type="primary" plain>追溯码</el-button>--> <el-button type="primary" plain>追溯码</el-button>
<div> <div>
<!-- <el-button type="danger" plain @click="cancel" v-if="orderInfo.status == 0">取消</el-button>--> <el-button type="danger" plain @click="cancel" v-if="orderInfo.status == 0">取消</el-button>
<!-- <el-button type="danger" plain @click="refund" v-if="orderInfo.status == 1">退款</el-button>--> <el-button type="danger" plain @click="refund" v-if="orderInfo.status == 1">退款</el-button>
<!-- <el-button type="primary" @click="print" v-if="orderInfo.status == 1">--> <el-button type="primary" @click="print" v-if="orderInfo.status == 1">
<!-- 打印<el-icon class="el-icon&#45;&#45;right"><Upload /></el-icon>--> 打印<el-icon class="el-icon--right"><Upload /></el-icon>
<!-- </el-button>--> </el-button>
</div> </div>
</div> </div>
</div> </div>
@ -280,20 +249,7 @@ onUnmounted(() => {
height: 100%; height: 100%;
margin-right: 10px; margin-right: 10px;
min-height: 0; min-height: 0;
.goods-detail{ background: #a1c4fd;
height: 40%;
.title{
font-weight: bold;
}
}
.service-detail{
height: 40%;
margin-top: 50px;
.title{
font-weight: bold;
}
}
} }
.right { .right {

View File

@ -96,6 +96,7 @@
@cell-click="openDetail"> @cell-click="openDetail">
<el-table-column label="单号" prop="code" show-overflow-tooltip> <el-table-column label="单号" prop="code" show-overflow-tooltip>
</el-table-column> </el-table-column>
<el-table-column label="商品"></el-table-column>
<el-table-column label="创建时间" prop="createDatetime"> <el-table-column label="创建时间" prop="createDatetime">
<template #default="scope"> <template #default="scope">
{{ formatDate(scope.row.createDatetime) }} {{ formatDate(scope.row.createDatetime) }}
@ -227,7 +228,6 @@ const init = () => {
item.levelName = res.name; item.levelName = res.name;
}); });
}); });
getChargeList(listItem.value.id);
}); });
@ -249,7 +249,7 @@ const closeExchange = () => {
const btn = (item: any, i: number) => { const btn = (item: any, i: number) => {
index.value = i index.value = i
listItem.value = item listItem.value = item
getChargeList(listItem.value.id) purchase(item.id)
} }
// //
const openGrant = () => { const openGrant = () => {
@ -258,11 +258,11 @@ const openGrant = () => {
// //
const tableData = ref([]) const tableData = ref([])
const orderDetailRef = ref<any>(); const orderDetailRef = ref<any>();
const getChargeList = (id: any) => { const purchase = (id: any) => {
const query = { const query = {
page: page.value, page: page.value,
pageSize: pageSize.value, pageSize: pageSize.value,
patientId: id vipId: id
} }
post('charge/list', {query}).then((res: any) => { post('charge/list', {query}).then((res: any) => {
tableData.value = res.list tableData.value = res.list
@ -320,7 +320,7 @@ const pageSize = ref(10)
const page = ref(1) const page = ref(1)
const handleCurrentChange = (val: number) => { const handleCurrentChange = (val: number) => {
page.value = val page.value = val
getChargeList(listItem.value.id) purchase(listItem.value.id)
}; };
const levelEditRef = ref(); const levelEditRef = ref();
const openLevelEdit = (vip: any) => { const openLevelEdit = (vip: any) => {

View File

@ -69,12 +69,7 @@ onMounted(() => {
getPatientList() getPatientList()
}) })
const initDoctor = () => { const initDoctor = () => {
let query={ post('organization/member/allDoctorList').then((res: any) => {
name: null,
sectionId: null,
role:1
}
post('organization/member/search',{query:query}).then((res: any) => {
roleList.value = res roleList.value = res
}) })
} }