|
|
@ -2,17 +2,35 @@ |
|
|
|
<view class="container" style="min-height:100vh"> |
|
|
|
<view class="header" @click="handleBack"> |
|
|
|
<image class="header-back-img" src="../../imgs/back.png"></image> |
|
|
|
{{form.type == 1 ? '失能老年人医养结合和健康服务登记' : '高龄老人医养结合服务登记'}} |
|
|
|
{{registerType == 1 ? '失能老年人医养结合和健康服务登记' : '高龄老人医养结合服务登记'}} |
|
|
|
<view></view> |
|
|
|
</view> |
|
|
|
<u-steps :current="1"> |
|
|
|
<!-- <text class="slot-icon" slot="icon">运</text> --> |
|
|
|
<u-steps-item title="信息" ></u-steps-item> |
|
|
|
<u-steps-item title="评估"></u-steps-item> |
|
|
|
<u-steps-item title="筛查"></u-steps-item> |
|
|
|
<u-steps-item title="登记"></u-steps-item> |
|
|
|
<u-steps-item title="确认"></u-steps-item> |
|
|
|
</u-steps> |
|
|
|
<view class="view-step"> |
|
|
|
<view> |
|
|
|
<image src="../../imgs/icon_wanc.png" class="step-img"></image> |
|
|
|
<p style="color:#3D3D3D">信息</p> |
|
|
|
</view> |
|
|
|
<h1></h1> |
|
|
|
<view> |
|
|
|
<image src="../../imgs/icon_wanc.png" class="step-img"></image> |
|
|
|
<p style="color:#3D3D3D">评估</p> |
|
|
|
</view> |
|
|
|
<h1></h1> |
|
|
|
<view> |
|
|
|
<image src="../../imgs/icon_wanc.png" class="step-img"></image> |
|
|
|
<p style="color:#3D3D3D">筛查</p> |
|
|
|
</view> |
|
|
|
<h1></h1> |
|
|
|
<view> |
|
|
|
<image src="../../imgs/icon_wanc.png" class="step-img"></image> |
|
|
|
<p style="color:#3D3D3D">登记</p> |
|
|
|
</view> |
|
|
|
<h1></h1> |
|
|
|
<view> |
|
|
|
<image src="../../imgs/icon_moren.png" class="step-img"></image> |
|
|
|
<p>确认</p> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="flex: 1; position: relative;margin-top: 20px;"> |
|
|
|
<scroll-view class="view-scroll" scroll-y="true" :lower-threshold="50" scroll-with-animation > |
|
|
|
<view class="view-modal"> |
|
|
@ -543,6 +561,7 @@ import {detailSubmit,detailQuery} from '@/common/api.js'; |
|
|
|
form:{ |
|
|
|
|
|
|
|
}, |
|
|
|
registerType: 1 |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -560,9 +579,7 @@ import {detailSubmit,detailQuery} from '@/common/api.js'; |
|
|
|
const res = await detailSubmit(data); |
|
|
|
if (res.code == 200) { |
|
|
|
if(this.setp == 3){ |
|
|
|
setTimeout(()=>{ |
|
|
|
uni.navigateTo({ url: `/pages/healthService/healthService5?evaId=${this.evaId}` }); |
|
|
|
}, 100) |
|
|
|
uni.navigateTo({ url: `/pages/healthService/healthService5?evaId=${this.evaId}&djType=${this.registerType}` }); |
|
|
|
return |
|
|
|
} |
|
|
|
this.setp ++ |
|
|
@ -574,16 +591,12 @@ import {detailSubmit,detailQuery} from '@/common/api.js'; |
|
|
|
const res = await detailQuery({evaId: this.evaId}) |
|
|
|
if(res.code == 200){ |
|
|
|
let data = {} |
|
|
|
if(res.data){ |
|
|
|
res.data.questionList.forEach(i =>{ |
|
|
|
data[i.code] = i.value |
|
|
|
}) |
|
|
|
|
|
|
|
this.form = data || { |
|
|
|
// DJ01_1:null,DJ01_2:null,DJ01_3:null,DJ01_4:null,DJ01_5:null,DJ01_6:null,DJ01_7:null,DJ01_8:null, |
|
|
|
// DJ02_1:null,DJ02_2:null,DJ02_3:null,DJ02_4:null,DJ02_5:null,DJ02_6:null,DJ02_7:null,DJ02_8:null, |
|
|
|
// DJ02_9:null,DJ02_10:null,DJ02_11:null,DJ02_12:null,DJ02_13:null,DJ02_14:null,DJ02_15:null,DJ02_16:null, |
|
|
|
// DJ02_17:null, |
|
|
|
} |
|
|
|
this.form = data |
|
|
|
console.log('this.form',this.form) |
|
|
|
} |
|
|
|
}, |
|
|
@ -606,6 +619,8 @@ import {detailSubmit,detailQuery} from '@/common/api.js'; |
|
|
|
}, |
|
|
|
onLoad(data) { |
|
|
|
this.evaId = data.evaId |
|
|
|
this.registerType = data.djType |
|
|
|
console.log('this.registerType',this.registerType) |
|
|
|
this.getQuery() |
|
|
|
}, |
|
|
|
} |
|
|
|