889bde25 by yangwei

证书领取

1 parent ca78c913
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-13 16:13:54 4 * @LastEditTime: 2023-09-13 17:08:19
5 --> 5 -->
6 <template> 6 <template>
7 <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px"> 7 <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px">
...@@ -29,26 +29,26 @@ ...@@ -29,26 +29,26 @@
29 </lb-table> 29 </lb-table>
30 <el-row> 30 <el-row>
31 <el-col :span="6"> 31 <el-col :span="6">
32 <el-form-item label="领证人" prop="qlrmc"> 32 <el-form-item label="领证人" prop="lzrxm">
33 <el-input v-model="ruleForm.qlrmc"></el-input> 33 <el-input v-model="ruleForm.lzrxm"></el-input>
34 </el-form-item> 34 </el-form-item>
35 </el-col> 35 </el-col>
36 <el-col :span="6"> 36 <el-col :span="6">
37 <el-form-item label="证件类型" prop="zjzl"> 37 <el-form-item label="证件类型" prop="lzrzjlb">
38 <el-select v-model="ruleForm.zjzl" filterable clearable placeholder="请选择"> 38 <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择">
39 <el-option v-for="item in zjzlData" :key="item.dcode" :label="item.dname" :value="item.dcode"> 39 <el-option v-for="item in lzrzjlbData" :key="item.dcode" :label="item.dname" :value="item.dcode">
40 </el-option> 40 </el-option>
41 </el-select> 41 </el-select>
42 </el-form-item> 42 </el-form-item>
43 </el-col> 43 </el-col>
44 <el-col :span="6"> 44 <el-col :span="6">
45 <el-form-item label="证件号" prop="zjh"> 45 <el-form-item label="证件号" prop="lzrzjh">
46 <el-input v-model="ruleForm.zjh"></el-input> 46 <el-input v-model="ruleForm.lzrzjh"></el-input>
47 </el-form-item> 47 </el-form-item>
48 </el-col> 48 </el-col>
49 <el-col :span="6"> 49 <el-col :span="6">
50 <el-form-item label="领证人电话" prop="dh"> 50 <el-form-item label="领证人电话" prop="lzrdh">
51 <el-input v-model="ruleForm.dh"></el-input> 51 <el-input v-model="ruleForm.lzrdh"></el-input>
52 </el-form-item> 52 </el-form-item>
53 </el-col> 53 </el-col>
54 </el-row> 54 </el-row>
...@@ -76,28 +76,28 @@ ...@@ -76,28 +76,28 @@
76 mixins: [table], 76 mixins: [table],
77 data () { 77 data () {
78 return { 78 return {
79 zjzlData: store.getters.dictData['A30'], 79 lzrzjlbData: store.getters.dictData['A30'],
80 ruleForm: { 80 ruleForm: {
81 fzrmc: '', 81 fzrmc: '',
82 fzsj: '', 82 fzsj: '',
83 fzsl: '', 83 fzsl: '',
84 bdcqzList: [], 84 bdcqzList: [],
85 qlrmc: '', 85 lzrxm: '',
86 zjzl: '', 86 lzrzjlb: '',
87 zjh: '', 87 lzrzjh: '',
88 dh: '' 88 lzrdh: ''
89 }, 89 },
90 rules: { 90 rules: {
91 qlrmc: [ 91 lzrxm: [
92 { required: true, message: '请输入领证人', trigger: 'blur' } 92 { required: true, message: '请输入领证人', trigger: 'blur' }
93 ], 93 ],
94 zjzl: [ 94 lzrzjlb: [
95 { required: true, message: '请选择证件类型', trigger: 'change' } 95 { required: true, message: '请选择证件类型', trigger: 'change' }
96 ], 96 ],
97 zjh: [ 97 lzrzjh: [
98 { required: true, message: '请输入证件号', trigger: 'blur' } 98 { required: true, message: '请输入证件号', trigger: 'blur' }
99 ], 99 ],
100 dh: [ 100 lzrdh: [
101 { required: true, message: '请输入电话号码', trigger: 'blur' } 101 { required: true, message: '请输入电话号码', trigger: 'blur' }
102 ] 102 ]
103 }, 103 },
...@@ -143,7 +143,10 @@ ...@@ -143,7 +143,10 @@
143 getQlr (bsmBdcqz) { 143 getQlr (bsmBdcqz) {
144 getBdcqzQlr(bsmBdcqz).then(res => { 144 getBdcqzQlr(bsmBdcqz).then(res => {
145 if (res.code === 200) { 145 if (res.code === 200) {
146 this.ruleForm = {...this.ruleForm,...res.result} 146 this.ruleForm.lzrxm = res.result.qlrmc;
147 this.ruleForm.lzrzjlb = res.result.zjzl;
148 this.ruleForm.lzrzjh = res.result.zjh;
149 this.ruleForm.lzrdh = res.result.dh;
147 } 150 }
148 }) 151 })
149 }, 152 },
......