dev
This commit is contained in:
parent
d9dac5d824
commit
024adb7781
|
|
@ -38,7 +38,12 @@ const visitType = ref<any>({
|
||||||
})
|
})
|
||||||
const roleList = ref<any>([])
|
const roleList = ref<any>([])
|
||||||
const initDoctor=()=> {
|
const initDoctor=()=> {
|
||||||
post('organization/member/allDoctorList').then((res: any) => {
|
let query={
|
||||||
|
name: null,
|
||||||
|
sectionId: null,
|
||||||
|
role:1
|
||||||
|
}
|
||||||
|
post('organization/member/search',{query:query}).then((res: any) => {
|
||||||
roleList.value=res
|
roleList.value=res
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,36 +1,67 @@
|
||||||
<template>
|
<template>
|
||||||
<Mask :width="1000" :height="560" :is-show="show" @close="show = false">
|
<Mask :width="1000" :height="560" :is-show="show" @close="show = false" title="订单详情">
|
||||||
<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">
|
||||||
<el-table border :header-cell-style="{ backgroundColor: '#f5f7fa' }" :data="orderInfo.retailOrderList" style="height: 100%">
|
<div class="goods-detail">
|
||||||
<el-table-column label="商品" prop="goodsName" show-overflow-tooltip></el-table-column>
|
<div class="title">药品详情</div>
|
||||||
<el-table-column label="数量" prop="number" width="60" 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="unit" 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="单价" show-overflow-tooltip>
|
<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">
|
<template #default="scope">
|
||||||
{{ scope.row.preUnitPrice }}元
|
{{ scope.row.preUnitPrice }}元
|
||||||
</template>
|
</template>
|
||||||
</el-table-column >
|
</el-table-column >
|
||||||
<el-table-column label="实价" show-overflow-tooltip>
|
<el-table-column label="实价" width="100" 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="小计" show-overflow-tooltip>
|
<el-table-column label="小计" width="100" 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">
|
||||||
|
|
@ -97,13 +128,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--right"><Upload /></el-icon>
|
<!-- 打印<el-icon class="el-icon--right"><Upload /></el-icon>-->
|
||||||
</el-button>
|
<!-- </el-button>-->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -249,7 +280,20 @@ onUnmounted(() => {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
background: #a1c4fd;
|
.goods-detail{
|
||||||
|
|
||||||
|
height: 40%;
|
||||||
|
.title{
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.service-detail{
|
||||||
|
height: 40%;
|
||||||
|
margin-top: 50px;
|
||||||
|
.title{
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,6 @@
|
||||||
@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) }}
|
||||||
|
|
@ -228,6 +227,7 @@ 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
|
||||||
purchase(item.id)
|
getChargeList(listItem.value.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 purchase = (id: any) => {
|
const getChargeList = (id: any) => {
|
||||||
const query = {
|
const query = {
|
||||||
page: page.value,
|
page: page.value,
|
||||||
pageSize: pageSize.value,
|
pageSize: pageSize.value,
|
||||||
vipId: id
|
patientId: 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
|
||||||
purchase(listItem.value.id)
|
getChargeList(listItem.value.id)
|
||||||
};
|
};
|
||||||
const levelEditRef = ref();
|
const levelEditRef = ref();
|
||||||
const openLevelEdit = (vip: any) => {
|
const openLevelEdit = (vip: any) => {
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,12 @@ onMounted(() => {
|
||||||
getPatientList()
|
getPatientList()
|
||||||
})
|
})
|
||||||
const initDoctor = () => {
|
const initDoctor = () => {
|
||||||
post('organization/member/allDoctorList').then((res: any) => {
|
let query={
|
||||||
|
name: null,
|
||||||
|
sectionId: null,
|
||||||
|
role:1
|
||||||
|
}
|
||||||
|
post('organization/member/search',{query:query}).then((res: any) => {
|
||||||
roleList.value = res
|
roleList.value = res
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue