|
@@ -26,7 +26,7 @@ const getDefaultForm = () => ({
|
|
|
idCardNo: "",
|
|
|
relationShip: "",
|
|
|
phoneNumber: "",
|
|
|
- certTypes: "中国大陆居民身份证",
|
|
|
+ idCardType: "中国大陆居民身份证",
|
|
|
|
|
|
/* 新增卡字段 */
|
|
|
type: "",
|
|
@@ -37,6 +37,11 @@ const getDefaultForm = () => ({
|
|
|
idcardNoRsa: "",
|
|
|
});
|
|
|
|
|
|
+const cardTypeMap = {
|
|
|
+ 中国大陆居民身份证: "1",
|
|
|
+ 港澳台身份证: "9",
|
|
|
+};
|
|
|
+
|
|
|
const copy = (data) => JSON.parse(JSON.stringify(data));
|
|
|
|
|
|
Component(
|
|
@@ -209,7 +214,7 @@ Component(
|
|
|
const { certTypes = [] } = this.data;
|
|
|
const { name = "" } = certTypes[value];
|
|
|
this.setData({
|
|
|
- "editForm.certTypes": name,
|
|
|
+ "editForm.idCardType": name,
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -314,12 +319,14 @@ Component(
|
|
|
/* 提交 */
|
|
|
async onSubmit(_form) {
|
|
|
const { routeState } = this.data;
|
|
|
+ const { idCardType } = _form;
|
|
|
/* 加密数据 */
|
|
|
|
|
|
const form = {
|
|
|
..._form,
|
|
|
idCardNo: await getEncryptStr(_form.idCardNo),
|
|
|
phoneNumber: await getEncryptStr(_form.phoneNumber),
|
|
|
+ idCardType: cardTypeMap[idCardType],
|
|
|
};
|
|
|
let msg = "";
|
|
|
try {
|