Commit 8079e7d3 authored by gengchunlei's avatar gengchunlei

医生端 v1.2 1、专病高危筛查表单 饮酒种类bug修复

parent 1eaa4c1e
......@@ -66,7 +66,7 @@ export default {
if (!token) {
token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') {
token = '41c17a67-ba9d-4d08-9696-96c2f25f037a'
token = 'd0aa6147-b760-42b5-8871-91db55687b99'
}
}
if (token) {
......
......@@ -225,7 +225,7 @@
<template #input>
<van-radio-group v-model='form.mediumStrength'
direction='horizontal'
shape="dot"
shape='dot'
class='w-full doc-radio-group'>
<van-radio v-for="item in store.getDict('CP00120')"
:key='item.value' :name='item.value'
......@@ -517,7 +517,7 @@
<template #input>
<van-radio-group v-model='form.drinkFrequency'
direction='horizontal'
shape="dot"
shape='dot'
class='w-full doc-radio-group-now'
@change='drinkFrequencyChange'
>
......@@ -535,10 +535,23 @@
<van-field
class='form-input mt-2'
style='padding: 0;background: #F5F5F5'
name='drinkKind'
:rules='rules.drinkKind'
>
<template #input>
<div class='flex justify-between gap-x-2.5 w-full' style='background: #F5F5F5'>
<div style='display: none'>
<van-checkbox-group v-model='form.drinkKind'
direction='horizontal'
shape='dot'
class='w-full doc-radio-group-now'
>
<van-checkbox v-for="item in store.getDict('CP00133')"
:key='item.value' :name='item.value'
label-position='left'>{{ item.name }}
</van-checkbox>
</van-checkbox-group>
</div>
<div v-for="(item, index) in store.getDict('CP00133')" :key='item.value' class='bg-ff'>
<div
@click='toggleDrink(item)'
......@@ -551,7 +564,7 @@
</div>
</template>
</van-field>
<div class='mt-2' v-if='form?.drinkKind?.includes(99)'>
<div class='mt-2' v-if='form.drinkKind?.includes(99)'>
<van-field
v-model='form.drinkKindOther'
clear-icon
......@@ -626,7 +639,7 @@
<template #input>
<van-radio-group v-model='form.giveDrink'
direction='horizontal'
shape="dot"
shape='dot'
class='w-full doc-radio-group-now'
style='background: #F5F5F5'
>
......@@ -669,7 +682,7 @@
<template #input>
<van-radio-group v-model='form.isSmoking'
direction='horizontal'
shape="dot"
shape='dot'
class='w-full doc-radio-group-now'
>
<van-radio v-for="item in store.getDict('CP00162')"
......@@ -734,7 +747,7 @@
<template #input>
<van-radio-group v-model='form.secondSmoking'
direction='horizontal'
shape="dot"
shape='dot'
class='w-full doc-radio-group-now'
style='background: #F5F5F5'
>
......@@ -757,7 +770,7 @@
<template #input>
<van-radio-group v-model='form.blackSpinySkin'
direction='horizontal'
shape="dot"
shape='dot'
class='w-full doc-radio-group'>
<van-radio v-for="item in store.getDict('CP00134')"
:key='item.value' :name='item.value'
......@@ -777,7 +790,7 @@
<template #input>
<van-radio-group v-model='form.mentalTension'
direction='horizontal'
shape="dot"
shape='dot'
class='w-full doc-radio-group'>
<van-radio v-for="item in store.getDict('CP00135')"
:key='item.value' :name='item.value'
......@@ -797,7 +810,7 @@
<template #input>
<van-radio-group v-model='form.xanthoma'
direction='horizontal'
shape="dot"
shape='dot'
class='w-full doc-radio-group'>
<van-radio v-for="item in store.getDict('CP00135')"
:key='item.value' :name='item.value'
......@@ -817,7 +830,7 @@
<template #input>
<van-radio-group v-model='form.tendoIncrassation'
direction='horizontal'
shape="dot"
shape='dot'
class='w-full doc-radio-group'>
<van-radio v-for="item in store.getDict('CP00120')"
:key='item.value' :name='item.value'
......@@ -837,7 +850,7 @@
<template #input>
<van-radio-group v-model='riskScoreInfo'
direction='horizontal'
shape="dot"
shape='dot'
class='w-full doc-radio-group' @change='changeRiskScoreInfo'>
<van-radio v-for="item in store.getDict('CP00136')"
:key='item.value' :name='item.value'
......@@ -1609,6 +1622,7 @@ export default {
}, 0)
this.imageData = this.info.informedConsentUrl
console.log(this.form)
},
//表单触发事件
formChangeHandle() {
......@@ -2469,6 +2483,7 @@ export default {
this.form.drinkKind.push(val.value)
}
this.drinkKindChange(this.form.drinkKind)
this.$refs.form.validate('drinkKind').catch(() =>{})
},
//专病高危评估结果
toggleResult(val) {
......
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