Commit 36543182 authored by songrui's avatar songrui

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

parent 578571ed
......@@ -52,7 +52,7 @@ export default {
if (!token) {
token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') {
token = '599c5ba1-d338-4569-a245-681566a79098'
token = '0e5b7b8b-f6b0-4232-90ff-a674159c4fff'
}
}
if (token) {
......
......@@ -16,7 +16,7 @@
<div v-if='showOne && firstForm.visitSituation == 1'>
<div class='no-req-label mt-5'>处置意见</div>
<van-field
v-model='form.idCard'
v-model='form.disposalOpinion'
rows='2'
autosize
type='textarea'
......@@ -97,7 +97,7 @@
</div>
<div class='img-btn mt-2' @click="toUpload('imgId2')">
<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>
<doc-icon type='doc-upload' class='doc-up' />
......@@ -162,7 +162,10 @@
:rules='rules.nextVisitDate'
@click='showDate = true' />
<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>
</div>
</van-form>
......@@ -173,7 +176,7 @@
import { useStore } from '@/resident/store'
import dayjs from 'dayjs'
import DocIcon from '@/components/docIcon/DocIcon'
import { showImagePreview } from 'vant'
import { showToast } from 'vant'
import { fetchDataHandle } from '@/utils/common'
export default {
......@@ -207,7 +210,12 @@ export default {
initSwipe: 0,
rules: {
nextVisitDate: [{ required: true, message: '请选择' }]
}
},
// 筛查日期可选范围
nextVisitDateRange: {
min: undefined,
max: undefined
},
}
},
watch: {
......@@ -279,6 +287,12 @@ export default {
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: {
setForm(info = {}) {
const modeArray = this.store.getDict('DC00084')
......@@ -328,6 +342,14 @@ export default {
return form.visitHealthGuideList
},
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)
input.click()
},
......
......@@ -228,6 +228,13 @@ const defaultForm = (info = {}) => {
relationOther: undefined,
// 人群
chronicTagsArray: undefined,
chronicCrowd: undefined,
firstScreenDate: undefined,
firstScreenResult: undefined,
highTagsArray: undefined,
highTags: undefined,
latelyDiagnoseDate: undefined,
latelyScreenDate:undefined,
}
Reflect.ownKeys(form).forEach(key => {
if (info[key] != undefined) {
......
......@@ -10,7 +10,6 @@
class="screen-form">
<van-field required
v-model="form.certificateTypeTrans"
is-link
readonly
name="certificateType"
label="证件类型"
......
......@@ -415,7 +415,7 @@ export default {
showScreenDate: false,
// 筛查日期可选范围
screenDateRange: {
min: new Date(2024, 9, 2),
min: undefined,
max: undefined
},
store: useStore()
......
......@@ -30,12 +30,12 @@ module.exports = defineConfig({
}
},
'/chronic-admin': {
// target: 'https://beta-tumour.zmnyjk.com',
target: 'http://192.168.1.125:8900',
target: 'https://beta-tumour.zmnyjk.com',
// target: 'http://192.168.1.125:8900',
changOrigin: true,
pathRewrite: {
'^/chronic-admin': '/'
// '^/chronic-admin': '/chronic-admin'
// '^/chronic-admin': '/'
'^/chronic-admin': '/chronic-admin'
}
},
'/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