Commit 9519bdfd authored by 芮自成's avatar 芮自成

代码合并

parents 4f43945a 18fd1499
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
if (!token) { if (!token) {
token = sessionStorage.getItem('token') token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
token = 'bcb597e9-feeb-4d76-b22c-546c9147bee0' token = '6b4cc93f-85a0-4c0c-b47c-db0411952ddd'
} }
} }
if (token) { if (token) {
......
...@@ -163,37 +163,31 @@ ...@@ -163,37 +163,31 @@
<div> <div>
<div class='label-title mt-5'>下次随访日期</div> <div class='label-title mt-5'>下次随访日期</div>
<div class='mt-4'>
<van-radio-group v-model="timeCycle" direction="horizontal">
<van-radio name="1">一周后</van-radio>
<van-radio name="2">一月后</van-radio>
<van-radio name="3">三月后</van-radio>
</van-radio-group>
</div>
<van-field <van-field
v-model='form.nextVisitDate' v-model='form.nextVisitDate'
is-link is-link
readonly readonly
name='nextVisitDate' name='nextVisitDate'
placeholder='下次随访日期' placeholder='下次随访日期'
class='input-back mt-2 form-input' class='input-back mt-4 form-input'
:rules='rules.nextVisitDate' :rules='rules.nextVisitDate'
@click='showDate = true' /> @click='showDate = true' />
<van-popup v-model:show='showDate' position='bottom'> <van-popup v-model:show='showDate' position='bottom'>
<van-date-picker v-model='form._nextVisitDate' <van-date-picker v-model='form._nextVisitDate'
:min-date='nextVisitDateRange.min' :min-date='nextVisitDateRange.min'
:max-date='nextVisitDateRange.max' :max-date='nextVisitDateRange.max'
@confirm='dataConfirm' @cancel='showDate = false' /> @confirm='dataConfirm' @cancel='showDate = false' />
</van-popup> </van-popup>
<!-- 快捷选项 -->
<van-radio-group
v-model="timeCycle"
shape="dot"
direction="horizontal"
class="w-full doc-radio-group mt-2"
>
<van-radio
v-for="item in timeCycleList"
:key="item.value"
:name="item.value"
label-position="left"
>
{{ item.name }}
</van-radio>
</van-radio-group>
</div> </div>
</van-form> </van-form>
...@@ -262,12 +256,7 @@ export default { ...@@ -262,12 +256,7 @@ export default {
min: undefined, min: undefined,
max: undefined max: undefined
}, },
timeCycle: undefined, timeCycle: undefined
timeCycleList: [
{ value: 1, name: '一周后' },
{ value: 2, name: '一月后' },
{ value: 3, name: '三月后' }
]
} }
}, },
watch: { watch: {
...@@ -276,6 +265,26 @@ export default { ...@@ -276,6 +265,26 @@ export default {
this.form = this.setForm(this.info) this.form = this.setForm(this.info)
}, },
immediate: true immediate: true
},
timeCycle(val) {
let today = new Date()
if (val == 1) {
let oneWeekLater = new Date(today)
oneWeekLater.setDate(today.getDate() + 7)
this.form.nextVisitDate = dayjs(oneWeekLater).format('YYYY-MM-DD')
// this.form._nextVisitDate = dayjs(oneWeekLater).format('YYYY-MM-DD')
} else if (val == 2) {
today.setMonth(today.getMonth() + 1)
this.form.nextVisitDate = dayjs(today).format('YYYY-MM-DD')
// this.form._nextVisitDate = dayjs(today).format('YYYY-MM-DD')
} else if (val == 3) {
today.setMonth(today.getMonth() + 3)
this.form.nextVisitDate = dayjs(today).format('YYYY-MM-DD')
// this.form._nextVisitDate = dayjs(today).format('YYYY-MM-DD')
}
/* if (this.modeEnumList.nextVisitDateReq) {
this.$refs.form.validateFields('nextVisitDate')
}*/
} }
}, },
computed: { computed: {
......
...@@ -428,7 +428,6 @@ export default { ...@@ -428,7 +428,6 @@ export default {
watch: { watch: {
info: { info: {
handler(info) { handler(info) {
debugger
this.form = defaultForm(info) this.form = defaultForm(info)
this.form.medicalDirectoryCode = this.info.medicalInsuranceCode || this.info.medicalDirectoryCode this.form.medicalDirectoryCode = this.info.medicalInsuranceCode || this.info.medicalDirectoryCode
if (this.form.drugName) { if (this.form.drugName) {
......
...@@ -45,8 +45,6 @@ export default { ...@@ -45,8 +45,6 @@ export default {
baseInfo: {}, baseInfo: {},
// 慢特病信息 // 慢特病信息
slowSpecialInfo: {}, slowSpecialInfo: {},
// 结果
resultInfo: {}
} }
}, },
computed: { computed: {
...@@ -116,14 +114,13 @@ export default { ...@@ -116,14 +114,13 @@ export default {
query.residentsRecord = this.baseInfo query.residentsRecord = this.baseInfo
const func = query.id ? updateSlowSpecial : addSlowSpecial const func = query.id ? updateSlowSpecial : addSlowSpecial
func(query).then(res => { func(query).then(res => {
this.resultInfo = query
this.store.onRefreshMark()
this.$router.replace({ this.$router.replace({
path: '/doctor/patient-detail', path: '/doctor/patient-detail',
query: { query: {
residentInfoId: this.residentInfoId residentInfoId: this.residentInfoId
} }
}) })
this.store.onRefreshMark()
}) })
}) })
} else { } else {
......
...@@ -116,7 +116,6 @@ export default { ...@@ -116,7 +116,6 @@ export default {
this.load(false) this.load(false)
}, },
toDetail(record) { toDetail(record) {
debugger
if (!record) return if (!record) return
if (record.id == null) { if (record.id == null) {
this.$message.info('暂时无法查看 详情信息') this.$message.info('暂时无法查看 详情信息')
...@@ -130,7 +129,6 @@ export default { ...@@ -130,7 +129,6 @@ export default {
}) })
}, },
editBtn(record) { editBtn(record) {
debugger
this.$router.push({ this.$router.push({
path: '/doctor/followUp/slowSpecialFU/add', path: '/doctor/followUp/slowSpecialFU/add',
query: { residentInfoId: this.residentInfoId, id:record.id } query: { residentInfoId: this.residentInfoId, id:record.id }
......
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