guoyujia 1 gadu atpakaļ
vecāks
revīzija
0d89bddf4c

+ 2 - 1
components/dialog-end-work/dialog-end-work.vue

@@ -15,7 +15,7 @@
 			<view class="table-item"><input class="input" v-model="workInfo.remark" placeholder="请输入废品原因" /></view>
 			<view class="list-title uni-row">
 				<text class="label">当前序是否完成</text>
-				<switch class="switch" @change="switchChange" color="rgba(255,85,85,1)" style="transform:scale(0.7)" />
+				<switch class="switch" @change="switchChange" color="rgba(255,85,85,1)" />
 			</view>
 			<view class="list-title"><text class="label">请选择设备:</text></view>
 			<!-- <scroll-view class="scroll-container" scroll-y> -->
@@ -113,6 +113,7 @@
 			.switch {
 				margin-top: -8rpx;
 				align-items: center;
+				transform:scale(0.7);
 			}
 
 			.equipment-container {

+ 5 - 28
components/dialog-lot/dialog-lot.vue

@@ -25,10 +25,10 @@
 		</view> -->
 		<!-- </scroll-view> -->
 		<view class="add-btn-container uni-row">
-			<button type="primary" class="btn" style="flex: 1;">确认</button>
+			<button type="primary" class="btn" >确认</button>
 		</view>
 		<view class="add-btn-container uni-row">
-			<button type="primary" class="btn" style="flex: 1;" @click="handleScanCode">扫码</button>
+			<button type="primary" class="btn" @click="handleScanCode">扫码</button>
 		</view>
 	</dialog-base>
 </template>
@@ -108,34 +108,11 @@
 			}
 
 		}
-
-		.equipment-container {
-			 width: 100%;
-			 height: 120rpx;
-			flex-wrap: wrap;	
-			justify-content: flex-start;
-			overflow: auto;
-			.item {
-				flex: 0 0 22%;
-				border: 1rpx solid #aaaaaa;
-				border-radius: 4rpx;
-				margin:8rpx 1.2%;
-				padding: 12rpx 0;
-				justify-content: center;
-				align-items: center;
-
-				.label {
-					font-size: 32rpx;
-				}
-			}
-			.selected {
-  border: 1px solid #1684fc;
-  /* 其他选中样式 */
-}
-		}
-
 		.add-btn-container {
 			margin-top: 32rpx;
+			.btn {
+				flex: 1;
+			}
 		}
 	}
 </style>

+ 35 - 40
components/dialog-turnoverTask/dialog-turnoverTask.vue

@@ -1,38 +1,42 @@
 <template>
-	<dialog-base ref="baseDialog" title="周转任务">
-		<view class="list-title uni-row"><text class="label">{{form['process']}}</text>
-		<text class="label">→</text>
-		<text class="label">{{form['car']}}</text></view>
+	<dialog-base ref="baseDialog" title="周转任务" >
+		<view class="list-item">
+		<view v-for="(item, index) in confirmTurnoverList"  :key="index" >
+		<view class="list-title uni-row"><text class="label">{{item['process']}}</text>
+		<text class="label">→</text> 
+		<text class="label">{{item['car']}}</text></view>
 		<view class="list-container">
 			<view class="list-container-item uni-row">
 				<text class="label">批次</text>
-				<text class="label value">{{form['batch']}}</text>
+				<text class="label value">{{item['batch']}}</text>
 			</view>
 			<view class="list-container-item uni-row">
 				<text class="label">箱数</text>
-				<text class="label value">{{form['cases']}}</text>
+				<text class="label value">{{item['cases']}}</text>
 			</view>
 			<view class="list-container-item uni-row">
 				<text class="label">数量</text>
-				<text class="label value">{{form['amount']}}</text>
+				<text class="label value">{{item['amount']}}</text>
 			</view>
 			<view class="list-container-item uni-row" >
 				<text class="label">箱号</text>
