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

+ 13 - 5
pages/erpbusiness/edit_quality_testing.vue

@@ -338,17 +338,25 @@
 				this.isShowAlert = true	
 			},
 			alertBtn() {
+				var that = this
 				this.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', {
 					id: this.id,
 					flag:2
 				}).then(res => {
 					if(res.data.code=="200"){
-						this.$api.msg('提交成功!')
-						setTimeout(function(){
-								uni.navigateBack({})
-						},1000)
+						that.gridList.flag=1
+						that.$api.doRequest('post', '/qualityInspectionManagement/api/editQualityInspection', that.gridList).then(res => {
+							if(res.data.code=="200"){
+								that.$api.msg('提交成功!')
+								setTimeout(function(){
+										uni.navigateBack({})
+								},1000)
+							}else{
+								that.$api.msg('提交失败')
+							}
+						})
 					}else{
-						this.$api.msg('提交失败')
+						that.$api.msg('提交失败')
 					}
 				})
 			},