Bläddra i källkod

检测保存提示

jiangyu 3 år sedan
förälder
incheckning
0b388b3760
1 ändrade filer med 9 tillägg och 3 borttagningar
  1. 9 3
      src/components/jc/setTaskcd.vue

+ 9 - 3
src/components/jc/setTaskcd.vue

@@ -926,19 +926,25 @@
 					pesticides: that.testPesticides,
 					sample_id: that.sample_id
 				});
-				if (result.data.code == 0) {
+				if (result.data.data.disable_upload_data == '') {
 					this.$message({
 						type: 'success',
 						message: '检测成功!'
 					});
 					that.inputCheckShow = false
 					that.getJcdList(this.underInfo.underTake_id)
-				} else {
+				} else if(result.data.data.enable_upload_data == ''){
 					this.$message({
 						type: 'error',
-						message: result.data.message
+						message: '请输入检测数据'
+					});
+				} else{
+					this.$message({
+						type: 'error',
+						message: '已存在数据保存失败,新增数据保存成功'
 					});
 					that.inputCheckShow = false
+					that.getJcdList(this.underInfo.underTake_id)
 				}
 			},
 			//检测单列表-检测