|
@@ -2,37 +2,37 @@
|
|
|
<scroll-view scroll-y class="container">
|
|
|
<view class="record-card" v-for="item in records" :key="item.id">
|
|
|
<view class="header-row">
|
|
|
- <text class="department">{{ item.department }}</text>
|
|
|
+ <text class="department">{{ item.index }}</text>
|
|
|
<text class="status" :class="{'status-cancelled': item.status === '已取消'}">{{ item.status }}</text>
|
|
|
</view>
|
|
|
|
|
|
<view class="info-row">
|
|
|
- <text class="label">医生:</text>
|
|
|
- <text class="value">{{ item.doctor }}({{ item.level }})</text>
|
|
|
+ <text class="label">产品码:</text>
|
|
|
+ <text class="value">{{ item.productNo }}</text>
|
|
|
</view>
|
|
|
|
|
|
<view class="info-row">
|
|
|
- <text class="label">午别:</text>
|
|
|
- <text class="value">{{ item.period }}</text>
|
|
|
+ <text class="label">拍照点:</text>
|
|
|
+ <text class="value">{{ item.position }}</text>
|
|
|
</view>
|
|
|
|
|
|
<view class="info-row">
|
|
|
- <text class="label">时间:</text>
|
|
|
- <text class="value">{{ item.date }}</text>
|
|
|
+ <text class="label">描述:</text>
|
|
|
+ <text class="value">{{ item.description }}</text>
|
|
|
</view>
|
|
|
|
|
|
<view class="info-row">
|
|
|
- <text class="label">号序:</text>
|
|
|
- <text class="value">{{ item.serialNumber }}</text>
|
|
|
+ <text class="label">位置编号:</text>
|
|
|
+ <text class="value">{{ item.positionNo }}</text>
|
|
|
</view>
|
|
|
|
|
|
<view class="info-row">
|
|
|
- <text class="label">费用:</text>
|
|
|
- <text class="value fee">¥{{ item.fee.toFixed(2) }}</text>
|
|
|
+ <text class="label">数量:</text>
|
|
|
+ <text class="value">{{ item.num }}</text>
|
|
|
</view>
|
|
|
|
|
|
- <button class="cancel-btn" v-if="item.status !== '已取消'" @click="cancel(item.id)">
|
|
|
- 取消挂号
|
|
|
+ <button class="cancel-btn" v-if="item.status === '未执行'" @click="cancel(item.id)">
|
|
|
+ 拍照
|
|
|
</button>
|
|
|
</view>
|
|
|
</scroll-view>
|
|
@@ -45,29 +45,30 @@
|
|
|
|
|
|
const records = ref([{
|
|
|
id: 1,
|
|
|
- department: '心血管内科',
|
|
|
- doctor: '张三',
|
|
|
- level: '主任医师',
|
|
|
- period: '上午',
|
|
|
+ index: '1',
|
|
|
+ productNo: 'YH0001',
|
|
|
+ position: '角焊缝',
|
|
|
+ description: '角片角焊缝',
|
|
|
date: '2025-06-05',
|
|
|
- serialNumber: 'A123',
|
|
|
- fee: 150,
|
|
|
- status: '已挂号',
|
|
|
+ positionNo: 'TD10-01',
|
|
|
+ num: 2,
|
|
|
+ status: '未执行',
|
|
|
},
|
|
|
{
|
|
|
id: 2,
|
|
|
- department: '神经内科',
|
|
|
- doctor: '李四',
|
|
|
- level: '副主任医师',
|
|
|
- period: '下午',
|
|
|
- date: '2025-06-06',
|
|
|
- serialNumber: 'B045',
|
|
|
- fee: 120,
|
|
|
- status: '已挂号',
|
|
|
+ index: '2',
|
|
|
+ productNo: 'YH0002',
|
|
|
+ position: '角焊缝',
|
|
|
+ description: '角片角焊缝',
|
|
|
+ date: '2025-06-05',
|
|
|
+ positionNo: 'TD10-01',
|
|
|
+ num: 3,
|
|
|
+ status: '未执行',
|
|
|
},
|
|
|
])
|
|
|
|
|
|
const cancel = (id) => {
|
|
|
+ /*
|
|
|
const index = records.value.findIndex((r) => r.id === id)
|
|
|
if (index !== -1) {
|
|
|
records.value[index].status = '已取消'
|
|
@@ -76,7 +77,7 @@
|
|
|
title: '挂号已取消',
|
|
|
icon: 'success',
|
|
|
})
|
|
|
- }
|
|
|
+ } */
|
|
|
}
|
|
|
</script>
|
|
|
|