This commit is contained in:
ChenQiuYu 2025-05-17 16:51:06 +08:00
parent 63d0c2f15a
commit 089f5d4b52
6 changed files with 64 additions and 63 deletions

View File

@ -18,7 +18,7 @@
/>
</template>
<template #default>
<div class="container">
<div class="container" style="display: flex;flex-direction: column;height: 100%">
<div class="tabs">
<span v-for="(item,index) in statusList " :key="index" :class="query.status == item.value ? 'tabs-item' : ''"
@click="tab(item)">{{ item.label }}&nbsp;({{ item.num }})
@ -50,8 +50,8 @@
<!-- <el-button type="success" @click="addChargeOrder" size="small">+收费</el-button>-->
</div>
<div class="list" v-loading="loading">
<el-scrollbar>
<ul>
<ul style="height: 100%">
<el-scrollbar style="height: 100%">
<li class="list-item" :class="curItem.id == item.id ? 'active' : ''"
v-for="(item, index) in ChargeQueueList"
:key="index" @click="clickItem(item)">
@ -69,8 +69,9 @@
</span>
<span :class="[item.status == 0 ?'status-active':'']">{{ item.status == 0 ? '未收' : '已收' }}</span>
</li>
</ul>
</el-scrollbar>
</ul>
</div>
</div>
</template>
@ -82,7 +83,7 @@ import {nextTick, onMounted, ref, watch} from "vue";
import {post} from "@/utils/request.ts";
import Panel from "@/components/common/Panel.vue";
import {formatListTime, getCurrentDate, getEndOfDay, getToday} from "@/utils/dateUtils.ts";
import { Search,Calendar} from "@element-plus/icons-vue";
import {Search, Calendar} from "@element-plus/icons-vue";
import {apiConfig} from "@/assets/config/apiConfig.ts";
import Edit from "@/components/registration/Edit.vue";
@ -134,7 +135,7 @@ const delDraft = () => {
defineExpose({delDraft, init})
onMounted(() => {
let today = getToday()
selectedDate.value =[today.start,getEndOfDay(today.end)]
selectedDate.value = [today.start, getEndOfDay(today.end)]
init()
})
const statusList = ref([
@ -177,7 +178,7 @@ const setDate = function () {
datePickerRef.value.handleOpen()
}
}
const dateChangeHandler =(seDate:any)=>{
const dateChangeHandler = (seDate: any) => {
let date = formatListTime(seDate);
query.value.beginTime = date[0]
query.value.endTime = getEndOfDay(seDate)
@ -187,7 +188,7 @@ const searchInput = (v: any) => {
query.value.keyword = v
init()
}
const selected= ref(false)
const selected = ref(false)
</script>
<style scoped lang="scss">
.container {
@ -200,11 +201,13 @@ const selected= ref(false)
height: 74px;
width: 100%;
display: flex;
.search-input {
flex: 1;
min-width: 0;
}
.add{
.add {
width: 128px;
height: 42px;
display: flex;
@ -215,8 +218,9 @@ const selected= ref(false)
margin-left: 16px;
cursor: pointer;
color: #fff;
&:hover {
background: rgba(#4D6DE4,0.5);
background: rgba(#4D6DE4, 0.5);
}
}
}
@ -323,7 +327,6 @@ const selected= ref(false)
padding: 0 18px;
span {
width: 66px;
cursor: pointer;
text-align: center;
}
@ -334,6 +337,7 @@ const selected= ref(false)
padding-bottom: 10px;
}
}
.date-btn {
width: 98px;
height: 32px;

View File

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

View File

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

View File

@ -19,7 +19,8 @@
</el-input>
</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/>
</el-form-item>
<el-form-item>
@ -184,8 +185,7 @@
<el-pagination
background
layout="prev, pager, next"
:page-size="pageSize"
:current-page="page"
:page-count="pageNum"
:total="total"
@current-change="changePage"
/>
@ -272,7 +272,7 @@ const searchGoods = () => {
maxInterestRate: parseFloat(searchModel.value.maxInterestRate) || null, //
interestRateIntervalList: [] as { min: number; max: number }[], //
inventoryNumber: inventoryNumber.value ? 0 : '',
saleStatus: status.value ? status.value: null,
saleStatus: status.value ? status.value : null,
}
searchModel.value.curProfitCate.forEach((item) => {
for (const cate of profitCategory) {
@ -308,8 +308,8 @@ onMounted(() => {
})
let init = () => {
const query = {
pageNum: page.value,//
pageSize: pageSize.value,//
pageNum: pageNum.value,//
pageSize: 1,//
}
post("goods/goods/searchDetail", {query: query}).then((res: any) => {
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 page = ref(1)
let pageNum = ref(1)
let changePage = (value: number) => {
page.value = value
const query = {
pageNum: value,
pageSize: pageSize.value,
}
post("goods/goods/searchDetail", {query: query}).then((res: any) => {
tableData.value = res.list
total.value = res.total_count
})
pageNum.value = value
init()
}
interface CateOption {
@ -426,7 +417,7 @@ const getStatisticsData = () => {
statisticsData.value = res
})
}
const props = { multiple: true }
const props = {multiple: true}
</script>
<style scoped lang="scss">
.v-enter-active,
@ -475,11 +466,13 @@ const props = { multiple: true }
}
}
}
.content_goods {
width: 100%;
flex: 1;
min-height: 0;
}
.bottom {
width: 100%;
height: 60px;
@ -501,9 +494,11 @@ const props = { multiple: true }
.tags {
margin-left: 5px;
}
:deep(.el-input__inner){
:deep(.el-input__inner) {
height: 42px;
}
:deep(.el-cascader .el-input) {
height: 42px;
}
@ -526,6 +521,7 @@ const props = { multiple: true }
align-items: center;
margin-left: 24px;
cursor: pointer;
&:hover {
background: #4D6DE4;
color: #fff;

View File

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

View File

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