浏览代码

批次报工

guoyujia 1 年之前
父节点
当前提交
14c1e869d7
共有 1 个文件被更改,包括 2 次插入10 次删除
  1. 2 10
      pages/reportingForWork/index.vue

+ 2 - 10
pages/reportingForWork/index.vue

@@ -2,7 +2,7 @@
 	<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':selectedItem === item}" @click="handleSelection(item)">
+				class="list-item">
 				<view class="title-container uni-row">
 					<view class="title uni-row">
 						<text class="label">批次号:</text>
@@ -66,7 +66,6 @@
 	
 	const listData = ref([])
 	const curSubDetails = ref({})
-	const selectedItem = ref({})
 	const endWorkDialog = ref(null)
 	const selectEquipment = ref(null)
 	const equipmentList = ref([])
@@ -87,14 +86,7 @@
 	function reset(){
 		init();
 	}
-	
-	function handleSelection(item){
-	   if (selectedItem.value === item) {
-	        selectedItem.value = null; 
-	      } else {
-	        selectedItem.value = item; 
-	      }
-	}
+
 	function handleShowEndWorkDialog(data){
 		// 调用子组件中的方法
 		endWorkDialog.value.open(data)