Commit 5dca3eb0 authored by gengchunlei's avatar gengchunlei

慢综 医生端 fetch修改

parent d6a0a70a
...@@ -156,9 +156,10 @@ export default { ...@@ -156,9 +156,10 @@ export default {
}) })
}, },
toAddGeneral(val) { toAddGeneral(val) {
const {id, ...others} = val
this.$router.push({ this.$router.push({
path: `/doctor/followUp/generalFU/add`, path: `/doctor/followUp/generalFU/add`,
query: val query: {...others}
}) })
}, },
toSearch() { toSearch() {
......
...@@ -213,8 +213,8 @@ ...@@ -213,8 +213,8 @@
</template> </template>
</van-field> </van-field>
<div class='label-title mt-5'>随访方式</div> <div class='label-title mt-5' v-if='form.visitSituation == 1'>随访方式</div>
<van-field name='radio' :rules='rules.visitWay' class='p-12-0'> <van-field name='radio' :rules='rules.visitWay' class='p-12-0' v-if='form.visitSituation == 1'>
<template #input> <template #input>
<van-radio-group v-model='form.visitWay' class='w-full' shape='dot'> <van-radio-group v-model='form.visitWay' class='w-full' shape='dot'>
<van-cell-group> <van-cell-group>
...@@ -473,8 +473,10 @@ const defaultForm = (info = {}) => { ...@@ -473,8 +473,10 @@ const defaultForm = (info = {}) => {
permanentAddress: undefined, permanentAddress: undefined,
// 现住址编码 // 现住址编码
presentCode: undefined, presentCode: undefined,
presentCodeName: undefined,
// 户籍地编码 // 户籍地编码
registeredCode: undefined, registeredCode: undefined,
registeredCodeName: undefined,
// 居民档案id // 居民档案id
residentId: undefined, residentId: undefined,
// 姓名 // 姓名
...@@ -497,7 +499,7 @@ const defaultForm = (info = {}) => { ...@@ -497,7 +499,7 @@ const defaultForm = (info = {}) => {
// createUnitId: undefined, // createUnitId: undefined,
// createUnitName: undefined // createUnitName: undefined
//本次随访情况 //本次随访情况
visitSituation: undefined, visitSituation: '1',
lossReason: undefined, lossReason: undefined,
deathReason: undefined, deathReason: undefined,
lossReasonOther: undefined, lossReasonOther: undefined,
......
...@@ -9,19 +9,10 @@ ...@@ -9,19 +9,10 @@
readonly readonly
placeholder='随访单位' placeholder='随访单位'
class='input-back mt-2 form-input' class='input-back mt-2 form-input'
@click="showPopup = true" @click="show1 = true"
/> />
<van-popup v-model:show="showPopup" position="bottom" :style="{ height: '40%' }"> <DocUnit v-model:show="show1" v-model:value="value1" @change="(option) => value1 = option"/>
<van-search
v-model="searchText"
:show-action="false"
placeholder="搜索"
@search="onSearch"
/>
<van-cell-group>
<van-cell v-for="item in searchResults" :key="item" :title="item" />
</van-cell-group>
</van-popup>
<div class='no-req-label mt-5'>随访科室</div> <div class='no-req-label mt-5'>随访科室</div>
<van-field <van-field
v-model='form.visitOfficeName' v-model='form.visitOfficeName'
...@@ -30,6 +21,7 @@ ...@@ -30,6 +21,7 @@
placeholder='随访科室' placeholder='随访科室'
class='input-back mt-2 form-input' class='input-back mt-2 form-input'
/> />
<DocOffice v-model:show="show2" v-model:value="value2" @change="(option) => value2 = option" unitId="21649"/>
<div class='no-req-label mt-5'>随访医生</div> <div class='no-req-label mt-5'>随访医生</div>
<van-field <van-field
v-model='form.visitDoctorName' v-model='form.visitDoctorName'
...@@ -38,6 +30,8 @@ ...@@ -38,6 +30,8 @@
placeholder='随访医生' placeholder='随访医生'
class='input-back mt-2 form-input' class='input-back mt-2 form-input'
/> />
<DocOfficeDoctor v-model:show="show3" v-model:value="value3" @change="(option) => value3 = option" unitId="21649" officeId="36234"/>
</van-cell-group> </van-cell-group>
</van-form> </van-form>
</div> </div>
......
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
} }
}, },
created() { created() {
// this.init() this.init()
}, },
computed: { computed: {
routerDetail() { routerDetail() {
...@@ -53,16 +53,12 @@ export default { ...@@ -53,16 +53,12 @@ export default {
}, },
methods: { methods: {
async init() { async init() {
const res = await getChronicResidentsId(this.routerDetail.residentId)
this.resident = {
...res.data,
residentInfoId: this.routerDetail.residentId
}
this.info = {} this.info = {}
this.info.residentInfoId = this.routerDetail.residentId const res = await getChronicResidentsId(this.routerDetail.residentInfoId)
this.info.gender = this.resident.gender; const { id, ...others} = res.data
this.info.currentAge = this.resident.currentAge; this.info = {
this.info.genderName = this.resident.genderName; ...others
}
this.info.diseaseType = this.routerDetail.diseaseType this.info.diseaseType = this.routerDetail.diseaseType
if (this.routerDetail.id) { if (this.routerDetail.id) {
const res = await fetchCurrencyById({ id: this.routerDetail.id }) const res = await fetchCurrencyById({ id: this.routerDetail.id })
......
...@@ -30,19 +30,19 @@ module.exports = defineConfig({ ...@@ -30,19 +30,19 @@ module.exports = defineConfig({
} }
}, },
'/chronic-admin': { '/chronic-admin': {
// target: 'https://beta-tumour.zmnyjk.com', target: 'https://beta-tumour.zmnyjk.com',
target: 'http://192.168.1.26:8900', // target: 'http://192.168.1.26:8900',
changOrigin: true, changOrigin: true,
pathRewrite: { pathRewrite: {
'^/chronic-admin': '/' '^/chronic-admin': '/chronic-admin'
} }
}, },
'/chronic-resident': { '/chronic-resident': {
target: 'http://192.168.1.43:8903', // target: 'http://192.168.1.43:8903',
// target: 'https://beta-tumour.zmnyjk.com', target: 'https://beta-tumour.zmnyjk.com',
changOrigin: true, changOrigin: true,
pathRewrite: { pathRewrite: {
'^/chronic-resident': '/' '^/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