Bläddra i källkod

前端页面处理

oyq28 2 veckor sedan
förälder
incheckning
9f22d588bf
2 ändrade filer med 39 tillägg och 38 borttagningar
  1. 30 29
      pages/work/record/RecordList.vue
  2. 9 9
      pages/work/report/InspectionList.vue

+ 30 - 29
pages/work/record/RecordList.vue

@@ -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>
 

+ 9 - 9
pages/work/report/InspectionList.vue

@@ -2,14 +2,14 @@
 	<scroll-view scroll-y class="container">
 		<!-- Banner -->
 		<view class="banner">
-			<text class="banner-title">🧪 检查检验报告</text>
+			<text class="banner-title">🧪 检验记录</text>
 		</view>
 
 		<!-- 检查报告卡片列表 -->
 		<view v-if="reportList.length" class="card-list">
 			<view class="card" v-for="item in reportList" :key="item.id">
 				<view class="card-header">
-					<image :src="item.icon" class="card-icon" />
+					<!--<image :src="item.icon" class="card-icon" />-->
 					<view class="header-info">
 						<text class="item-title">{{ item.name }}</text>
 						<text class="item-status">{{ item.status }}</text>
@@ -41,25 +41,25 @@
 
 	const reportList = ref([{
 			id: 1,
-			name: '胸部CT检查',
+			name: '装配间隙',
 			icon: '/static/icons/ct.png',
 			status: '✅ 已出报告',
-			applyDate: '2025-06-10 09:15',
-			reportDate: '2025-06-10 17:30'
+			applyDate: '2025-08-20 09:15',
+			reportDate: '2025-08-20 17:30'
 		},
 		{
 			id: 2,
-			name: '血常规检验',
+			name: '装配间隙',
 			icon: '/static/icons/blood.png',
 			status: '✅ 已出报告',
-			applyDate: '2025-06-08 10:00',
-			reportDate: '2025-06-08 13:40'
+			applyDate: '2025-08-28 10:00',
+			reportDate: '2025-08-28 13:40'
 		}
 	])
 
 	const viewReport = (item) => {
 		uni.navigateTo({
-			url: `/pages/inspection/ReportDetail?id=${item.id}`
+			url: `/pages/work/report/ReportDetail?id=${item.id}`
 		})
 	}
 </script>