Compare commits

...

2 Commits

Author SHA1 Message Date
ChenQiuYu 4281c34423 Merge branch 'main' of ssh://git.jizhiweb.cn:2222/clinic-v2/web 2025-05-17 16:51:14 +08:00
ChenQiuYu 089f5d4b52 dev 2025-05-17 16:51:06 +08:00
6 changed files with 64 additions and 63 deletions

View File

@ -18,7 +18,7 @@
/> />
</template> </template>
<template #default> <template #default>
<div class="container"> <div class="container" style="display: flex;flex-direction: column;height: 100%">
<div class="tabs"> <div class="tabs">
<span v-for="(item,index) in statusList " :key="index" :class="query.status == item.value ? 'tabs-item' : ''" <span v-for="(item,index) in statusList " :key="index" :class="query.status == item.value ? 'tabs-item' : ''"
@click="tab(item)">{{ item.label }}&nbsp;({{ item.num }}) @click="tab(item)">{{ item.label }}&nbsp;({{ item.num }})
@ -50,8 +50,8 @@
<!-- <el-button type="success" @click="addChargeOrder" size="small">+收费</el-button>--> <!-- <el-button type="success" @click="addChargeOrder" size="small">+收费</el-button>-->
</div> </div>
<div class="list" v-loading="loading"> <div class="list" v-loading="loading">
<el-scrollbar> <ul style="height: 100%">
<ul> <el-scrollbar style="height: 100%">
<li class="list-item" :class="curItem.id == item.id ? 'active' : ''" <li class="list-item" :class="curItem.id == item.id ? 'active' : ''"
v-for="(item, index) in ChargeQueueList" v-for="(item, index) in ChargeQueueList"
:key="index" @click="clickItem(item)"> :key="index" @click="clickItem(item)">
@ -69,8 +69,9 @@
</span> </span>
<span :class="[item.status == 0 ?'status-active':'']">{{ item.status == 0 ? '未收' : '已收' }}</span> <span :class="[item.status == 0 ?'status-active':'']">{{ item.status == 0 ? '未收' : '已收' }}</span>
</li> </li>
</ul>
</el-scrollbar> </el-scrollbar>
</ul>
</div> </div>
</div> </div>
</template> </template>
@ -200,10 +201,12 @@ const selected= ref(false)
height: 74px; height: 74px;
width: 100%; width: 100%;
display: flex; display: flex;
.search-input { .search-input {
flex: 1; flex: 1;
min-width: 0; min-width: 0;
} }
.add { .add {
width: 128px; width: 128px;
height: 42px; height: 42px;
@ -215,6 +218,7 @@ const selected= ref(false)
margin-left: 16px; margin-left: 16px;
cursor: pointer; cursor: pointer;
color: #fff; color: #fff;
&:hover { &:hover {
background: rgba(#4D6DE4, 0.5); background: rgba(#4D6DE4, 0.5);
} }
@ -323,7 +327,6 @@ const selected= ref(false)
padding: 0 18px; padding: 0 18px;
span { span {
width: 66px;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
} }
@ -334,6 +337,7 @@ const selected= ref(false)
padding-bottom: 10px; padding-bottom: 10px;
} }
} }
.date-btn { .date-btn {
width: 98px; width: 98px;
height: 32px; height: 32px;

View File

@ -7,6 +7,8 @@ let _height = ref(0);
let _isShow = ref(false); let _isShow = ref(false);
let _close = ref(true); let _close = ref(true);
let _showFooter = ref(false); let _showFooter = ref(false);
const width_rem=ref<any>();
const height_rem=ref<any>();
const { const {
width, width,
height, height,
@ -32,15 +34,15 @@ const closeBtn = () => {
watch( watch(
() => height, () => height,
(newVal) => { (newVal) => {
console.log(1111)
_height.value = newVal == null ? 800 : Number(newVal); _height.value = newVal == null ? 800 : Number(newVal);
} height_rem.value =(_height.value/16).toFixed(2);
},{deep:true}
); );
let width_rem=(_width.value/16).toFixed(2); width_rem.value=(_width.value/16).toFixed(2);
let height_rem=(_height.value/16).toFixed(2); height_rem.value=(_height.value/16).toFixed(2);
</script> </script>
<template> <template>
<teleport to="body"> <teleport to="body">
<transition name="el-fade-in"> <transition name="el-fade-in">

View File

@ -2,7 +2,7 @@
<Mask :is-show="isShow" width="800" :height="height" title="挂号" @close="close" <Mask :is-show="isShow" width="800" :height="height" title="挂号" @close="close"
:show-footer="true"> :show-footer="true">
<template #default> <template #default>
<div style="padding:0 24px"> <div style="padding:0 24px;height: 100%;display: flex;flex-direction: column">
<el-form <el-form
v-loading="loading" v-loading="loading"
:model="edit_data" :model="edit_data"
@ -128,9 +128,8 @@
<h5 v-if="!isShowCard" style="margin:24px 0;font-size: 16px">险种列表</h5> <h5 v-if="!isShowCard" style="margin:24px 0;font-size: 16px">险种列表</h5>
<el-table <el-table
:data="tableData" :data="tableData"
style="width: 100%;" style="width: 100%;flex: 1"
v-if="!isShowCard" v-if="!isShowCard"
height="160"
> >
<el-table-column label="险种类型" prop="insutype"> <el-table-column label="险种类型" prop="insutype">
<template #default="scope"> <template #default="scope">
@ -311,6 +310,7 @@ const isShowCard = ref<any>(true)
const tableData = ref<any>([]) const tableData = ref<any>([])
const socialCardUpdate = (e: any) => { const socialCardUpdate = (e: any) => {
isShowCard.value = false isShowCard.value = false
console.log(e)
if (e) { if (e) {
isShowCard.value = false isShowCard.value = false
edit_data.value.gender = Number(e.data.baseinfo.gend) edit_data.value.gender = Number(e.data.baseinfo.gend)
@ -337,13 +337,12 @@ const socialCardUpdate = (e: any) => {
} }
nextTick(() => { nextTick(() => {
if (tableData.value.length > 0) { if (tableData.value.length > 0) {
console.log(tableData.value)
height.value = 700 height.value = 700
} else { } else {
height.value = 470 height.value = 470
} }
}) })
loading.value = false loading.value = false
} }
const cardDefaultRef = ref<any>("") const cardDefaultRef = ref<any>("")

View File

@ -19,7 +19,8 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-cascader :collapse-tags="true" :props="props" style="width: 100px" :options="allCateList" :show-all-levels="false" <el-cascader :collapse-tags="true" :props="props" style="width: 100px" :options="allCateList"
:show-all-levels="false"
v-model="searchModel.cateId" clearable/> v-model="searchModel.cateId" clearable/>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
@ -184,8 +185,7 @@
<el-pagination <el-pagination
background background
layout="prev, pager, next" layout="prev, pager, next"
:page-size="pageSize" :page-count="pageNum"
:current-page="page"
:total="total" :total="total"
@current-change="changePage" @current-change="changePage"
/> />
@ -308,8 +308,8 @@ onMounted(() => {
}) })
let init = () => { let init = () => {
const query = { const query = {
pageNum: page.value,// pageNum: pageNum.value,//
pageSize: pageSize.value,// pageSize: 1,//
} }
post("goods/goods/searchDetail", {query: query}).then((res: any) => { post("goods/goods/searchDetail", {query: query}).then((res: any) => {
tableData.value = res.list tableData.value = res.list
@ -325,20 +325,11 @@ let open_edit = (type: number, id: number) => {
}); });
} }
// //
let content: any = ref(null);
let pageSize = ref(20)
let total = ref(0) let total = ref(0)
let page = ref(1) let pageNum = ref(1)
let changePage = (value: number) => { let changePage = (value: number) => {
page.value = value pageNum.value = value
const query = { init()
pageNum: value,
pageSize: pageSize.value,
}
post("goods/goods/searchDetail", {query: query}).then((res: any) => {
tableData.value = res.list
total.value = res.total_count
})
} }
interface CateOption { interface CateOption {
@ -475,11 +466,13 @@ const props = { multiple: true }
} }
} }
} }
.content_goods { .content_goods {
width: 100%; width: 100%;
flex: 1; flex: 1;
min-height: 0; min-height: 0;
} }
.bottom { .bottom {
width: 100%; width: 100%;
height: 60px; height: 60px;
@ -501,9 +494,11 @@ const props = { multiple: true }
.tags { .tags {
margin-left: 5px; margin-left: 5px;
} }
:deep(.el-input__inner) { :deep(.el-input__inner) {
height: 42px; height: 42px;
} }
:deep(.el-cascader .el-input) { :deep(.el-cascader .el-input) {
height: 42px; height: 42px;
} }
@ -526,6 +521,7 @@ const props = { multiple: true }
align-items: center; align-items: center;
margin-left: 24px; margin-left: 24px;
cursor: pointer; cursor: pointer;
&:hover { &:hover {
background: #4D6DE4; background: #4D6DE4;
color: #fff; color: #fff;

View File

@ -142,7 +142,7 @@
background background
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
:page-size="pageSize" :page-count="pageNum"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
> >
</el-pagination> </el-pagination>
@ -308,12 +308,13 @@ const tableData = ref([])
const orderDetailRef = ref<any>(); const orderDetailRef = ref<any>();
const getChargeList = (id: any) => { const getChargeList = (id: any) => {
const query = { const query = {
page: page.value, pageNum: pageNum.value,
pageSize: pageSize.value, pageSize: 20,
patientId: 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
total.value = res.total_count
}) })
} }
const openDetail = (row: any, column: any, event: Event) => { const openDetail = (row: any, column: any, event: Event) => {
@ -368,10 +369,9 @@ const searchVip = () => {
}; };
// //
const total = ref(0) const total = ref(0)
const pageSize = ref(10) const pageNum = ref(1)
const page = ref(1)
const handleCurrentChange = (val: number) => { const handleCurrentChange = (val: number) => {
page.value = val pageNum.value = val
getChargeList(listItem.value.id) getChargeList(listItem.value.id)
}; };
const levelEditRef = ref(); const levelEditRef = ref();

View File

@ -253,7 +253,7 @@ function get_data_list() {
post("social/directory/get_doc_list", { post("social/directory/get_doc_list", {
type: current_tab.value, type: current_tab.value,
page: current_page.value, page: current_page.value,
size: rows - 2, size: 30,
search_keyword: search_keyword.value search_keyword: search_keyword.value
}).then((res: any) => { }).then((res: any) => {
isDownLoading.value = false; isDownLoading.value = false;