-				<text class="label value">{{form['caseNumber']}}</text>
+				<text class="label value">{{item['caseNumber']}}</text>
 			</view>
 			<view class="list-container-item uni-row" >
 				<text class="label">申请时间</text>
-				<text class="label value">{{form['applyTime']}}</text>
+				<text class="label value">{{item['applyTime']}}</text>
 			</view>
 			<view class="list-container-item uni-row" >
 				<text class="label">申请人</text>
-				<text class="label value">{{form['applier']}}</text>
+				<text class="label value">{{item['applier']}}</text>
 			</view>
 		</view>
-		
+		</view>
+		</view>
 	<view class="add-btn-container uni-row">
-		<button type="primary" class="btn" style="flex: 1;">确认周转</button>
+		<button type="primary" class="btn" >确认周转</button>
 	</view>
+	
 	</dialog-base>
 </template>
 
@@ -42,17 +46,19 @@
 		getCurrentInstance
 	} from 'vue'
 	 const baseDialog = ref(null)
-	const form = ref({
-						process: "粗磨",
-						car: "NC车",
-						batch: "DC23727410070",
-						cases: 5,
-						amount:780,
-						caseNumber: "X12522、X55222、X15522、J5211、J5211",
-						applyTime:"2023-06-15 15:52:12",
-						applier:"王伟"
-					})
+	 const confirmTurnoverList = ref([])
+	// const form = ref({
+	// 					process: "粗磨",
+	// 					car: "NC车",
+	// 					batch: "DC23727410070",
+	// 					cases: 5,
+	// 					amount:780,
+	// 					caseNumber: "X12522、X55222、X15522、J5211、J5211",
+	// 					applyTime:"2023-06-15 15:52:12",
+	// 					applier:"王伟"
+	// 				})
 const open = (data) => {
+	confirmTurnoverList.value = data
 			// console.log(dialog.value)
 			baseDialog.value.open()
 		}
@@ -72,7 +78,10 @@ const open = (data) => {
 				font-weight: bold;
 			}
 		}
-		
+		.list-item {
+			 overflow: auto;
+			 height:700rpx;
+		}
 		.list-container {
 			width: 100%;
 			display: flex;
@@ -98,25 +107,11 @@ const open = (data) => {
 			}
 		
 		}
-		
-		.equipment-container {
-		
-			.item {
-				flex: 1;
-				border: 1rpx solid #aaaaaa;
-				border-radius: 4;
-				margin: 0 8rpx;
-				padding: 12rpx 0;
-				justify-content: center;
-				align-items: center;
-				
-				.label {
-					font-size: 32rpx;
-				}
-			}
-		}
 	.add-btn-container {
 			margin-top: 32rpx;
+			.btn {
+				flex: 1;
+			}
 		}
 	}
 </style>

+ 37 - 22
pages/addNewBatch/index.vue

@@ -14,7 +14,7 @@
 			</view>
 			<view class='middle'>
 				<view class='segment'></view>
-				<uni-icons type="link" size="30" style="margin: 10rpx;  transform: rotate(135deg);"></uni-icons>
+				<uni-icons type="link" size="30" class="link"></uni-icons>
 				<view class='segment'></view>
 			</view>
 			<view>
@@ -26,9 +26,7 @@
 					</view>
 				</view>
 				<view>
-					<button style='background-color: rgba(0, 226, 166,1);
-						   color: white;margin: 20rpx auto;
-						   width: 80%;' @click='scanCodeHandle()'>扫码</button>
+					<button class="btn"  @click='scanCodeHandle()'>扫码</button>
 				</view>
 			</view>
 			<view class='middle'>
@@ -43,19 +41,19 @@
 					<!-- <input id="HeatNo" class="uni-input" v-model="basicInfo.heatNo" placeholder="请填写" /> -->
 					<text id="HeatNo" class="uni-input">{{basicInfo.heatNo}}</text>
 				</view>
