|
|
@ -32,6 +32,12 @@ |
|
|
|
<span>扫描身份证</span> |
|
|
|
</div> |
|
|
|
</el-upload> --> |
|
|
|
<el-form-item label="单位" prop="SCWJ-DW"> |
|
|
|
<el-input |
|
|
|
v-model="form['SCWJ-DW']" |
|
|
|
placeholder="请输入单位" |
|
|
|
></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="姓名" prop="SCWJ-NAME"> |
|
|
|
<el-input |
|
|
|
v-model="form['SCWJ-NAME']" |
|
|
@ -463,6 +469,7 @@ export default { |
|
|
|
}, |
|
|
|
], // 表单参数 |
|
|
|
form: { |
|
|
|
"SCWJ-DW": "", |
|
|
|
"SCWJ-NAME": "", |
|
|
|
"SCWJ-SEX": "男", |
|
|
|
"SCWJ-BIRTH": "", |
|
|
@ -493,6 +500,13 @@ export default { |
|
|
|
}, |
|
|
|
// 表单校验 |
|
|
|
rules: { |
|
|
|
"SCWJ-DW": [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: "单位不能为空", |
|
|
|
trigger: "blur", |
|
|
|
}, |
|
|
|
], |
|
|
|
"SCWJ-NAME": [ |
|
|
|
{ |
|
|
|
required: true, |
|
|
@ -530,7 +544,7 @@ export default { |
|
|
|
{ |
|
|
|
pattern: /^1[3456789]\d{9}$/, |
|
|
|
message: "格式不正确", |
|
|
|
trigger: "change", |
|
|
|
trigger: ["blur", "change"], |
|
|
|
}, |
|
|
|
], |
|
|
|
"SCWJ-HEIGHT": [ |
|
|
@ -822,6 +836,7 @@ export default { |
|
|
|
this.id = res.data.id; |
|
|
|
// ------ 保存答案 ------ |
|
|
|
// 基本信息 |
|
|
|
await this.saveAnswer(this.form["SCWJ-DW"], "SCWJ-DW"); |
|
|
|
await this.saveAnswer(this.form["SCWJ-NAME"], "SCWJ-NAME"); |
|
|
|
await this.saveAnswer(this.form["SCWJ-SEX"], "SCWJ-SEX"); |
|
|
|
await this.saveAnswer(this.form["SCWJ-BIRTH"], "SCWJ-BIRTH"); |
|
|
|