Browse Source

步骤条

znjjxt
1747191978@qq.com 12 months ago
parent
commit
209b40e9e9
  1. 30
      App.vue
  2. BIN
      imgs/icon_moren.png
  3. BIN
      imgs/icon_wanc.png
  4. 49
      pages/healthService/healthService.vue
  5. 42
      pages/healthService/healthService2.vue
  6. 42
      pages/healthService/healthService3.vue
  7. 57
      pages/healthService/healthService4.vue
  8. 33
      pages/healthService/healthService5.vue
  9. 5
      pages/index/index.vue
  10. 1998
      unpackage/dist/dev/app-plus/app-service.js
  11. 2227
      unpackage/dist/dev/app-plus/app-view.js
  12. BIN
      unpackage/dist/dev/app-plus/assets/icon_moren.e5b8333f.png
  13. BIN
      unpackage/dist/dev/app-plus/assets/icon_wanc.7a9c86c8.png

30
App.vue

@ -15,6 +15,36 @@
/*每个页面公共css */ /*每个页面公共css */
@import "@/uni_modules/uview-ui/index.scss"; @import "@/uni_modules/uview-ui/index.scss";
@import "common/demo.scss"; @import "common/demo.scss";
// .u-steps-item__wrapper__circle{
// background-color: #fff !important;
// }
.view-step{
margin-top: 25px;
display: flex;
justify-content: space-between;
h1{
flex:1;
height: 1px;
background: #9E9E9E;
margin-top: 10px;
}
view{
width: 30px;
display: flex;
justify-content: center;
flex-wrap: wrap;
.step-img{
width: 20px;
height: 20px;
}
p{
font-size: 13px;
color: #9E9E9E;
}
}
}
.u-upload__button{ .u-upload__button{
width: 90px !important; width: 90px !important;
height: 90px !important; height: 90px !important;

BIN
imgs/icon_moren.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

BIN
imgs/icon_wanc.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

49
pages/healthService/healthService.vue

@ -2,18 +2,35 @@
<view class="container" style="min-height:100vh"> <view class="container" style="min-height:100vh">
<view class="header" @click="handleBack"> <view class="header" @click="handleBack">
<image class="header-back-img" src="../../imgs/back.png"></image> <image class="header-back-img" src="../../imgs/back.png"></image>
{{form.type == 1 ? '失能老年人医养结合和健康服务登记' : '高龄老人医养结合服务登记'}} {{ registerType == 1 ? '失能老年人医养结合和健康服务登记' : '高龄老人医养结合服务登记'}}
<view></view> <view></view>
</view> </view>
<view @click="handleIdCard"> 扫描身份证 </view> <view class="view-step">
<u-steps :current="1"> <view>
<!-- <text class="slot-icon" slot="icon"></text> --> <image src="../../imgs/icon_wanc.png" class="step-img"></image>
<u-steps-item title="信息" ></u-steps-item> <p style="color:#3D3D3D">信息</p>
<u-steps-item title="评估"></u-steps-item> </view>
<u-steps-item title="筛查"></u-steps-item> <h1></h1>
<u-steps-item title="登记"></u-steps-item> <view>
<u-steps-item title="确认"></u-steps-item> <image src="../../imgs/icon_moren.png" class="step-img"></image>
</u-steps> <p>评估</p>
</view>
<h1></h1>
<view>
<image src="../../imgs/icon_moren.png" class="step-img"></image>
<p>筛查</p>
</view>
<h1></h1>
<view>
<image src="../../imgs/icon_moren.png" class="step-img"></image>
<p>登记</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;"> <view style="flex: 1; position: relative;margin-top: 20px;">
<scroll-view class="view-scroll" scroll-y="true" :lower-threshold="50" scroll-with-animation > <scroll-view class="view-scroll" scroll-y="true" :lower-threshold="50" scroll-with-animation >
<view class="view-form"> <view class="view-form">
@ -39,8 +56,7 @@
</view> --> </view> -->
<u-upload <u-upload
@afterRead="afterRead" @afterRead="afterRead"
name="1" name="1">
>
<image v-if="form.pic" :src="imgurl + form.pic" style="max-width: 80px;max-height: 80px;" ></image> <image v-if="form.pic" :src="imgurl + form.pic" style="max-width: 80px;max-height: 80px;" ></image>
</u-upload> </u-upload>
</view> </view>
@ -189,7 +205,7 @@ import {queryById,queryAdd,queryUpd,upload} from '@/common/api.js';
}, },
patientId:0, // ID patientId:0, // ID
patientData:{}, // patientData:{}, //
patientType:1 registerType:1
} }
}, },
methods: { methods: {
@ -266,9 +282,7 @@ import {queryById,queryAdd,queryUpd,upload} from '@/common/api.js';
// icon: false, // icon: false,
// message: "", // message: "",
// }) // })
setTimeout(()=>{ uni.navigateTo({ url: `/pages/healthService/healthService2?elderlyId=${this.patientId}&djType=${this.registerType}` });
uni.navigateTo({ url: `/pages/healthService/healthService2?elderlyId=${this.patientId}&djType=${this.patientType}` });
}, 100)
} }
}) })
}, },
@ -310,7 +324,8 @@ import {queryById,queryAdd,queryUpd,upload} from '@/common/api.js';
onLoad(data) { onLoad(data) {
let {id,type} = data let {id,type} = data
this.patientId = id this.patientId = id
this.patientType = type this.registerType = type
console.log(this.registerType)
this.getQueryById() this.getQueryById()
}, },
} }