-				<view class='segment' style="width: 90%;margin: 20rpx auto;"></view>
+				<view class='segment basicInfo' ></view>
 				<view class="uni-row info">
 					<label for="manufacturer">厂家</label>
 					<!-- <input id="manufacturer" class="uni-input" v-model="basicInfo.manufacturer" placeholder="请填写" /> -->
 					<text id="manufacturer" class="uni-input">{{basicInfo.manufacturer}}</text>
 				</view>
-				<view class='segment' style="width: 90%;margin: 20rpx auto;"></view>
+				<view class='segment basicInfo' ></view>
 				<view class="uni-row info">
-					<label for="incomingInfo">来料信息</label> 
+					<label for="incomingInfo">来料信息</label>
 					<!-- <input id="incomingInfo" class="uni-input" v-model="basicInfo.incomingInfo" placeholder="请填写" /> -->
 					<text id="incomingInfo" class="uni-input">{{basicInfo.incomingInfo}}</text>
 				</view>
-				<view class='segment' style="width: 90%;margin: 20rpx auto;"></view>
+				<view class='segment basicInfo' ></view>
 			</view>
 		</view>
 		<view class='bottom uni-row'>
@@ -77,7 +75,7 @@
 	import {
 		saveDayWork
 	} from '@/api/business/dayWork.js'
-	
+
 	onReady(() => {
 		init();
 	})
@@ -85,13 +83,14 @@
 	const batchNoCheck = ref(false)
 	const batchNoList = ref([])
 	const vehicleList = ref([{
-		carrierId: '1731475038666575873',
-		carrierCode: '0001'
-	},
-	{
-		carrierId: '1731467623237767169',
-		carrierCode: '0002'
-	}])
+			carrierId: '1731475038666575873',
+			carrierCode: '0001'
+		},
+		{
+			carrierId: '1731467623237767169',
+			carrierCode: '0002'
+		}
+	])
 	const basicInfo = ref({
 		heatNo: 'cs222',
 		manufacturer: 'DMS',
@@ -99,7 +98,7 @@
 	})
 	const selected = ref(null)
 	const boxNo = ref(null)
-	const productPlanId = ref('0') 
+	const productPlanId = ref('0')
 	const dayWork = ref({})
 
 	function init() {
@@ -139,16 +138,16 @@
 	function addHandle() {
 		dayWork.value.dayworkCarriers = vehicleList.value;
 		saveDayWork(dayWork.value).then(res => {
-			if(res.code === 200){
+			if (res.code === 200) {
 				uni.showToast({
 					icon: 'success',
 					title: '添加成功',
 					duration: 2000
 				});
 				uni.navigateTo({
-					url:'/pages/batchReporting/index'
+					url: '/pages/batchReporting/index'
 				})
-			}else{
+			} else {
 				uni.showToast({
 					icon: 'error',
 					title: '添加失败',
@@ -156,7 +155,7 @@
 				});
 			}
 		})
-	} 
+	}
 </script>
 
 <style lang="scss">
@@ -197,6 +196,17 @@
 			font-size: 36rpx;
 			font-weight: bold;
 		}
