Commit 53ed9955 by nlp97

Merge branch 'feature/语言国际化--dev公卫' into develop

parents e43de15e 962f8dc9
<!--
* @Author: ninglupeng
* @Date: 2022-03-19 10:27:33
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-20 13:03:12
* @LastEditors: wsq
* @LastEditTime: 2022-11-05 13:41:12
* @Description:
-->
<template>
......@@ -26,7 +26,7 @@
size="mini"
:disabled="isDis"
@click="save()"
>保存</van-button
>{{$t('preservation')}}</van-button
>
<van-button
block
......@@ -36,7 +36,7 @@
size="mini"
native-type="button"
@click="againSignature"
>清除</van-button
>{{$t('eliminate')}}</van-button
>
<van-button
native-type="button"
......@@ -46,7 +46,7 @@
type="default"
size="mini"
@click="onCancel"
>返回</van-button
>{{$t('goBack')}}</van-button
>
</div>
</div>
......@@ -92,7 +92,7 @@ export default {
save() {
if (!this.signaturePad.isEmpty()) {
this.$emit("onCancel", this.signaturePad.toDataURL());
this.$notify({ type: "success", message: "签名保存成功" });
this.$notify({ type: "success", message: $t('qmsuccess') });
}
},
onCancel() {
......
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: wsq
* @LastEditTime: 2022-05-05 17:41:42
* @LastEditTime: 2022-11-04 11:27:41
* @Description:
-->
<template>
......@@ -19,10 +19,11 @@
<page4 v-show="page === 4"></page4>
<page5 v-show="page === 5"></page5>
<page6 v-show="page === 6"></page6>
<leaveHospital v-show="page === 7"></leaveHospital>
<!-- <leaveHospital v-show="page === 7"></leaveHospital> -->
<page7 v-show="page === 8"></page7>
<!-- {{ symptom }} -->
<div class="index_form_footer" v-if="page != 1 && page != 2 && page != 8">
<!-- 上一步 -->
<van-button
class="index_form_footer_next"
round
......@@ -31,28 +32,29 @@
native-type="button"
v-if="page != 1 && page != 2 && page != 8"
@click="back()"
>上一步</van-button
>{{$t('Previousstep')}}</van-button
>
<!-- 下一步 -->
<van-button
class="index_form_footer_next"
round
block
type="info"
native-type="button"
v-if="page != 1 && page != 2 && page != 7 && page != 8"
v-if="page != 1 && page != 2 && page != 6 && page != 8"
@click="next()"
>下一步</van-button
>{{$t('nextstep')}}</van-button
>
<!-- 保存 -->
<van-button
v-if="page == 7"
v-if="page == 6"
class="index_form_footer_next"
round
block
type="info"
native-type="button"
@click="submit"
>保存</van-button
>{{$t('preservation')}}</van-button
>
</div>
</van-form>
......@@ -242,7 +244,7 @@ export default {
"passivitySmokingYears", //是否被动吸烟年数
])
.then(() => {
this.$store.dispatch("user/setpage", 7);
this.$store.dispatch("user/setpage", 8);
// 验证通过
})
.catch(() => {
......@@ -254,8 +256,8 @@ export default {
submit() {
this.$refs.vantform
.validate([
"leaveSign", //出院签字
"leaveDate", // 签字日期
// "leaveSign", //出院签字
// "leaveDate", // 签字日期
])
.then(() => {
this.$refs.vantform.submit();
......
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-10-31 14:38:03
* @LastEditTime: 2022-11-04 16:27:19
* @Description:
-->
<template>
......
......@@ -2,7 +2,7 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-10-31 15:05:09
* @LastEditTime: 2022-11-04 16:54:04
* @Description:
-->
<template>
......@@ -29,7 +29,8 @@
</van-field>
<van-field colon clearable name="buildingNumber" :label="$t('buildingNumber')" readonly :value="buildingNumber"
@click="showbuildingNumber = true" :rules="[{ required: true, message: `请填写${$t('buildingNumber')}` }]">
@click="showbuildingNumber = true"
:rules="[{ required: true, message: `${$t('fillIn')}${$t('buildingNumber')}` }]">
</van-field>
<van-popup v-model="showbuildingNumber" position="bottom">
<van-picker :title="$t('buildingNumber')" show-toolbar :columns="buildingNumberList"
......@@ -41,34 +42,40 @@
</van-popup>
<van-field colon clearable v-model="agreementFloor" name="agreementFloor" :label="$t('agreementFloor')"
:placeholder="$t('agreementFloor')" :rules="[{ required: true, message: `请填写${$t('agreementFloor')}` }]"
:placeholder="$t('agreementFloor')"
:rules="[{ required: true, message: `${$t('fillIn')}${$t('agreementFloor')}` }]"
@blur="setLocalStorge('agreementFloor')"></van-field>
<van-field colon clearable v-model="bedNumber" name="bedNumber" label="床号" placeholder="床号"
@blur="setLocalStorge('bedNumber')" :rules="[{ required: true, message: '请填写床号' }]"></van-field>
<van-field colon clearable v-model="bedNumber" name="bedNumber" :label="$t('bedNumber')"
:placeholder="`${$t('bedNumber')}`" @blur="setLocalStorge('bedNumber')"
:rules="[{ required: true, message: `${$t('fillIn')}${$t('bedNumber')}` }]"></van-field>
<van-field colon clearable v-model="agreementSign" name="agreementSign" label="患者签字" placeholder="患者签字" readonly
:rules="[{ required: true, message: '请患者签字' }]">
<van-field colon clearable v-model="agreementSign" name="agreementSign" :label="$t('agreementSign')"
:placeholder="$t('agreementSign')" readonly
:rules="[{ required: true, message: `${$t('agreementSign')}` }]">
<template #input>
<img class="Signimg" v-show="agreementSign" :src="agreementSign" alt=""
:style="{ width: agreementSign ? '70%' : '' }" />
<van-button size="small" @click="showSignHandleVue = true" block type="primary" native-type="button"
:style="{ width: !agreementSign ? '50%' : '30%' }">{{ agreementSign ? "重签" : "点击签字" }}</van-button>
:style="{ width: !agreementSign ? '50%' : '30%' }">{{ agreementSign ? `${$t('countersign')}` :
`${$t('clickSign')}`
}}</van-button>
</template>
</van-field>
<van-field colon clearable readonly clickable name="agreementDate" :value="agreementDate" label="签字日期"
placeholder="点击选择签字日期" @click="showCalendar = true" :rules="[
<van-field colon clearable readonly clickable name="agreementDate" :value="agreementDate"
:label="$t('agreementDate')" :placeholder="`${$t('clickSelect')}${$t('agreementDate')}`"
@click="showCalendar = true" :rules="[
{
required: true,
message: '请选择签字日期',
message: `${$t('select')}${$t('agreementDate')}`,
},
]" />
<van-popup v-model="showCalendar" position="bottom">
<van-datetime-picker type="date" :min-date="minAgreementDate" :max-date="maxDate" @confirm="onAgreementDate"
@cancel="showCalendar = false" :formatter="formatter" v-model="agreementDate1" />
</van-popup>
<jlPopup title="签名" v-if="showSignHandleVue" @onCancel="onCancel">
<jlPopup :title="$t('autograph')" v-if="showSignHandleVue" @onCancel="onCancel">
</jlPopup>
</div>
</template>
......@@ -86,7 +93,7 @@ export default {
inject: ["setLoading"],
data() {
return {
AgreementMode: "向贵院出具授权委托书指定代理人",
AgreementMode: this.$i18n.locale == 'zh' ? "向贵院出具授权委托书指定代理人" : 'دوختۇخانغا ۋاكالەتچى بەلگىلەنگەن ھوقۇق بېرىش ھاۋالە خىتى چىقىرىپ بىرىمەن',
buildingNumber: "", //楼号
agreementFloor: "", //楼层
bedNumber: "", //床号
......@@ -103,7 +110,7 @@ export default {
},
mounted() {
this.getResource();
console.log('this.$i18n.locale', this.$i18n.locale);
this.setAgreementDate();
this.setLastValue();
},
......
......@@ -2,83 +2,80 @@
* @Author: ninglupeng
* @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-29 11:31:31
* @LastEditTime: 2022-11-03 12:58:51
* @Description:
-->
<template>
<div class="page7">
<div class="page7_topbg">
<span class="page7_topbg_title">
您已完成本次填写内容 ,感谢您的帮助和支持。
</span>
</div>
<div class="page7">
<div class="page7_topbg">
<span class="page7_topbg_title">
{{ $t('concludingRemarks') }}
</span>
</div>
<div class="page7_bottom">
<van-button
native-type="button"
class="index_form_next"
@click="goback"
round
type="info"
>返回</van-button
>
<div class="page7_bottom">
<van-button native-type="button" class="index_form_next" @click="goback" round type="info"> {{
$t('goBack')
}}</van-button>
</div>
</div>
</div>
</template>
<script>
import { mapState, mapMutations } from "vuex";
export default {
name: "page7",
data() {
return {};
},
mounted() {},
methods: {
goback() {
this.$store.dispatch("user/setpage", 1);
name: "page7",
data() {
return {};
},
mounted() { },
methods: {
goback() {
this.$store.dispatch("user/setpage", 1);
},
},
},
computed: {},
computed: {},
};
</script>
<style lang="scss" scoped>
.page7 {
width: 100%;
height: 100vh;
overflow: hidden;
background-color: #f2f2f2;
&_topbg {
background-image: url("../assets/img/page1bg.png");
width: 100%;
height: 390px;
background-size: cover;
background-position: center center;
height: 100vh;
overflow: hidden;
background-color: #f2f2f2;
&_topbg {
background-image: url("../assets/img/page1bg.png");
width: 100%;
height: 390px;
background-size: cover;
background-position: center center;
@include flex_column;
@include align_center;
justify-content: space-evenly;
position: relative;
&_title {
font-size: 24px;
font-family: Roboto-Bold, Roboto;
font-weight: bold;
color: #000000;
line-height: 28px;
@include flex_column;
@include align_center;
justify-content: space-evenly;
position: relative;
text-align: center;
margin: 20px;
&_title {
font-size: 24px;
font-family: Roboto-Bold, Roboto;
font-weight: bold;
color: #000000;
line-height: 28px;
text-align: center;
margin: 20px;
}
}
}
&_bottom {
width: 100%;
@include flex_column;
@include align_center;
position: absolute;
bottom: 350px;
}
&_bottom {
width: 100%;
@include flex_column;
@include align_center;
position: absolute;
bottom: 350px;
}
}
</style>
/*
* @Author: ninglupeng
* @Date: 2022-10-31 14:22:35
* @LastEditors: ninglupeng
* @LastEditTime: 2022-10-31 14:58:33
* @LastEditors: wsq
* @LastEditTime: 2022-11-05 13:40:47
* @Description:
*/
module.exports = {
//第一部分
//第一页、第二页
'project': '入院信息采集',
'paragraph1': ' 为保障您在我院住院治疗期间享有充分的知情同意权,医务人员将向您告知您的病情、主要医疗措施、医疗风险等情況,解答您对疾病的咨询。未经您本人充分知情和签名同意,医务人员将不得进行手术等重大医疗行为。但由于各人心理承受能力不同,以及疾病发展具有不可预测性,为有利于治疗,请您现授权委托一位您充分信任的代理人,代为行使您的知情同意权。我院将依据您签名出具的授权委托书,视代理人的代理行为为您本人真实意思的表示。如您末满18周岁或没有民事行为能力和限制民事行为能力的,您的法定监护人为您的法定伐理人,代为行使知情同意权。 ',
"paragraph2": ' 为了让医生给您制定最佳的洽疗方案,请您务必客观,真实地向医生提供您的病情资料和相关情況。 ',
"paragraph3": ' 特此告知 ',
"isAgree": ' 上述告知书内容本人己充分了解 ',
//第二部分
//第三页
"AgreementMode": '本人决定选择以下方式',//本人决定选择以下方式
"Mode1": '向贵院出具授权委托书指定代理人',
"Mode2": '向贵院出具户籍等相关证明,明确法定代理人',
......@@ -22,6 +22,135 @@ module.exports = {
"agreementFloor": '楼层', //楼层
"bedNumber": '床号', //床号
"agreementSign": '患者签字', // 患者签字
"countersign": '重签',//重签
"clickSign": '点击签字',//点击签字
"agreementDate": '签字日期', //签字日期
"autograph": '签名',//签名
"eliminate": '清除',//清除
"preservation": '保存',//保存
'qmsuccess':'签名保存成功',//签名保存成功
// 第四页
"patientName": "患者姓名", //患者姓名
"orNotByEntry": "近期是否由国外入境",//近期是否由国外入境
"nationality": "国籍", //国籍
"passportId": "护照号", //护照号
"symptom": '症状',//症状
"HasSymptom": "是否有症状",//是否有症状
"otherSymptom": "其他症状",//其他症状
"otherOccupation": "其他职业",//其他职业
"age": "年龄", //年龄
"gender": "性别", //性别
"height": "身高", //身高
"weight": "体重", //体重
"maritalStatus": "婚姻状况", //婚姻状况
"birthday": "出生日期", //出生日期
"isConceive": "怀孕状况", //怀孕状况
"gestationalWeeks": "怀孕周期", //怀孕周期
"occupation": "职业", //职业
"contactInformation": "联系方式", //联系方式
"FamilyMembersPhone": "家属联系方式", //家属联系方式
"Registeredresidence": "户籍地(市)", //户籍地
// "province", //籍贯 (省)
// "city", //籍贯 (市)
"address": "现居住地", //现居住地
"idCard": "身份证号", //身份证号
"typeOfMedicalInsurance": "医保类型", //医保类型
"insurance": "商业保险", //商业保险
"boy": '男',
"girl": '女',
"Nonpregnant": '未孕',
"pregnant": '已孕',
"unmarried": '未婚',
"married": '已婚',
//第五页
"HasOnlineClass": "是否上网课", // 是否上网课
"purpose": "来沪目的", //来沪目的
"study": '学习',//学习
"workOrNotCovid": "日常工作是否需要接触新冠病", //日常工作是否需要接触新冠病
"thirtyDays": "近两月是否离开过上海", //近两月是否离开过上海
"LeaveShangHai": "回上海天数", //回上海天数
'More30days': '天数不能大于三十天',//天数不能大于三十天
'Day': '天',//天
"normalDate": "未发生异常时间", //未发生异常时间
"unusualDate": "核酸检测异常时间", //核酸检测异常时间
"inHospitalDate": "120转运时间或者入院时间", //120转运时间或者入院时间
"beforeIsolationPoint": "之前隔离点(无隔离点填救护车出发地址)", //之前隔离点(无隔离点填救护车出发地址)
"hasCOVIDVaccine": "是否接种过疫苗", //是否接种过疫苗
"covidVaccine": "接种针数", //接种针数
"needle": "针", //针
"vaccineType": "疫苗公司", //疫苗公司
"othervaccines": "其他疫苗", //其他疫苗
"vaccineDate": "最后一次接种日期", //最后一次接种日期
//第六页
"hasHistoryAllergies": "过敏史", //过敏史
"foodAllergy": "食物过敏原", //食物过敏
"drugAllergy": "药物过敏原", //药物过敏
"otherAllergy": "其他过敏原", //其他过敏
"hasHistorySurgery": "手术史", //手术史
"historySurgery": "手术史具体内容", //手术史具体内容
"HasPreviousHistory": "有无既往史", //有无既往史
"previousHistory": "既往史", //既往史
"otherPastHistory": "其他既往史", //其他既往史
"tuberculosisDate": "既往史发生时间", //既往史发生时间
"yesOrNoCt": "有无胸部CT检查",//有无胸部CT检查
"ChestCT": "CT有无病毒性肺炎表现", //CT有无病毒性肺炎表现
"ChestCTDate": "发生时间", //发生时间
"whetherSmoking": "是否吸烟", //是否吸烟
"smokingTypes": "烟草类型", //烟草类型
"smokingYears": "吸烟年数", //吸烟年数
"smokingCount": "每天吸烟支数", //每天吸烟支数
"whetherNoSmoking": "是否戒烟", //是否戒烟
"noSmokingYears": "戒烟年数", //戒烟年数
"whetherPassivitySmoking": "是否被动吸烟", //是否被动吸烟
"passivitySmokingYears": "被动吸烟年数", //是否被动吸烟年数
"year": '年',
"branch": '支',
//第七页
"concludingRemarks": '您已完成本次填写内容 ,感谢您的帮助和支持。',
"goBack": '返回',
"yes": '是',
"no": "否",
"have": "有",
"noHave": "无",
"other": "其他",
"week": '周',
"China": '中国',
"Previousstep": '上一步',//上一步
"nextstep": '下一步',//下一步
"select": "请选择", //请选择
"fillIn": "请填写", //请填写
"clickSelect": "点击选择", //点击选择
}
\ No newline at end of file
......@@ -123,7 +123,7 @@ Vue.prototype.$deepCopy = function (data) {
/*---------使用语言包-----------*/
const i18n = new VueI18n({
locale: 'zh', // 语言标识
locale: 'Uygur', // 语言标识
//this.$i18n.locale // 通过切换locale的值来实现语言切换
messages: {
'zh': require('./lang/zh'), // 中文语言包
......
/*
* @Author: ninglupeng
* @Date: 2022-03-17 15:06:50
* @LastEditors: ninglupeng
* @LastEditTime: 2022-03-22 16:09:11
* @LastEditors: wsq
* @LastEditTime: 2022-11-04 11:06:44
* @Description:
*/
import http from '@/http/index'
......
/*
* @Author: ninglupeng
* @Date: 2022-03-17 15:06:50
* @LastEditors: ninglupeng
* @LastEditTime: 2022-10-31 14:02:30
* @LastEditors: wsq
* @LastEditTime: 2022-11-04 17:14:44
* @Description:
*/
const path = require('path');
......@@ -64,7 +64,10 @@ module.exports = {
// target: 'http://flowtone.suvalue.com/',
//target: 'http://flowtone2.suvalue.com/',
// target: 'http://flowtone6.suvalue.com/',
target: 'http://192.168.18.166:8048/',//测试
target: 'http://flowtone7.suvalue.com/',
// target: 'http://192.168.18.166:8048/',//测试
ws: true, //如果要代理 websockets,配置这个参数
// secure: false, // 如果是https接口,需要配置这个参数
changeOrigin: true,
......
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