42
pages/healthService/healthService2.vue

@ -2,17 +2,35 @@
<view class="container" style="min-height:100vh"> <view class="container" style="min-height:100vh">
<view class="header" @click="handleBack"> <view class="header" @click="handleBack">
<image class="header-back-img" src="../../imgs/back.png"></image> <image class="header-back-img" src="../../imgs/back.png"></image>
{{form.type == 1 ? '失能老年人医养结合和健康服务登记' : '高龄老人医养结合服务登记'}} {{ registerType == 1 ? '失能老年人医养结合和健康服务登记' : '高龄老人医养结合服务登记'}}
<view></view> <view></view>
</view> </view>
<u-steps :current="1"> <view class="view-step">
<!-- <text class="slot-icon" slot="icon"></text> --> <view>
<u-steps-item title="信息" ></u-steps-item> <image src="../../imgs/icon_wanc.png" class="step-img"></image>
<u-steps-item title="评估"></u-steps-item> <p style="color:#3D3D3D">信息</p>
<u-steps-item title="筛查"></u-steps-item> </view>
<u-steps-item title="登记"></u-steps-item> <h1></h1>
<u-steps-item title="确认"></u-steps-item> <view>
</u-steps> <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>
<h1></h1>
<view>
<image src="../../imgs/icon_moren.png" class="step-img"></image>
<p>登记</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;"> <view style="flex: 1; position: relative;margin-top: 20px;">
<scroll-view class="view-scroll" scroll-y="true" :lower-threshold="50" scroll-with-animation > <scroll-view class="view-scroll" scroll-y="true" :lower-threshold="50" scroll-with-animation >
<view class="view-modal"> <view class="view-modal">
@ -159,6 +177,7 @@ import {patientRegist,pgSubmit,pgQuery} from '@/common/api.js';
}, },
param:{}, param:{},
evaId: '', evaId: '',
registerType: ''
} }
}, },
methods: { methods: {
@ -177,9 +196,7 @@ import {patientRegist,pgSubmit,pgQuery} from '@/common/api.js';
// //
const res = await pgSubmit(this.form); const res = await pgSubmit(this.form);
if (res.code == 200) { if (res.code == 200) {
setTimeout(()=>{ uni.navigateTo({ url: `/pages/healthService/healthService3?evaId=${this.evaId}&djType=${this.registerType}` });
uni.navigateTo({ url: `/pages/healthService/healthService3?evaId=${this.evaId}` });
}, 100)
// //
} }
}, },
@ -250,6 +267,7 @@ import {patientRegist,pgSubmit,pgQuery} from '@/common/api.js';
}, },
onLoad(data) { onLoad(data) {
this.param = data this.param = data
this.registerType = data.djType
this.getPatientRegist() this.getPatientRegist()
}, },
} }

42
pages/healthService/healthService3.vue

