首次登记和注销登记代码优化
Showing
3 changed files
with
25 additions
and
17 deletions
1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
2 | import SERVER from './config' | 2 | import SERVER from './config' |
3 | // 初始化内容 | 3 | // 初始化内容 |
4 | export function Init (data) { | 4 | export function Init(data) { |
5 | let apiUrl = ""; | 5 | let apiUrl = ""; |
6 | switch (data.get("djlx")) { | 6 | switch (data.get("djlx")) { |
7 | case "100": | 7 | case "100": |
8 | apiUrl = "/ywbl/fdcq2lr/fristInit"; | 8 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/fristInit"; |
9 | break; | 9 | break; |
10 | case "200": | 10 | case "200": |
11 | apiUrl = "/ywbl/fdcq2lr/transferInit"; | 11 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/transferInit"; |
12 | break; | 12 | break; |
13 | case "300": | 13 | case "300": |
14 | apiUrl = "/ywbl/fdcq2lr/changeInit"; | 14 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/changeInit"; |
15 | break; | 15 | break; |
16 | case "400": | 16 | case "400": |
17 | apiUrl = "/ywbl/fdcq2lr/logoutInit"; | 17 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/logoutInit"; |
18 | break; | 18 | break; |
19 | case "500": | 19 | case "500": |
20 | apiUrl = "/ywbl/fdcq2lr/riviseInit"; | 20 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/riviseInit"; |
21 | break; | 21 | break; |
22 | case "901": | 22 | case "901": |
23 | apiUrl = "/ywbl/fdcq2lr/renewalInit"; | 23 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/renewalInit"; |
24 | break; | 24 | break; |
25 | case "902": | 25 | case "902": |
26 | apiUrl = "/ywbl/fdcq2lr/replaceInit"; | 26 | apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/replaceInit"; |
27 | break; | 27 | break; |
28 | } | 28 | } |
29 | return request({ | 29 | return request({ |
... | @@ -32,11 +32,19 @@ export function Init (data) { | ... | @@ -32,11 +32,19 @@ export function Init (data) { |
32 | data | 32 | data |
33 | }) | 33 | }) |
34 | } | 34 | } |
35 | // 初始化内容 | 35 | // 注销登记提交数据 |
36 | export function saveData (data) { | 36 | export function saveLogoutData(data) { |
37 | return request({ | 37 | return request({ |
38 | url: SERVER.SERVERAPI + '/rest/ywbl/fdcq2lr/saveData', | 38 | url: '/ywbl/fdcq2lr/saveLogoutData', |
39 | method: 'post', | 39 | method: 'post', |
40 | data | 40 | data |
41 | }) | 41 | }) |
42 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
42 | } | ||
43 | // 首次登记提交 | ||
44 | export function saveBatchData(data) { | ||
45 | return request({ | ||
46 | url: '/ywbl/fdcq2lr/saveBatchData', | ||
47 | method: 'post', | ||
48 | data | ||
49 | }) | ||
50 | } | ... | ... |
... | @@ -20,9 +20,9 @@ export function getForm(tabName, djywbm) { | ... | @@ -20,9 +20,9 @@ export function getForm(tabName, djywbm) { |
20 | case "fwsyqslxx300": | 20 | case "fwsyqslxx300": |
21 | form = require("@/views/ywbl/fdcq2/slxx300.vue"); | 21 | form = require("@/views/ywbl/fdcq2/slxx300.vue"); |
22 | break; | 22 | break; |
23 | // case "fwsyqslxx400": | 23 | case "fwsyqslxx400": |
24 | // form = require("@/views/ywbl/fdcq2/slxx400.vue"); | 24 | form = require("@/views/ywbl/fdcq2/slxx400.vue"); |
25 | // break; | 25 | break; |
26 | case "tdslxxCfdj": | 26 | case "tdslxxCfdj": |
27 | form = require("@/views/ywbl/cfdj/tdslxx.vue"); | 27 | form = require("@/views/ywbl/cfdj/tdslxx.vue"); |
28 | break; | 28 | break; |
... | @@ -34,10 +34,10 @@ export function getForm(tabName, djywbm) { | ... | @@ -34,10 +34,10 @@ export function getForm(tabName, djywbm) { |
34 | break; | 34 | break; |
35 | case "plslxxjfdj": | 35 | case "plslxxjfdj": |
36 | form = require("@/views/ywbl/cfdj/pljfslxx.vue"); | 36 | form = require("@/views/ywbl/cfdj/pljfslxx.vue"); |
37 | break; | 37 | break; |
38 | case "jfslxxCfdj": | 38 | case "jfslxxCfdj": |
39 | form = require("@/views/ywbl/cfdj/jfslxx.vue"); | 39 | form = require("@/views/ywbl/cfdj/jfslxx.vue"); |
40 | break; | 40 | break; |
41 | case "clxx": | 41 | case "clxx": |
42 | form = require("@/views/workflow/components/clxx.vue"); | 42 | form = require("@/views/workflow/components/clxx.vue"); |
43 | break; | 43 | break; | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment