收费时间显示修改,调整其他页面样式
This commit is contained in:
parent
5fcd393373
commit
8526346432
@ -247,7 +247,7 @@
|
||||
<div class="form-footer">
|
||||
<div class="operator-info">
|
||||
<span>收费人员:{{ user?.nickname }}</span>
|
||||
<span v-if="selectedPatient?.chargetime" class="charge-time">
|
||||
<span v-if="selectedPatient?.chargeType" class="charge-time">
|
||||
收费时间:{{ formatDateTime(selectedPatient.chargetime) }}
|
||||
</span>
|
||||
</div>
|
||||
@ -623,7 +623,13 @@ const handlePrint = () => {
|
||||
ElMessage.info('打印功能开发中')
|
||||
}
|
||||
|
||||
// 修改确认收费方法
|
||||
// 添加格式化时间的辅助函数
|
||||
const formatSubmitDateTime = (date) => {
|
||||
const pad = (num) => String(num).padStart(2, '0')
|
||||
const d = new Date(date)
|
||||
return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`
|
||||
}
|
||||
|
||||
const handleSubmitCharge = async () => {
|
||||
try {
|
||||
if (!form.value.chargeType) {
|
||||
@ -636,12 +642,11 @@ const handleSubmitCharge = async () => {
|
||||
return
|
||||
}
|
||||
|
||||
// 更新患者收费信息
|
||||
const updateData = {
|
||||
id: selectedPatient.value.id,
|
||||
chargeType: form.value.chargeType,
|
||||
totalPrice: form.value.actualAmount,
|
||||
chargetime: new Date().toISOString()
|
||||
chargetime: new Date().getTime()
|
||||
}
|
||||
|
||||
await PatientApi.updatePatient(updateData)
|
||||
|
@ -6,14 +6,14 @@
|
||||
|
||||
<div class="filter-options">
|
||||
<div class="header-title">人员列表</div>
|
||||
<label class="radio-label">
|
||||
<!-- <label class="radio-label">
|
||||
<input type="radio" name="status" checked/>
|
||||
<span>未检</span>
|
||||
</label>
|
||||
<label class="radio-label">
|
||||
<input type="radio" name="status"/>
|
||||
<span>已检</span>
|
||||
</label>
|
||||
</label> -->
|
||||
</div>
|
||||
<div class="view-options">
|
||||
<div class="view-buttons">
|
||||
|
@ -85,17 +85,20 @@
|
||||
</el-table>
|
||||
|
||||
<div class="pagination-container">
|
||||
<el-pagination
|
||||
v-model:current-page="currentPage"
|
||||
v-model:page-size="pageSize"
|
||||
:page-sizes="[10, 20, 30, 50]"
|
||||
:total="total"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
small
|
||||
background
|
||||
/>
|
||||
<div class="pagination-right">
|
||||
<span class="total-info">共 {{ tableData.length }} 条</span>
|
||||
<el-pagination
|
||||
v-model:current-page="currentPage"
|
||||
v-model:page-size="pageSize"
|
||||
:page-sizes="[10, 20, 30, 50]"
|
||||
:total="total"
|
||||
layout="sizes, prev, pager, next, jumper"
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
small
|
||||
background
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<NewPackage ref="newPackageRef" @refresh-list="refreshList" />
|
||||
@ -689,12 +692,22 @@ const handleCommand = (command, item) => {
|
||||
|
||||
.pagination-container {
|
||||
margin-top: 20px;
|
||||
display: flex;
|
||||
justify-content: flex-end; /* 内容靠右对齐 */
|
||||
padding: 15px 20px; /* 增加左右内边距 */
|
||||
padding: 15px 20px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.pagination-right {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
}
|
||||
|
||||
.total-info {
|
||||
color: #606266;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.el-pagination {
|
||||
justify-content: flex-end; /* 分页组件内部靠右对齐 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user