diff --git a/api/mine/health.js b/api/mine/health.js index e5f13b1..de4ef80 100644 --- a/api/mine/health.js +++ b/api/mine/health.js @@ -5,7 +5,7 @@ import request from '@/utils/request'; */ export function healthDetailApi(data) { return request({ - url: '/smart-canteen/health/info/detail-health-info', + url: '/smart-canteen/health_person_info/detail-health-info', method: 'post', data }) @@ -16,7 +16,7 @@ import request from '@/utils/request'; */ export function editHealthInfoApi(data) { return request({ - url: '/smart-canteen/health/info/edit-health-info', + url: '/smart-canteen/health_person_info/edit-health-info', method: 'post', data }) @@ -28,7 +28,7 @@ import request from '@/utils/request'; */ export function dictHealthChronicApi(data) { return request({ - url: '/smart-canteen/health/chronic/dict-health-chronic', + url: '/smart-canteen/health_chronic/dict-health-chronic', method: 'post', data }) @@ -41,7 +41,7 @@ export function dictHealthChronicApi(data) { */ export function getHealthSciencePageApi(data) { return request({ - url: '/smart-canteen/health_popular_science/list', + url: '/smart-canteen/health_popular_article/list', method: 'get', params:data }) diff --git a/api/mine/survey.js b/api/mine/survey.js index 6378f34..0d9d7ff 100644 --- a/api/mine/survey.js +++ b/api/mine/survey.js @@ -6,7 +6,7 @@ import request from '@/utils/request'; */ export function listMedicalReportApi(data) { return request({ - url: '/smart-canteen/health/medicalreport/list-medicalreport', + url: '/smart-canteen/health_person_medical_report/getReportList', method: 'post', data }) @@ -17,7 +17,7 @@ export function listMedicalReportApi(data) { */ export function getMedicalReportInfoApi(data) { return request({ - url: '/smart-canteen/health/medicalreport/get-medicalreport-info', + url: '/smart-canteen/health_person_medical_report/getReportById', method: 'post', data }) @@ -30,8 +30,8 @@ export function getMedicalReportInfoApi(data) { */ export function listTemplateApi(data) { return request({ - url: '/smart-canteen/health/medicalreport/list-template', - method: 'post', + url: '/smart-canteen/health_medical_report_template/getModelList', + method: 'get', data }) } @@ -40,7 +40,7 @@ export function listTemplateApi(data) { */ export function getTemplateInfoApi(data) { return request({ - url: '/smart-canteen/health/medicalreport/get-template-info', + url: '/smart-canteen/health_medical_report_template/getModelById', method: 'post', data }) @@ -50,7 +50,7 @@ export function getTemplateInfoApi(data) { */ export function editMedicalReportApi(data) { return request({ - url: '/smart-canteen/health/medicalreport/edit-medicalreport', + url: '/smart-canteen/health_person_medical_report/addReport', method: 'post', data }) diff --git a/pages/mine/me/healthInformation.vue b/pages/mine/me/healthInformation.vue index 9d8e7a7..a120301 100644 --- a/pages/mine/me/healthInformation.vue +++ b/pages/mine/me/healthInformation.vue @@ -129,21 +129,11 @@ export default { data() { return { fontValue:uni.getStorageSync('fontSize') || 8, - form: { - height: null, - weight: null, - weightControl: '', - bmi: '', - labourIntensity: '', - ifHospitalized: '', - allergen: '', - chronicDiseases: [] - }, selectorVisible: false, currentSelector: null, selectors: { weightControl: { options: [{ name: '减重', value: '1' }, { name: '增重', value: '2' }], title: '请选择体重控制' }, - labourIntensity: { options: [{ name: '轻劳力', value: '1' }, { name: '中等强度劳动', value: '2' }, { name: '重强度劳动', value: '3' }, { name: '孕妇(早期)', value: '4' }, { name: '孕妇(中期)', value: '5' }, { name: '孕妇(晚期)', value: '6' }, { name: '乳母', value: '7' }], title: '请选择劳动强度' }, + labourIntensity: { options: [{ name: '轻劳力', value: '1' }, { name: '中等强度劳动', value: '2' }, { name: '重强度劳动', value: '3' }], title: '请选择劳动强度' }, ifHospitalized: { options: [{ name: '是', value: '1' }, { name: '否', value: '2' }], title: '是否住院' }, pregnantStatus: { options: [{ name: '保密', value: '0' },{ name: '是', value: '2' }, { name: '否', value: '1' }], title: '是否怀孕' } }, @@ -162,7 +152,30 @@ export default { labourIntensityName: '', ifHospitalizedName: '', pregnantStatusName: '', - chronicList:[] + chronicList:[], + form: { + nickName:null, + userId:null, + orgFullName:null, + userType:null, + mobile:null, + sex:1, + birthday:null, + doctorNum:null, + hospitalNum:null, + height:null, + weight:null, + bloodType:null, + chronicList:[], + pregnantStatus:null, + pregnancyDate:null, + ifHospitalized:null, + inpatientDate:null, + labourIntensity:null, + allergen:null, + doctorAdvice:null, + weightControl:null, + },//详情 } }, watch: { diff --git a/pages/survey/details.vue b/pages/survey/details.vue index ac0ed89..03c51bd 100644 --- a/pages/survey/details.vue +++ b/pages/survey/details.vue @@ -21,8 +21,28 @@ :closeOnClickOverlay="true" :formatter="formatter" @cancel="dateShow = false" @confirm="birthDayConfirm"> - - + + + + + + + + + + + + + + +
{{itmes.medicalProjectName}}
项目名称检查结果单位
{{itme.medicalProjectDetailName}}{{itme.medicalProjectDetailUnit}}
+
- + { - if(res.code==200){ - this.sumbitStaus=false - uni.navigateBack() - }else{ - this.sumbitStaus=false - } - }).catch(()=>{ - this.sumbitStaus=false - }) + console.log("确认获取数据",this.reportList) + if(this.medicalDate==null||this.medicalDate==""||this.medicalDate==undefined||this.medicalMechanism==null||this.medicalMechanism==""||this.medicalMechanism==undefined){ + this.$modal.msgSuccess("请检查机构或时间是否填入"); + return; + } + let params={ + "medicalTemplateId":this.medicalTemplateId, + "medicalDate":this.medicalDate, + "medicalMechanism":this.medicalMechanism, + "userId":uni.getStorageSync('userId'), + "reportDatas":this.reportList + } + console.log("params",params) + editMedicalReportApi(params).then(response => { + this.sumbitStaus=false + uni.navigateBack() + }); + // let param = {} + // if(this.paramsData.medicalId&&this.paramsData.medicalId!=""){ + // param = { + // "medicalId": this.paramsData.medicalId, + // "userId": uni.getStorageSync('userId'), + // "medicalDate": this.medicalDate, + // "medicalTemplateId": this.medicalTemplateId, + // "medicalMechanism": this.medicalMechanism, + // "reportProjectVOS":this.reportList + // } + // }else{ + // param = { + // "userId": uni.getStorageSync('userId'), + // "medicalDate": this.medicalDate, + // "medicalTemplateId": this.medicalTemplateId, + // "medicalMechanism": this.medicalMechanism, + // "reportProjectVOS":this.reportList + // } + // } + // editMedicalReportApi(param).then((res)=>{ + // if(res.code==200){ + // this.sumbitStaus=false + // uni.navigateBack() + // }else{ + // this.sumbitStaus=false + // } + // }).catch(()=>{ + // this.sumbitStaus=false + // }) } }, @@ -265,6 +305,105 @@ export default { display: flex;align-items: center; justify-content: space-between; } - +.addReportStyle{ + width: 880px; + height: 100%; + margin-right: 0; + margin-left: auto; + } + .el-dialog { + margin: 0 !important; /* 重置默认的margin */ + position: fixed !important; /* 固定定位 */ + top: 20px; /* 距离顶部距离 */ + right: 20px; /* 靠右距离 */ + } + .remind-question{ + width: 100%; + height: 50px; + font-size: 22px; + display: flex; + align-items: center; + justify-content: center; + } + .remind-title{ + width: 100%; + height: 40px; + font-size: 16px; + font-weight: bold; + color: #000; + display: flex; + align-items: center; + justify-content: center; + } + table td, table th{ + border: 1px solid #dfe6ec; + } + .table-title { + height: 45px; + background-color: #f8f8f9; + } + .table-label{ + height: 45px; + width: 110px; + min-width: 100px; + background-color: #f8f8f9; + } + .table-content{ + min-width: 250px; + } + //隐藏图片上传框的css + ::v-deep.disabled { + .el-upload--picture-card { + display: none; + } + } + .box-content { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + } + .box { + width: 100%; + height: 100%; + min-width: 1000px; + text-align: center; + color: rgba(80, 81, 82, .9098039215686274); + } + .box .title { + margin-top: 40px; + font-size: 24px; + font-weight: 700; + color: #101d34; + } + .header-box { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + font-weight: 600; + margin-top: 40px; + -ms-flex-pack: distribute; + justify-content: space-around; + font-size: 16px; + font-weight: 400; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + color: #8195a5; + border-bottom: 1px solid #e5ebef; + padding-bottom: 20px; + margin-bottom: 40px; + } + .tabledata span{ + font-size: 16px; + font-weight: 700; + color: #000; + } \ No newline at end of file diff --git a/pages/survey/index.vue b/pages/survey/index.vue index 8655a70..d2ff8c6 100644 --- a/pages/survey/index.vue +++ b/pages/survey/index.vue @@ -79,7 +79,7 @@ export default { } const res = await listMedicalReportApi(param) console.log(res, '列表') - this.messageList = res + this.messageList = res .data }, handleMessageClick(item) { console.log('?? ~ handleMessageClick ~ ', item)