|
@@ -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)
|
|
|
}
|
|
|
},
|
|
|
//检测单列表-检测
|