49 lines
1.2 KiB
Vue
49 lines
1.2 KiB
Vue
<script setup lang="ts">
|
||
import Panel from '../common/Panel.vue';
|
||
import {defineEmits, defineModel,defineProps} from 'vue'
|
||
const {status}=defineProps(['status'])
|
||
const emit = defineEmits(['save','cancelReception','edit']);
|
||
const save = () => {
|
||
emit('save');
|
||
};
|
||
const deleteItem = () => {
|
||
emit('cancelReception');
|
||
};
|
||
const totalAmount = defineModel<any>()
|
||
const editItem= () => {
|
||
emit('edit');
|
||
};
|
||
</script>
|
||
|
||
<template>
|
||
<Panel :showTools="false" :showHeader="false">
|
||
<div class="footer">
|
||
<div>总金额:<span class="text icon">¥</span><span class="text">{{ totalAmount || '0' }}</span></div>
|
||
<div class="btn-group">
|
||
<el-button v-if="status" @click="deleteItem">取消接诊</el-button>
|
||
<el-button v-if="status" type="primary" @click="save">完成接诊</el-button>
|
||
<!-- <el-button v-if="status == 3" type="primary" @click="editItem">修改</el-button>-->
|
||
</div>
|
||
</div>
|
||
</Panel>
|
||
</template>
|
||
|
||
<style scoped lang="scss">
|
||
.footer {
|
||
height: 86px;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
font-weight: 400;
|
||
font-size: 22px;
|
||
color: #333333;
|
||
font-style: normal;
|
||
padding:0 24px 0 24px;
|
||
.icon{
|
||
font-size: 16px;
|
||
}
|
||
.text {
|
||
color: #FF282E
|
||
}
|
||
}
|
||
</style> |