Commit 64ecd2ec authored by 芮自成's avatar 芮自成

问题修改

parent f794a3e1
...@@ -67,7 +67,7 @@ export default { ...@@ -67,7 +67,7 @@ export default {
token = sessionStorage.getItem('token') token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
// token = '9486b3ed-332d-4a2e-86dc-0502a3e2bd69' // token = '9486b3ed-332d-4a2e-86dc-0502a3e2bd69'
token = '220d2f26-2fcd-450b-af4c-85b1bf78ed5e' token = '16597bd9-557b-430f-8870-4b9bfd36c30d'
} }
} }
if (token) { if (token) {
......
...@@ -219,7 +219,6 @@ export default { ...@@ -219,7 +219,6 @@ export default {
'form.medicateCase': { 'form.medicateCase': {
handler() { handler() {
this.medicateCase = JSON.parse(this.form.medicateCase) this.medicateCase = JSON.parse(this.form.medicateCase)
console.log(123, this.medicateCase)
} }
} }
} }
......
...@@ -111,52 +111,54 @@ export default { ...@@ -111,52 +111,54 @@ export default {
let { id } = this.$route.query let { id } = this.$route.query
if (this.diseaseInfo.diseaseType === 1) { if (this.diseaseInfo.diseaseType === 1) {
const hypertensionForm = await this.$refs.hypertensionForm.submit() const hypertensionForm = await this.$refs.hypertensionForm.submit()
// console.log(666, hypertensionForm)
// return true
let fun = id ? updateHypertensionForm : addHypertensionForm let fun = id ? updateHypertensionForm : addHypertensionForm
return await fun({ return await fun({
...form, ...hypertensionForm,
...hypertensionForm ...form
}, true) }, true)
} else if (this.diseaseInfo.diseaseType === 2) { } else if (this.diseaseInfo.diseaseType === 2) {
const diabetesForm = await this.$refs.diabetesForm.submit() const diabetesForm = await this.$refs.diabetesForm.submit()
let fun = id ? updateDiabetesForm : addDiabetesForm let fun = id ? updateDiabetesForm : addDiabetesForm
return await fun({ return await fun({
...form, ...diabetesForm,
...diabetesForm ...form
}, true) }, true)
} else if (this.diseaseInfo.diseaseType === 3) { } else if (this.diseaseInfo.diseaseType === 3) {
const coronaryHeartDiseaseForm = await this.$refs.coronaryHeartDiseaseForm.submit() const coronaryHeartDiseaseForm = await this.$refs.coronaryHeartDiseaseForm.submit()
let fun = id ? updateCoronaryHeartDiseaseForm : addCoronaryHeartDiseaseForm let fun = id ? updateCoronaryHeartDiseaseForm : addCoronaryHeartDiseaseForm
return await fun({ return await fun({
...form, ...coronaryHeartDiseaseForm,
...coronaryHeartDiseaseForm ...form
}, true) }, true)
} else if (this.diseaseInfo.diseaseType === 4) { } else if (this.diseaseInfo.diseaseType === 4) {
const strokeForm = await this.$refs.strokeForm.submit() const strokeForm = await this.$refs.strokeForm.submit()
let fun = id ? updateStrokeForm : addStrokeForm let fun = id ? updateStrokeForm : addStrokeForm
return await fun({ return await fun({
...form, ...strokeForm,
...strokeForm ...form
}, true) }, true)
} else if (this.diseaseInfo.diseaseType === 5) { } else if (this.diseaseInfo.diseaseType === 5) {
const copdForm = await this.$refs.copdForm.submit() const copdForm = await this.$refs.copdForm.submit()
let fun = id ? updateCopdForm : addCopdForm let fun = id ? updateCopdForm : addCopdForm
return await fun({ return await fun({
...form, ...copdForm,
...copdForm ...form
}, true) }, true)
} else if (this.diseaseInfo.diseaseType === 6) { } else if (this.diseaseInfo.diseaseType === 6) {
const chronicKidneyDiseaseForm = await this.$refs.chronicKidneyDiseaseForm.submit() const chronicKidneyDiseaseForm = await this.$refs.chronicKidneyDiseaseForm.submit()
let fun = id ? updateChronicKidneyDiseaseForm : addChronicKidneyDiseaseForm let fun = id ? updateChronicKidneyDiseaseForm : addChronicKidneyDiseaseForm
return await fun({ return await fun({
...form, ...chronicKidneyDiseaseForm,
...chronicKidneyDiseaseForm ...form
}, true) }, true)
} else if (this.diseaseInfo.diseaseType === 7) { } else if (this.diseaseInfo.diseaseType === 7) {
const dyslipidemiaForm = await this.$refs.dyslipidemiaForm.submit() const dyslipidemiaForm = await this.$refs.dyslipidemiaForm.submit()
let fun = id ? updateDyslipidemiaForm : addDyslipidemiaForm let fun = id ? updateDyslipidemiaForm : addDyslipidemiaForm
return await fun({ return await fun({
...form, ...dyslipidemiaForm,
...dyslipidemiaForm ...form
}, true) }, true)
} }
} }
......
...@@ -284,7 +284,7 @@ ...@@ -284,7 +284,7 @@
<!-- 吸烟 --> <!-- 吸烟 -->
<div class="label-title mt-2" required>吸烟</div> <div class="label-title mt-2" required>吸烟</div>
<div class="bg-fa"> <div class="bg-fa">
<div class="label-title" required style="color: #262626; font-size: 14px">是否正在吸烟</div> <div class="label-title" required style="color: #262626; font-size: .14rem">是否正在吸烟</div>
<van-field :rules="rules.isSmoking" style="padding: 0"> <van-field :rules="rules.isSmoking" style="padding: 0">
<template #input> <template #input>
<van-radio-group <van-radio-group
...@@ -307,7 +307,7 @@ ...@@ -307,7 +307,7 @@
</van-field> </van-field>
</div> </div>
<div v-if="form.isSmoking === 1" class="bg-fa mt-2"> <div v-if="form.isSmoking === 1" class="bg-fa mt-2">
<div class="label-title" style="color: #262626; font-size: 14px">您大约从几岁起开始养成每天或基本每天都吸烟的习惯</div> <div class="label-title" style="color: #262626; font-size: .14rem">您大约从几岁起开始养成每天或基本每天都吸烟的习惯</div>
<van-field <van-field
v-model="form.startSmokeAge" v-model="form.startSmokeAge"
placeholder="2~100,整数" placeholder="2~100,整数"
...@@ -320,7 +320,7 @@ ...@@ -320,7 +320,7 @@
</van-field> </van-field>
</div> </div>
<div v-if="form.isSmoking === 1 || form.isSmoking === 2" class="bg-fa mt-2"> <div v-if="form.isSmoking === 1 || form.isSmoking === 2" class="bg-fa mt-2">
<div class="label-title" style="color: #262626; font-size: 14px">您最近7天是否吸烟</div> <div class="label-title" style="color: #262626; font-size: .14rem">您最近7天是否吸烟</div>
<van-field style="padding: 0"> <van-field style="padding: 0">
<template #input> <template #input>
<van-radio-group <van-radio-group
...@@ -343,7 +343,7 @@ ...@@ -343,7 +343,7 @@
</van-field> </van-field>
</div> </div>
<div v-if="form.isSmoking === 1 || form.isSmoking === 2" class="bg-fa mt-2"> <div v-if="form.isSmoking === 1 || form.isSmoking === 2" class="bg-fa mt-2">
<div class="label-title" style="color: #262626; font-size: 14px">日吸烟量</div> <div class="label-title" style="color: #262626; font-size: .14rem">日吸烟量</div>
<van-field <van-field
v-model="form.daySmoking" v-model="form.daySmoking"
placeholder="0~100,整数" placeholder="0~100,整数"
...@@ -356,7 +356,7 @@ ...@@ -356,7 +356,7 @@
</van-field> </van-field>
</div> </div>
<div v-if="form.isSmoking === 1 || form.isSmoking === 2" class="bg-fa mt-2"> <div v-if="form.isSmoking === 1 || form.isSmoking === 2" class="bg-fa mt-2">
<div class="label-title" style="color: #262626; font-size: 14px">目标日吸烟量</div> <div class="label-title" style="color: #262626; font-size: .14rem">目标日吸烟量</div>
<van-field <van-field
v-model="form.goalDaySmoking" v-model="form.goalDaySmoking"
placeholder="0~100,整数" placeholder="0~100,整数"
...@@ -371,7 +371,7 @@ ...@@ -371,7 +371,7 @@
<!-- 饮酒 --> <!-- 饮酒 -->
<div class="label-title mt-2" required>饮酒</div> <div class="label-title mt-2" required>饮酒</div>
<div class="bg-fa"> <div class="bg-fa">
<div class="label-title" required style="color: #262626; font-size: 14px">是否正在饮酒</div> <div class="label-title" required style="color: #262626; font-size: .14rem">是否正在饮酒</div>
<van-field :rules="rules.isDrink" style="padding: 0"> <van-field :rules="rules.isDrink" style="padding: 0">
<template #input> <template #input>
<van-radio-group <van-radio-group
...@@ -394,7 +394,7 @@ ...@@ -394,7 +394,7 @@
</van-field> </van-field>
</div> </div>
<div v-if="form.isDrink === 1" class="bg-fa mt-2"> <div v-if="form.isDrink === 1" class="bg-fa mt-2">
<div class="label-title" style="color: #262626; font-size: 14px">饮酒频率</div> <div class="label-title" style="color: #262626; font-size: .14rem">饮酒频率</div>
<van-field style="padding: 0"> <van-field style="padding: 0">
<template #input> <template #input>
<van-radio-group <van-radio-group
...@@ -418,7 +418,7 @@ ...@@ -418,7 +418,7 @@
</div> </div>
<div v-if="form.isDrink === 1 || form.isDrink === 2" class="flex mt-2"> <div v-if="form.isDrink === 1 || form.isDrink === 2" class="flex mt-2">
<div class="bg-fa"> <div class="bg-fa">
<div class="label-title" style="color: #262626; font-size: 14px">日饮酒量</div> <div class="label-title" style="color: #262626; font-size: .14rem">日饮酒量</div>
<van-field <van-field
v-model="form.dayDrink" v-model="form.dayDrink"
placeholder="0~3000,整数" placeholder="0~3000,整数"
...@@ -431,7 +431,7 @@ ...@@ -431,7 +431,7 @@
</van-field> </van-field>
</div> </div>
<div class="bg-fa ml-2"> <div class="bg-fa ml-2">
<div class="label-title" style="color: #262626; font-size: 14px">目标日饮酒量</div> <div class="label-title" style="color: #262626; font-size: .14rem">目标日饮酒量</div>
<van-field <van-field
v-model="form.goalDayDrink" v-model="form.goalDayDrink"
placeholder="0~3000,整数" placeholder="0~3000,整数"
...@@ -445,15 +445,13 @@ ...@@ -445,15 +445,13 @@
</div> </div>
</div> </div>
<div v-if="form.isDrink === 1 || form.isDrink === 2" class="bg-fa mt-2"> <div v-if="form.isDrink === 1 || form.isDrink === 2" class="bg-fa mt-2">
<div class="label-title" style="color: #262626; font-size: 14px">饮酒种类</div> <div class="label-title" style="color: #262626; font-size: .14rem">饮酒种类</div>
<van-field <van-field
label="白酒" label="白酒"
v-model="form.drinkLiquor" v-model="form.drinkLiquor"
placeholder="0~3000,整数" placeholder="0~3000,整数"
:rules="rules.drinkLiquor" :rules="rules.drinkLiquor"
class="card-input" class="card-input"
label-width="36px"
label-class="label-mr"
> >
<template #extra> <template #extra>
<span>ml/日</span> <span>ml/日</span>
...@@ -465,8 +463,6 @@ ...@@ -465,8 +463,6 @@
placeholder="0~3000,整数" placeholder="0~3000,整数"
:rules="rules.drinkBeer" :rules="rules.drinkBeer"
class="card-input mt-2" class="card-input mt-2"
label-width="36px"
label-class="label-mr"
> >
<template #extra> <template #extra>
<span>ml/日</span> <span>ml/日</span>
...@@ -478,8 +474,6 @@ ...@@ -478,8 +474,6 @@
placeholder="0~3000,整数" placeholder="0~3000,整数"
:rules="rules.drinkRed" :rules="rules.drinkRed"
class="card-input mt-2" class="card-input mt-2"
label-width="36px"
label-class="label-mr"
> >
<template #extra> <template #extra>
<span>ml/日</span> <span>ml/日</span>
...@@ -491,8 +485,6 @@ ...@@ -491,8 +485,6 @@
placeholder="0~3000,整数" placeholder="0~3000,整数"
:rules="rules.drinkYellow" :rules="rules.drinkYellow"
class="card-input mt-2" class="card-input mt-2"
label-width="36px"
label-class="label-mr"
> >
<template #extra> <template #extra>
<span>ml/日</span> <span>ml/日</span>
...@@ -504,8 +496,6 @@ ...@@ -504,8 +496,6 @@
placeholder="0~3000,整数" placeholder="0~3000,整数"
:rules="rules.drinkOther" :rules="rules.drinkOther"
class="card-input mt-2" class="card-input mt-2"
label-width="36px"
label-class="label-mr"
> >
<template #extra> <template #extra>
<span>ml/日</span> <span>ml/日</span>
...@@ -515,7 +505,7 @@ ...@@ -515,7 +505,7 @@
<!-- 运动 --> <!-- 运动 -->
<div class="label-title mt-2" required>运动</div> <div class="label-title mt-2" required>运动</div>
<div class="bg-fa"> <div class="bg-fa">
<div class="label-title" required style="color: #262626; font-size: 14px">有无规律活动</div> <div class="label-title" required style="color: #262626; font-size: .14rem">有无规律活动</div>
<van-field :rules="rules.regularExercise" style="padding: 0"> <van-field :rules="rules.regularExercise" style="padding: 0">
<template #input> <template #input>
<van-radio-group <van-radio-group
...@@ -539,7 +529,7 @@ ...@@ -539,7 +529,7 @@
</div> </div>
<div v-if="form.regularExercise === 1" class="bg-fa mt-2"> <div v-if="form.regularExercise === 1" class="bg-fa mt-2">
<div class="flex items-center"> <div class="flex items-center">
<div class="label-title" required style="color: #262626; font-size: 14px">运动强度</div> <div class="label-title" required style="color: #262626; font-size: .14rem">运动强度</div>
<MovementTip class="ml-2 mb-2" /> <MovementTip class="ml-2 mb-2" />
</div> </div>
<van-field :rules="rules.exerciseStrength" style="padding: 0"> <van-field :rules="rules.exerciseStrength" style="padding: 0">
...@@ -564,7 +554,7 @@ ...@@ -564,7 +554,7 @@
</van-field> </van-field>
</div> </div>
<div class="bg-fa mt-2"> <div class="bg-fa mt-2">
<div class="label-title" required style="color: #262626; font-size: 14px">目前运动情况</div> <div class="label-title" required style="color: #262626; font-size: .14rem">目前运动情况</div>
<div class="flex"> <div class="flex">
<van-field <van-field
v-model="form.nowExerciseWeek" v-model="form.nowExerciseWeek"
...@@ -589,7 +579,7 @@ ...@@ -589,7 +579,7 @@
</div> </div>
</div> </div>
<div class="bg-fa mt-2"> <div class="bg-fa mt-2">
<div class="label-title" required style="color: #262626; font-size: 14px">目标运动情况</div> <div class="label-title" required style="color: #262626; font-size: .14rem">目标运动情况</div>
<div class="flex"> <div class="flex">
<van-field <van-field
v-model="form.targetExerciseWeek" v-model="form.targetExerciseWeek"
...@@ -704,7 +694,7 @@ ...@@ -704,7 +694,7 @@
</template> </template>
</van-field> </van-field>
<div v-if="form.drugsAdverse === 1" class="bg-fa mt-2"> <div v-if="form.drugsAdverse === 1" class="bg-fa mt-2">
<div class="label-title" style="color: #262626; font-size: 14px">不良反应</div> <div class="label-title" style="color: #262626; font-size: .14rem">不良反应</div>
<van-field <van-field
type="textarea" type="textarea"
v-model="form.drugsAdverseOther" v-model="form.drugsAdverseOther"
...@@ -791,7 +781,7 @@ ...@@ -791,7 +781,7 @@
</van-field> </van-field>
<div v-if="form.isReferral === 1" class="bg-fa mt-2"> <div v-if="form.isReferral === 1" class="bg-fa mt-2">
<div style="background-color: #fff; padding: 8px; border-radius: 8px"> <div style="background-color: #fff; padding: 8px; border-radius: 8px">
<div style="color: #262626; font-size: 14px">转诊原因</div> <div style="color: #262626; font-size: .14rem">转诊原因</div>
<van-field <van-field
type="textarea" type="textarea"
v-model="form.referralReason" v-model="form.referralReason"
...@@ -801,7 +791,7 @@ ...@@ -801,7 +791,7 @@
/> />
</div> </div>
<div style="background-color: #fff; padding: 8px; border-radius: 8px" class="mt-2"> <div style="background-color: #fff; padding: 8px; border-radius: 8px" class="mt-2">
<div style="color: #262626; font-size: 14px">转诊机构</div> <div style="color: #262626; font-size: .14rem">转诊机构</div>
<van-field <van-field
v-model="form.referralUnitName" v-model="form.referralUnitName"
is-link is-link
...@@ -818,7 +808,7 @@ ...@@ -818,7 +808,7 @@
/> />
</div> </div>
<div style="background-color: #fff; padding: 8px; border-radius: 8px" class="mt-2"> <div style="background-color: #fff; padding: 8px; border-radius: 8px" class="mt-2">
<div style="color: #262626; font-size: 14px">转诊科室</div> <div style="color: #262626; font-size: .14rem">转诊科室</div>
<van-field <van-field
v-model="form.referralOfficeName" v-model="form.referralOfficeName"
is-link is-link
...@@ -1682,9 +1672,6 @@ export default { ...@@ -1682,9 +1672,6 @@ export default {
padding: 8px 12px; padding: 8px 12px;
border-radius: 8px; border-radius: 8px;
} }
:deep(.label-mr) {
margin-right: 8px;
}
:deep(.van-field) { :deep(.van-field) {
border-radius: .08rem; border-radius: .08rem;
.van-field__label { .van-field__label {
......
...@@ -30,12 +30,12 @@ module.exports = defineConfig({ ...@@ -30,12 +30,12 @@ module.exports = defineConfig({
} }
}, },
'/chronic-admin': { '/chronic-admin': {
target: 'https://beta-tumour.zmnyjk.com', // target: 'https://beta-tumour.zmnyjk.com',
// target: 'http://192.168.1.202:8900', target: 'http://192.168.1.216:8900',
changOrigin: true, changOrigin: true,
pathRewrite: { pathRewrite: {
// '^/chronic-admin': '/' '^/chronic-admin': '/'
'^/chronic-admin': '/chronic-admin' // '^/chronic-admin': '/chronic-admin'
} }
}, },
'/chronic-resident': { '/chronic-resident': {
......
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