889bde25 by yangwei

证书领取

1 parent ca78c913
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-13 16:13:54
* @LastEditTime: 2023-09-13 17:08:19
-->
<template>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
......@@ -29,26 +29,26 @@
</lb-table>
<el-row>
<el-col :span="6">
<el-form-item label="领证人" prop="qlrmc">
<el-input v-model="ruleForm.qlrmc"></el-input>
<el-form-item label="领证人" prop="lzrxm">
<el-input v-model="ruleForm.lzrxm"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="证件类型" prop="zjzl">
<el-select v-model="ruleForm.zjzl" filterable clearable placeholder="请选择">
<el-option v-for="item in zjzlData" :key="item.dcode" :label="item.dname" :value="item.dcode">
<el-form-item label="证件类型" prop="lzrzjlb">
<el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择">
<el-option v-for="item in lzrzjlbData" :key="item.dcode" :label="item.dname" :value="item.dcode">
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="证件号" prop="zjh">
<el-input v-model="ruleForm.zjh"></el-input>
<el-form-item label="证件号" prop="lzrzjh">
<el-input v-model="ruleForm.lzrzjh"></el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="领证人电话" prop="dh">
<el-input v-model="ruleForm.dh"></el-input>
<el-form-item label="领证人电话" prop="lzrdh">
<el-input v-model="ruleForm.lzrdh"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -76,28 +76,28 @@
mixins: [table],
data () {
return {
zjzlData: store.getters.dictData['A30'],
lzrzjlbData: store.getters.dictData['A30'],
ruleForm: {
fzrmc: '',
fzsj: '',
fzsl: '',
bdcqzList: [],
qlrmc: '',
zjzl: '',
zjh: '',
dh: ''
lzrxm: '',
lzrzjlb: '',
lzrzjh: '',
lzrdh: ''
},
rules: {
qlrmc: [
lzrxm: [
{ required: true, message: '请输入领证人', trigger: 'blur' }
],
zjzl: [
lzrzjlb: [
{ required: true, message: '请选择证件类型', trigger: 'change' }
],
zjh: [
lzrzjh: [
{ required: true, message: '请输入证件号', trigger: 'blur' }
],
dh: [
lzrdh: [
{ required: true, message: '请输入电话号码', trigger: 'blur' }
]
},
......@@ -143,7 +143,10 @@
getQlr (bsmBdcqz) {
getBdcqzQlr(bsmBdcqz).then(res => {
if (res.code === 200) {
this.ruleForm = {...this.ruleForm,...res.result}
this.ruleForm.lzrxm = res.result.qlrmc;
this.ruleForm.lzrzjlb = res.result.zjzl;
this.ruleForm.lzrzjh = res.result.zjh;
this.ruleForm.lzrdh = res.result.dh;
}
})
},
......