Commit 5b3c8489 authored by sjf1256754123's avatar sjf1256754123

Update fillIn.vue

parent 36e793b2
Pipeline #118 failed with stages
...@@ -428,9 +428,7 @@ ...@@ -428,9 +428,7 @@
}, },
// 提交信息 // 提交信息
formSubmit(){ formSubmit(){
console.log(this.form) console.log(this.form)
let flag = true let flag = true
let msg = '' let msg = ''
for (let i = 0; i < this.list.length; i++) { for (let i = 0; i < this.list.length; i++) {
...@@ -443,18 +441,6 @@ ...@@ -443,18 +441,6 @@
}) })
break 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){ if(!flag){
break break
} }
...@@ -464,29 +450,10 @@ ...@@ -464,29 +450,10 @@
if(!flag){ if(!flag){
return false return false
}else{ }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 => { this.$http.post(`/ewell-gastric-cancer-data/wechat/report`,obj).then(res => {
const d = res.data const d = res.data
if(d.code == 1){ if(d.code == 1){
uni.showToast({
icon: 'none',
title: '信息提交后不可更改,同时请留意通知公告,及时参与采血。'
})
// #ifdef MP-WEIXIN
setTimeout(function() {
wx.switchTab({
url: '/pages/index/index',
});
}, 1000);
// #endif
}else{ }else{
uni.showToast({ uni.showToast({
icon: 'none', icon: 'none',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment