提交
This commit is contained in:
@@ -383,16 +383,16 @@ export default {
|
||||
}
|
||||
}
|
||||
if (
|
||||
["妇科", "儿科"].includes(this.currentNode.data.title) ||
|
||||
["妇科", "儿科"].includes(this.addCertificateForm.labelTitle)
|
||||
|
||||
["妇科", "儿科"].includes(this.medicalForm.labelTitle)&&isNewSave!=1
|
||||
) {
|
||||
if (
|
||||
this.currentNode.data.title == "妇科" ||
|
||||
this.addCertificateForm.labelTitle == "妇科"
|
||||
|
||||
this.medicalForm.labelTitle == "妇科"
|
||||
) {
|
||||
const value = this.editableMap["personalAndFamilyHistory"] || "";
|
||||
const hasKeywords =
|
||||
value.includes("月经") && value.includes("婚育");
|
||||
value.includes("月经") || value.includes("婚育");
|
||||
|
||||
if (!hasKeywords) {
|
||||
// 包含“月经”或“婚育”
|
||||
@@ -400,15 +400,15 @@ export default {
|
||||
const titleHtml = this.getTitleHtml(
|
||||
this.record["personalAndFamilyHistory"]
|
||||
).replace(/<[^>]*>/g, "");
|
||||
this.$message.error(
|
||||
this.$commonJS.showToast(
|
||||
"请在 " + titleHtml + " 中输入月经或婚育相关内容"
|
||||
);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (
|
||||
this.currentNode.data.title == "儿科" ||
|
||||
this.addCertificateForm.labelTitle == "儿科"
|
||||
|
||||
this.medicalForm.labelTitle == "儿科"
|
||||
) {
|
||||
const value = this.editableMap["pastHistory"] || "";
|
||||
const hasKeywords = value.includes("疫苗");
|
||||
@@ -418,7 +418,7 @@ export default {
|
||||
const titleHtml = this.getTitleHtml(
|
||||
this.record["pastHistory"]
|
||||
).replace(/<[^>]*>/g, "");
|
||||
this.$message.error(
|
||||
this.$commonJS.showToast(
|
||||
"请在 " + titleHtml + " 中输入疫苗接种相关内容"
|
||||
);
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user