Bladeren bron

车间报工

liuhairui 1 jaar geleden
bovenliggende
commit
369fa7c963
2 gewijzigde bestanden met toevoegingen van 21 en 11 verwijderingen
  1. 4 2
      src/view/performance/chejianbaogong.vue
  2. 17 9
      src/view/yunyin/shengchanguanli/shebeiyunxing.vue

+ 4 - 2
src/view/performance/chejianbaogong.vue

@@ -690,7 +690,6 @@
 					    </el-table-column>
 						
 						
-						
 		            <!-- <el-table-column prop="缺陷备注" label="缺陷及记录" width="720" /> -->
 					
 		            <el-table-column  prop="编号" label="编号" width="80" />
@@ -3490,7 +3489,10 @@ const zhichengDialog = async () => {
 		fujiastatus=0
 	}
 	
-	const response = await ProcessInspectionRecordsItemAdd(zhibiaoselectData.value);
+	// 使用filter方法过滤掉所有result为"不检测"的对象
+	const filteredData = zhibiaoselectData.value.filter(item => item.selected !== "不检测");
+	console.log(filteredData);
+	const response = await ProcessInspectionRecordsItemAdd(filteredData);
 	if (response.code === 0) {
 		  ElMessage({type: 'success',message: '成功'})
 		  InspectionRecord()

+ 17 - 9
src/view/yunyin/shengchanguanli/shebeiyunxing.vue

@@ -782,8 +782,7 @@
 		              :show-overflow-tooltip="true"
 		              border
 		              style="width:100%; height:310px;"
-		              :row-class-name="rowClassName"
-		          >
+		              :row-class-name="rowClassName">
 		              <el-table-column prop="检验项目" label="检验项目" width="270" />
 
 		              <el-table-column label="不检测" width="70">
@@ -2613,9 +2612,11 @@ const processInspectionRecordsItem = async (value) => {
 	  })
 
   }
-};
+};
+
 const zhichengDialog = async () => {
-	console.log(fujiaselectData.value)
+	console.log(zhibiaoselectData.value)
+	// return
 	let arr =[]
 	zhibiaoselectData.value.map(item=>{
 		if(item.zc==true){
@@ -2680,14 +2681,21 @@ const zhichengDialog = async () => {
 			return item
 		}
 
-	})
+	})
+	
+	console.log(arrs)
+	// return
 	if(fujiastatus==1){
 		const responses = await AdditionalInspectionRecordAdd(arrs);
 		fujiastatus=0
-	}
-	// const response = await ProcessInspectionRecordsItemAdd(arr);
-	const response = await ProcessInspectionRecordsItemAdd(zhibiaoselectData.value);
-	// const responses = await AdditionalInspectionRecordAdd(zhibiaoselectData.value);
+	}
+	
+	// 使用filter方法过滤掉所有result为"不检测"的对象
+	const filteredData = zhibiaoselectData.value.filter(item => item.selected !== "不检测");
+	console.log(filteredData);
+	// return false;
+	const response = await ProcessInspectionRecordsItemAdd(filteredData);
+	console.log(response);
 	if (response.code === 0) {
 		  ElMessage({
 		    type: 'success',