00bcc35b by 夏齐

首次登记和注销登记代码优化

1 parent 16a1288b
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,10 +32,18 @@ export function Init (data) { ...@@ -32,10 +32,18 @@ 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({
38 url: '/ywbl/fdcq2lr/saveLogoutData',
39 method: 'post',
40 data
41 })
42 }
43 // 首次登记提交
44 export function saveBatchData(data) {
37 return request({ 45 return request({
38 url: SERVER.SERVERAPI + '/rest/ywbl/fdcq2lr/saveData', 46 url: '/ywbl/fdcq2lr/saveBatchData',
39 method: 'post', 47 method: 'post',
40 data 48 data
41 }) 49 })
......
...@@ -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;
......