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..561341b 100644 --- a/src/components/registration/Edit.vue +++ b/src/components/registration/Edit.vue @@ -107,8 +107,8 @@ - - + + @@ -116,30 +116,37 @@ - -
{{ getToday().start }}
-
-
- - - + + +
+ +
现在
+ +
+ + +
+
+ {{ + isBtnShow ? '挂号' : '预约' + }}