<template>
|
<div class="start-dialysis-container">
|
<el-dialog
|
v-model="show"
|
center
|
title="开始透析"
|
width="80%"
|
:show-close="false"
|
class="start-dialysis-dialog"
|
:destroy-on-close="true"
|
:close-on-click-modal="false"
|
>
|
<template #header>
|
<div class="start-dialysis-header">
|
<span class="header-title">开始透析</span>
|
<img
|
:src="closeImg"
|
class="header-close"
|
@click="handleCancel"
|
alt=""
|
/>
|
</div>
|
</template>
|
<div class="start-dialysis-content" v-loading="loading">
|
<el-form></el-form>
|
</div>
|
<template #footer>
|
<div class="my-button cancel" @click="handleCancel">取消</div>
|
<div
|
class="my-button confirm"
|
:class="loading ? 'cancel' : ''"
|
@click="handleConfirm"
|
>
|
确认
|
</div>
|
</template>
|
</el-dialog>
|
</div>
|
</template>
|
|
<script lang="ts">
|
import { reactive, toRefs } from "vue";
|
import closeImg from "@/img/close.png";
|
import { addDefaultRowApi } from '@/api/patient_hemo_med_start/index';
|
import type { StartRecord } from '@/api/patient_hemo_med_start/types/index.type';
|
|
interface FormData extends Omit<StartRecord, 'startCcType' | 'startCcASideDirection'> {
|
/** 穿刺方式 */
|
startCcType: string[];
|
/** 穿刺方向 */
|
startCcASideDirection: string[];
|
}
|
|
|
interface State {
|
loading: boolean;
|
show: boolean;
|
formData: FormData | {};
|
}
|
export default {
|
name: "StartDialysis",
|
setup() {
|
const state = reactive<State>({
|
loading: false,
|
show: false,
|
formData: {}
|
});
|
|
const openDialog = () => {
|
state.show = true;
|
};
|
|
const getStartData = async () => {
|
const { data } = await addDefaultRowApi(`recordCode=`)
|
|
};
|
|
const handleCancel = () => {
|
state.show = false;
|
state.loading = false;
|
};
|
|
const handleConfirm = () => {};
|
return {
|
...toRefs(state),
|
closeImg,
|
handleCancel,
|
openDialog,
|
handleConfirm,
|
};
|
},
|
};
|
</script>
|
|
<style lang="less" scoped>
|
.start-dialysis-container {
|
::v-deep(.el-dialog) {
|
padding: 0;
|
border-radius: 6px;
|
overflow: hidden;
|
}
|
::v-deep(.el-dialog__footer) {
|
padding: 4px;
|
}
|
::v-deep(.el-upload-dragger) {
|
height: 65px;
|
padding: 0 !important;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
}
|
::v-deep(.el-upload-dragger .el-icon--upload) {
|
display: none;
|
}
|
::v-deep(.el-dialog__header) {
|
padding-bottom: 6px;
|
}
|
.start-dialysis-header {
|
position: relative;
|
height: 16px;
|
background: #769aff;
|
.header-title {
|
position: absolute;
|
left: 50%;
|
top: 50%;
|
transform: translateX(-50%) translateY(-50%);
|
font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;
|
font-weight: 500;
|
font-size: 8px;
|
color: #ffffff;
|
line-height: 11px;
|
text-align: center;
|
}
|
.header-close {
|
position: absolute;
|
top: 50%;
|
transform: translateY(-50%);
|
right: 6px;
|
width: 15px;
|
height: 15px;
|
transition: transform 0.2s;
|
|
&:active {
|
opacity: 0.6;
|
transform: translateY(-50%) scale(0.95);
|
}
|
}
|
}
|
.start-dialysis-content {
|
padding: 0 12px 0px 12px;
|
margin-bottom: 4px;
|
border-bottom: 1px solid #d8d8d8;
|
}
|
.my-button {
|
display: inline-block;
|
border-radius: 2px;
|
padding: 0px 10px;
|
font-family: PingFangSC, PingFang SC;
|
font-weight: 500;
|
font-size: 7px;
|
color: #ffffff;
|
line-height: 16px;
|
letter-spacing: 1px;
|
text-align: center;
|
font-style: normal;
|
transition: transform 0.1s ease, opacity 0.1s ease;
|
cursor: pointer;
|
&:active {
|
transform: scale(0.95);
|
opacity: 0.8;
|
}
|
|
&:not(:first-child) {
|
margin-left: 6px;
|
}
|
|
&.confirm {
|
background: #769aff;
|
}
|
&.cancel {
|
background: #bbc6dd;
|
}
|
&.refresh {
|
background: #e6a23c;
|
}
|
}
|
}
|
</style>
|