zx hai 1 ano
pai
achega
a165887d61
Modificáronse 1 ficheiros con 38 adicións e 26 borrados
  1. 38 26
      components/dialog-lotReporting/dialog-lotReporting.vue

+ 38 - 26
components/dialog-lotReporting/dialog-lotReporting.vue

@@ -2,37 +2,37 @@
 	<dialog-base class="dialog-body" ref="baseDialog" title="添加批次报工">
 		<view style="overflow: auto;">
 			<!-- <view v-for="(item, index) in lotData" :key="index" class="list-item"> -->
-				<view class="item-info uni-row">
-					<text class="label">批次号</text>
-					<text class="label right">{{ lotData.map(v => v.lotCode).join(",") }}</text>
-				</view>
+			<view class="item-info uni-row">
+				<text class="label">批次号</text>
+				<text class="label right">{{ lotData.map(v => v.lotCode).join(",") }}</text>
+			</view>
 			<!-- 	<view class="item-info uni-row">
 					<text class="label">生产计划单号</text>
 					<text class="label right">{{ item['productionPlanNo'] }}</text>
 				</view> -->
-				<view class="item-info uni-row">
-					<text class="label">产品描述</text>
-					<text class="label right">{{ item['productDescription'] }}</text>
-				</view>
-				<view class="item-info uni-row">
-					<text class="label">箱号</text>
-					<text class="label right">{{ item['carrierName'] }}</text>
-				</view>
-				<view class="item-info uni-row">
-					<text class="label">当前序</text>
-					<view class="label right uni-row" style="display: flex; flex-direction: row; flex-wrap: wrap;">
-						<view>{{ item['process'] ? item['process'].processAlias : '-' }}
-						</view>
-						<view style="color:  #1684fc;" @click.stop="handleClickProcessList(item)">(&nbsp;工艺列表&nbsp;)
-						</view>
+			<view class="item-info uni-row">
+				<text class="label">产品描述</text>
+				<text class="label right">{{ item['productDescription'] }}</text>
+			</view>
+			<view class="item-info uni-row">
+				<text class="label">箱号</text>
+				<text class="label right">{{ item['carrierName'] }}</text>
+			</view>
+			<view class="item-info uni-row">
+				<text class="label">当前序</text>
+				<view class="label right uni-row" style="display: flex; flex-direction: row; flex-wrap: wrap;">
+					<view>{{ item['process'] ? item['process'].processAlias : '-' }}
 					</view>
-				</view>
-				<view class="item-info uni-row">
-					<text class="label">下序</text>
-					<view class="label right uni-row">{{ item['nextProcess'] ? item['nextProcess'].processAlias : '-' }}
+					<view style="color:  #1684fc;" @click.stop="handleClickProcessList(item)">(&nbsp;工艺列表&nbsp;)
 					</view>
 				</view>
-				<!-- <view class='middle'>
+			</view>
+			<view class="item-info uni-row">
+				<text class="label">下序</text>
+				<view class="label right uni-row">{{ item['nextProcess'] ? item['nextProcess'].processAlias : '-' }}
+				</view>
+			</view>
+			<!-- <view class='middle'>
 					<view class='segment'></view>
 					<uni-icons type="paperclip" size="30" style="margin: 10rpx;"></uni-icons>
 					<view class='segment'></view>
@@ -57,7 +57,7 @@
 		<view>
 		</view>
 		<view style="z-index: 99999;">
-			<uni-drawer ref="showRight" mode="right" :mask-click="true">
+			<!-- <uni-drawer ref="showRight" mode="right" :mask-click="true">
 				<view class="scroll-view">
 					<scroll-view class="scroll-view-box" style="height:100%;">
 						<view style="width: 100%;text-align: center;;font-size: 48rpx;margin: 48rpx 0 24rpx 0;">工艺列表
@@ -70,6 +70,18 @@
 						</view>
 					</scroll-view>
 				</view>
+			</uni-drawer> -->
+			<uni-drawer ref="showRight" mode="right" :mask-click="true">
+				<view style="text-align: center; font-size: 48rpx; padding: 48rpx 0 24rpx 0;">工艺列表</view>
+				<view style="font-size: 24rpx;text-align: center;color: red; margin-bottom: 16rpx;">
+					仅显示当前工序后面工艺
+				</view>
+				<scroll-view scroll-y="true" style="height: 82%;" @touchmove.stop>
+					<view v-for="(item,index) in curProcessAfte" :key="index"
+						style="padding: 8rpx 5% 8rpx 14%; border-top: 1px solid #cccccc">
+						<text>{{ index + 1 }}.{{item.processAlias}}</text>
+					</view>
+				</scroll-view>
 			</uni-drawer>
 		</view>
 		<view class="add-btn-container uni-row">
@@ -101,7 +113,7 @@
 			default: () => {}
 		}
 	})
-	
+
 	const emit = defineEmits();
 	const baseDialog = ref(null)
 	const lotData = ref(null)