提交 77f170d6 编写于 作者: guangjun.yang's avatar guangjun.yang

app端只传这个字段

上级 b678fc86
......@@ -493,3 +493,33 @@ export const getFirstAccess = () => {
})
}
/**
* Add by Anndy Yang
* 统一验证:量表内是否存在敏感字段、居民是否签署隐私协议、7天内是否发送过授权短信
* @param {[type]} data
{
"scaleNo":"String,量表编号",
// "patientIds":"List<Integer>,医生/居民id集合", // pc端只传这个字段
"planPatientsTimesId": "planPatientsTimesId", // app端只传这个字段
"protocolType":"Integer,协议类型(1:平台用户协议,5:隐私协议)",
"userType":"Integer,用户类型(1:居民,2:医生,3:其他)",
"validateType":"1:3个条件依次校验,2:后面2个条件依次校验"
}
* @return {[type]}
{
"code": "000000",
"message": "成功",
"data": {
"levelType":"类型 1:量表不存在敏感字段,2:居民都已签署协议,3:7天内发送过授权短信,4:7天内未发送过授权短信"
"ids":"List<Integer>,未签署协议的id集合(需要发送授权短信的居民id集合)"
}
}
*/
export const uniteValidate = (params) => {
return fetch({
url: getFollowUpSC(`/followup/protocol/uniteValidate`),
method: 'post',
data: params,
})
};
......@@ -85,7 +85,7 @@
// 创建/修改履约计划
// 4、校验居民/医生是否签署协议
alert('创建/修改履约计划')
return
// return
this.$refs['addPatientData'].validate(valid => {
if (valid) {
......
......@@ -277,7 +277,7 @@
// 创建/修改履约计划
// 4、校验居民/医生是否签署协议
alert('创建/修改履约计划')
return
// return
//为方便调试,不做校验
// this.activeTab = 'second';
......
......@@ -209,7 +209,8 @@
this.moduleList = res.data;
for(let i=0;i<this.moduleList.length;i++){
for(let j=0;j<this.addComponentsSourceList.length;j++){
if(this.moduleList[i]==this.addComponentsSourceList[j].formName){
// if(this.moduleList[i]==this.addComponentsSourceList[j].formName){
if(this.moduleList[i].modelCode==this.addComponentsSourceList[j].formName){
this.addComponents.push(this.addComponentsSourceList[j])
}
}
......
......@@ -200,7 +200,8 @@
this.moduleList = res.data;
for(let i=0;i<this.moduleList.length;i++){
for(let j=0;j<this.addComponentsSourceList.length;j++){
if(this.moduleList[i]==this.addComponentsSourceList[j].formName){
// if(this.moduleList[i]==this.addComponentsSourceList[j].formName){
if(this.moduleList[i].modelCode==this.addComponentsSourceList[j].formName){
this.addComponents.push(this.addComponentsSourceList[j])
}
}
......
......@@ -232,8 +232,9 @@
this.moduleList = res.data;
for(let i=0;i<this.moduleList.length;i++){
for(let j=0;j<this.addComponentsSourceList.length;j++){
if(this.moduleList[i]==this.addComponentsSourceList[j].formName){
this.addComponents.push(this.addComponentsSourceList[j])
// if(this.moduleList[i]==this.addComponentsSourceList[j].formName){
if(this.moduleList[i].modelCode==this.addComponentsSourceList[j].formName){
this.addComponents.push(this.addComponentsSourceList[j])
}
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册