From 162eddd7467adfe5de7a1a468e54ea00b2febce3 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期二, 22 十月 2024 09:26:39 +0800
Subject: [PATCH] 1.沣沣APP   更新优化

---
 pages/grzx/gzcl.vue |   50 +++++++++++++++++++++-----------------------------
 1 files changed, 21 insertions(+), 29 deletions(-)

diff --git a/pages/grzx/gzcl.vue b/pages/grzx/gzcl.vue
index df15aed..02b5539 100644
--- a/pages/grzx/gzcl.vue
+++ b/pages/grzx/gzcl.vue
@@ -4,7 +4,7 @@
 		<view class="mainContent" :style="{maxHeight:'1600rpx',overflow: 'scroll'}">
 			<view>
 				<u-gap height="10" bgColor="#eff0f1"></u-gap>
-				<view class="head" :style="{height:detailOrderArray.find(i=>i.unprice===0)?'140rpx':'80rpx'}">
+				<view class="head" :style="{height:'80rpx'}">
 					<view class="head_block">
 						<view class="head_left marginLeft20">
 							<!-- <view class="head_bar"></view> -->
@@ -52,7 +52,7 @@
 				</view>
 				<u-gap height="10" bgColor="#eff0f1"></u-gap>
 				<view class="head">
-					<view class="head_block flex_column" :style="{minHeight:!custom?'230rpx':'130rpx'}">
+					<view class="head_block flex_column" :style="{minHeight:!custom?'210rpx':'130rpx'}">
 						<view v-if="!custom" class="flex_column"
 							style="display: flex;justify-content: space-around;width: 100%;">
 							<view class="" style="display: flex;justify-content: center;width: 100%;">
@@ -63,7 +63,8 @@
 							<!-- 	<view class='inputClass' style="margin:10rpx auto 0;">
 									<u--input placeholder="璇烽�夋嫨" border="surround" v-model="startDate"></u--input>
 								</view> -->
-							<u-button type="info" icon='calendar' iconColor="#0659FF" size="" @click="calendarClick"
+							<!-- icon='calendar' -->
+							<u-button type="info" iconColor="#0659FF" size="" @click="calendarClick"
 								:text="calendarRange">
 							</u-button>
 
@@ -74,8 +75,8 @@
 								<view class="number">{{ parseFloat(form.report_qty)}}</view>
 							</view>
 							<view class="head_block_item flex_column">
-								<view class="titleFont">鑹簾鎵i櫎</view>
-								<view class="number">{{ parseFloat(form.userngbadmoney)}}</view>
+								<view class="titleFont">涓嶈壇鏁伴噺</view>
+								<view class="number">{{ parseFloat(form.userngbadqty)}}</view>
 							</view>
 							<view class="head_block_item flex_column">
 								<view class="titleFont">宸ヨ祫鏀跺叆(鍏�)</view>
@@ -84,9 +85,9 @@
 						</view>
 					</view>
 				</view>
-				<u-gap height="20" bgColor="#eff0f1"></u-gap>
+				<u-gap height="10" bgColor="#eff0f1"></u-gap>
 				<view :style="{maxHeight:!custom?'830rpx':'960rpx',overflow: 'scroll'}">
-					<view v-for="(item,index) in detailOrderArray" :key="key">
+					<view v-for="(item,index) in detailOrderArray" :key="item.wo_code">
 						<view class="head">
 							<view
 								style="min-height: 100rpx; display: flex;justify-content: space-between; margin: 20rpx;">
@@ -109,7 +110,7 @@
 									</view>
 									<view class="lineH50">
 										<view class="titleFont">
-											鎶ュ伐锛�
+											鍚堟牸锛�
 										</view>
 										<view class="contentFont">
 											{{item.report_qty}}
@@ -117,28 +118,20 @@
 									</view>
 									<view class="lineH50">
 										<view class="titleFont">
-											宸ュ簾鏂欏簾锛�
+											宸ュ簾锛�
 										</view>
 										<view class="contentFont">
-											<!-- 	{{item.bad_qty}} -->
+											{{item.laborbad_qty}}
 										</view>
 									</view>
-									<!-- 	<view class="lineH50">
+									<view class="lineH50">
 										<view class="titleFont">
-											鐝粍锛�
+											鍗曚环锛�
 										</view>
 										<view class="contentFont">
-											{{item.group_name}}
+											{{item.unprice}}
 										</view>
 									</view>
-									<view class="lineH50" v-if="$company==='A'">
-										<view class="titleFont">
-											鍒嗛厤姣斾緥锛�
-										</view>
-										<view class="contentFont">
-											{{item.ratio}} %
-										</view>
-									</view> -->
 								</view>
 								<view class="flex_column" style="width: 35%;">
 									<view class="lineH50">
@@ -167,24 +160,24 @@
 									</view>
 									<view class="lineH50" :style="{color:item.unprice===0?'red':''}">
 										<view class="titleFont">
-											鍗曚环锛�
+											鏂欏簾锛�
 										</view>
 										<view class="contentFont">
-											{{item.unprice}}
+											{{item.materielbad_qty}}
 										</view>
 									</view>
-									<view class="lineH50">
+									<!-- 		<view class="lineH50">
 										<view class="titleFont">
 											浜烘暟锛�
 										</view>
 										<view class="contentFont">
 											{{item.colum}}
 										</view>
-									</view>
+									</view> -->
 								</view>
 							</view>
 						</view>
-						<u-gap height="20" v-if="index!==detailOrderArray.length" bgColor="#eff0f1"></u-gap>
+						<u-gap height="10" v-if="index!==detailOrderArray.length" bgColor="#eff0f1"></u-gap>
 					</view>
 				</view>
 			</view>
@@ -273,10 +266,9 @@
 			async getData() {
 				const data = {
 					compute: this.compute ? 'last' : 'contin',
-
 					Ratetime: this.calendarRange
 				}
-				const res = await PieceRateWage(this.global.formatData(data))
+				const res = await PieceRateWage(data)
 				if (res.code === '200') {
 					this.form = res.data.dt0[0]
 					this.detailOrderArray = res.data.dt1
@@ -364,7 +356,7 @@
 	}
 
 	::v-deep .uicon-calendar {
-		font-size: 28rpx !important;
+		font-size: 20rpx !important;
 	}
 
 	.lineH50 {

--
Gitblit v1.9.3