提交 9c28002b 编写于 作者: tao.wu's avatar tao.wu

no message

上级 8fed731e
...@@ -88,10 +88,6 @@ ...@@ -88,10 +88,6 @@
let formName = this.addComponents[i].formName; let formName = this.addComponents[i].formName;
// 将每个模块的fornName对应后台的表名放到表单对象 // 将每个模块的fornName对应后台的表名放到表单对象
this.formData[formName] = this.addComponents[i].formObject; this.formData[formName] = this.addComponents[i].formObject;
// if(formName==='stroke_006'||formName==='stroke_014'||formName==='stroke_015'){
// this.setRuleToTrue(i)
// }
this.$nextTick(()=>{ this.$nextTick(()=>{
// saveWay=1是提交,进行校验,2是暂存,不需要校验,直接发送请求 // saveWay=1是提交,进行校验,2是暂存,不需要校验,直接发送请求
if(this.saveWay==1){ if(this.saveWay==1){
...@@ -148,20 +144,6 @@ ...@@ -148,20 +144,6 @@
} }
}) })
}, },
// needRule(val){
// this.addComponents.forEach((item,index)=>{
// let formName = item.formName;
//// if(formName==='stroke_006'||formName==='stroke_014'||formName==='stroke_015'){
//// this.addComponents[index].ruleNew = val;
//// this.setRuleToTrue(index);
////// if(this.$refs['form' + index].length > 0){
////// this.$refs['form' + index][0].resetFields();
////// }
////
//// }
// })
//
// }
}, },
created(){ created(){
this.planPatientsTimesId = this.$route.query.planPatientsTimesId this.planPatientsTimesId = this.$route.query.planPatientsTimesId
...@@ -172,8 +154,6 @@ ...@@ -172,8 +154,6 @@
this.initScaleType(); this.initScaleType();
// 获取白名单域名 // 获取白名单域名
this.getWhiteDomain(); this.getWhiteDomain();
// localStorage.setItem('needRule',this.needRule);
}, },
methods: { methods: {
// 获取量表类型 // 获取量表类型
...@@ -194,15 +174,14 @@ ...@@ -194,15 +174,14 @@
getDomain().then(res=>{ getDomain().then(res=>{
if(res.code=='000000'){ if(res.code=='000000'){
this.domain = res.data; this.domain = res.data;
// this.setFormData() // this.setFormData()
// 目前模块先写死!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! // 获取量表模块
// 获取量表模块 this.getFormModules();
this.getFormModules(); if(this.showBtn!='0'){
if(this.showBtn!='0'){ // 获取量表详情
// 获取量表详情 this.getFormDetail();
this.getFormDetail(); }
}
}else{ }else{
this.$message({ this.$message({
message: res.message, message: res.message,
...@@ -216,9 +195,7 @@ ...@@ -216,9 +195,7 @@
this.addComponents = this.addComponentsSourceList this.addComponents = this.addComponentsSourceList
for(let i=0;i<this.addComponents.length;i++){ for(let i=0;i<this.addComponents.length;i++){
let formName = this.addComponents[i].formName; let formName = this.addComponents[i].formName;
if(this.formData[formName]){ if(this.formData[formName]){
this.addComponents[i].formObject = this.formData[formName]; this.addComponents[i].formObject = this.formData[formName];
} }
// 量表字段回显,会触发change校验,所以这里拿到数据渲染页面后,重置验证 // 量表字段回显,会触发change校验,所以这里拿到数据渲染页面后,重置验证
...@@ -276,7 +253,6 @@ ...@@ -276,7 +253,6 @@
medicinesName: item.medicinesName, medicinesName: item.medicinesName,
medicineType: item.medicineType medicineType: item.medicineType
} }
} }
}) })
this.addComponents[i].formObject = { this.addComponents[i].formObject = {
...@@ -329,7 +305,7 @@ ...@@ -329,7 +305,7 @@
this.$nextTick(() => { this.$nextTick(() => {
// 如果表单未完善,跳转到该表单模块 // 如果表单未完善,跳转到该表单模块
document.querySelector(`#form${i}`).scrollIntoView(true); document.querySelector(`#form${i}`).scrollIntoView(true);
return return;
}) })
} }
...@@ -337,7 +313,6 @@ ...@@ -337,7 +313,6 @@
} }
let flag = this.valid; let flag = this.valid;
this.$emit('checkEnd',false); this.$emit('checkEnd',false);
console.log('checkEndcheckEndcheckEndcheckEnd')
return flag; return flag;
}, },
// 提交量表 // 提交量表
...@@ -352,7 +327,6 @@ ...@@ -352,7 +327,6 @@
if(!this.handleModuleMedicalUse()){ if(!this.handleModuleMedicalUse()){
return; return;
} }
this.formData.hypertension_001.symptom = JSON.stringify(this.formData.hypertension_001.symptom); this.formData.hypertension_001.symptom = JSON.stringify(this.formData.hypertension_001.symptom);
// console.log(this.formData) // console.log(this.formData)
postScale(this.domain,this.formData).then(res=>{ postScale(this.domain,this.formData).then(res=>{
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册