Compare commits

..

No commits in common. "4281c3442351e98f411d056f7dee65c884a73b71" and "0626aab089f1a6fb663da9e7a597d63349d99338" have entirely different histories.

6 changed files with 63 additions and 64 deletions

View File

@ -18,7 +18,7 @@
/> />
</template> </template>
<template #default> <template #default>
<div class="container" style="display: flex;flex-direction: column;height: 100%"> <div class="container">
<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">
<ul style="height: 100%"> <el-scrollbar>
<el-scrollbar style="height: 100%"> <ul>
<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,9 +69,8 @@
</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>
</el-scrollbar>
</ul> </ul>
</el-scrollbar>
</div> </div>
</div> </div>
</template> </template>
@ -83,7 +82,7 @@ import {nextTick, onMounted, ref, watch} from "vue";
import {post} from "@/utils/request.ts"; import {post} from "@/utils/request.ts";
import Panel from "@/components/common/Panel.vue"; import Panel from "@/components/common/Panel.vue";
import {formatListTime, getCurrentDate, getEndOfDay, getToday} from "@/utils/dateUtils.ts"; 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 {apiConfig} from "@/assets/config/apiConfig.ts";
import Edit from "@/components/registration/Edit.vue"; import Edit from "@/components/registration/Edit.vue";
@ -135,7 +134,7 @@ const delDraft = () => {
defineExpose({delDraft, init}) defineExpose({delDraft, init})
onMounted(() => { onMounted(() => {
let today = getToday() let today = getToday()
selectedDate.value = [today.start, getEndOfDay(today.end)] selectedDate.value =[today.start,getEndOfDay(today.end)]
init() init()
}) })
const statusList = ref([ const statusList = ref([
@ -178,7 +177,7 @@ const setDate = function () {
datePickerRef.value.handleOpen() datePickerRef.value.handleOpen()
} }
} }
const dateChangeHandler = (seDate: any) => { const dateChangeHandler =(seDate:any)=>{
let date = formatListTime(seDate); let date = formatListTime(seDate);
query.value.beginTime = date[0] query.value.beginTime = date[0]
query.value.endTime = getEndOfDay(seDate) query.value.endTime = getEndOfDay(seDate)
@ -188,7 +187,7 @@ const searchInput = (v: any) => {
query.value.keyword = v query.value.keyword = v
init() init()
} }
const selected = ref(false) const selected= ref(false)
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.container { .container {
@ -201,13 +200,11 @@ 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;
display: flex; display: flex;
@ -218,9 +215,8 @@ 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);
} }
} }
} }
@ -327,6 +323,7 @@ const selected = ref(false)
padding: 0 18px; padding: 0 18px;
span { span {
width: 66px;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
} }
@ -337,7 +334,6 @@ 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,8 +7,6 @@ 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,
@ -34,15 +32,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}
); );
width_rem.value=(_width.value/16).toFixed(2); let width_rem=(_width.value/16).toFixed(2);
height_rem.value=(_height.value/16).toFixed(2); let height_rem=(_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;height: 100%;display: flex;flex-direction: column"> <div style="padding:0 24px">
<el-form <el-form
v-loading="loading" v-loading="loading"
:model="edit_data" :model="edit_data"
@ -128,8 +128,9 @@
<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%;flex: 1" style="width: 100%;"
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">
@ -310,7 +311,6 @@ 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,12 +337,13 @@ 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,8 +19,7 @@
</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" <el-cascader :collapse-tags="true" :props="props" style="width: 100px" :options="allCateList" :show-all-levels="false"
: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>
@ -185,7 +184,8 @@
<el-pagination <el-pagination
background background
layout="prev, pager, next" layout="prev, pager, next"
:page-count="pageNum" :page-size="pageSize"
:current-page="page"
:total="total" :total="total"
@current-change="changePage" @current-change="changePage"
/> />
@ -272,7 +272,7 @@ const searchGoods = () => {
maxInterestRate: parseFloat(searchModel.value.maxInterestRate) || null, // maxInterestRate: parseFloat(searchModel.value.maxInterestRate) || null, //
interestRateIntervalList: [] as { min: number; max: number }[], // interestRateIntervalList: [] as { min: number; max: number }[], //
inventoryNumber: inventoryNumber.value ? 0 : '', inventoryNumber: inventoryNumber.value ? 0 : '',
saleStatus: status.value ? status.value : null, saleStatus: status.value ? status.value: null,
} }
searchModel.value.curProfitCate.forEach((item) => { searchModel.value.curProfitCate.forEach((item) => {
for (const cate of profitCategory) { for (const cate of profitCategory) {
@ -308,8 +308,8 @@ onMounted(() => {
}) })
let init = () => { let init = () => {
const query = { const query = {
pageNum: pageNum.value,// pageNum: page.value,//
pageSize: 1,// pageSize: pageSize.value,//
} }
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,11 +325,20 @@ 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 pageNum = ref(1) let page = ref(1)
let changePage = (value: number) => { let changePage = (value: number) => {
pageNum.value = value page.value = value
init() 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
})
} }
interface CateOption { interface CateOption {
@ -417,7 +426,7 @@ const getStatisticsData = () => {
statisticsData.value = res statisticsData.value = res
}) })
} }
const props = {multiple: true} const props = { multiple: true }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.v-enter-active, .v-enter-active,
@ -466,13 +475,11 @@ 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;
@ -494,11 +501,9 @@ 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;
} }
@ -521,7 +526,6 @@ 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-count="pageNum" :page-size="pageSize"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
> >
</el-pagination> </el-pagination>
@ -308,13 +308,12 @@ const tableData = ref([])
const orderDetailRef = ref<any>(); const orderDetailRef = ref<any>();
const getChargeList = (id: any) => { const getChargeList = (id: any) => {
const query = { const query = {
pageNum: pageNum.value, page: page.value,
pageSize: 20, pageSize: pageSize.value,
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) => {
@ -369,9 +368,10 @@ const searchVip = () => {
}; };
// //
const total = ref(0) const total = ref(0)
const pageNum = ref(1) const pageSize = ref(10)
const page = ref(1)
const handleCurrentChange = (val: number) => { const handleCurrentChange = (val: number) => {
pageNum.value = val page.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: 30, size: rows - 2,
search_keyword: search_keyword.value search_keyword: search_keyword.value
}).then((res: any) => { }).then((res: any) => {
isDownLoading.value = false; isDownLoading.value = false;