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

修改证件类型

parent 28d90824
......@@ -138,7 +138,36 @@
</el-row>
</el-form-item>
</el-col>-->
<!-- 身份证号 -->
<!-- 证件类型 -->
<el-col :span="12" v-show="configJson.idCard == 1">
<el-form-item
:rules="
configJson.idCard == 1
? referInfoRules.id_type
: [{ required: false }]
"
label="证件类型"
prop="id_type"
style="height: 73px"
>
<el-select
:popper-append-to-body="false"
clearable
placeholder="证件类型"
v-model="referForm.id_type"
@change="changeIDType"
>
<el-option
:key="index"
:label="item"
:value="item"
v-for="(item, index) in IDArrs"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<!-- 证件号 -->
<el-col :span="12" v-show="configJson.idCard == 1">
<el-form-item
:rules="
......@@ -146,14 +175,15 @@
? referInfoRules.idCard
: [{ required: false }]
"
label="身份证号"
label="证件号"
prop="id_card"
style="height: 73px"
>
<el-input
placeholder="填写真实身份证号"
placeholder="填写真实证件号"
ref="id_card"
size="small"
:disabled="isIDtype"
v-model="referForm.id_card"
/>
</el-form-item>
......@@ -797,7 +827,8 @@
<el-col :span="8" v-show="configJson.guardianPhone == 1">
<el-form-item
:rules="
configJson.guardianPhone == 1
configJson.guardianPhone == 1 &&
referForm.guardian_phone != null
? referInfoRules.guardian_phone
: [{ required: false }]
"
......@@ -813,20 +844,20 @@
/>
</el-form-item>
</el-col>
<!-- 监护人身份证号 -->
<!-- 监护人证件号 -->
<el-col :span="8" v-show="configJson.guardianCard == 1">
<el-form-item
:rules="
configJson.guardianCard == 1
configJson.guardianCard == 1 && referForm.guardian_card != null
? referInfoRules.guardian_card
: [{ required: false }]
"
label="监护人身份证号"
label="监护人证件号"
prop="guardian_card"
>
<el-input
clearable
placeholder="填写监护人身份证号"
placeholder="填写监护人证件号"
ref="code"
size="small"
v-model="referForm.guardian_card"
......@@ -1305,6 +1336,7 @@ export default {
name: null,
gender: null,
age: null,
id_type: null,
id_card: null,
education: null,
birthday: null,
......@@ -1347,8 +1379,11 @@ export default {
gender: [
{ required: true, message: "性别不能为空!", trigger: "change" },
],
id_type: [
{ required: true, message: "证件类型不能为空!", trigger: "change" },
],
id_card: [
// { required: true, message: "身份证号不能为空!", trigger: "blur" },
// { required: true, message: "证件号不能为空!", trigger: "blur" },
{ validator: validator.validateid_card, trigger: "blur" },
],
birthday: [
......@@ -1399,7 +1434,7 @@ export default {
idCard: [
{
required: true,
message: "身份证号不能为空!",
message: "证件号不能为空!",
trigger: "blur",
},
{ validator: validator.validateid_card, trigger: "blur" },
......@@ -1490,7 +1525,7 @@ export default {
guardian_card: [
// {
// required: true,
// message: "监护人身份证号不能为空!",
// message: "监护人证件号不能为空!",
// trigger: "blur",
// },
{ validator: validator.validateid_card, trigger: "blur" },
......@@ -1697,6 +1732,16 @@ export default {
name: "XXL (175-180CM)",
},
],
// 证件类型
IDArrs: [
"大陆居民身份证",
"港澳台居民身份证",
"港澳居民来往通行证",
"台湾居民来往通行证",
"护照",
],
isIDtype: false, //是否可以修改证件号
// 中学(模糊搜索)
// timeout: null,
// school: "",
......@@ -1860,6 +1905,14 @@ export default {
},
mounted() {},
methods: {
// 证件类型
changeIDType(val) {
if (!val) {
this.isIDtype = true;
} else {
this.isIDtype = false;
}
},
// 页面信息个人获取
getAccount() {
getAccount({}).then((res) => {
......@@ -1873,6 +1926,7 @@ export default {
name: null,
gender: null,
age: null,
id_type: null,
id_card: null,
education: null,
birthday: null,
......@@ -2459,6 +2513,9 @@ export default {
if (_this.configJson.gender == 1) {
obj.gender = _this.referForm.gender;
}
if (_this.configJson.idCard == 1) {
obj.id_type = _this.referForm.id_type;
}
if (_this.configJson.idCard == 1) {
obj.id_card = _this.referForm.id_card;
}
......
// 测试
// export const SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; // 正式环境
// export const DEVELOPMENT_SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; //开发环境
// export const SERVER_WS_URL = "wss://tgwapi.campcenter.cn"; // websocket
export const SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; // 正式环境
export const DEVELOPMENT_SERVER_URL = "https://tgwapi.campcenter.cn/modules-campsite"; //开发环境
export const SERVER_WS_URL = "wss://tgwapi.campcenter.cn"; // websocket
// 正式
export const SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; // 正式环境
export const DEVELOPMENT_SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; //开发环境
export const SERVER_WS_URL = "wss://gwapi.campcenter.cn"; // websocket
// export const SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; // 正式环境
// export const DEVELOPMENT_SERVER_URL = "https://gwapi.campcenter.cn/modules-campsite"; //开发环境
// export const SERVER_WS_URL = "wss://gwapi.campcenter.cn"; // websocket
// 测试
// export const SERVER_URL = "http://192.168.1.145:8088/modules-campsite"; // 正式环境
......
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