Commit d256155a authored by ‘yangmengxue’'s avatar ‘yangmengxue’

填写个人信息

parent 82574fc1
...@@ -562,7 +562,10 @@ ...@@ -562,7 +562,10 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 既往病史或过敏史 --> <!-- 既往病史或过敏史 -->
<el-col :span="12" v-show="configJson.pastMedicalHistory == 1"> <el-col
:span="12"
v-show="configJson.pastMedicalHistory == 1 && isOffline == true"
>
<el-form-item <el-form-item
:rules=" :rules="
(configJson.pastMedicalHistory == 1 ? true : false) && (configJson.pastMedicalHistory == 1 ? true : false) &&
...@@ -584,7 +587,10 @@ ...@@ -584,7 +587,10 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 备注或其它 --> <!-- 备注或其它 -->
<el-col :span="12" v-show="configJson.noteOther == 1"> <el-col
:span="12"
v-show="configJson.noteOther == 1 && isOffline == true"
>
<el-form-item <el-form-item
:rules=" :rules="
(configJson.noteOther == 1 ? true : false) && isOffline == true (configJson.noteOther == 1 ? true : false) && isOffline == true
...@@ -604,35 +610,7 @@ ...@@ -604,35 +610,7 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 衣服尺码-->
<el-col :span="12" v-show="configJson.clothesSize == 1">
<el-form-item
:rules="
(configJson.clothesSize == 1 ? true : false) && isOffline == true
? referInfoRules.clothesSize
: [{ required: false }]
"
label="衣服尺码"
prop="clothes_size"
style="height: 73px"
>
<el-select
:popper-append-to-body="false"
clearable
placeholder="填写衣服尺码"
ref="clothes_size"
v-model="referForm.clothes_size"
>
<el-option
:key="item.id"
:label="item.name"
:value="item.name"
v-for="item in clothesSize"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<!-- 邀请码 --> <!-- 邀请码 -->
<el-col :span="12" v-show="configJson.code == 1"> <el-col :span="12" v-show="configJson.code == 1">
<el-form-item label="邀请码" prop="code" style="height: 73px"> <el-form-item label="邀请码" prop="code" style="height: 73px">
...@@ -696,6 +674,48 @@ ...@@ -696,6 +674,48 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<!-- 衣服尺码-->
<el-col
:span="24"
v-show="configJson.clothesSize == 1 && isOffline == true"
>
<el-form-item
:rules="
(configJson.clothesSize == 1 ? true : false) && isOffline == true
? referInfoRules.clothesSize
: [{ required: false }]
"
label="衣服尺码"
prop="clothes_size"
style="height: 200px"
>
<el-radio-group ref="clothes_size" v-model="referForm.clothes_size">
<div
v-for="item in clothesSize"
:key="item.id"
style="margin-right: 10px"
>
<el-radio :label="item.id">{{ item.name }}</el-radio>
</div>
</el-radio-group>
<!-- <el-select
:popper-append-to-body="false"
clearable
placeholder="填写衣服尺码"
ref="clothes_size"
v-model="referForm.clothes_size"
>
<el-option
:key="item.id"
:label="item.name"
:value="item.name"
v-for="item in clothesSize"
>
</el-option>
</el-select> -->
</el-form-item>
</el-col>
</el-row> </el-row>
<!-- 联系人信息--> <!-- 联系人信息-->
<div v-show="configJson.emergency == 1 || configJson.emergencyPhone == 1"> <div v-show="configJson.emergency == 1 || configJson.emergencyPhone == 1">
...@@ -1657,33 +1677,26 @@ export default { ...@@ -1657,33 +1677,26 @@ export default {
//衣服尺码 //衣服尺码
clothesSize: [ clothesSize: [
{ {
id: 1, id: 'S',
name: "S", name: "S (155-160CM)",
}, },
{ {
id: 2, id: 'M',
name: "M", name: "M (160-165CM)",
}, },
{ {
id: 3, id: 'L',
name: "L", name: "L (165-170CM)",
}, },
{ {
id: 4, id: 'XL',
name: "XL", name: "XL (170-175CM)",
},
{
id: 5,
name: "XXL",
}, },
{ {
id: 6, id: 'XXL',
name: "XXXL", name: "XXL (175-180CM)",
}, }
{
id: 7,
name: "XXXXL",
},
], ],
// 中学(模糊搜索) // 中学(模糊搜索)
// timeout: null, // timeout: null,
...@@ -1748,7 +1761,15 @@ export default { ...@@ -1748,7 +1761,15 @@ export default {
//若线下形式(既往病史或过敏史,备注或其它,衣服尺码)为必填项,否则为选填。 //若线下形式(既往病史或过敏史,备注或其它,衣服尺码)为必填项,否则为选填。
let multiform = JSON.parse(window.localStorage.getItem("multiform" + code)); let multiform = JSON.parse(window.localStorage.getItem("multiform" + code));
let multiform_id = window.localStorage.getItem("multiform_id" + code); let multiform_id = window.localStorage.getItem("multiform_id" + code);
//是否开启多形式报名
let is_multiform = this.$store.state.isMultiform;
if (is_multiform == 0) {
this.isOffline = true;
}
if (multiform != "[]") { if (multiform != "[]") {
// 选择了线下形式
multiform.forEach((i) => { multiform.forEach((i) => {
if (i.id == multiform_id) { if (i.id == multiform_id) {
let reg = /[\u7ebf][\u4e0b]/; let reg = /[\u7ebf][\u4e0b]/;
......
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