From 28ce5fb6df3f400081375ada622680d5246b1af3 Mon Sep 17 00:00:00 2001 From: ChenQiuYu Date: Wed, 7 May 2025 16:05:30 +0800 Subject: [PATCH] dev --- .../member/memberProfile/VipEdit.vue | 5 ++++- .../outpatient/ServiceItemsDetail.vue | 19 ++++++++++++++++++- src/views/member/index.vue | 19 +++++-------------- 3 files changed, 27 insertions(+), 16 deletions(-) diff --git a/src/components/member/memberProfile/VipEdit.vue b/src/components/member/memberProfile/VipEdit.vue index 48383fb..1ad8f04 100644 --- a/src/components/member/memberProfile/VipEdit.vue +++ b/src/components/member/memberProfile/VipEdit.vue @@ -23,7 +23,7 @@ v-for="item in levelList" :key="item.id" :label="item.name" - :value="item.id" + :value="item.levelId" /> @@ -161,6 +161,7 @@ import {post} from "@/utils/request.ts"; import Mask from "@/components/common/Mask.vue"; import psnCertTypes from "@/assets/config/directory/psnCertTypes.json" import antys from '@/assets/config/directory/antys.json' +import {formatDate} from "@/utils/dateUtils.ts"; const ruleFormRef = ref() @@ -222,6 +223,7 @@ const submitForm = async () => { if (!formEl) return await formEl.validate((valid: any) => { if (valid) { + ruleForm.value.birthday=formatDate(ruleForm.value.birthday) if (ruleForm.value.id) { post("vip/vip/update", {vipInfo: ruleForm.value}).then(() => { close() @@ -285,6 +287,7 @@ const levelList = ref([]) const getLevelConfig = () => { post("vip/vipLevel/list").then((res: any) => { levelList.value = res + console.log('le',levelList.value) }) } onMounted(() => { diff --git a/src/components/outpatient/ServiceItemsDetail.vue b/src/components/outpatient/ServiceItemsDetail.vue index cec6235..5c4a27d 100644 --- a/src/components/outpatient/ServiceItemsDetail.vue +++ b/src/components/outpatient/ServiceItemsDetail.vue @@ -5,7 +5,24 @@
  • {{ index + 1 }} - {{ item.itemName }} + + +
    +
    +
    {{ itemInfo.name }}[{{ chrgitm_lv[itemInfo.chrgitmLv as keyof typeof chrgitm_lv || '-'] || '-' }}]
    +
    ¥{{ item.unitPrice }}/{{item.unit }}
    +
    +
    +
    限制条件:{{ itemInfo.lmtUsedFlag == 0 ? '否' : itemInfo.lmtUsedFlag == 1 ? '是' : '-'}}
    +
    医保码:{{item.itemSocialCode||'-'}}
    +
    +
    +
    {{ item.itemSocialCode }} {{item.selectedNum}}{{ item.selectedUnit }} ¥{{ item.selectedPrice }}元 diff --git a/src/views/member/index.vue b/src/views/member/index.vue index 3af02f2..18f158a 100644 --- a/src/views/member/index.vue +++ b/src/views/member/index.vue @@ -18,7 +18,7 @@
    共{{ totalCount || 0 }}条
      - +
    • {{ listItem.certNo || "-" }} {{ listItem.integralBalance }} - {{ areaName}}{{ listItem.address || "-" }} + {{ areaName}}{{areaName?'/'+listItem.address : listItem.address || "-" }} {{ listItem.beforeMedicalHistory || "-" }} {{ listItem.allergyHistory || "-" }} {{ listItem.remark || "-" }} @@ -177,9 +177,6 @@ const isGrant = ref(false) const isExchange = ref(false) const isFlowingWater = ref(false) const input3 = ref('') -const handleScroll = (e: any) => { - //console.log(e.scrollTop) -} const listItem = ref({ id: '', realName: "",//姓名 @@ -255,7 +252,7 @@ const findAreaName = (code: string | null): string => { if (city.area && Array.isArray(city.area)) { const area = city.area.find((d: any) => d.code === code); if (area) { - return `${province.name}/ ${city.name} /${area.name}/`; + return `${province.name}/ ${city.name} /${area.name}`; } } } @@ -265,13 +262,13 @@ const findAreaName = (code: string | null): string => { if (province.city && Array.isArray(province.city)) { const city = province.city.find((c: any) => c.code === code); if (city) { - return `${province.name} /${city.name}/`; + return `${province.name} /${city.name}`; } } } const province = area.find((item: any) => item.code === code); if (province) { - return province.name +'/'; + return province.name; } // 如果都没找到,返回原始 code @@ -294,7 +291,6 @@ const btn = (item: any, i: number) => { areaData = null; // 或默认值 } areaName.value=findAreaName(areaData[areaData?.length-1]) - console.log(areaName.value,'findAreaName') getChargeList(listItem.value.id) } //点击发放 @@ -369,11 +365,6 @@ const handleCurrentChange = (val: number) => { getChargeList(listItem.value.id) }; const levelEditRef = ref(); -const openLevelEdit = (vip: any) => { - nextTick(() => { - levelEditRef.value?.init(vip); - }); -} const antysList = ref(Object.entries(antys).map(([id, name]) => ({id, name}))) const certTypeList=ref(Object.entries(psnCertTypes).map(([id,name])=>({id,name})))