Commit 52c85d36 authored by gengchunlei's avatar gengchunlei

居民端小程序 v1.2 通用随访 模板选择bug修复

parent 1b326190
...@@ -193,7 +193,8 @@ ...@@ -193,7 +193,8 @@
@click='showGroupsArrays= true' @click='showGroupsArrays= true'
> >
<template #input> <template #input>
<span class='text-end'>{{form.groupsArraysName}}</span> <span class='text-end' v-if='form.groupsArraysName'>{{form.groupsArraysName}}</span>
<span class='text-end' v-if='!form.groupsArraysName' style='color: #dfdfe1'>请选择</span>
</template> </template>
</van-field> </van-field>
<van-popup v-model:show='showGroupsArrays' position='bottom'> <van-popup v-model:show='showGroupsArrays' position='bottom'>
......
...@@ -275,7 +275,7 @@ export default { ...@@ -275,7 +275,7 @@ export default {
handler() { handler() {
this.contentSelectChange() this.contentSelectChange()
} }
} },
}, },
methods: { methods: {
//指导和宣教赋值 //指导和宣教赋值
...@@ -344,6 +344,15 @@ export default { ...@@ -344,6 +344,15 @@ export default {
// 选择的模板内容变化 // 选择的模板内容变化
contentSelectChange() { contentSelectChange() {
const cont = this.form.contentList || [] const cont = this.form.contentList || []
let val = this.checkContentSelect
const delValue = cont.filter(i => !val.includes(i.templateMode)).map(e => e.templateMode)
if (delValue.length) {
this.form.contentList = this.form.contentList.filter(e => !delValue.includes(e.templateMode))
// 药物指导处理
if (delValue.includes(5)) {
this.form.drugsList = []
}
}
const addValue = this.checkContentSelect.filter(e => !cont.find(i => i.templateMode === e)) const addValue = this.checkContentSelect.filter(e => !cont.find(i => i.templateMode === e))
if (addValue.length) { if (addValue.length) {
addValue.forEach(e => { addValue.forEach(e => {
......
...@@ -155,7 +155,6 @@ export default { ...@@ -155,7 +155,6 @@ export default {
}, },
//专病筛查 //专病筛查
toSecondDetail(record) { toSecondDetail(record) {
debugger
if (!record) return if (!record) return
if (record.id == null) { if (record.id == null) {
showToast('暂时无法查看 详情信息') showToast('暂时无法查看 详情信息')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment