This commit is contained in:
ChenQiuYu 2025-05-26 10:24:33 +08:00
parent c722a4414a
commit d2e325e5fc
3 changed files with 41 additions and 31 deletions

View File

@ -143,24 +143,40 @@ $lighter-color: rgba(#4D6DE4, 0.5);
color: #FFF; color: #FFF;
font-size: 16px; font-size: 16px;
text-align: center; text-align: center;
margin-left: 10px; margin-left: 9px;
&:first-child{
margin-left: 0;
}
&:hover{ &:hover{
background: $lighter-color; background: $lighter-color;
} }
} }
.small-btn{ .small-btn{
display: inline-block;
background: $btn-color;
border-radius: 3px;
color: #FFF;
font-size: 12px;
text-align: center;
cursor: pointer; cursor: pointer;
display: inline-block;
line-height: 1;
background: $btn-color;
border-radius: 4px;
color: #FFF;
font-size: 14px;
text-align: center;
margin-left: 9px;
padding: 8px 15px; padding: 8px 15px;
&:hover{ &:hover{
background: $lighter-color; background: $lighter-color;
} }
} }
.danger-btn{
cursor: pointer;
display: inline-block;
line-height: 1;
background: #EB5757;
border-radius: 4px;
color: #FFF;
font-size: 14px;
text-align: center;
margin-left: 9px;
padding: 8px 15px;
&:hover{
background: rgba(#EB5757, 0.5);
}
}

View File

@ -425,12 +425,13 @@
<template #footer> <template #footer>
<div class="footer"> <div class="footer">
<span class="default-btn" @click="returnInit" v-if="edit_data.id != null">医保库存重新初始化</span> <span class="small-btn" @click="returnInit"
<span class="default-btn" v-if="edit_data.saleStatus" @click="disableSale" style="margin: 0 24px">停售</span> v-if="edit_data.id != null">医保库存重新初始化</span>
<span class="default-btn" v-else @click="enableSale">起售</span> <span class="danger-btn" v-if="edit_data.saleStatus" @click="disableSale">停售</span>
<span class="default-btn" @click="save(true)" style="margin: 0 24px">保存</span> <span class="danger-btn" v-else @click="enableSale">起售</span>
<span class="default-btn" @click="save(false)" v-if="edit_data.id == null">保存并继续</span> <span class="small-btn" @click="save(true)">保存</span>
<span class="default-btn" @click="exit" style="margin-left: 24px">关闭</span> <span class="small-btn" @click="save(false)" v-if="edit_data.id == null">保存并继续</span>
<span class="small-btn" @click="exit">关闭</span>
</div> </div>
</template> </template>
</Mask> </Mask>
@ -915,11 +916,6 @@ const enableSale = () => {
justify-content: flex-end; justify-content: flex-end;
align-items: center; align-items: center;
padding: 0 24px; padding: 0 24px;
.default-btn{
&:nth-child(1){
width: 200px;
}
}
} }
</style> </style>

View File

@ -204,9 +204,9 @@
退出医保 退出医保
</div> </div>
<div class="bottom-right"> <div class="bottom-right">
<span class="default-btn" type="primary" @click="save">保存</span> <span class="danger-btn" v-if="edit_data.status==1" @click="registrationCancel">退号</span>
<span class="default-btn" @click="close" style="margin: 0 24px">取消</span> <span class="small-btn" @click="save">保存</span>
<span class="default-btn" v-if="edit_data.status==1" @click="registrationCancel">退号</span> <span class="small-btn" @click="close">取消</span>
</div> </div>
</div> </div>
</template> </template>
@ -548,11 +548,9 @@ defineExpose({init})
:deep(.el-form-item) { :deep(.el-form-item) {
margin-bottom: 2px !important; margin-bottom: 2px !important;
}
.small-btn{ .small-btn{
margin-left: 5px; height: 33px;
height: 32px; line-height: 33px;
line-height: 1; }
} }
</style> </style>