From 589f3ec8ec6ac215febdec74653db52a6b43de35 Mon Sep 17 00:00:00 2001 From: ChenQiuYu Date: Thu, 22 May 2025 17:05:12 +0800 Subject: [PATCH 1/5] dev --- src/components/charge/Settlement.vue | 34 ++++++++++-- src/components/registration/Edit.vue | 80 ++++++++++++++++------------ src/views/charge/index.vue | 8 +-- src/views/registration/index.vue | 2 +- 4 files changed, 82 insertions(+), 42 deletions(-) diff --git a/src/components/charge/Settlement.vue b/src/components/charge/Settlement.vue index 9dffa4c..ceb7580 100644 --- a/src/components/charge/Settlement.vue +++ b/src/components/charge/Settlement.vue @@ -5,7 +5,7 @@
{ } defineExpose({init}) const changePriceType = (type: any, index: any) => { + if (!props.disabled && type == 1) { + return + } payType.value = type; selectedIndex.value = index } @@ -113,10 +125,13 @@ const completeSettlement = () => { } else { //其他结算 loading.value = true; - post('charge/completeOrder', {id: retailOrder.value.id, payType: payType.value}, {catch_error:true}).then((res: any) => { + post('charge/completeOrder', { + id: retailOrder.value.id, + payType: payType.value + }, {catch_error: true}).then((res: any) => { orderCompleted() loading.value = false - }).catch((e)=>{ + }).catch((e) => { loading.value = false ElMessage.error(e) }) @@ -305,6 +320,8 @@ const btnsList = [ font-size: 16px; color: #333333; font-style: normal; + cursor: pointer; + .img { width: 24px; @@ -316,6 +333,13 @@ const btnsList = [ color: #fff; } } + + .disabled { + cursor: not-allowed; + opacity: 0.6; + background-color: #eee; + color: #999; + } } .pay { @@ -404,4 +428,6 @@ const btnsList = [ padding: 0 24px; align-items: center; } + + \ No newline at end of file diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index beebfff..56067ec 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -116,31 +116,35 @@ - -
{{ getToday().start }}
+ + +
+
+
现在
+
+
+ + +
+ {{ isBtnShow ? '预约' : '挂号' }} +
-
- - - - -
- @@ -541,7 +549,9 @@ defineExpose({init}) :deep(.el-form-item) { margin-bottom: 2px !important; } -.small-btn{ + +.small-btn { + width: 51px; height: 32px; line-height: 32px; margin-left: 5px; From cd30a1d7c02a92cbc90fb13621e85ede0d3b811b Mon Sep 17 00:00:00 2001 From: ChenQiuYu Date: Fri, 23 May 2025 10:00:54 +0800 Subject: [PATCH 3/5] dev --- src/components/registration/Edit.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index 16da68a..17c611f 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -164,6 +164,7 @@ style="width: 100%;flex: 1" v-if="!isShowCard" highlight-current-row + ref="multipleTable" @current-change="handleCurrentChange" > @@ -278,6 +279,8 @@ const close = () => { time.value = '' edit_data.value = { timeList: [], + insutype: '', + appointmentTime: '' } isShowCard.value = true nextTick(() => { @@ -298,15 +301,15 @@ const dateName = defineModel() const save = () => { if (dateName.value == '现在') { edit_data.value.timeList = '' + edit_data.value.appointmentTime = '' } else { edit_data.value.timeList.push(edit_data.value.date, time.value) edit_data.value.appointmentTime = edit_data.value.timeList.join(' ') - console.log(edit_data.value.appointmentTime) } let data = { ...edit_data.value, psnNo: socialCard.value?.data?.baseinfo.psn_no, - insutype:edit_data.value.insutype || socialCard.value?.data?.insuinfo[0].insutype, + insutype: edit_data.value.insutype || socialCard.value?.data?.insuinfo[0].insutype, insuBalance: socialCard.value?.data?.insuinfo[0].balc, } @@ -381,6 +384,7 @@ const init = (doctorId: any = "", id: any = null, show: any = false) => { } const isShowCard = ref(true) const tableData = ref([]) +const multipleTable=ref() const socialCardUpdate = (e: any) => { isShowCard.value = false if (e) { @@ -409,8 +413,8 @@ const socialCardUpdate = (e: any) => { } nextTick(() => { if (tableData.value.length > 0) { - height.value = 870 - + height.value = 820 + multipleTable.value?.setCurrentRow(tableData.value[0]) } else { height.value = 570 } @@ -460,7 +464,7 @@ const isBtnShow = ref(true) const changeBtn = () => { isBtnShow.value = !isBtnShow.value } -const handleCurrentChange=(val:any)=>{ +const handleCurrentChange = (val: any) => { edit_data.value.insutype = val.insutype } defineExpose({init}) From 3fd87a5e1349a467cd76b3cf950576d6c3d2167c Mon Sep 17 00:00:00 2001 From: ChenQiuYu Date: Fri, 23 May 2025 10:07:13 +0800 Subject: [PATCH 4/5] dev --- src/components/registration/Edit.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index 17c611f..2be1154 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -107,8 +107,8 @@ - - + + @@ -371,6 +371,7 @@ const init = (doctorId: any = "", id: any = null, show: any = false) => { isShow.value = true quickShow.value = show edit_data.value.organizationDoctorId = doctorId || "" + edit_data.value.type = 1 isBtnShow.value = dateName.value == '现在'; if (id) { post('registration/getById', {id: id}).then((res: any) => { @@ -384,7 +385,7 @@ const init = (doctorId: any = "", id: any = null, show: any = false) => { } const isShowCard = ref(true) const tableData = ref([]) -const multipleTable=ref() +const multipleTable = ref() const socialCardUpdate = (e: any) => { isShowCard.value = false if (e) { From 9f10e9c841c88a7fcace8a2dbca3e120bb3783a2 Mon Sep 17 00:00:00 2001 From: ChenQiuYu Date: Fri, 23 May 2025 10:16:21 +0800 Subject: [PATCH 5/5] dev --- src/components/registration/Edit.vue | 1 + src/views/registration/index.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/src/components/registration/Edit.vue b/src/components/registration/Edit.vue index 2be1154..561341b 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -396,6 +396,7 @@ const socialCardUpdate = (e: any) => { edit_data.value.certNo = e.data.baseinfo.certno edit_data.value.age = Math.floor(e.data.baseinfo.age) tableData.value = e.data.insuinfo + edit_data.value.type = 2 if (edit_data.value.certNo) { post('vip/vip/list', { keyword: edit_data.value.certNo, diff --git a/src/views/registration/index.vue b/src/views/registration/index.vue index 38deb30..072cf0f 100644 --- a/src/views/registration/index.vue +++ b/src/views/registration/index.vue @@ -18,6 +18,7 @@
    +
  • 全部
  • {{ item.name }}