|
@@ -414,11 +414,14 @@
|
|
},
|
|
},
|
|
alertBtn() {
|
|
alertBtn() {
|
|
var that = this
|
|
var that = this
|
|
- that.gridList.flag = 2
|
|
|
|
|
|
+ that.gridList.reWaterContent=that.gridList.waterContent
|
|
|
|
+ if(that.gridList.buckleMiscellaneous){
|
|
|
|
+ that.gridList.reBuckleMiscellaneous=that.gridList.buckleMiscellaneous
|
|
|
|
+ }
|
|
|
|
+ that.gridList.flag = 1
|
|
this.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection',that.gridList).then(res => {
|
|
this.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection',that.gridList).then(res => {
|
|
if(res.data.code=="200"){
|
|
if(res.data.code=="200"){
|
|
- that.gridList.flag=1
|
|
|
|
- that.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', that.gridList).then(res => {
|
|
|
|
|
|
+ that.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', {id:that.gridList.id,flag:2}).then(res => {
|
|
if(res.data.code=="200"){
|
|
if(res.data.code=="200"){
|
|
that.$api.msg('提交成功!')
|
|
that.$api.msg('提交成功!')
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
@@ -427,7 +430,8 @@
|
|
}else{
|
|
}else{
|
|
that.$api.msg('提交失败')
|
|
that.$api.msg('提交失败')
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ })
|
|
|
|
+
|
|
}else{
|
|
}else{
|
|
that.$api.msg('提交失败')
|
|
that.$api.msg('提交失败')
|
|
}
|
|
}
|