bug调整>体检管理移动端:
1:上年度体检医院显示不出来 2:人员类型改成人员类别
This commit is contained in:
+2
-3
@@ -18,7 +18,7 @@ layout("/layouts/platform_h5.html"){
|
||||
v-model="formData.idCard"
|
||||
:rules="[{ required: true, message: '请输入身份证号' }]">
|
||||
</van-field>
|
||||
<van-cell title="人员类型">{{formData.userState}}</van-cell>
|
||||
<van-cell title="人员类型">{{userBaseMessage.personType}}</van-cell>
|
||||
<van-field
|
||||
input-align="right"
|
||||
readonly
|
||||
@@ -354,13 +354,12 @@ layout("/layouts/platform_h5.html"){
|
||||
let projectId = GetQueryString("projectId")
|
||||
await this.findSubject(projectId);
|
||||
if (projectId) {
|
||||
const {id, personType, birthday, unit} = this.$store.state.user
|
||||
const {id, birthday, unit} = this.$store.state.user
|
||||
await this.selectInfo(projectId);
|
||||
await this.findUserBaseMessage(projectId, id);
|
||||
await this.findLastYearHospital(projectId, id);
|
||||
this.$set(this.formData, 'projectId', projectId)
|
||||
this.$set(this.formData, 'idCard', this.userBaseMessage?.card)
|
||||
this.$set(this.formData, 'userState', personType)
|
||||
this.$set(this.formData, 'marriage', this.userBaseMessage?.marriage)
|
||||
this.$set(this.formData, 'birthday', birthday)
|
||||
this.$set(this.formData, 'unitName', unit.name)
|
||||
|
||||
+24
-28
@@ -33,8 +33,7 @@ layout("/layouts/platform_h5.html"){
|
||||
name="phone"
|
||||
readonly
|
||||
required
|
||||
v-model="formData.phone"
|
||||
:rules="[{ required: false, message: '手机号码',trigger: ['blur', 'change'] },{ pattern: /^1[3456789]\d{9}$/, message: '输入正确的手机号码'}]">
|
||||
v-model="formData.phone">
|
||||
</van-field>
|
||||
<van-field
|
||||
input-align="right"
|
||||
@@ -43,8 +42,7 @@ layout("/layouts/platform_h5.html"){
|
||||
readonly
|
||||
required
|
||||
placeholder="请联系输入身份证号"
|
||||
v-model="formData.card"
|
||||
:rules="[{ required: true, message: '请输入子女身份证号', trigger: 'blur' }, {pattern: /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/, message: '请输入正确的身份证号码', trigger: 'blur'}]">
|
||||
v-model="formData.card">
|
||||
</van-field>
|
||||
<van-cell title="人员类型">{{formData.personType}}</van-cell>
|
||||
<van-cell title="婚姻状态">
|
||||
@@ -58,10 +56,7 @@ layout("/layouts/platform_h5.html"){
|
||||
</van-cell-group>
|
||||
<!-- 按钮区域 -->
|
||||
<div class="form-actions">
|
||||
<van-button class="buttonClass"
|
||||
@click-left="historyBack"
|
||||
block
|
||||
native-type="submit">返回</van-button>
|
||||
<van-button class="buttonClass">返回</van-button>
|
||||
</div>
|
||||
</van-form>
|
||||
</div>
|
||||
@@ -117,26 +112,27 @@ layout("/layouts/platform_h5.html"){
|
||||
},
|
||||
// 执行提交
|
||||
async doSubmit() {
|
||||
const formData = clone(this.formData);
|
||||
this.$dialog.confirm({
|
||||
title: '温馨提示',
|
||||
message: '您确定要提交吗?',
|
||||
}).then(() => {
|
||||
const toast = this.$toast.loading({
|
||||
duration: 0,
|
||||
forbidClick: true,
|
||||
message: '提交中....',
|
||||
});
|
||||
this.$axios.post('/platform/healthCheckup/h5/doSubmitUserBaseMessage', formData).then(resp => {
|
||||
if (resp.code === 0) {
|
||||
toast.clear();
|
||||
this.$toast.success(resp.msg)
|
||||
this.historyBack()
|
||||
}
|
||||
})
|
||||
}).catch(() => {
|
||||
|
||||
});
|
||||
// const formData = clone(this.formData);
|
||||
// this.$dialog.confirm({
|
||||
// title: '温馨提示',
|
||||
// message: '您确定要提交吗?',
|
||||
// }).then(() => {
|
||||
// const toast = this.$toast.loading({
|
||||
// duration: 0,
|
||||
// forbidClick: true,
|
||||
// message: '提交中....',
|
||||
// });
|
||||
// this.$axios.post('/platform/healthCheckup/h5/doSubmitUserBaseMessage', formData).then(resp => {
|
||||
// if (resp.code === 0) {
|
||||
// toast.clear();
|
||||
// this.$toast.success(resp.msg)
|
||||
// this.historyBack()
|
||||
// }
|
||||
// })
|
||||
// }).catch(() => {
|
||||
//
|
||||
// });
|
||||
this.historyBack();
|
||||
},
|
||||
async selectInfo(projectId,userId) {
|
||||
const resp = await this.$axios.post('/platform/healthCheckup/h5/findUserBaseMessageData', {projectId,userId});
|
||||
|
||||
Reference in New Issue
Block a user