+
+		.btn {
+			background-color: rgba(0, 226, 166, 1);
+			color: white;
+			margin: 20rpx auto;
+			width: 80%;
+		}
+		.basicInfo {
+			width: 90%;
+			margin: 20rpx auto;
+		}
 	}
 
 	.batchNo {
@@ -250,7 +260,12 @@
 		display: flex;
 		flex-direction: row;
 		align-items: center;
-		justify-content: center
+		justify-content: center;
+
+		.link {
+			margin: 10rpx;
+			transform: rotate(135deg);
+		}
 	}
 
 	.segment {

+ 7 - 3
pages/batchReporting/index.vue

@@ -1,8 +1,8 @@
 <template>
-	<view class="uni-column" style="height: 100%; background-color: #f5f5f5;">
+	<view class="uni-column container" >
 		<scroll-view class="scroll-container" scroll-y>
 			<view v-for="(item, index) in listData" :key="index" class="list-item" @click="handleToreportingForWork">
-				<view class="title-container uni-row" style="justify-content: flex-start;">
+				<view class="title-container uni-row">
 					<view class="title uni-row">
 						<text class="label">批次号:</text>
 						<text class="label code">{{ item['productionPlanNo'] }}</text>
@@ -108,6 +108,10 @@
 </script> 
 
 <style lang="scss">
+	.container {
+		height: 100%; 
+		background-color: #f5f5f5;
+	}
 	.scroll-container {
 		width: 92%;
 		margin: 24rpx auto 0 auto;
@@ -122,7 +126,7 @@
 		margin-bottom: 24rpx;
 		border-radius: 10rpx;
 		.title-container {
-			
+			justify-content: flex-start;
 			margin-top: 8rpx;
 			margin-bottom: 16rpx;
 

+ 5 - 1
pages/changeBox/index.vue

@@ -26,7 +26,7 @@
 					<input class='inp' v-model='secondInpValue' />
 				</view>
 				<view>
-					<button class='submit' style='background-color: rgba(0, 226, 166,1);color: white'>扫码</button>
+					<button class='submit code' >扫码</button>
 				</view>
 			</view>
 		</view>
@@ -79,6 +79,10 @@
 		line-height: 80rpx;
 		padding-left: 0;
 	}
+	.code {
+		background-color: rgba(0, 226, 166,1);
+		color: white;
+	}
 
 	.content {
 		width: 90%;

+ 62 - 32
pages/handlingList/index.vue

@@ -11,7 +11,8 @@
 		<!-- 待周转页面 -->
 		<view class="padding-container" v-if='pendingShow'>
 			<scroll-view class="scroll-container" scroll-y>
-				<view v-for="(item, index) in listData" :key="index" class="list-item">
+				<view v-for="(item, index) in listData" :key="index"
+					:class="{'list-item':true,'selected':isSelected(item)}" @click="handleSelection(item,index)">
 					<view class="title-container uni-row">
 						<view class="title uni-row">
 							<text class="label">{{ item['door'] }}</text>
@@ -49,7 +50,7 @@
 				</view>
 			</scroll-view>
 			<view class="bottom-btn-container uni-row">
-				<button class="bottom-btn">开始周转</button>
+				<button class="bottom-btn" @click="handleStartTurnover">开始周转</button>
 			</view>
 		</view>
 		<!-- 周转中页面 -->
@@ -83,7 +84,7 @@
 						</view>
 					</view>
 				</view>
-				
+
 				<view class='item-container'>
 					<view class="turnover-title uni-row">
 						<view class="uni-row">
@@ -120,8 +121,13 @@
 </template>
 
 <script setup>
-	import { ref } from 'vue'
-	import { onLoad, onReady } from '@dcloudio/uni-app'
+	import {
+		ref
+	} from 'vue'
+	import {
+		onLoad,
+		onReady
+	} from '@dcloudio/uni-app'
 	// import pending from './pending';
 	// import turnover from './turnover';
 	const pendingTitle = ref('待周转')
@@ -135,6 +141,20 @@
 	const turnoverClass = ref({
 		selecter: false
 	})
+	const isSelected = (item) => {
+		return selection.value.includes(item);
+	}
+
+	const handleSelection = (item, index) => {
+		const buttonIndex = selection.value.findIndex(selectedItem => selectedItem === item);
+		if (buttonIndex > -1) {
+			selection.value.splice(buttonIndex, 1); // 取消选中
+		} else {
+			selection.value.push(item); // 选中
+		}
+		console.log(selection.value, "selection");
+	}
+	const selection = ref([])
 	const pendingShow = ref(true)
 	const turnoverShow = ref(false)
 	const listData = ref([{
@@ -147,7 +167,7 @@
 			caseNumber: "X12522、X55222、X15522、J5211、J5211",
 			applyTime: "2023-06-15 15:52:12",
 			applier: "王伟"
-	
+
 		},
 		{
 			door: "B门",
@@ -191,11 +211,16 @@
 			boxno: 'X12522、X552222、X15522、J5211、J5112'
 		}
 	])
-	
+
+	function handleStartTurnover() {
+		uni.navigateTo({
+			url: "/pages/startTurnover/index?turnoverList=" + JSON.stringify(selection.value)
+		})
+	}
 	onReady(() => {
 		init()
 	})
-	
+
 	const init = () => {
 		for (let i = 0; i < products.value.length; i++) {
 			sum.value += parseInt(products.value[i]['cases'].toString());
@@ -228,6 +253,10 @@
 		background-color: #f5f5f5;
 	}
 
+	.selected {
+		border: 1px solid #1684fc;
+	}
+
 	.nav {
 		justify-content: space-around;
 		width: 100%;
@@ -259,7 +288,7 @@
 		bottom: 0rpx;
 		left: 0;
 		background-color: #f5f5f5;
-		
+
 		.scroll-container {
 			position: absolute;
 			top: 24rpx;
@@ -267,7 +296,7 @@
 			bottom: 136rpx;
 			left: 0;
 		}
-		
+
 		.bottom-btn-container {
 			height: 10%;
 			position: absolute;
@@ -279,7 +308,7 @@
 			padding: 16rpx 32rpx;
 			align-items: center;
 			background-color: #fff;
-		
+
 			.bottom-btn {
 				// padding-left: 0;
 				// padding-top: 4rpx;
@@ -290,7 +319,7 @@
 			}
 		}
 	}
-	
+
 	.padding-container {
 		.scroll-container {
 			.list-item {
@@ -300,21 +329,21 @@
 				margin: 0 24rpx;
 				margin-bottom: 24rpx;
 				border-radius: 8rpx;
-			
+
 				.title-container {
 					justify-content: space-between;
 					margin-top: 8rpx;
 					margin-bottom: 16rpx;
-			
+
 					.title {
 						height: 48rpx;
 						align-items: center;
-			
+
 						.label {
 							color: #1684fc;
 							font-size: 32rpx;
 							font-weight: bold;
-			
+
 							&.code {
 								color: #000000;
 								margin-left: 32rpx;
@@ -322,26 +351,26 @@
 						}
 					}
 				}
-			
+
 				.item-info {
 					margin-bottom: 16rpx;
-			
+
 					.label {
 						font-size: 28rpx;
 						width: 160rpx;
 						color: #808080;
-			
+
 						&.right {
 							flex: 1;
 							color: #000000;
 						}
 					}
 				}
-			
+
 				.right-info {
 					justify-content: flex-end;
 					margin-top: 2rpx;
-			
+
 					.label {
 						font-size: 28rpx;
 						color: #808080;
@@ -350,7 +379,7 @@
 			}
 		}
 	}
-	
+
 	/* 周转中样式 */
 	.turnover-container {
 		.scroll-container {
@@ -360,38 +389,39 @@
 				margin-bottom: 24rpx;
 				background-color: rgba(255, 255, 255, 1);
 				border-radius: 8rpx;
-			
+
 				.turnover-title {
 					width: auto;
 					justify-content: space-between;
 					margin: 16rpx;
 					font-weight: bold;
-			
+
 					.label {
 						font-size: 28rpx;
 						color: #808080;
 					}
 				}
-			
+
 				.list-container {
 					margin: 0 24rpx 16rpx 24rpx;
-					
+
 					.list-container-item {
 						border-bottom: 1px solid #999999;
 						padding: 12rpx 8rpx;
 						background-color: #EEF0F5;
-						
+
 						&.product-description {
 							background-color: #ECF5FF;
 						}
-				
+
 						.label {
 							font-size: 28rpx;
 							color: #999999;
-							
+
 							&.left-value {
 								width: 152rpx;
 							}
+
 							&.right-value {
 								flex: 1;
 								color: #000000;
@@ -399,19 +429,19 @@
 						}
 					}
 				}
-			
+
 				.title-color {
 					color: rgba(22, 132, 252, 1);
 					font-size: 32rpx;
 					font-weight: bold;
 				}
-			
+
 				.second-info {
 					font-size: 32rpx;
 					font-weight: bold;
 					margin-left: 32rpx;
 				}
-			
+
 				.turnover-info {
 					color: rgba(128, 128, 128, 1);
 					position: absolute;

+ 105 - 71
pages/startTurnover/index.vue

@@ -1,8 +1,8 @@
 <template>
-	<view class="uni-column" style="height: 100%; background-color: #f5f5f5;">
+	<view class="uni-column container" >
 		<scroll-view class="scroll-container" scroll-y>
-			<view v-for="(item, index) in listData" :key="index" :class="{'list-item':true,'selected':isSelected(index)}"
-				@click="handleSelection(index)">
+			<view v-for="(item, index) in listData" :key="index" :class="{'list-item':true,'selected':isSelected(item)}"
+				@click="handleSelection(item,index)">
 				<view class="title-container uni-row">
 					<view class="title uni-row">
 						<text class="label">{{ item['door'] }}</text>
@@ -12,7 +12,8 @@
 					</view>
 
 					<view class="right-info uni-row">
-						<view class="uni-row"><text class="label right">删除</text></view>
+						<view class="uni-row"><text class="label right" @click="handleDeleteTurnover(item)">删除</text>
+						</view>
 					</view>
 				</view>
 				<view class="item-info uni-row"> <text class="label ">产品描述</text>
@@ -33,7 +34,7 @@
 		</scroll-view>
 		<view class="bottom uni-row">
 			<button class="bottom-btn left-btn ">继续扫码</button>
-			<button class="bottom-btn right-btn" @click="handleTurnoverTask(null)">确认周转</button>
+			<button class="bottom-btn right-btn" @click="handleStartTurnover(null)">确认周转</button>
 		</view>
 		<dialog-turnoverTask ref="turnoverTaskDialog" />
 	</view>
@@ -51,86 +52,119 @@
 	} from '@dcloudio/uni-app'
 
 
-	onLoad(() => {
+	onLoad((option) => {
+		listData.value = JSON.parse(option.turnoverList);
 
 	})
 	const active = ref(false)
-	const selection =ref([])
+	const selection = ref([])
 	const turnoverTaskDialog = ref(null)
-	const listData = ref([{
-			door: "A门",
-			process: "粗磨",
-			car: "NC车",
-			description: "万博_039561419_15*110.1",
-			batch: "DC23727410070",
-			cases: 5,
-			caseNumber: "X12522、X55222、X15522、J5211、J5211"
-
-		},
-		{
-			door: "A门",
-			process: "粗磨",
-			car: "NC车",
-			description: "万博_039561419_15*110.1",
-			batch: "DC23727410070",
-			cases: 5,
-			caseNumber: "X12522、X55222、X15522、J5211、J5211"
-
-		},
-		{
-			door: "A门",
-			process: "粗磨",
-			car: "NC车",
-			description: "万博_039561419_15*110.1",
-			batch: "DC23727410070",
-			cases: 5,
-			caseNumber: "X12522、X55222、X15522、J5211、J5211"
-
-		},
-		{
-			door: "A门",
-			process: "粗磨",
-			car: "NC车",
-			description: "万博_039561419_15*110.1",
-			batch: "DC23727410070",
-			cases: 5,
-			caseNumber: "X12522、X55222、X15522、J5211、J5211"
-
-		},
-		{
-			door: "A门",
-			process: "粗磨",
-			car: "NC车",
-			description: "万博_039561419_15*110.1",
-			batch: "DC23727410070",
-			cases: 5,
-			caseNumber: "X12522、X55222、X15522、J5211、J5211"
+	const listData = ref([
+		//{
+		// 		door: "A门",
+		// 		process: "粗磨",
+		// 		car: "NC车",
+		// 		description: "万博_039561419_15*110.1",
+		// 		batch: "DC23727410070",
+		// 		cases: 5,
+		// 		caseNumber: "X12522、X55222、X15522、J5211、J5211"
 
-		}
+		// 	},
+		// 	{
+		// 		door: "A门",
+		// 		process: "粗磨",
+		// 		car: "NC车",
+		// 		description: "万博_039561419_15*110.1",
+		// 		batch: "DC23727410070",
+		// 		cases: 5,
+		// 		caseNumber: "X12522、X55222、X15522、J5211、J5211"
+
+		// 	},
+		// 	{
+		// 		door: "A门",
+		// 		process: "粗磨",
+		// 		car: "NC车",
+		// 		description: "万博_039561419_15*110.1",
+		// 		batch: "DC23727410070",
+		// 		cases: 5,
+		// 		caseNumber: "X12522、X55222、X15522、J5211、J5211"
+
+		// 	},
+		// 	{
+		// 		door: "A门",
+		// 		process: "粗磨",
+		// 		car: "NC车",
+		// 		description: "万博_039561419_15*110.1",
+		// 		batch: "DC23727410070",
+		// 		cases: 5,
+		// 		caseNumber: "X12522、X55222、X15522、J5211、J5211"
+
+		// 	},
+		// 	{
+		// 		door: "A门",
+		// 		process: "粗磨",
+		// 		car: "NC车",
+		// 		description: "万博_039561419_15*110.1",
+		// 		batch: "DC23727410070",
+		// 		cases: 5,
+		// 		caseNumber: "X12522、X55222、X15522、J5211、J5211"
+
+		// 	}
 
 	])
-	const handleStartTurnover = (data) => {
-		let _data = data ?? {}
+	const handleStartTurnover = () => {
+		if(selection.value.length >0) {
+			turnoverTaskDialog.value.open(selection.value)
+		}
+		else {
+			uni.showToast({
+				title: '未选中周转内容',
+				icon:'error',
+				duration: 1000//1后消失
+			});
+		}
 		// 调用子组件中的方法
-		turnoverTaskDialog.value.open(_data)
+		
 	}
-	const isSelected = (index) => {
-	return	selection.value.includes(index)
+	const isSelected = (item) => {
+		return selection.value.includes(item);
 	}
-	const handleSelection = (index) => {
-		console.log(index)
-		
-		  const buttonIndex = selection.value.indexOf(index);
-		      if (buttonIndex > -1) {
-		        selection.value.splice(buttonIndex, 1); // 取消选中
-		      } else {
-		        selection.value.push(index); // 选中
-		      }
-			  console.log(selection.value)
+
+	const handleSelection = (item, index) => {
+		const buttonIndex = selection.value.findIndex(selectedItem => selectedItem === item);
+		if (buttonIndex > -1) {
+			selection.value.splice(buttonIndex, 1); // 取消选中
+		} else {
+			selection.value.push(item); // 选中
+		}
+		console.log(selection.value, "selection");
+	}
+
+	function handleDeleteTurnover(item) {
+		uni.showModal({
+			title: '提示', // 标题
+			content: '是否删除此条周转', // 提示内容
+			cancelText: "取消", // 取消按钮的文字
+			confirmText: "确认", // 确认按钮的文字
+			//点击确定之后执行的代码
+			success(res) {
+				if (res.confirm) {
+					const checkIndex = listData.value.findIndex(selectedItem => selectedItem === item);
+					if (checkIndex > -1) {
+						listData.value.splice(checkIndex, 1);
+					}
+				}
+			}
+		});
+
 	}
 </script>
 
 <style lang="scss">
+	.container {
+		height: 100%; 
+		background-color: #f5f5f5;
+	}
 	.scroll-container {
 		position: absolute;
 		top: 24rpx;