Commit 469da24a by nlp97

字段名称

parent ae903e89
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2022-03-20 15:10:37 * @Date: 2022-03-20 15:10:37
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-23 14:21:01 * @LastEditTime: 2022-03-24 11:46:05
* @Description: * @Description:
*/ */
...@@ -15,8 +15,8 @@ ...@@ -15,8 +15,8 @@
orNotByEntry //是否由国外入境 (是/否) // orNotByEntry //是否由国外入境 (是/否)
beforeIsolationPoint //之前隔离点 // beforeIsolationPoint //之前隔离点
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-23 14:29:44 * @LastEditTime: 2022-03-24 19:28:30
* @Description: * @Description:
--> -->
<template> <template>
...@@ -145,6 +145,7 @@ export default { ...@@ -145,6 +145,7 @@ export default {
"gestationalWeeks", //怀孕周期 "gestationalWeeks", //怀孕周期
"occupation", //职业 "occupation", //职业
"contactInformation", //联系方式 "contactInformation", //联系方式
"FamilyMembersPhone", //家属联系方式
"Registeredresidence", //籍贯 (包括省市) "Registeredresidence", //籍贯 (包括省市)
"address", "address",
"idCard", "idCard",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-23 15:09:49 * @LastEditTime: 2022-03-27 19:43:01
* @Description: * @Description:
--> -->
<template> <template>
...@@ -273,6 +273,16 @@ ...@@ -273,6 +273,16 @@
@blur="setLocalStorge('contactInformation')" @blur="setLocalStorge('contactInformation')"
:rules="[{ required: true, message: '请填写联系方式' }]" :rules="[{ required: true, message: '请填写联系方式' }]"
></van-field> ></van-field>
<van-field
colon
clearable
v-model="FamilyMembersPhone"
name="FamilyMembersPhone"
label="家属联系方式"
placeholder="家属联系方式"
@blur="setLocalStorge('FamilyMembersPhone')"
:rules="[{ required: true, message: '请填写家属联系方式' }]"
></van-field>
<van-field <van-field
colon colon
...@@ -417,6 +427,7 @@ export default { ...@@ -417,6 +427,7 @@ export default {
gestationalWeeks: "", //怀孕周期 gestationalWeeks: "", //怀孕周期
occupation: "", //职业 occupation: "", //职业
contactInformation: "", //联系方式 contactInformation: "", //联系方式
FamilyMembersPhone: "", //家属联系方式
workOrNotCovid: "否", workOrNotCovid: "否",
Registeredresidence: "", //籍贯 (包括省市) Registeredresidence: "", //籍贯 (包括省市)
province: "", //籍贯 (省) province: "", //籍贯 (省)
...@@ -461,6 +472,7 @@ export default { ...@@ -461,6 +472,7 @@ export default {
"gestationalWeeks", //怀孕周期 "gestationalWeeks", //怀孕周期
"occupation", //职业 "occupation", //职业
"contactInformation", //联系方式 "contactInformation", //联系方式
"FamilyMembersPhone", //家属联系方式
"Registeredresidence", //籍贯 (包括省市) "Registeredresidence", //籍贯 (包括省市)
"province", //籍贯 (省) "province", //籍贯 (省)
"city", //籍贯 (市) "city", //籍贯 (市)
...@@ -610,11 +622,43 @@ export default { ...@@ -610,11 +622,43 @@ export default {
onbirthday(date) { onbirthday(date) {
this.birthday = formatDate(date, "yyyy-MM-dd "); this.birthday = formatDate(date, "yyyy-MM-dd ");
console.log(
"🚀 ~ file: page4.vue ~ line 630 ~ onbirthday ~ this.birthday",
this.birthday
);
this.setLocalStorge("birthday"); this.setLocalStorge("birthday");
this.getdate(); // this.getdate();
this.age = this.ages(formatDate(date, "yyyy-MM-dd "));
this.showbirthday = false; this.showbirthday = false;
}, },
ages(birth) {
birth = birth.replace(/-/g, "/"); //把格式中的"-"替换为"/"
birth = new Date(birth); //替换后转为Date类型
var now = new Date(); //获取当前日期
var nowYear = now.getFullYear(); //当前日期的年份
var nowMonth = now.getMonth();
var nowDay = now.getDay();
var birthYear = birth.getFullYear();
var birthMonth = birth.getMonth();
var birthDay = birth.getDay(); //出生日期的日数
var age;
if (birth > now) {
return false;
} else if (
nowYear == birthYear ||
(nowYear > birthYear && nowMonth >= birthMonth && nowDay >= birthDay)
) {
age = nowYear - birthYear;
} else {
age = nowYear - birthYear - 1; //简而言之,没过生日岁数不能+1
}
return age;
},
formatter(type, val) { formatter(type, val) {
if (type === "year") { if (type === "year") {
return `${val}年`; return `${val}年`;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-23 14:40:21 * @LastEditTime: 2022-03-24 16:09:32
* @Description: * @Description:
--> -->
<template> <template>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
clearable clearable
name="thirtyDays" name="thirtyDays"
label-width="130px" label-width="130px"
label="近30天是否离开过上海" label="近两月是否离开过上海"
> >
<template #input> <template #input>
<van-radio-group <van-radio-group
...@@ -479,7 +479,7 @@ export default { ...@@ -479,7 +479,7 @@ export default {
}, },
validator(val) { validator(val) {
return val < 30 || val == 30; return val < 61 || val == 61;
}, },
getResource() { getResource() {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: ninglupeng * @Author: ninglupeng
* @Date: 2020-11-24 16:18:58 * @Date: 2020-11-24 16:18:58
* @LastEditors: ninglupeng * @LastEditors: ninglupeng
* @LastEditTime: 2022-03-21 18:32:17 * @LastEditTime: 2022-03-24 14:38:02
* @Description: * @Description:
--> -->
<template> <template>
...@@ -280,7 +280,7 @@ ...@@ -280,7 +280,7 @@
clearable clearable
name="ChestCT" name="ChestCT"
label-width="125px" label-width="125px"
label="有无新冠肺炎" label="CT有无病毒性肺炎表现"
> >
<template #input> <template #input>
<van-radio-group <van-radio-group
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,7 @@
</van-field> </van-field>
<van-field <van-field
v-if="ChestCT == '有'" v-if="yesOrNoCt == '有'"
colon colon
clearable clearable
readonly readonly
......
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