Commit 36543182 authored by songrui's avatar songrui

下次随访日期修改;保存筛查修改

parent 578571ed
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,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 = '599c5ba1-d338-4569-a245-681566a79098' token = '0e5b7b8b-f6b0-4232-90ff-a674159c4fff'
} }
} }
if (token) { if (token) {
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div v-if='showOne && firstForm.visitSituation == 1'> <div v-if='showOne && firstForm.visitSituation == 1'>
<div class='no-req-label mt-5'>处置意见</div> <div class='no-req-label mt-5'>处置意见</div>
<van-field <van-field
v-model='form.idCard' v-model='form.disposalOpinion'
rows='2' rows='2'
autosize autosize
type='textarea' type='textarea'
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</div> </div>
<div class='img-btn mt-2' @click="toUpload('imgId2')"> <div class='img-btn mt-2' @click="toUpload('imgId2')">
<input type='file' id='imgId2' multiple @change='choiceImg2' style='display: none' <input type='file' id='imgId2' multiple @change='choiceImg2' style='display: none'
:key='new Date().getTime()-10000'> :key='new Date().getTime()-10000' accept="image/*">
<div class='flex items-center justify-center'> <div class='flex items-center justify-center'>
<div> <div>
<doc-icon type='doc-upload' class='doc-up' /> <doc-icon type='doc-upload' class='doc-up' />
...@@ -162,7 +162,10 @@ ...@@ -162,7 +162,10 @@
: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 @confirm='dataConfirm' @cancel='showDate = false' /> <van-date-picker v-model="form._nextVisitDate"
:min-date="nextVisitDateRange.min"
:max-date="nextVisitDateRange.max"
@confirm='dataConfirm' @cancel='showDate = false' />
</van-popup> </van-popup>
</div> </div>
</van-form> </van-form>
...@@ -173,7 +176,7 @@ ...@@ -173,7 +176,7 @@
import { useStore } from '@/resident/store' import { useStore } from '@/resident/store'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import DocIcon from '@/components/docIcon/DocIcon' import DocIcon from '@/components/docIcon/DocIcon'
import { showImagePreview } from 'vant' import { showToast } from 'vant'
import { fetchDataHandle } from '@/utils/common' import { fetchDataHandle } from '@/utils/common'
export default { export default {
...@@ -207,7 +210,12 @@ export default { ...@@ -207,7 +210,12 @@ export default {
initSwipe: 0, initSwipe: 0,
rules: { rules: {
nextVisitDate: [{ required: true, message: '请选择' }] nextVisitDate: [{ required: true, message: '请选择' }]
} },
// 筛查日期可选范围
nextVisitDateRange: {
min: undefined,
max: undefined
},
} }
}, },
watch: { watch: {
...@@ -279,6 +287,12 @@ export default { ...@@ -279,6 +287,12 @@ export default {
return sceneVisitImageList return sceneVisitImageList
} }
}, },
created() {
const date = dayjs()
this.nextVisitDateRange.max = new Date(date.year() + 10, date.month(), date.date())
this.nextVisitDateRange.min = new Date(date.year(), date.month(), date.date() + 1)
this.form._nextVisitDate = [date.year(), date.month(), date.date() + 1]
},
methods: { methods: {
setForm(info = {}) { setForm(info = {}) {
const modeArray = this.store.getDict('DC00084') const modeArray = this.store.getDict('DC00084')
...@@ -328,6 +342,14 @@ export default { ...@@ -328,6 +342,14 @@ export default {
return form.visitHealthGuideList return form.visitHealthGuideList
}, },
toUpload(id) { toUpload(id) {
if (id === 'imgId' && this.imgList.length >= 6) {
showToast('最多允许上传6张')
return
}
if (id === 'imgId2' && this.imgList2.length >= 8) {
showToast('最多允许上传8张')
return
}
let input = document.getElementById(id) let input = document.getElementById(id)
input.click() input.click()
}, },
......
...@@ -228,6 +228,13 @@ const defaultForm = (info = {}) => { ...@@ -228,6 +228,13 @@ const defaultForm = (info = {}) => {
relationOther: undefined, relationOther: undefined,
// 人群 // 人群
chronicTagsArray: undefined, chronicTagsArray: undefined,
chronicCrowd: undefined,
firstScreenDate: undefined,
firstScreenResult: undefined,
highTagsArray: undefined,
highTags: undefined,
latelyDiagnoseDate: undefined,
latelyScreenDate:undefined,
} }
Reflect.ownKeys(form).forEach(key => { Reflect.ownKeys(form).forEach(key => {
if (info[key] != undefined) { if (info[key] != undefined) {
......
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
class="screen-form"> class="screen-form">
<van-field required <van-field required
v-model="form.certificateTypeTrans" v-model="form.certificateTypeTrans"
is-link
readonly readonly
name="certificateType" name="certificateType"
label="证件类型" label="证件类型"
......
...@@ -415,7 +415,7 @@ export default { ...@@ -415,7 +415,7 @@ export default {
showScreenDate: false, showScreenDate: false,
// 筛查日期可选范围 // 筛查日期可选范围
screenDateRange: { screenDateRange: {
min: new Date(2024, 9, 2), min: undefined,
max: undefined max: undefined
}, },
store: useStore() store: useStore()
......
...@@ -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.125:8900', // target: 'http://192.168.1.125: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