This commit is contained in:
ChenQiuYu 2025-05-27 10:24:29 +08:00
parent 5fbe4a5180
commit 6c7616d520
14 changed files with 89 additions and 24 deletions

View File

@ -1,8 +1,7 @@
@font-face { @font-face {
font-family: "iconfont"; /* Project id 4921806 */ font-family: "iconfont"; /* Project id 4921806 */
src: src: url('iconfont.woff?t=1748312335696') format('woff'),
url('iconfont.woff?t=1747990278440') format('woff'), url('iconfont.ttf?t=1748312335696') format('truetype');
url('iconfont.ttf?t=1747990278440') format('truetype');
} }
.iconfont { .iconfont {
@ -13,6 +12,10 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-yuyueh:before {
content: "\e60d";
}
.icon-yuyue:before { .icon-yuyue:before {
content: "\e606"; content: "\e606";
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -148,6 +148,25 @@ $lighter-color: rgba(#4D6DE4, 0.5);
background: $lighter-color; background: $lighter-color;
} }
} }
.default-close-btn{
cursor: pointer;
display: inline-block;
width: 119px;
height: 42px;
line-height: 42px;
background: #fff;
border-radius: 6px;
color: #333333;
font-size: 16px;
text-align: center;
margin-left: 9px;
border:1px solid #D8D8D8;
&:hover{
background: $lighter-color;
color: #fff;
border:none;
}
}
.small-btn{ .small-btn{
cursor: pointer; cursor: pointer;
@ -180,3 +199,21 @@ $lighter-color: rgba(#4D6DE4, 0.5);
background: rgba(#EB5757, 0.5); background: rgba(#EB5757, 0.5);
} }
} }
.close-btn{
cursor: pointer;
display: inline-block;
line-height: 1;
background: #fff;
border-radius: 4px;
color: #333;
font-size: 14px;
text-align: center;
margin-left: 9px;
padding: 7px 14px;
border:1px solid #D8D8D8;
&:hover{
background: rgba(#4D6DE4, 0.5);
color: #fff;
border:1px solid rgba(#4D6DE4, 0.5);
}
}

View File

@ -690,7 +690,8 @@ const contrastCodeConfirm = (data: any) => {
} }
let save = async (isClose: Boolean) => { let save = async (isClose: Boolean) => {
try { try {
await formRef.value.validate() const isOk = await formRef.value.validate()
if (!isOk) return
if (!edit_data.value.purchaseUnitPrice || edit_data.value.purchaseUnitPrice < 1) { if (!edit_data.value.purchaseUnitPrice || edit_data.value.purchaseUnitPrice < 1) {
ElMessage.error('参考进价不能为空或小于1'); ElMessage.error('参考进价不能为空或小于1');
return return

View File

@ -8,7 +8,7 @@
<div v-if="hilistInfo" class="hilist-detail"> <div v-if="hilistInfo" class="hilist-detail">
<div class="name"> <div class="name">
{{ hilistInfo.name }} {{ hilistInfo.name }}
{{ hilistInfo.json?.category ? '[' + hilistInfo.json.category + ']' : '-' }} {{ hilistInfo.json?.category ? '[' + hilistInfo.json.category + ']' : '' }}
</div> </div>
<div> <div>
{{ hilistInfo.code }} {{ hilistInfo.code }}
@ -86,17 +86,16 @@ onMounted(() => {
.hilist-code { .hilist-code {
cursor: pointer; cursor: pointer;
width: 100%; width: 100%;
height: 25px; height: 38px;
border: 1px #ddd solid;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 8px; padding: 16px;
border-radius: 10px; border-radius: 6px;
border: 1px solid #EAEAEC;
.name { .name {
display: flex; display: flex;
} }
.code { .code {
@ -107,14 +106,15 @@ onMounted(() => {
} }
.hilist-detail { .hilist-detail {
padding: base.$padding-base; padding: 16px;
margin-top: 3px;; margin-top: 8px;
width: 100%; width: 100%;
height: 250px;
border: 1px base.$border-color-base solid;
font-size: 12px; font-size: 12px;
border-radius: 8px; background: #F5F6F7;
border-radius: 6px;
border: 1px solid #EAEAEC;
display: flex;
flex-direction: column;
justify-content: space-between;
} }
</style> </style>

View File

@ -34,7 +34,6 @@ const props = defineProps({
default: 0 default: 0
} }
}) })
console.log(props.status)
const list = ref<any>([]) const list = ref<any>([])
const init = (patientId: any) => { const init = (patientId: any) => {
post("medical/record/listByPatient", {patientId: patientId}).then((res: any) => { post("medical/record/listByPatient", {patientId: patientId}).then((res: any) => {

View File

@ -209,7 +209,14 @@ const clickLi = (item: any, showBox: any = true) => {
} }
const changeCurItemOrStatus = (item: any, status: any) => { const changeCurItemOrStatus = (item: any, status: any) => {
curStatus.value = status curStatus.value = status
if (item != null) { curItem.value = item
clickTab({status: status})
if (status == 1) {
// selectedDate.value = formatDate(item.appointmentTime)
init()
return
}
if (item != null && status != 1) {
clickLi(item); clickLi(item);
} }
init() init()
@ -218,6 +225,11 @@ defineExpose({changeCurItemOrStatus})
watch(() => curStatus.value, () => { watch(() => curStatus.value, () => {
init() // init() //
}) })
const formatDate = (isoStr: any) => {
if (!isoStr) return ''
const date = new Date(isoStr);
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')}`;
}
const setDateTip = () => { const setDateTip = () => {
const seletctedDateObj = new Date(selectedDate.value); const seletctedDateObj = new Date(selectedDate.value);
// //

View File

@ -20,7 +20,7 @@ const editItem= () => {
<div class="footer"> <div class="footer">
<div>总金额<span class="text icon"></span><span class="text">{{ totalAmount || '0' }}</span></div> <div>总金额<span class="text icon"></span><span class="text">{{ totalAmount || '0' }}</span></div>
<div class="btn-group"> <div class="btn-group">
<span class="default-btn" v-if="status" @click="deleteItem">取消接诊</span> <span class="default-close-btn" v-if="status" @click="deleteItem">取消接诊</span>
<span class="default-btn" v-if="status" @click="save">完成接诊</span> <span class="default-btn" v-if="status" @click="save">完成接诊</span>
<!-- <el-button v-if="status == 3" type="primary" @click="editItem">修改</el-button>--> <!-- <el-button v-if="status == 3" type="primary" @click="editItem">修改</el-button>-->
</div> </div>

View File

@ -141,7 +141,9 @@
style="width: 50%" style="width: 50%"
/> />
</div> </div>
<span v-if="dateName!='预约'" class="small-btn" @click="changeBtn">{{ <span v-if="dateName!='预约'"
:class="{disabled:edit_data.status==1||edit_data.status==3||edit_data.status==0}"
class="small-btn" @click="changeBtn">{{
isBtnShow ? '挂号' : '预约' isBtnShow ? '挂号' : '预约'
}}</span> }}</span>
</div> </div>
@ -202,9 +204,9 @@
退出医保 退出医保
</div> </div>
<div class="bottom-right"> <div class="bottom-right">
<span class="close-btn" @click="close">取消</span>
<span class="danger-btn" v-if="edit_data.status==1" @click="registrationCancel">退号</span> <span class="danger-btn" v-if="edit_data.status==1" @click="registrationCancel">退号</span>
<span class="small-btn" @click="save">保存</span> <span class="small-btn" @click="save">保存</span>
<span class="small-btn" @click="close">取消</span>
</div> </div>
</div> </div>
</template> </template>
@ -452,6 +454,7 @@ const changeLoading = (e: any) => {
} }
const isBtnShow = ref(true) const isBtnShow = ref(true)
const changeBtn = () => { const changeBtn = () => {
if (edit_data.value.status == 1 || edit_data.value.status == 3 || edit_data.value.status == 0) return
isBtnShow.value = !isBtnShow.value isBtnShow.value = !isBtnShow.value
if (isBtnShow.value) { if (isBtnShow.value) {
time.value = '' time.value = ''
@ -547,4 +550,9 @@ defineExpose({init})
:deep(.el-form-item) { :deep(.el-form-item) {
margin-bottom: 2px !important; margin-bottom: 2px !important;
} }
.disabled {
cursor: not-allowed;
background: rgba(#4D6DE4,.5);
}
</style> </style>

View File

@ -3,7 +3,7 @@ import './assets/scss/main.scss'
import {createApp} from 'vue' import {createApp} from 'vue'
import ElementPlus from 'element-plus' import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' import 'element-plus/dist/index.css'
import '../src/assets/iconfont/iconfont.css' import '../public/static/iconfont/iconfont.css'
import {createPinia} from 'pinia' import {createPinia} from 'pinia'
import App from './App.vue' import App from './App.vue'

View File

@ -148,7 +148,12 @@ const clickItem = (item: any) => {
const medicalQueueRef = ref(); const medicalQueueRef = ref();
const cancelReception = () => { const cancelReception = () => {
post(apiConfig.RegistrationChangeStatus, {id: registerId.value, status: 1}).then((res: any) => { post(apiConfig.RegistrationChangeStatus, {id: registerId.value, status: 1}).then((res: any) => {
nextTick(() => {
medicalQueueRef.value?.changeCurItemOrStatus(res, 1); medicalQueueRef.value?.changeCurItemOrStatus(res, 1);
initFormData()
medicalHistoryRef.value?.clearList();
patientCardRef.value?.clear();
})
}) })
} }
const changeTab = (e: any) => { const changeTab = (e: any) => {