@ -2,17 +2,35 @@
<view class="container" style="min-height:100vh"> <view class="container" style="min-height:100vh">
<view class="header" @click="handleBack"> <view class="header" @click="handleBack">
<image class="header-back-img" src="../../imgs/back.png"></image> <image class="header-back-img" src="../../imgs/back.png"></image>
{{form.type == 1 ? '失能老年人医养结合和健康服务登记' : '高龄老人医养结合服务登记'}} {{ registerType == 1 ? '失能老年人医养结合和健康服务登记' : '高龄老人医养结合服务登记'}}
<view></view> <view></view>
</view> </view>
<u-steps :current="1"> <view class="view-step">
<!-- <text class="slot-icon" slot="icon"></text> --> <view>
<u-steps-item title="信息" ></u-steps-item> <image src="../../imgs/icon_wanc.png" class="step-img"></image>
<u-steps-item title="评估"></u-steps-item> <p style="color:#3D3D3D">信息</p>
<u-steps-item title="筛查"></u-steps-item> </view>
<u-steps-item title="登记"></u-steps-item> <h1></h1>
<u-steps-item title="确认"></u-steps-item> <view>
</u-steps> <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>
<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;"> <view style="flex: 1; position: relative;margin-top: 20px;">
<scroll-view class="view-scroll" scroll-y="true" :lower-threshold="50" scroll-with-animation > <scroll-view class="view-scroll" scroll-y="true" :lower-threshold="50" scroll-with-animation >
<view class="view-modal"> <view class="view-modal">
@ -211,9 +229,7 @@ import {ad8Submit, ad8Query } from '@/common/api.js';
// //
const res = await ad8Submit(this.form); const res = await ad8Submit(this.form);
if (res.code == 200) { if (res.code == 200) {
setTimeout(()=>{ uni.navigateTo({ url: `/pages/healthService/healthService4?evaId=${this.evaId}&djType=${this.registerType}` });
uni.navigateTo({ url: `/pages/healthService/healthService4?evaId=${this.evaId}` });
}, 100)
} }
}, },
// //
@ -267,6 +283,8 @@ import {ad8Submit, ad8Query } from '@/common/api.js';
}, },
onLoad(data) { onLoad(data) {
this.evaId = data.evaId this.evaId = data.evaId
this.registerType = data.djType
console.log('this.registerType',this.registerType)
this.getpgQuery() this.getpgQuery()
}, },
} }

57
pages/healthService/healthService4.vue

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

33
pages/healthService/healthService5.vue

@ -2,9 +2,35 @@
<view class="container" style="min-height:100vh"> <view class="container" style="min-height:100vh">
<view class="header" @click="handleBack"> <view class="header" @click="handleBack">
<image class="header-back-img" src="../../imgs/back.png"></image> <image class="header-back-img" src="../../imgs/back.png"></image>
{{type == 1 ? '失能老年人医养结合和健康服务登记' : '高龄老人医养结合服务登记'}} {{registerType == 1 ? '失能老年人医养结合和健康服务登记' : '高龄老人医养结合服务登记'}}
<view></view> <view></view>
</view> </view>
<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_wanc.png" class="step-img"></image>
<p style="color:#3D3D3D">确认</p>
</view>
</view>
<view class="view-sign"> <view class="view-sign">
<view class="view-sign-title"> <view class="view-sign-title">
<h1>失能老年人或监护人签名</h1> <h1>失能老年人或监护人签名</h1>
@ -51,7 +77,7 @@ import {upload, complete,completeById} from '@/common/api.js';
"quiltSign":"" "quiltSign":""
}, },
evaId:'', evaId:'',
type: 1, registerType: 1,
token: uni.getStorageSync('userToken'), token: uni.getStorageSync('userToken'),
action: config.baseUrl + '/upload', action: config.baseUrl + '/upload',
} }
@ -148,8 +174,11 @@ import {upload, complete,completeById} from '@/common/api.js';
}, },
onLoad(data) { onLoad(data) {
this.evaId = data.evaId this.evaId = data.evaId
this.registerType = data.djType
console.log('this.registerType',this.registerType)
this.getQuery() this.getQuery()
}, },
} }
</script> </script>
<style lang="scss"> <style lang="scss">

5
pages/index/index.vue

@ -133,11 +133,12 @@ import {userInfo,patientQuery,queryNum} from '@/common/api.js';
}, },
}, },
created() { created() {
},
onShow() {
this.getUserInfo() this.getUserInfo()
this.getList(true) this.getList(true)
this.getQueryNum() this.getQueryNum()
},
async mounted (){
} }
} }
</script> </script>

1998
unpackage/dist/dev/app-plus/app-service.js

File diff suppressed because one or more lines are too long

2227
unpackage/dist/dev/app-plus/app-view.js

File diff suppressed because one or more lines are too long

BIN
unpackage/dist/dev/app-plus/assets/icon_moren.e5b8333f.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 830 B

BIN
unpackage/dist/dev/app-plus/assets/icon_wanc.7a9c86c8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

Loading…
Cancel
Save