diff --git a/pages/fillIn/fillIn.vue b/pages/fillIn/fillIn.vue index 46ee1640622dbd2784d659712f0a04adaabd6dbb..5f347d02f124f412766aebf8d5f1b06e38546cd0 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',