guoyujia vor 7 Monaten
Ursprung
Commit
adc43dc8ca

+ 5 - 5
pages/deliveryInspection/options.vue

@@ -48,16 +48,16 @@
 	}
 	function handleSelect() {
 		getInspectionStandardsList({
-				productId:processInspecion.value.lot.productId,
-				processId:processInspecion.value.lot.processId,
+				productId:productId.value,
+				processId:processId.value,
 				inspectionCode:"deliveryInspection",
 				standard:standard.value
 				}).then(res =>{
-					if(res.rows.length>0){
-					unfitInfos.value = res.rows
+					if(res.rows &&res.rows.length>0){
+					optionList.value = res.rows
 					  }
 					  else{
-						  unfitInfos.value = []
+						  optionList.value = []
 					  }
 		})
 	}

+ 5 - 5
pages/factoryInspection/options.vue

@@ -48,16 +48,16 @@
 	}
 	function handleSelect() {
 		getInspectionStandardsList({
-				productId:processInspecion.value.lot.productId,
-				processId:processInspecion.value.lot.processId,
+				productId:productId.value,
+				processId:processId.value,
 				inspectionCode:"factoryInspection",
 				standard:standard.value
 				}).then(res =>{
-					if(res.rows.length>0){
-					unfitInfos.value = res.rows
+					if(res.rows &&res.rows.length>0){
+					optionList.value = res.rows
 					  }
 					  else{
-						  unfitInfos.value = []
+						  optionList.value = []
 					  }
 		})
 	}

+ 5 - 5
pages/firstInspection/instrumentOptions.vue

@@ -48,16 +48,16 @@
 	}
 	function handleSelect() {
 		getInspectionStandardsList({
-				productId:processInspecion.value.lot.productId,
-				processId:processInspecion.value.lot.processId,
+				productId:productId.value,
+				processId:processId.value,
 				inspectionCode:"instrumentRoomInspection",
 				standard:standard.value
 				}).then(res =>{
-					if(res.rows.length>0){
-					unfitInfos.value = res.rows
+					if(res.rows &&res.rows.length>0){
+					optionList.value = res.rows
 					  }
 					  else{
-						  unfitInfos.value = []
+						  optionList.value = []
 					  }
 		})
 	}

+ 5 - 5
pages/firstInspection/options.vue

@@ -48,16 +48,16 @@
 	}
 	function handleSelect() {
 		getInspectionStandardsList({
-				productId:processInspecion.value.lot.productId,
-				processId:processInspecion.value.lot.processId,
+				productId:productId.value,
+				processId:processId.value,
 				inspectionCode:"firstArticleInspection",
 				standard:standard.value
 				}).then(res =>{
-					if(res.rows.length>0){
-					unfitInfos.value = res.rows
+					if(res.rows &&res.rows.length>0){
+					optionList.value = res.rows
 					  }
 					  else{
-						  unfitInfos.value = []
+						  optionList.value = []
 					  }
 		})
 	}

+ 5 - 5
pages/instrumentRoomInspection/options.vue

@@ -48,16 +48,16 @@
 	}
 	function handleSelect() {
 		getInspectionStandardsList({
-				productId:processInspecion.value.lot.productId,
-				processId:processInspecion.value.lot.processId,
+				productId:productId.value,
+				processId:processId.value,
 				inspectionCode:"instrumentRoomInspection",
 				standard:standard.value
 				}).then(res =>{
-					if(res.rows.length>0){
-					unfitInfos.value = res.rows
+					if(res.rows &&res.rows.length>0){
+					optionList.value = res.rows
 					  }
 					  else{
-						  unfitInfos.value = []
+						  optionList.value = []
 					  }
 		})
 	}

+ 5 - 5
pages/onSiteInspection/options.vue

@@ -48,16 +48,16 @@
 	}
 	function handleSelect() {
 		getInspectionStandardsList({
-				productId:processInspecion.value.lot.productId,
-				processId:processInspecion.value.lot.processId,
+				productId:productId.value,
+				processId:processId.value,
 				inspectionCode:"patrolInspection",
 				standard:standard.value
 				}).then(res =>{
-					if(res.rows.length>0){
-					unfitInfos.value = res.rows
+					if(res.rows &&res.rows.length>0){
+					optionList.value = res.rows
 					  }
 					  else{
-						  unfitInfos.value = []
+						  optionList.value = []
 					  }
 		})
 	}

+ 5 - 5
pages/outsourcedInspection/options.vue

@@ -48,16 +48,16 @@
 	}
 	function handleSelect() {
 		getInspectionStandardsList({
-				productId:processInspecion.value.lot.productId,
-				processId:processInspecion.value.lot.processId,
+				productId:productId.value,
+				processId:processId.value,
 				inspectionCode:"outsourcedInspector",
 				standard:standard.value
 				}).then(res =>{
-					if(res.rows.length>0){
-					unfitInfos.value = res.rows
+					if(res.rows &&res.rows.length>0){
+					optionList.value = res.rows
 					  }
 					  else{
-						  unfitInfos.value = []
+						  optionList.value = []
 					  }
 		})
 	}