diff --git a/src/doctor/Doctor.vue b/src/doctor/Doctor.vue index 364323bea29d316de0cd4987f81514afc65710fe..37ecffc78279b78c1a457faac0d57a6d1c75430c 100644 --- a/src/doctor/Doctor.vue +++ b/src/doctor/Doctor.vue @@ -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) { diff --git a/src/doctor/screening/second/FormCont.vue b/src/doctor/screening/second/FormCont.vue index 22a4fdbe50d875f4d58168144f635dd2aa36b246..ca4057b01338224644222b39bd0e6ae4e65ede08 100644 --- a/src/doctor/screening/second/FormCont.vue +++ b/src/doctor/screening/second/FormCont.vue @@ -194,11 +194,11 @@ </div> <div style='height: 80%;overflow: auto'> <CheckBtn clearable - column-1 - :options='exerciseFrequencyList' - v-model:value='form.exerciseFrequency' - :fieldNames="{text: 'name', value: 'value'}" - @change='exerciseFrequencyConfirm' + column-1 + :options='exerciseFrequencyList' + v-model:value='form.exerciseFrequency' + :fieldNames="{text: 'name', value: 'value'}" + @change='exerciseFrequencyConfirm' /> </div> </div> @@ -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) {