소스 검색

新增代配详情

Tly 1 년 전
부모
커밋
cbac9a4c7d

+ 17 - 4
pages.json

@@ -124,7 +124,14 @@
 			"style": {
 				"navigationBarTitleText": "我的"
 			}
-		}
+		},{
+            "path" : "pages/ypczk/zkTask/zkTaskDetail/dpTaskDetail",
+            "style" :
+            {
+                "navigationBarTitleText": "代配质控任务详情",
+                "enablePullDownRefresh": false
+            }
+        }
         ,{
             "path" : "pages/ypczk/zkTask/zkTaskDetail/djTaskDetail",
             "style" :
@@ -132,7 +139,6 @@
                 "navigationBarTitleText": "代煎质控任务详情",
                 "enablePullDownRefresh": false
             }
-
         }
         ,{
             "path" : "pages/ypczk/zkTask/zkTaskDetail/djhjTaskDetail",
@@ -141,8 +147,15 @@
                 "navigationBarTitleText": "环境质控任务详情",
                 "enablePullDownRefresh": false
             }
-
-        }
+        },
+		{
+		    "path" : "pages/ypczk/zkTask/zkTaskDetail/noStartTaskDetail",
+		    "style" :
+		    {
+		        "navigationBarTitleText": "任务详情",
+		        "enablePullDownRefresh": false
+		    }
+		}
     ],
 	"globalStyle": {
 		"navigationBarTextStyle": "white",

+ 2 - 2
pages/ypczk/zkTask/zkTaskDetail/djTaskDetail.vue

@@ -9,8 +9,8 @@
 			</uni-section>
 			<!-- 代煎数 -->
 			<view class="djNum">
-				<view class="djNum_title">代7贴:<view class="djNum_text">1/10</view></view>
-				<view class="djNum_title">代14贴:<view class="djNum_text">2/10</view></view>
+				<view class="djNum_title">代7贴:<view class="djNum_text">1/10</view></view>
+				<view class="djNum_title">代14贴:<view class="djNum_text">2/10</view></view>
 			</view>
 			<!-- 代煎表格 -->
 			<view>

+ 72 - 0
pages/ypczk/zkTask/zkTaskDetail/dpTaskDetail.vue

@@ -0,0 +1,72 @@
+<template>
+	<view class="djTaskDetail">
+		<uni-card>
+			<!-- 代煎作业质控标题 -->
+			<uni-section title="代配作业质控" type="line" class="djTaskDetail_title">
+				<template v-slot:right>
+					<view class="right_title">不合格数<view class="right_text">1</view></view>
+				</template>
+			</uni-section>
+			<!-- 代煎数 -->
+			<view class="djNum">
+				<view class="djNum_title">代配7贴:<view class="djNum_text">1/10</view></view>
+				<view class="djNum_title">代配14贴:<view class="djNum_text">2/10</view></view>
+			</view>
+			<!-- 代煎表格 -->
+			<view>
+				<uni-table class="djDetail_table">
+					<!-- 表头行 -->
+					<uni-tr>
+						<uni-th align="center" width="155rpx">处方编号</uni-th>
+						<uni-th align="center" width="150rpx">贴数(贴)</uni-th>
+						<uni-th align="center" width="150rpx">平均应重(克)</uni-th>
+						<uni-th align="center" width="155rpx">平均实重(%)</uni-th>
+						<uni-th align="center" width="155rpx">平均误差(%)</uni-th>
+					</uni-tr>
+					<!-- 表格数据行 -->
+					<uni-tr v-for="(item, index) in pageData.djTaskList" :key="index">
+						<uni-td align="center">{{item.cfbh}}</uni-td>
+						<uni-td align="center">{{item.ts}}</uni-td>
+						<uni-td align="center">{{item.jcx}}</uni-td>
+						<uni-td align="center">{{item.jcx}}</uni-td>
+						<uni-td align="center">{{item.bhgx}}
+							<uni-icons type="right" @click="toDetail(item)"></uni-icons>
+						</uni-td>
+					</uni-tr>
+				</uni-table>
+			</view>
+		</uni-card>
+	</view>
+</template>
+
+<script setup>
+import { reactive } from "vue";
+const pageData=reactive({
+	djTaskList:[
+		{
+			cfbh:'111111',
+			ts:'1',
+			jcx:'1',
+			bhgx:'1'
+		},
+		{
+			cfbh:'222222',
+			ts:'2',
+			jcx:'2',
+			bhgx:'2'
+		}
+	]
+})
+
+// 跳转详情界面
+const toDetail=(e)=>{
+	console.log(e)
+	uni.navigateTo({
+		url:"/pages/ypczk/zkTask/djTask?status=get"
+	})
+}
+</script>
+
+<style lang="scss" scoped>
+@import './index.scss'
+</style>

+ 57 - 0
pages/ypczk/zkTask/zkTaskDetail/noStartTaskDetail.vue

@@ -0,0 +1,57 @@
+<template>
+	<view class="djTaskDetail">
+		<uni-card>
+			<!-- 代煎作业质控标题 -->
+			<uni-section title="代煎作业质控" type="line" class="djTaskDetail_title">
+				<template v-slot:right>
+					<view class="right_title">不合格数<view class="right_text">0</view></view>
+				</template>
+			</uni-section>
+			<!-- 代煎数 -->
+			<view class="djNum">
+				<view class="djNum_title">代煎7贴:<view class="djNum_text">0/10</view></view>
+				<view class="djNum_title">代煎14贴:<view class="djNum_text">0/10</view></view>
+			</view>
+			</uni-card>
+	</view>
+	
+	<view class="icon" style="display: flex;flex-direction: column;">
+		<image src="/static///noDate.png"
+			style="margin: 0 auto;height: 150px;width:250px;margin-top: 90px;"></image>
+		<text style="margin: 0 auto;color: rgba(102, 102, 102, 1);">
+			暂无数据
+		</text>
+	</view>
+</template>
+
+<script setup>
+import { reactive } from "vue";
+const pageData=reactive({
+	djTaskList:[
+		{
+			cfbh:'111111',
+			ts:'1',
+			jcx:'1',
+			bhgx:'1'
+		},
+		{
+			cfbh:'222222',
+			ts:'2',
+			jcx:'2',
+			bhgx:'2'
+		}
+	]
+})
+
+// 跳转详情界面
+const toDetail=(e)=>{
+	console.log(e)
+	uni.navigateTo({
+		url:"/pages/ypczk/zkTask/djTask?status=get"
+	})
+}
+</script>
+
+<style lang="scss" scoped>
+@import './index.scss'
+</style>

BIN
static/noDate.png