From 5b3c84899e575e40bd1ca7697f8b0533dedb3d69 Mon Sep 17 00:00:00 2001 From: sjf1256754123 <33301030+sjf1256754123@users.noreply.github.com> Date: Fri, 14 Feb 2020 20:47:41 +0800 Subject: [PATCH] Update fillIn.vue --- pages/fillIn/fillIn.vue | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) diff --git a/pages/fillIn/fillIn.vue b/pages/fillIn/fillIn.vue index 46ee164..5f347d0 100644 --- a/pages/fillIn/fillIn.vue +++ b/pages/fillIn/fillIn.vue @@ -428,9 +428,7 @@ }, // 提交信息 formSubmit(){ - console.log(this.form) - let flag = true let msg = '' for (let i = 0; i < this.list.length; i++) { @@ -443,18 +441,6 @@ }) break } - if(this.form[this.list[i].value] == 'a' && this.list[i].child && this.list[i].child.length>0){ - for (let j = 0; j < this.list[i].child.length; j++) { - if(this.list[i].child[j].required && !this.form[this.list[i].child[j].value]){ - flag = false - uni.showToast({ - icon: 'none', - title: "第"+(i+1)+"大项的第"+ (j+1) +"子项有必填数据未填写" - }) - break - } - } - } if(!flag){ break } @@ -464,29 +450,10 @@ if(!flag){ return false }else{ - let obj = { - "id":this.id, - "auditStatus": -3, - "data":{ - "data": this.form, - "diseaseType": "gc_gl" - } - } - this.$http.post(`/ewell-gastric-cancer-data/wechat/report`,obj).then(res => { const d = res.data if(d.code == 1){ - uni.showToast({ - icon: 'none', - title: '信息提交后不可更改,同时请留意通知公告,及时参与采血。' - }) - // #ifdef MP-WEIXIN - setTimeout(function() { - wx.switchTab({ - url: '/pages/index/index', - }); - }, 1000); - // #endif + }else{ uni.showToast({ icon: 'none', -- 2.22.0