Merge branch 'dev'
Showing
5 changed files
with
106 additions
and
15 deletions
1 | /* | 1 | /* |
2 | * @Description: 材料信息 | 2 | * @Description: 材料信息 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-05-16 14:04:42 | 4 | * @LastEditTime: 2023-07-28 14:31:00 |
5 | */ | 5 | */ |
6 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
... | @@ -75,6 +75,22 @@ export function uploadSjClmx (data) { | ... | @@ -75,6 +75,22 @@ export function uploadSjClmx (data) { |
75 | } | 75 | } |
76 | 76 | ||
77 | /** | 77 | /** |
78 | * @description: 上传duo个文件 | ||
79 | * @param {*} data | ||
80 | * @author: renchao | ||
81 | */ | ||
82 | export function uploadBatch (data) { | ||
83 | return request({ | ||
84 | url: SERVER.SERVERAPI + '/rest/ywbl/clxx/uploadBatch', | ||
85 | method: 'post', | ||
86 | headers: { | ||
87 | 'Content-Type': 'multipart/form-data' | ||
88 | }, | ||
89 | data | ||
90 | }) | ||
91 | } | ||
92 | |||
93 | /** | ||
78 | * @description: 删除上传文件 | 94 | * @description: 删除上传文件 |
79 | * @param {*} bsmClmx | 95 | * @param {*} bsmClmx |
80 | * @author: renchao | 96 | * @author: renchao | ... | ... |
src/api/workflow/fwsyq1Flow.js
0 → 100644
1 | /* | ||
2 | * @Description: 房地产权多幢接口 | ||
3 | * @Autor: ssq | ||
4 | * @LastEditTime: 2023年07月27日 19:40:34 | ||
5 | */ | ||
6 | import request from '@/utils/request' | ||
7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | ||
8 | |||
9 | /** | ||
10 | * @description: 初始化内容 | ||
11 | * @param {*} data | ||
12 | * @author: 单帅旗 | ||
13 | */ | ||
14 | export function Init (data) { | ||
15 | let apiUrl = ""; | ||
16 | switch (data.get("djlx")) { | ||
17 | case "100": | ||
18 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq1lr/firstInit"; | ||
19 | break; | ||
20 | case "200": | ||
21 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq1lr/transferInit"; | ||
22 | break; | ||
23 | case "300": | ||
24 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq1lr/changeInit"; | ||
25 | break; | ||
26 | case "400": | ||
27 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq1lr/logoutInit"; | ||
28 | break; | ||
29 | case "500": | ||
30 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq1lr/riviseInit"; | ||
31 | break; | ||
32 | case "901": | ||
33 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq1lr/renewalInit"; | ||
34 | break; | ||
35 | case "902": | ||
36 | apiUrl = SERVER.SERVERAPI + "/rest/ywbl/fdcq1lr/replaceInit"; | ||
37 | break; | ||
38 | } | ||
39 | return request({ | ||
40 | url: apiUrl, | ||
41 | method: 'post', | ||
42 | data | ||
43 | }) | ||
44 | } | ||
45 | /** | ||
46 | * @description: 首次登记提交 | ||
47 | * @param {*} data | ||
48 | * @author: ssq | ||
49 | */ | ||
50 | export function saveBatchData (data) { | ||
51 | return request({ | ||
52 | url: SERVER.SERVERAPI + "/rest/ywbl/fdcq1lr/saveBatchData", | ||
53 | method: 'post', | ||
54 | data | ||
55 | }) | ||
56 | } | ||
57 | |||
58 | /** | ||
59 | * @description: 保存 | ||
60 | * @param {*} data | ||
61 | * @author: ssq | ||
62 | */ | ||
63 | export function saveData (data) { | ||
64 | return request({ | ||
65 | url: SERVER.SERVERAPI + "/rest/ywbl/fdcq1lr/saveData", | ||
66 | method: 'post', | ||
67 | data | ||
68 | }) | ||
69 | } | ||
70 |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-07-28 13:04:45 | 4 | * @LastEditTime: 2023-07-28 15:01:59 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="rlPopup"> | 7 | <div class="rlPopup"> |
... | @@ -50,7 +50,7 @@ | ... | @@ -50,7 +50,7 @@ |
50 | <script> | 50 | <script> |
51 | import PhotoZoom from '@/components/PhotoZoom' | 51 | import PhotoZoom from '@/components/PhotoZoom' |
52 | import { getAltimeterInfo, getUuid } from '@/utils/operation.js' | 52 | import { getAltimeterInfo, getUuid } from '@/utils/operation.js' |
53 | import { uploadSjClmx, deleteClmx } from "@/api/clxx.js"; | 53 | import { uploadBatch, deleteClmx } from "@/api/clxx.js"; |
54 | import publicPicture from '@/components/publicPicture/index.vue' | 54 | import publicPicture from '@/components/publicPicture/index.vue' |
55 | export default { | 55 | export default { |
56 | name: 'PreviewImage', | 56 | name: 'PreviewImage', |
... | @@ -77,7 +77,7 @@ | ... | @@ -77,7 +77,7 @@ |
77 | scale: 1, | 77 | scale: 1, |
78 | degree: 0 | 78 | degree: 0 |
79 | }, | 79 | }, |
80 | maxLength: 0, | 80 | maxFileLength: 0, |
81 | // 缩略图 | 81 | // 缩略图 |
82 | thumbnailImages: [], | 82 | thumbnailImages: [], |
83 | showViewer: false, | 83 | showViewer: false, |
... | @@ -252,27 +252,29 @@ | ... | @@ -252,27 +252,29 @@ |
252 | * @param {*} files | 252 | * @param {*} files |
253 | * @author: renchao | 253 | * @author: renchao |
254 | */ | 254 | */ |
255 | async handleChange (file, files) { | 255 | async handleChange (file, fileList) { |
256 | console.log(files, 'filesfiles'); | 256 | let length = fileList.length; |
257 | // 清空 fileList 数组 | 257 | this.maxFileLength = Math.max(length, this.maxFileLength) |
258 | let length = files.length; | 258 | console.log(fileList, this.maxFileLength, 'this.maxFileLength'); |
259 | this.maxLength = Math.max(length, this.maxLength) | ||
260 | this.$refs.upload.clearFiles(); | ||
261 | setTimeout(() => { | ||
262 | if (length !== this.maxLength) return | ||
263 | var formData = new FormData(); | 259 | var formData = new FormData(); |
264 | files.forEach(file => { | 260 | setTimeout(() => { |
265 | formData.append('file', file.raw) | 261 | if (this.maxFileLength !== length) { |
262 | return | ||
263 | } | ||
264 | fileList.forEach(item => { | ||
265 | formData.append('file', item.raw) | ||
266 | }) | 266 | }) |
267 | formData.append("bsmSj", this.previewImg.bsmSj); | 267 | formData.append("bsmSj", this.previewImg.bsmSj); |
268 | formData.append("bsmSlsq", this.previewImg.bsmSlsq); | 268 | formData.append("bsmSlsq", this.previewImg.bsmSlsq); |
269 | uploadSjClmx(formData).then((res) => { | 269 | uploadBatch(formData).then((res) => { |
270 | if (res.code == 200) { | 270 | if (res.code == 200) { |
271 | this.$emit('updateList', res.result) | 271 | this.$emit('updateList', res.result) |
272 | this.$message({ | 272 | this.$message({ |
273 | message: '上传成功!', | 273 | message: '上传成功!', |
274 | type: 'success' | 274 | type: 'success' |
275 | }) | 275 | }) |
276 | this.$refs.upload.clearFiles(); | ||
277 | this.maxFileLength = 0 | ||
276 | } | 278 | } |
277 | }) | 279 | }) |
278 | }, 0) | 280 | }, 0) | ... | ... |
... | @@ -23,6 +23,9 @@ export function getForm(tabName, djywbm) { | ... | @@ -23,6 +23,9 @@ export function getForm(tabName, djywbm) { |
23 | form = require("@/views/ywbl/slsqxx/jsydsyq/slxx300.vue"); | 23 | form = require("@/views/ywbl/slsqxx/jsydsyq/slxx300.vue"); |
24 | break; | 24 | break; |
25 | //国有建设用地使用权/房屋所有权 | 25 | //国有建设用地使用权/房屋所有权 |
26 | case "fwsyqdzslxx": | ||
27 | form = require("@/views/ywbl/slsqxx/fdcq1/slxx.vue"); | ||
28 | break; | ||
26 | case "fwsyqslxx100": | 29 | case "fwsyqslxx100": |
27 | case "fwsyqslxx200": | 30 | case "fwsyqslxx200": |
28 | case "fwsyqslxx400": | 31 | case "fwsyqslxx400": | ... | ... |
src/views/ywbl/slsqxx/fdcq1/slxx.vue
0 → 100644
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment