|
@@ -108,9 +108,10 @@ export default {
|
|
time: "",
|
|
time: "",
|
|
params: {},
|
|
params: {},
|
|
showToast: false,
|
|
showToast: false,
|
|
- message: "您已完成一次预问诊,是否重新录入?",
|
|
|
|
|
|
+ message: "",
|
|
showStart: false,
|
|
showStart: false,
|
|
allMoudles: {},
|
|
allMoudles: {},
|
|
|
|
+ scaleCount: 0,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -178,6 +179,7 @@ export default {
|
|
api.getPathInfo(params).then((res) => {
|
|
api.getPathInfo(params).then((res) => {
|
|
const result = res.data;
|
|
const result = res.data;
|
|
if (result.code == 0) {
|
|
if (result.code == 0) {
|
|
|
|
+ console.log(result);
|
|
this.pathInfo = result.data;
|
|
this.pathInfo = result.data;
|
|
this.$store.commit("savePathInfo", result.data);
|
|
this.$store.commit("savePathInfo", result.data);
|
|
this.getAll(); //获取模板
|
|
this.getAll(); //获取模板
|
|
@@ -233,7 +235,7 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- recordCheck() {
|
|
|
|
|
|
+ recordCheck(i) {
|
|
const param = {
|
|
const param = {
|
|
doctorId: this.pathInfo.doctorId,
|
|
doctorId: this.pathInfo.doctorId,
|
|
hospitalDeptId: this.pathInfo.hospitalDeptId,
|
|
hospitalDeptId: this.pathInfo.hospitalDeptId,
|
|
@@ -245,11 +247,18 @@ export default {
|
|
const result = res.data;
|
|
const result = res.data;
|
|
if (result.code == 0) {
|
|
if (result.code == 0) {
|
|
let data = result.data;
|
|
let data = result.data;
|
|
- if (data.detailCount >0 || data.physicalCount >0 || data.scaleCount >0) {
|
|
|
|
|
|
+ if ((data.detailCount > 0 && data.physicalCount > 0 && i== 1) || (data.scaleCount > 0 && i== 2)) {
|
|
//有预问诊信息
|
|
//有预问诊信息
|
|
this.showToast = true;
|
|
this.showToast = true;
|
|
} else {
|
|
} else {
|
|
- this.goNext();
|
|
|
|
|
|
+ if (i == 1) {
|
|
|
|
+ this.goNext();
|
|
|
|
+ } else {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/chooseScale",
|
|
|
|
+ query: JSON.parse(localStorage.getItem("loginParam")),
|
|
|
|
+ });
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -262,10 +271,8 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
goScale() {
|
|
goScale() {
|
|
- this.$router.push({
|
|
|
|
- path: "/chooseScale",
|
|
|
|
- query: JSON.parse(localStorage.getItem("loginParam")),
|
|
|
|
- });
|
|
|
|
|
|
+ this.message = "您已完成一次评估,是否重新录入?";
|
|
|
|
+ this.recordCheck(2);
|
|
},
|
|
},
|
|
getAll() {
|
|
getAll() {
|
|
const param = {
|
|
const param = {
|
|
@@ -297,7 +304,8 @@ export default {
|
|
this.defaultWaring("网络异常请稍后重试");
|
|
this.defaultWaring("网络异常请稍后重试");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- this.recordCheck(); //校验是否填过
|
|
|
|
|
|
+ this.message = "您已完成一次预问诊,是否重新录入?";
|
|
|
|
+ this.recordCheck(1); //校验是否填过
|
|
},
|
|
},
|
|
defaultWaring(msg) {
|
|
defaultWaring(msg) {
|
|
this.submit = true;
|
|
this.submit = true;
|