修改流程tab组件重新分类
Showing
10 changed files
with
9 additions
and
286 deletions
... | @@ -90,7 +90,7 @@ | ... | @@ -90,7 +90,7 @@ |
90 | import table from "@/utils/mixin/table"; | 90 | import table from "@/utils/mixin/table"; |
91 | import { getIdCardInfo } from '@/utils/operation.js' | 91 | import { getIdCardInfo } from '@/utils/operation.js' |
92 | import { getUnclaimedBdcqz, issueCertificate, getBdcqzQlr } from "@/api/bdcqz.js"; | 92 | import { getUnclaimedBdcqz, issueCertificate, getBdcqzQlr } from "@/api/bdcqz.js"; |
93 | import { datas } from "../../javascript/fzxxdata"; | 93 | import { datas } from "@/views/workflow/main/fzxx/fzxxdata"; |
94 | import { log } from 'bpmn-js-token-simulation'; | 94 | import { log } from 'bpmn-js-token-simulation'; |
95 | export default { | 95 | export default { |
96 | props: { | 96 | props: { | ... | ... |
... | @@ -94,25 +94,25 @@ export function getForm(tabName) { | ... | @@ -94,25 +94,25 @@ export function getForm(tabName) { |
94 | form = require("@/views/workflow/main/spyj"); | 94 | form = require("@/views/workflow/main/spyj"); |
95 | break; | 95 | break; |
96 | case "swxx"://税务信息 | 96 | case "swxx"://税务信息 |
97 | form = require("@/views/workflow/components/swxx.vue"); | 97 | form = require("@/views/workflow/main/swxx"); |
98 | break; | 98 | break; |
99 | case "sfxx"://收费信息 | 99 | case "sfxx"://收费信息 |
100 | form = require("@/views/workflow/components/sfxx.vue"); | 100 | form = require("@/views/workflow/main/sfxx"); |
101 | break; | 101 | break; |
102 | case "sdqxx"://水电气信息 | 102 | case "sdqxx"://水电气信息 |
103 | form = require("@/views/workflow/components/sdqxx.vue"); | 103 | form = require("@/views/workflow/main/sdqxx"); |
104 | break; | 104 | break; |
105 | case "zdjbxx"://宗地基本信息 | 105 | case "zdjbxx"://宗地基本信息 |
106 | form = require("@/views/registerBook/zdjbxx.vue"); | 106 | form = require("@/views/registerBook/zdjbxx.vue"); |
107 | break; | 107 | break; |
108 | case "szxx"://缮证信息 | 108 | case "szxx"://缮证信息 |
109 | form = require("@/views/workflow/components/szxx.vue"); | 109 | form = require("@/views/workflow/main/szxx"); |
110 | break; | 110 | break; |
111 | case "fzxx"://发证信息 | 111 | case "fzxx"://发证信息 |
112 | form = require("@/views/workflow/components/fzxx.vue"); | 112 | form = require("@/views/workflow/main/fzxx"); |
113 | break; | 113 | break; |
114 | case "zdjbxxImg"://宗地图 | 114 | case "zdjbxxImg"://宗地图 |
115 | form = require("@/views/workflow/components/zdt.vue"); | 115 | form = require("@/views/workflow/main/zdt"); |
116 | break; | 116 | break; |
117 | case "cfdjxx": | 117 | case "cfdjxx": |
118 | form = require("@/views/registerBook/cfdj.vue"); | 118 | form = require("@/views/registerBook/cfdj.vue"); | ... | ... |
... | @@ -43,7 +43,7 @@ | ... | @@ -43,7 +43,7 @@ |
43 | import { mapGetters } from 'vuex' | 43 | import { mapGetters } from 'vuex' |
44 | import store from '@/store/index.js' | 44 | import store from '@/store/index.js' |
45 | import table from "@/utils/mixin/table"; | 45 | import table from "@/utils/mixin/table"; |
46 | import { datas } from "../javascript/fzxxdata"; | 46 | import { datas } from "./fzxxdata"; |
47 | import { getCertificateList } from "@/api/bdcqz.js"; | 47 | import { getCertificateList } from "@/api/bdcqz.js"; |
48 | export default { | 48 | export default { |
49 | mixins: [table], | 49 | mixins: [table], | ... | ... |
... | @@ -67,7 +67,7 @@ | ... | @@ -67,7 +67,7 @@ |
67 | <div class="slxx_title title-block"> | 67 | <div class="slxx_title title-block"> |
68 | 票据 | 68 | 票据 |
69 | <div style="height:250px"> | 69 | <div style="height:250px"> |
70 | <img src="../../../image/pj.jpg" alt="" style="height:100%"> | 70 | <img src="../../../../image/pj.jpg" alt="" style="height:100%"> |
71 | </div> | 71 | </div> |
72 | </div> | 72 | </div> |
73 | </div> | 73 | </div> | ... | ... |
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2024-01-19 14:45:09 | ||
5 | --> | ||
6 | <template> | ||
7 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px"> | ||
8 | <el-row> | ||
9 | <el-col :span="8"> | ||
10 | <el-form-item label="发证人姓名"> | ||
11 | <el-input v-model="ruleForm.fzrmc" disabled></el-input> | ||
12 | </el-form-item> | ||
13 | </el-col> | ||
14 | <el-col :span="8"> | ||
15 | <el-form-item label="发证时间"> | ||
16 | <el-input v-model="ruleForm.fzsj" disabled></el-input> | ||
17 | </el-form-item> | ||
18 | </el-col> | ||
19 | <el-col :span="8"> | ||
20 | <el-form-item label="发证数量"> | ||
21 | <el-input v-model="ruleForm.fzsl" disabled></el-input> | ||
22 | </el-form-item> | ||
23 | </el-col> | ||
24 | </el-row> | ||
25 | <lb-table :column="tableData.columns" @row-dblclick="handleRowClick" ref="table" @selection-change="handleSelectionChange" | ||
26 | :data="tableData.data" | ||
27 | :pagination="false" | ||
28 | :calcHeight="300"> | ||
29 | </lb-table> | ||
30 | <el-row> | ||
31 | <el-col :span="3"> | ||
32 | <el-form-item label="身份证读卡器"> | ||
33 | <el-button type="text" icon="el-icon-tickets" @click="readClick">读取</el-button> | ||
34 | </el-form-item> | ||
35 | </el-col> | ||
36 | <el-col :span="5"> | ||
37 | <el-form-item label="领证人" prop="lzrxm" label-width="70px"> | ||
38 | <el-input v-model="ruleForm.lzrxm"></el-input> | ||
39 | </el-form-item> | ||
40 | </el-col> | ||
41 | <el-col :span="5"> | ||
42 | <el-form-item label="证件类型" prop="lzrzjlb" label-width="80px"> | ||
43 | <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择"> | ||
44 | <el-option v-for="item in lzrzjlbData" :key="item.dcode" :label="item.dname" :value="item.dcode"> | ||
45 | </el-option> | ||
46 | </el-select> | ||
47 | </el-form-item> | ||
48 | </el-col> | ||
49 | <el-col :span="5"> | ||
50 | <el-form-item label="证件号" prop="lzrzjh" label-width="70px"> | ||
51 | <el-input v-model="ruleForm.lzrzjh"></el-input> | ||
52 | </el-form-item> | ||
53 | </el-col> | ||
54 | <el-col :span="5"> | ||
55 | <el-form-item label="领证人电话" prop="lzrdh"> | ||
56 | <el-input v-model="ruleForm.lzrdh"></el-input> | ||
57 | </el-form-item> | ||
58 | </el-col> | ||
59 | </el-row> | ||
60 | <el-form-item class="text-center"> | ||
61 | <el-button @click="$popupCacel">取消</el-button> | ||
62 | <el-button type="primary" @click="handleSubmit">确定</el-button> | ||
63 | </el-form-item> | ||
64 | </el-form> | ||
65 | </template> | ||
66 | <script> | ||
67 | const checkPhone = (rule, value, callback) => { | ||
68 | let regPone = null | ||
69 | let mobile = /^(1[3456789]\d{9})$/ //手机号 | ||
70 | let tel = /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/ // 座机 | ||
71 | if (value && value[0] === '0') {// 检查 value 是否存在并且不是 null 或者 undefined | ||
72 | regPone = tel | ||
73 | } else if (value && value[0] !== '0') { | ||
74 | regPone = mobile | ||
75 | } | ||
76 | if (regPone === null) { | ||
77 | return callback( | ||
78 | new Error('请输入电话') | ||
79 | ) | ||
80 | } else if (!regPone.test(value)) { | ||
81 | return callback( | ||
82 | new Error("请输入正确的电话格式,其中座机格式'区号-座机号码'") | ||
83 | ) | ||
84 | } else { | ||
85 | callback() | ||
86 | } | ||
87 | }; | ||
88 | import Vue from 'vue' | ||
89 | import store from '@/store/index.js' | ||
90 | import table from "@/utils/mixin/table"; | ||
91 | import { getIdCardInfo } from '@/utils/operation.js' | ||
92 | import { getUnclaimedBdcqz, issueCertificate, getBdcqzQlr } from "@/api/bdcqz.js"; | ||
93 | import { datas } from "../../javascript/fzxxdata"; | ||
94 | import { log } from 'bpmn-js-token-simulation'; | ||
95 | export default { | ||
96 | props: { | ||
97 | formData: { | ||
98 | type: Object, | ||
99 | default: () => { | ||
100 | return {} | ||
101 | } | ||
102 | } | ||
103 | }, | ||
104 | mixins: [table], | ||
105 | data () { | ||
106 | return { | ||
107 | lzrzjlbData: store.getters.dictData['A30'], | ||
108 | ruleForm: { | ||
109 | fzrmc: '', | ||
110 | fzsj: '', | ||
111 | fzsl: '', | ||
112 | bdcqzList: [], | ||
113 | lzrxm: '', | ||
114 | lzrzjlb: '', | ||
115 | lzrzjh: '', | ||
116 | lzrdh: '' | ||
117 | }, | ||
118 | rules: { | ||
119 | lzrxm: [ | ||
120 | { required: true, message: '请输入领证人', trigger: 'blur' } | ||
121 | ], | ||
122 | lzrzjlb: [ | ||
123 | { required: true, message: '请选择证件类型', trigger: 'change' } | ||
124 | ], | ||
125 | lzrzjh: [ | ||
126 | { required: true, message: '请输入证件号', trigger: 'blur' } | ||
127 | ], | ||
128 | lzrdh: [ | ||
129 | { required: true, validator: checkPhone, trigger: ["blur"] } | ||
130 | ] | ||
131 | }, | ||
132 | tableData: { | ||
133 | total: 0, | ||
134 | columns: datas.columns().lzgrid, | ||
135 | data: [] | ||
136 | } | ||
137 | } | ||
138 | }, | ||
139 | mounted () { | ||
140 | this.$nextTick(() => { | ||
141 | this.loadGrid() | ||
142 | }) | ||
143 | }, | ||
144 | methods: { | ||
145 | /** | ||
146 | * @description: 身份证打卡器 | ||
147 | * @author: renchao | ||
148 | */ | ||
149 | readClick () { | ||
150 | function getObjectByValue (arrayOfObjects, value) { | ||
151 | var name = '' | ||
152 | arrayOfObjects.forEach(item => { | ||
153 | if (item.dname.includes(value)) name = item.dcode | ||
154 | }) | ||
155 | return name | ||
156 | } | ||
157 | getIdCardInfo(this.BASE_API.gaopaiyi).then(res => { | ||
158 | if (this.BASE_API.gaopaiyi == 'jy') { | ||
159 | const { | ||
160 | Name, | ||
161 | IdNo, | ||
162 | } = JSON.parse(res) | ||
163 | if (Name) { | ||
164 | this.ruleForm.lzrxm = Name; | ||
165 | this.ruleForm.lzrzjlb = '1'; | ||
166 | this.ruleForm.lzrzjh = IdNo; | ||
167 | this.$message({ | ||
168 | message: '读取成功!', | ||
169 | type: 'success' | ||
170 | }) | ||
171 | } else { | ||
172 | this.$message({ | ||
173 | message: '请放置身份证', | ||
174 | type: 'warning' | ||
175 | }) | ||
176 | } | ||
177 | } else { | ||
178 | if (res.data.code == 0) { | ||
179 | let data = res.data.IDCardInfo | ||
180 | this.ruleForm.lzrxm = data.name | ||
181 | this.ruleForm.lzrzjlb = '1' | ||
182 | this.ruleForm.lzrzjh = data.cardID | ||
183 | this.$message({ | ||
184 | message: '读取成功!', | ||
185 | type: 'success' | ||
186 | }) | ||
187 | } else { | ||
188 | this.$message({ | ||
189 | message: res.data.message, | ||
190 | type: 'warning' | ||
191 | }) | ||
192 | } | ||
193 | } | ||
194 | }) | ||
195 | }, | ||
196 | /** | ||
197 | * @description: 列表初始化 | ||
198 | * @author: renchao | ||
199 | */ | ||
200 | loadGrid () { | ||
201 | let that = this | ||
202 | getUnclaimedBdcqz({ bsmSlsq: Vue.prototype.$currentRoute.query.bsmSlsq }).then(res => { | ||
203 | if (res.code === 200) { | ||
204 | this.tableData.data = res.result.list; | ||
205 | this.$nextTick(() => { | ||
206 | this.tableData.data.forEach(item => { | ||
207 | that.$refs.table.toggleRowSelection(item) | ||
208 | }) | ||
209 | }) | ||
210 | this.ruleForm.fzrmc = res.result.fzrmc | ||
211 | this.ruleForm.fzsj = res.result.fzsj | ||
212 | this.ruleForm.fzsl = res.result.fzsl | ||
213 | this.ruleForm.bdcqzList = res.result.list; | ||
214 | res.result.list.length && this.getQlr(res.result.list[0].bsmBdcqz) | ||
215 | } | ||
216 | }) | ||
217 | }, | ||
218 | /** | ||
219 | * @description: 获取权利人信息 | ||
220 | * @author: renchao | ||
221 | */ | ||
222 | getQlr (bsmBdcqz) { | ||
223 | getBdcqzQlr(bsmBdcqz).then(res => { | ||
224 | if (res.code === 200) { | ||
225 | this.ruleForm.lzrxm = res.result.qlrmc; | ||
226 | this.ruleForm.lzrzjlb = res.result.zjzl; | ||
227 | this.ruleForm.lzrzjh = res.result.zjh; | ||
228 | this.ruleForm.lzrdh = res.result.dh; | ||
229 | } | ||
230 | }) | ||
231 | }, | ||
232 | /** | ||
233 | * @description: handleSelectionChange | ||
234 | * @param {*} val | ||
235 | * @author: renchao | ||
236 | */ | ||
237 | handleSelectionChange (val) { | ||
238 | this.ruleForm.bdcqzList = val | ||
239 | }, | ||
240 | /** | ||
241 | * @description: handleRowClick | ||
242 | * @param {*} row | ||
243 | * @author: renchao | ||
244 | */ | ||
245 | handleRowClick (row) { | ||
246 | this.$refs.table.toggleRowSelection(row) | ||
247 | }, | ||
248 | /** | ||
249 | * @description: handleSubmit | ||
250 | * @author: renchao | ||
251 | */ | ||
252 | handleSubmit () { | ||
253 | this.$refs.ruleForm.validate(valid => { | ||
254 | if (valid) { | ||
255 | issueCertificate(this.ruleForm).then(res => { | ||
256 | if (res.code == 200) { | ||
257 | this.$message.success('保存成功'); | ||
258 | //刷新列表 | ||
259 | store.dispatch('user/reWorkFresh', true) | ||
260 | this.$popupCacel() | ||
261 | } else { | ||
262 | this.$message.error(res.message) | ||
263 | } | ||
264 | }) | ||
265 | } else { | ||
266 | return false; | ||
267 | } | ||
268 | }) | ||
269 | } | ||
270 | } | ||
271 | } | ||
272 | </script> | ||
273 | <style scoped lang="scss"> | ||
274 | @import "~@/styles/mixin.scss"; | ||
275 | </style> | ||
276 | |||
277 |
-
Please register or sign in to post a comment