5bfa6aac by 任超

style:受理申请

1 parent 9f532d89
...@@ -10,6 +10,11 @@ import Base from './components/Base/base' // 全局组件引入 ...@@ -10,6 +10,11 @@ import Base from './components/Base/base' // 全局组件引入
10 import mixin from '@/utils/mixin/theme.js' 10 import mixin from '@/utils/mixin/theme.js'
11 Vue.mixin(mixin); 11 Vue.mixin(mixin);
12 12
13 import rules from './utils/rule.js'
14 // 全局方法挂载
15 Vue.prototype.$rules = rules
16
17
13 import { theme } from "@/directive/theme.js" 18 import { theme } from "@/directive/theme.js"
14 Vue.directive("theme", theme) 19 Vue.directive("theme", theme)
15 20
......
1 // 手机号码验证
2 const validatePhone = (rule, value, callback) => {
3 const patter = new RegExp('^1([358][0-9]|4[579]|66|7[0135678]|9[89])[0-9]{8}$')
4 if (!patter.test(value)) {
5 return callback(new Error('请输入正确格式的手机号!'))
6 } else {
7 callback() // 必须有此项回调,否则验证会一直不通过
8 }
9 }
10 export default {
11 common: {
12 phone: [{// 手机号
13 required: true,
14 message: '手机号不能为空'
15 }, {
16 validator: validatePhone,
17 trigger: 'blur'
18 }]
19 }
20 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -5,16 +5,3 @@ ...@@ -5,16 +5,3 @@
5 export function isExternal (path) { 5 export function isExternal (path) {
6 return /^(https?:|mailto:|tel:)/.test(path) 6 return /^(https?:|mailto:|tel:)/.test(path)
7 } 7 }
...\ No newline at end of file ...\ No newline at end of file
8 export function validatePhone (rule, value, callback) {
9 let phoneReg = /^[1][3,4,5,7,8][0-9]{9}$/
10 if (!value) {
11 return callback(new Error('号码不能为空!!'))
12 }
13 setTimeout(() => {
14 if (!phoneReg.test(value)) {
15 callback(new Error('格式有误'))
16 } else {
17 callback()
18 }
19 }, 100)
20 }
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -109,6 +109,7 @@ export default { ...@@ -109,6 +109,7 @@ export default {
109 methods: { 109 methods: {
110 // 添加 110 // 添加
111 handleAdd () { 111 handleAdd () {
112 console.log(11111111111);
112 this.dialog = true 113 this.dialog = true
113 }, 114 },
114 // 减 115 // 减
......
1 <template> 1 <template>
2 <dialogBox title="申请人信息" width="60%" isMain v-model="myValue" :isFullscreen="false" @submitForm="submitForm" 2 <dialogBox title="申请人信息" width="60%" isMain v-model="myValue" :isFullscreen="false" @submitForm="submitForm"
3 @closeDialog="closeDialog"> 3 @closeDialog="closeDialog">
4 <el-form :model="ruleForm" ref="ruleForm" label-width="100px"> 4 <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px">
5 <el-row> 5 <el-row>
6 <el-col :span="8"> 6 <el-col :span="8">
7 <el-form-item label="权利人类型" prop="qlrlx"> 7 <el-form-item label="权利人类型" prop="qlrlx">
...@@ -28,17 +28,111 @@ ...@@ -28,17 +28,111 @@
28 <el-row> 28 <el-row>
29 <el-col :span="8"> 29 <el-col :span="8">
30 <el-form-item label="证件号" prop="zjh"> 30 <el-form-item label="证件号" prop="zjh">
31 <el-input v-model="ruleForm.zjh" maxlegth="15"></el-input> 31 <el-input v-model="ruleForm.zjh" maxlength="15"></el-input>
32 </el-form-item> 32 </el-form-item>
33 </el-col> 33 </el-col>
34 <el-col :span="8"> 34 <el-col :span="8">
35 <el-form-item label="联系电话" prop="lxdh"> 35 <el-form-item label="联系电话" prop="lxdh" :rules="$rules.common.phone">
36 <el-input v-model="ruleForm.lxdh" maxlegth="11"></el-input> 36 <el-input v-model="ruleForm.lxdh" maxlength="11"></el-input>
37 </el-form-item>
38 </el-col>
39 <el-col :span="8">
40 <el-form-item label="性别" prop="xb">
41 <el-select v-model="ruleForm.zjzl" class="width100" placeholder="请选择">
42 <el-option v-for="item in dictData['A43']" :key="item.dcode" :label="item.dname" :value="item.dcode">
43 </el-option>
44 </el-select>
45 </el-form-item>
46 </el-col>
47 </el-row>
48 <el-row>
49 <el-col :span="8">
50 <el-form-item label="法人名称" prop="frmc">
51 <el-input v-model="ruleForm.frmc"></el-input>
52 </el-form-item>
53 </el-col>
54 <el-col :span="8">
55 <el-form-item label="国家/地区" prop="gjdq">
56 <el-input v-model="ruleForm.gjdq"></el-input>
57 </el-form-item>
58 </el-col>
59 <el-col :span="8">
60 <el-form-item label="户籍所在省市" prop="szss">
61 <el-input v-model="ruleForm.szss"></el-input>
62 </el-form-item>
63 </el-col>
64 </el-row>
65
66 <el-row>
67 <el-col :span="16">
68 <el-form-item label="地址" prop="dz">
69 <el-input v-model="ruleForm.dz"></el-input>
70 </el-form-item>
71 </el-col>
72 <el-col :span="8">
73 <el-form-item label="邮编" prop="yb">
74 <el-input v-model="ruleForm.yb"></el-input>
37 </el-form-item> 75 </el-form-item>
38 </el-col> 76 </el-col>
39 </el-row> 77 </el-row>
78
79 <el-row>
80 <el-col :span="8">
81 <el-form-item label="发证机关" prop="fzjg">
82 <el-input v-model="ruleForm.fzjg"></el-input>
83 </el-form-item>
84 </el-col>
85 <el-col :span="8">
86 <el-form-item label="电子邮件" prop="dzyj">
87 <el-input v-model="ruleForm.dzyj"></el-input>
88 </el-form-item>
89 </el-col>
90 <el-col :span="8">
91 <el-form-item label="权利比例" prop="qlbl">
92 <el-input v-model="ruleForm.qlbl"></el-input>
93 </el-form-item>
94 </el-col>
95 </el-row>
96
40 <el-row> 97 <el-row>
98 <el-col :span="8">
99 <el-form-item label="工作单位" prop="gzdw">
100 <el-input v-model="ruleForm.gzdw"></el-input>
101 </el-form-item>
102 </el-col>
103 <el-col :span="16">
104 <el-form-item label="代理机构" prop="dljg">
105 <el-input v-model="ruleForm.dljg"></el-input>
106 </el-form-item>
107 </el-col>
108 </el-row>
41 109
110 <el-row>
111 <el-col :span="8">
112 <el-form-item label="联系电话" prop="lxdh" :rules="$rules.common.phone">
113 <el-input v-model="ruleForm.lxdh" maxlength="11"></el-input>
114 </el-form-item>
115 </el-col>
116 <el-col :span="8">
117 <el-form-item label="代理人姓名" prop="dlrxm">
118 <el-input v-model="ruleForm.dlrxm"></el-input>
119 </el-form-item>
120 </el-col>
121 <el-col :span="8">
122 <el-form-item label="代理人证件类型" prop="dlrzjlx">
123 <el-select v-model="ruleForm.dlrzjlx" class="width100" placeholder="请选择">
124 <el-option v-for="item in dictData['A30']" :key="item.dcode" :label="item.dname" :value="item.dcode">
125 </el-option>
126 </el-select>
127 </el-form-item>
128 </el-col>
129 </el-row>
130 <el-row>
131 <el-col :span="8">
132 <el-form-item label="代理人证件号" prop="dlrzjh">
133 <el-input v-model="ruleForm.dlrzjh" maxlength="20"></el-input>
134 </el-form-item>
135 </el-col>
42 </el-row> 136 </el-row>
43 </el-form> 137 </el-form>
44 </dialogBox> 138 </dialogBox>
...@@ -46,7 +140,6 @@ ...@@ -46,7 +140,6 @@
46 140
47 <script> 141 <script>
48 import { mapGetters } from 'vuex' 142 import { mapGetters } from 'vuex'
49 import { validatePhone } from '@/utils/validate'
50 export default { 143 export default {
51 props: { 144 props: {
52 value: { type: Boolean, default: false }, 145 value: { type: Boolean, default: false },
...@@ -62,7 +155,21 @@ export default { ...@@ -62,7 +155,21 @@ export default {
62 xm: '', 155 xm: '',
63 zjzl: '', 156 zjzl: '',
64 zjh: '', 157 zjh: '',
65 lxdh: '' 158 lxdh: '',
159 xb: '',
160 frmc: '',
161 gjdq: '',
162 szss: '',
163 dz: '',
164 yb: '',
165 fzjg: '',
166 dzyj: '',
167 qlbl: '',
168 gzdw: '',
169 dljg: '',
170 dlrxm: '',
171 dlrzjlx: '',
172 dlrzjh: ''
66 }, 173 },
67 rules: { 174 rules: {
68 qlrlx: [ 175 qlrlx: [
...@@ -77,13 +184,47 @@ export default { ...@@ -77,13 +184,47 @@ export default {
77 zjh: [ 184 zjh: [
78 { required: true, message: '证件号', trigger: 'blur' } 185 { required: true, message: '证件号', trigger: 'blur' }
79 ], 186 ],
80 lxdh: [ 187 xb: [
81 { 188 { required: true, message: '性别', trigger: 'change' }
82 required: true, // required就是这个框必须填写 189 ],
83 message: '不能空着', 190 frmc: [
84 validator: validatePhone, // 规则 191 { required: true, message: '法人名称', trigger: 'blur' }
85 trigger: 'blur', // blur失去焦点,事件何时触发 192 ],
86 }, 193 gjdqc: [
194 { required: true, message: '国家/地区', trigger: 'blur' }
195 ],
196 szss: [
197 { required: true, message: '户籍所在省市', trigger: 'blur' }
198 ],
199 dz: [
200 { required: true, message: '地址', trigger: 'blur' }
201 ],
202 yb: [
203 { required: true, message: '邮编', trigger: 'blur' }
204 ],
205 fzjg: [
206 { required: true, message: '发证机关', trigger: 'blur' }
207 ],
208 dzyj: [
209 { required: true, message: '电子邮件', trigger: 'blur' }
210 ],
211 qlbl: [
212 { required: true, message: '权利比例', trigger: 'blur' }
213 ],
214 gzdw: [
215 { required: true, message: '工作单位', trigger: 'blur' }
216 ],
217 dljg: [
218 { required: true, message: '代理机构', trigger: 'blur' }
219 ],
220 dlrxm: [
221 { required: true, message: '代理人姓名', trigger: 'blur' }
222 ],
223 dlrzjlx: [
224 { required: true, message: '代理人证件类型', trigger: 'change' }
225 ],
226 dlrzjh: [
227 { required: true, message: '代理人证件号', trigger: 'blur' }
87 ] 228 ]
88 } 229 }
89 } 230 }
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
120 }, 120 },
121 mounted () { 121 mounted () {
122 if (this.$route.query.bsmSlsq) { 122 if (this.$route.query.bsmSlsq) {
123 this.expandInfo(this.$route.query.bsmSlsq,this.$route.query.bestepid); 123 this.expandInfo(this.$route.query.bsmSlsq, this.$route.query.bestepid);
124 this.list(this.$route.query.bsmSlsq) 124 this.list(this.$route.query.bsmSlsq)
125 this.queryForm.bsmSlsq = this.$route.query.bsmSlsq 125 this.queryForm.bsmSlsq = this.$route.query.bsmSlsq
126 this.queryForm.bestepid = this.$route.query.bestepid 126 this.queryForm.bestepid = this.$route.query.bestepid
...@@ -146,12 +146,11 @@ export default { ...@@ -146,12 +146,11 @@ export default {
146 }) 146 })
147 }, 147 },
148 //获取环节扩展信息 148 //获取环节扩展信息
149 expandInfo (bsmSlsq,bestepid) { 149 expandInfo (bsmSlsq, bestepid) {
150 let that = this 150 let that = this
151 var formdata = new FormData(); 151 var formdata = new FormData();
152 formdata.append("bsmSlsq", bsmSlsq); 152 formdata.append("bsmSlsq", bsmSlsq);
153 formdata.append("bestepid", bestepid); 153 formdata.append("bestepid", bestepid);
154 console.log(formdata, 'formdata');
155 stepExpandInfo(formdata).then(res => { 154 stepExpandInfo(formdata).then(res => {
156 if (res.code === 200) { 155 if (res.code === 200) {
157 this.tabList1 = [...res.result.form] 156 this.tabList1 = [...res.result.form]
......