gjy 3 年之前
父節點
當前提交
c8580c459d
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      pages/erpbusiness/edit_quality_testing.vue

+ 8 - 4
pages/erpbusiness/edit_quality_testing.vue

@@ -414,11 +414,14 @@
 			},
 			alertBtn() {
 				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 => {
 					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"){
 								that.$api.msg('提交成功!')
 								setTimeout(function(){
@@ -427,7 +430,8 @@
 							}else{
 								that.$api.msg('提交失败')
 							}
-						})
+						})			
+						
 					}else{
 						that.$api.msg('提交失败')
 					}