|
|
@ -276,19 +276,25 @@ |
|
|
|
<div class="hospital1">{{ tenantName || "-" }}</div> |
|
|
|
<el-dialog |
|
|
|
class="popup" |
|
|
|
title="筛查结论" |
|
|
|
title="提示" |
|
|
|
:visible.sync="open" |
|
|
|
width="80%" |
|
|
|
append-to-body |
|
|
|
:show-close="false" |
|
|
|
:close-on-click-modal="false" |
|
|
|
> |
|
|
|
属于<span :class="`BIMTips${BMIVerdict[form['SCWJ-JL']]}`">{{ |
|
|
|
form["SCWJ-JL"] || "-" |
|
|
|
}}</span |
|
|
|
>型肥胖,建议扫码关注医院公众号,预约体重管理中心医师进一步评估。 |
|
|
|
<div> |
|
|
|
<img src="./gzh.jpg" style="max-width: 100%" /> |
|
|
|
<div class="popup-title">已经筛查过是否查看结论</div> |
|
|
|
<div class="submit-box submit-box1"> |
|
|
|
<el-button |
|
|
|
type="primary" |
|
|
|
class="submit-box-but" |
|
|
|
@click="handleContinue" |
|
|
|
> |
|
|
|
编辑信息 |
|
|
|
</el-button> |
|
|
|
<el-button type="primary" class="submit-box-but" @click="handleResult"> |
|
|
|
查看结论 |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
@ -310,7 +316,7 @@ export default { |
|
|
|
open: false, |
|
|
|
loading: false, |
|
|
|
disabled: true, |
|
|
|
|
|
|
|
detailList: {}, |
|
|
|
tenantId: "", |
|
|
|
tenantName: "", |
|
|
|
stepNum: 1, // 步骤数 |
|
|
@ -640,39 +646,40 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 编辑信息 |
|
|
|
handleContinue() { |
|
|
|
this.form = { ...this.form, ...this.detailList }; |
|
|
|
this.open = false; |
|
|
|
}, |
|
|
|
// 查看结果 |
|
|
|
handleResult() { |
|
|
|
this.$router.replace({ |
|
|
|
path: "/screening/h5Result", |
|
|
|
query: { |
|
|
|
tenantName: this.tenantName, |
|
|
|
data: JSON.stringify(this.detailList), |
|
|
|
}, |
|
|
|
}); |
|
|
|
this.open = false; |
|
|
|
}, |
|
|
|
// 通过手机号查询 |
|
|
|
getqueryDetailNoToken() { |
|
|
|
let phone = this.form["SCWJ-PHONE"]; |
|
|
|
let name = this.form["SCWJ-NAME"]; |
|
|
|
// // 手机号是否格式正确 |
|
|
|
if (name && phone && /^1[3456789]\d{9}$/.test(phone)) { |
|
|
|
queryDetailNoToken({ param: { keywords: phone } }).then((res) => { |
|
|
|
let flat = false; |
|
|
|
let detailList = null; |
|
|
|
res.data.list.forEach((item) => { |
|
|
|
let data = {}; |
|
|
|
if (item.detailList) { |
|
|
|
item.detailList?.forEach((row) => { |
|
|
|
item[row.questionCode] = row.answer; |
|
|
|
data[row.questionCode] = row.answer; |
|
|
|
queryDetailNoToken({ param: { name: name, phone: phone } }).then( |
|
|
|
(res) => { |
|
|
|
this.detailList = {}; |
|
|
|
if (res.data.list.length) { |
|
|
|
let data = res.data.list[0]; |
|
|
|
data.detailList.forEach((item) => { |
|
|
|
this.detailList[item.questionCode] = item.answer; |
|
|
|
}); |
|
|
|
this.open = true; |
|
|
|
} |
|
|
|
if (item["SCWJ-NAME"] == name && item["SCWJ-PHONE"] == phone) { |
|
|
|
flat = true; |
|
|
|
detailList = data; |
|
|
|
console.log("已经筛查过,直接显示结果"); |
|
|
|
} |
|
|
|
}); |
|
|
|
if (flat) { |
|
|
|
this.$router.replace({ |
|
|
|
path: "/screening/h5Result", |
|
|
|
query: { |
|
|
|
tenantName: this.tenantName, |
|
|
|
data: JSON.stringify(detailList), |
|
|
|
}, |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
); |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取筛查结论 |
|
|
@ -978,6 +985,12 @@ export default { |
|
|
|
</script> |
|
|
|
<style scoped src="@/assets/styles/common.css"></style> |
|
|
|
<style scoped> |
|
|
|
.popup-title { |
|
|
|
font-size: 20px; |
|
|
|
color: #333333; |
|
|
|
margin-bottom: 20px; |
|
|
|
text-align: center; |
|
|
|
} |
|
|
|
>>> .el-dialog__header { |
|
|
|
padding-bottom: 0; |
|
|
|
} |
|
|
@ -1066,6 +1079,9 @@ export default { |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
} |
|
|
|
.submit-box1 .submit-box-but { |
|
|
|
border: none; |
|
|
|
} |
|
|
|
.submit-box .submit-box-but { |
|
|
|
background: #c6a268; |
|
|
|
width: 100%; |
|
|
|