Commit befffd23 authored by songrui's avatar songrui

Merge branch 'chronic-dev' of http://gitlab.yiboshi.com/nightkis1995/frontend-h5 into chronic-dev

parents cabe326a 3bd2ead7
...@@ -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 = '3a247da4-e163-4e68-80da-4ed81f088ca5' token = 'c05b4361-deec-4a64-92d5-b6f4b54ec89b'
} }
} }
if (token) { if (token) {
......
...@@ -104,6 +104,7 @@ export default { ...@@ -104,6 +104,7 @@ export default {
border: 1px solid transparent; border: 1px solid transparent;
background-color: #FAFAFA; background-color: #FAFAFA;
border-radius: 8px; border-radius: 8px;
text-align: center;
transition: all .2s; transition: all .2s;
} }
.check-btn-item-active { .check-btn-item-active {
......
<template> <template>
<div> <div>
<van-form ref='form'> <van-form ref='form'>
<div class='no-req-label'>随访单位</div> <div class='label-title' v-if='showPush'>请选择推送渠道</div>
<checkBtn column-1 :options='vxList' v-model:value='checkVx' :fieldNames="{text: 'name', value: 'value'}"></checkBtn>
<div class='push-lab'>随访信息将通过小程序消息推送给居民</div>
<checkBtn column-1 :options='messageList' v-model:value='checkMessage' :fieldNames="{text: 'name', value: 'value'}"></checkBtn>
<div class='push-lab'>随访信息将通过短信方式发送给居民</div>
<div :class="['label-title', {'mt-5': showPush}]">随访单位</div>
<van-field <van-field
v-model='form.visitUnitName' v-model='form.visitUnitName'
is-link is-link
readonly readonly
placeholder='随访单位' placeholder='随访单位'
class='input-back mt-2 form-input' class='input-back mt-2 form-input'
@click="show1 = true" @click='show1 = true'
/> />
<DocUnit v-model:show="show1" v-model:value="form.visitUnitId" @change="changeUnit"/> <DocUnit v-model:show='show1' v-model:value='form.visitUnitId' @change='changeUnit' />
<div class='no-req-label mt-5'>随访科室</div> <div class='label-title mt-5'>随访科室</div>
<van-field <van-field
v-model='form.visitOfficeName' v-model='form.visitOfficeName'
is-link is-link
...@@ -21,9 +27,10 @@ ...@@ -21,9 +27,10 @@
class='input-back mt-2 form-input' class='input-back mt-2 form-input'
@click='show2 = true' @click='show2 = true'
/> />
<DocOffice v-model:show="show2" v-model:value="form.visitOfficeId" @change="changeOffice" :unitId="form.visitUnitId"/> <DocOffice v-model:show='show2' v-model:value='form.visitOfficeId' @change='changeOffice'
:unitId='form.visitUnitId' />
<div class='no-req-label mt-5'>随访医生</div> <div class='label-title mt-5'>随访医生</div>
<van-field <van-field
v-model='form.visitDoctorName' v-model='form.visitDoctorName'
is-link is-link
...@@ -33,7 +40,8 @@ ...@@ -33,7 +40,8 @@
@click='show3 = true' @click='show3 = true'
/> />
<DocOfficeDoctor v-model:show="show3" v-model:value="form.visitDoctorId" @change="changeDoctor" :unitId="form.visitUnitId" :officeId="form.visitOfficeId"/> <DocOfficeDoctor v-model:show='show3' v-model:value='form.visitDoctorId' @change='changeDoctor'
:unitId='form.visitUnitId' :officeId='form.visitOfficeId' />
</van-form> </van-form>
</div> </div>
</template> </template>
...@@ -44,15 +52,27 @@ import { useStore } from '@/doctor/store' ...@@ -44,15 +52,27 @@ import { useStore } from '@/doctor/store'
import DocUnit from '@/doctor/components/docUnit/DocUnit' import DocUnit from '@/doctor/components/docUnit/DocUnit'
import DocOffice from '@/doctor/components/docOffice/DocOffice' import DocOffice from '@/doctor/components/docOffice/DocOffice'
import DocOfficeDoctor from '@/doctor/components/docOfficeDoctor/DocOfficeDoctor' import DocOfficeDoctor from '@/doctor/components/docOfficeDoctor/DocOfficeDoctor'
import CheckBtn from '@/doctor/components/checkBtn/CheckBtn'
export default { export default {
name: 'CommonBottom', name: 'CommonBottom',
components: { DocOfficeDoctor, DocOffice, DocUnit }, components: { CheckBtn, DocOfficeDoctor, DocOffice, DocUnit },
props: { props: {
info: { info: {
default: () => { default: () => {
return {} return {}
} }
},
firstForm: {
default: () => {
return {}
}
},
modeEnumList: {
default: () => {
return {}
}
} }
}, },
data() { data() {
...@@ -61,6 +81,10 @@ export default { ...@@ -61,6 +81,10 @@ export default {
show1: false, show1: false,
show2: false, show2: false,
show3: false, show3: false,
vxList:[],
checkVx: undefined,
messageList: [],
checkMessage: undefined,
form: {}, form: {},
rules: {} rules: {}
} }
...@@ -76,9 +100,32 @@ export default { ...@@ -76,9 +100,32 @@ export default {
computed: { computed: {
authInfo() { authInfo() {
return this.store.$state.authInfo return this.store.$state.authInfo
},
//是否显示推送渠道
showPush() {
let res = false
let list = []
if (this.firstForm.visitWayRules) {
list = this.firstForm.visitWayRules.split(',').map(item => Number(item))
}
if (list && list.length && (list.includes(2) || list.includes(3) || list.includes(4))) {
res = true
} }
return res
}
},
mounted() {
this.vxList = this.getVxEnum(this.firstForm.residentsRecord)
this.messageList = this.getMessageEnum(this.firstForm.residentsRecord)
}, },
methods: { methods: {
//微信
getVxEnum(patientInfo = {}) {
return [{ name: `${patientInfo.weixinTel ? `(${this.$phoneHide(patientInfo.weixinTel)}已注册小程序)` : `(未注册小程序)`}`, value:1 }]
},
getMessageEnum(patientInfo = {}) {
return [{ name: `${patientInfo.telephone ? `(手机号 ${this.$phoneHide(patientInfo.telephone)})` : `(手机号 不存在)`}`, value: 2 }]
},
setForm(info) { setForm(info) {
const form = { const form = {
visitDate: new dayjs(), visitDate: new dayjs(),
...@@ -134,7 +181,7 @@ export default { ...@@ -134,7 +181,7 @@ export default {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$refs.form.validate().then(() => { this.$refs.form.validate().then(() => {
let par = { let par = {
...this.form, ...this.form
} }
resolve(par) resolve(par)
}).catch((e) => { }).catch((e) => {
...@@ -166,6 +213,12 @@ export default { ...@@ -166,6 +213,12 @@ export default {
} }
} }
.push-lab {
line-height: 20px;
color: #8C8C8C;
font-size: 12px
}
.no-req-label { .no-req-label {
font-size: 13px; font-size: 13px;
color: #595959; color: #595959;
......
...@@ -40,6 +40,29 @@ ...@@ -40,6 +40,29 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 催检-->
<div v-if='showFour'>
<div class='no-req-label mt-5'>催检内容</div>
<div class='tel-back mt-2'>
<div class='tel'>
<div style='text-indent: 2em;line-height: .2rem'>
<span v-if='modeEnumList.urgeResidentShow'>{{ firstForm.residentsRecord.residentName }}先生/女士,</span>
<span v-else>您好,</span>
<span>请您于{{ form.screenTime }}</span>
<span>{{ authInfo.unitName }}</span>
<span>进行专病高危筛查/慢病复查,</span>
<span>祝早日康复!</span>
</div>
<div class='mt-2' style='text-align: center' @click='showTime1 = true'>
<span style='color: #607FF0'>修改日期</span>
</div>
</div>
</div>
<van-popup v-model:show='showTime1' position='bottom'>
<van-date-picker v-model='currentTime1' @confirm='timeConfirm1' @cancel='showTime1 = false' />
</van-popup>
</div>
<div v-if='showOne'> <div v-if='showOne'>
<div class='no-req-label mt-5'>上传随访记录</div> <div class='no-req-label mt-5'>上传随访记录</div>
...@@ -48,7 +71,7 @@ ...@@ -48,7 +71,7 @@
</div> </div>
<div class='img-btn mt-2' @click="toUpload('imgId')"> <div class='img-btn mt-2' @click="toUpload('imgId')">
<input type='file' id='imgId' multiple @change='choiceImg' style='display: none' <input type='file' id='imgId' multiple @change='choiceImg' style='display: none'
:key='new Date().getTime()' accept="image/*,.pdf"> :key='new Date().getTime()' accept='image/*,.pdf'>
<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' />
...@@ -92,14 +115,14 @@ ...@@ -92,14 +115,14 @@
<div v-if='imgList.length > 6' class='warn mt-2'>最多允许上传6张!</div> <div v-if='imgList.length > 6' class='warn mt-2'>最多允许上传6张!</div>
</div> </div>
<div v-if='showOne'> <div>
<div class='no-req-label mt-5'>现场随访照片</div> <div class='no-req-label mt-5'>现场随访照片</div>
<div class='tips'> <div class='tips'>
支持上传jpg、png、jpeg文件,大小请在10M以内 支持上传jpg、png、jpeg文件,大小请在10M以内
</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' accept="image/*,.pdf"> :key='new Date().getTime()-10000' accept='image/*,.pdf'>
<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' />
...@@ -147,7 +170,7 @@ ...@@ -147,7 +170,7 @@
<div class='wrapper'> <div class='wrapper'>
<van-swipe class='block' :initial-swipe='initSwipe'> <van-swipe class='block' :initial-swipe='initSwipe'>
<van-swipe-item v-for='image in showImgList' :key='image'> <van-swipe-item v-for='image in showImgList' :key='image'>
<img :src='image' style='width: 100%;height: 100%'/> <img :src='image' style='width: 100%;height: 100%' />
</van-swipe-item> </van-swipe-item>
</van-swipe> </van-swipe>
</div> </div>
...@@ -165,9 +188,9 @@ ...@@ -165,9 +188,9 @@
: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>
</div> </div>
...@@ -196,6 +219,11 @@ export default { ...@@ -196,6 +219,11 @@ export default {
return {} return {}
} }
}, },
modeEnumList: {
default: () => {
return {}
}
}
}, },
data() { data() {
return { return {
...@@ -209,6 +237,8 @@ export default { ...@@ -209,6 +237,8 @@ export default {
imgInputList2: [], imgInputList2: [],
showDate: false, showDate: false,
imgShow: false, imgShow: false,
showTime1: false,
currentTime1: null,
showImgList: [], showImgList: [],
initSwipe: 0, initSwipe: 0,
rules: { rules: {
...@@ -218,7 +248,7 @@ export default { ...@@ -218,7 +248,7 @@ export default {
nextVisitDateRange: { nextVisitDateRange: {
min: undefined, min: undefined,
max: undefined max: undefined
}, }
} }
}, },
watch: { watch: {
...@@ -231,41 +261,48 @@ export default { ...@@ -231,41 +261,48 @@ export default {
} }
}, },
immediate: true immediate: true
}, }
}, },
computed: { computed: {
authInfo() {
return this.store.$state.authInfo
},
//复检 //复检
showOne() { showOne() {
const { visitWayRules = [] } = this.firstForm const { visitWayRules } = this.firstForm
let res = false let res = false
if (visitWayRules.includes(1)) { let list = visitWayRules && visitWayRules.split(',').map(item => Number(item))
if (list && list.includes(1)) {
res = true res = true
} }
return res return res
}, },
//指导 //指导
showTwo() { showTwo() {
const { visitWayRules = [] } = this.firstForm const { visitWayRules } = this.firstForm
let res = false let res = false
if (visitWayRules.includes(2)) { let list = visitWayRules && visitWayRules.split(',').map(item => Number(item))
if (list && list.includes(2)) {
res = true res = true
} }
return res return res
}, },
//宣教 //宣教
showThree() { showThree() {
const {visitWayRules = []} = this.firstForm const { visitWayRules } = this.firstForm
let res = false let res = false
if (visitWayRules.includes(3)) { let list = visitWayRules && visitWayRules.split(',').map(item => Number(item))
if (list && list.includes(3)) {
res = true res = true
} }
return res return res
}, },
//催检 //催检
showFour() { showFour() {
const { visitWayRules = [] } = this.firstForm const { visitWayRules } = this.firstForm
let res = false let res = false
if (visitWayRules.includes(4)) { let list = visitWayRules && visitWayRules.split(',').map(item => Number(item))
if (list && list.includes(4)) {
res = true res = true
} }
return res return res
...@@ -304,6 +341,9 @@ export default { ...@@ -304,6 +341,9 @@ export default {
this.nextVisitDateRange.max = new Date(date.year() + 10, date.month(), date.date()) 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.nextVisitDateRange.min = new Date(date.year(), date.month(), date.date() + 1)
this.form._nextVisitDate = [date.year(), date.month(), date.date() + 1] this.form._nextVisitDate = [date.year(), date.month(), date.date() + 1]
this.form.nextVisitDate = new dayjs().add(1, 'day').format('YYYY-MM-DD')
let time = new dayjs().add(1, 'day').format('YYYY-MM-DD')
this.currentTime1 = time.split('-')
}, },
methods: { methods: {
setForm(info = {}) { setForm(info = {}) {
...@@ -319,6 +359,7 @@ export default { ...@@ -319,6 +359,7 @@ export default {
nextVisitDate: info.nextVisitDate, nextVisitDate: info.nextVisitDate,
isSms: info.isSms, isSms: info.isSms,
isWx: info.isWx, isWx: info.isWx,
screenTime: new dayjs().add(1, 'day').format('YYYY-MM-DD'),
visitContent: info.visitContent, visitContent: info.visitContent,
disposalOpinion: info.disposalOpinion, disposalOpinion: info.disposalOpinion,
uploadVisitRecord: info.uploadVisitRecord, uploadVisitRecord: info.uploadVisitRecord,
...@@ -431,18 +472,26 @@ export default { ...@@ -431,18 +472,26 @@ export default {
this.form.nextVisitDate = selectedValues.join('-') this.form.nextVisitDate = selectedValues.join('-')
this.showDate = false this.showDate = false
}, },
//催检日期选择
timeConfirm1({ selectedValues }) {
this.form.screenTime = selectedValues.join('-')
this.showTime1 = false
},
onSubmit() { onSubmit() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.$refs.form.validate().then(() => { this.$refs.form.validate().then(() => {
if (this.imgList.length > 6 || this.imgList2.length > 8) { if (this.imgList.length > 6 || this.imgList2.length > 8) {
return return
} }
let time = dayjs(this.form.screenTime).format('YYYY-MM-DD')
let content = `${this.modeEnumList.urgeResidentShow ? `${this.firstForm.residentsRecord.residentName}先生/女士,` : `您好,`}请您于${time}${this.authInfo.unitName}进行专病高危筛查/慢病复查,祝早日恢复健康!`
let par = { let par = {
img1: this.imgList || [], img1: this.imgList || [],
img2: this.imgList2 || [], img2: this.imgList2 || [],
imgInput1: this.imgInputList1, imgInput1: this.imgInputList1,
imgInput2: this.imgInputList2, imgInput2: this.imgInputList2,
...this.form, ...this.form,
urgentInsContent: content,
healthGuideContent: JSON.stringify(this.form.visitHealthGuideList) healthGuideContent: JSON.stringify(this.form.visitHealthGuideList)
} }
resolve(par) resolve(par)
...@@ -555,11 +604,13 @@ export default { ...@@ -555,11 +604,13 @@ export default {
top: -9px; top: -9px;
z-index: 1; z-index: 1;
} }
.wrapper { .wrapper {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
.block { .block {
width: 100%; width: 100%;
height: 300px; height: 300px;
......
<template> <template>
<div> <div>
<van-nav-bar :title="routerDetail.id ? '修改通用随访': '新增通用随访'" left-text='' left-arrow @click-left='toBack'></van-nav-bar> <van-nav-bar :title="routerDetail.id ? '修改通用随访': '新增通用随访'" left-text='' left-arrow
@click-left='toBack'></van-nav-bar>
<div class='p-4 h-overflow'> <div class='p-4 h-overflow'>
<base-info :info='info' <base-info :info='info'
:modeEnumList="modeEnumList" :modeEnumList='modeEnumList'
v-show='step == 1' v-show='step == 1'
ref='baseInfo' ref='baseInfo'
@changeVisitSituation='changeVisitSituation'
></base-info> ></base-info>
<general-f-u-form :info='info' <general-f-u-form :info='info'
:first-form='firstForm' :first-form='firstForm'
:modeEnumList='modeEnumList'
v-show='step == 2' v-show='step == 2'
ref='generalFUForm' ref='generalFUForm'
></general-f-u-form> ></general-f-u-form>
<common-bottom :info='info' <common-bottom :info='info'
:first-form='firstForm'
:modeEnumList='modeEnumList'
v-show='step == 3' v-show='step == 3'
ref='commonBottom' ref='commonBottom'
></common-bottom> ></common-bottom>
</div> </div>
<div class='pt-2 pb-2'> <div class='pt-2 pb-2'>
<div class='px-5 grow flex flex-col justify-end' v-if='step == 1'> <div class='px-5 grow flex flex-col justify-end' v-if='step == 1'>
<van-button type='primary' block round v-if='visitSituation == 1' <van-button type='primary' block round
@click='toNext(2)'>下一步 @click='toNext(2)'>下一步
</van-button> </van-button>
<van-button type='primary' block round v-if='visitSituation == 2'
@click='toNext(3)'>下一步
</van-button>
</div> </div>
<div class='px-5 flex align-center justify-around' v-if='step == 2'> <div class='px-5 flex align-center justify-around' v-if='step == 2'>
...@@ -63,65 +63,66 @@ const getModeEnum = (patientInfo = {}) => { ...@@ -63,65 +63,66 @@ const getModeEnum = (patientInfo = {}) => {
{ {
value: '1', name: `门诊`, value: '1', name: `门诊`,
children: [ children: [
{value: 1, name: `复检`, disabled: false}, { value: 1, name: `复检`, disabled: false },
{value: 2, name: `指导`, disabled: false}, { value: 2, name: `指导`, disabled: false },
{value: 3, name: `宣教`, disabled: false}, { value: 3, name: `宣教`, disabled: false },
{value: 4, name: `催检`, disabled: true} { value: 4, name: `催检`, disabled: true }
] ]
}, },
{ {
value: '2', name: `住院`, value: '2', name: `住院`,
children: [ children: [
{value: 1, name: `复检`, disabled: false}, { value: 1, name: `复检`, disabled: false },
{value: 2, name: `指导`, disabled: false}, { value: 2, name: `指导`, disabled: false },
{value: 3, name: `宣教`, disabled: false}, { value: 3, name: `宣教`, disabled: false },
{value: 4, name: `催检`, disabled: true} { value: 4, name: `催检`, disabled: true }
] ]
}, },
{ {
value: '3', name: `入户`, value: '3', name: `入户`,
children: [ children: [
{value: 1, name: `复检`, disabled: false}, { value: 1, name: `复检`, disabled: false },
{value: 2, name: `指导`, disabled: false}, { value: 2, name: `指导`, disabled: false },
{value: 3, name: `宣教`, disabled: false}, { value: 3, name: `宣教`, disabled: false },
{value: 4, name: `催检`, disabled: true} { value: 4, name: `催检`, disabled: true }
], ]
}, },
{ {
value: '4', name: `电话`, value: '4', name: `电话`,
children: [ children: [
{value: 1, name: `复检`, disabled: false}, { value: 1, name: `复检`, disabled: false },
{value: 2, name: `指导`, disabled: false}, { value: 2, name: `指导`, disabled: false },
{value: 3, name: `宣教`, disabled: true}, { value: 3, name: `宣教`, disabled: true },
{value: 4, name: `催检`, disabled: false} { value: 4, name: `催检`, disabled: false }
], ]
}, },
{ {
value: '5', name: `短信`, value: '5', name: `短信`,
children: [ children: [
{value: 1, name: `复检`, disabled: true}, { value: 1, name: `复检`, disabled: true },
{value: 2, name: `指导`, disabled: false}, { value: 2, name: `指导`, disabled: false },
{value: 3, name: `宣教`, disabled: false}, { value: 3, name: `宣教`, disabled: false },
{value: 4, name: `催检`, disabled: false} { value: 4, name: `催检`, disabled: false }
], ]
}, },
{ {
value: '6', name: `微信`, value: '6', name: `微信`,
children: [ children: [
{value: 1, name: `复检`, disabled: true}, { value: 1, name: `复检`, disabled: true },
{value: 2, name: `指导`, disabled: false}, { value: 2, name: `指导`, disabled: false },
{value: 3, name: `宣教`, disabled: false}, { value: 3, name: `宣教`, disabled: false },
{value: 4, name: `催检`, disabled: false} { value: 4, name: `催检`, disabled: false }
], ]
}, }
], ],
tel:`(本人电话:${patientInfo.telephone || ''})`, tel: `(本人电话:${patientInfo.telephone || ''})`,
weixi: `(绑定电话:${patientInfo.weixin || '未绑定'})`, weixi: `(绑定电话:${patientInfo.weixin || '未绑定'})`,
telephone: patientInfo.telephone,
weixinTel: patientInfo.weixin, weixinTel: patientInfo.weixin,
//是否下次随访日期必填 //是否下次随访日期必填
nextVisitDateReq: true, nextVisitDateReq: true,
//催检内容是否显示患者姓名 //催检内容是否显示患者姓名
urgeResidentShow: true, urgeResidentShow: true
} }
} }
export default { export default {
...@@ -131,7 +132,6 @@ export default { ...@@ -131,7 +132,6 @@ export default {
return { return {
info: {}, info: {},
resident: {}, resident: {},
visitSituation: 1,
step: 1, step: 1,
//第一步提交的表单 //第一步提交的表单
firstForm: {}, firstForm: {},
...@@ -154,8 +154,8 @@ export default { ...@@ -154,8 +154,8 @@ export default {
if (this.routerDetail.id) { if (this.routerDetail.id) {
const res = await fetchCurrencyById({ id: this.routerDetail.id }) const res = await fetchCurrencyById({ id: this.routerDetail.id })
let result = res.data || {} let result = res.data || {}
const {residentsRecord = {}} = result const { residentsRecord = {} } = result
const {id, ...others} = residentsRecord const { id, ...others } = residentsRecord
this.info = { this.info = {
...others, ...others,
personId: id, personId: id,
...@@ -192,9 +192,6 @@ export default { ...@@ -192,9 +192,6 @@ export default {
} }
this.step = val this.step = val
}, },
changeVisitSituation(val) {
this.visitSituation = val
},
//图片上传 //图片上传
async upload(imgList = []) { async upload(imgList = []) {
let list = [] let list = []
...@@ -257,9 +254,6 @@ export default { ...@@ -257,9 +254,6 @@ export default {
if (this.info.id) { if (this.info.id) {
params.visitRecordId = this.info.visitRecordId params.visitRecordId = this.info.visitRecordId
} }
if (params.visitSituation == 2) {
params.visitWay = 14
}
let fun = this.info.id ? updateCurrency : addCurrency let fun = this.info.id ? updateCurrency : addCurrency
fun(params, true).then(({ code }) => { fun(params, true).then(({ code }) => {
if (code == 'SUCCESS') { if (code == 'SUCCESS') {
...@@ -268,18 +262,10 @@ export default { ...@@ -268,18 +262,10 @@ export default {
}) })
}, },
toBack() { toBack() {
if (this.visitSituation == 1) {
if (this.step != 1) { if (this.step != 1) {
this.step-- this.step--
return return
} }
}
if (this.visitSituation == 2) {
if (this.step != 1) {
this.step = 1
return
}
}
this.$router.back() this.$router.back()
} }
} }
......
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