00bcc35b by 夏齐

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

1 parent 16a1288b
import request from '@/utils/request'
import SERVER from './config'
// 初始化内容
export function Init (data) {
export function Init(data) {
let apiUrl = "";
switch (data.get("djlx")) {
case "100":
apiUrl = "/ywbl/fdcq2lr/fristInit";
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/fristInit";
break;
case "200":
apiUrl = "/ywbl/fdcq2lr/transferInit";
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/transferInit";
break;
case "300":
apiUrl = "/ywbl/fdcq2lr/changeInit";
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/changeInit";
break;
case "400":
apiUrl = "/ywbl/fdcq2lr/logoutInit";
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/logoutInit";
break;
case "500":
apiUrl = "/ywbl/fdcq2lr/riviseInit";
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/riviseInit";
break;
case "901":
apiUrl = "/ywbl/fdcq2lr/renewalInit";
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/renewalInit";
break;
case "902":
apiUrl = "/ywbl/fdcq2lr/replaceInit";
apiUrl = SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/replaceInit";
break;
}
return request({
......@@ -32,11 +32,19 @@ export function Init (data) {
data
})
}
// 初始化内容
export function saveData (data) {
// 注销登记提交数据
export function saveLogoutData(data) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/fdcq2lr/saveData',
url: '/ywbl/fdcq2lr/saveLogoutData',
method: 'post',
data
})
}
\ No newline at end of file
}
// 首次登记提交
export function saveBatchData(data) {
return request({
url: '/ywbl/fdcq2lr/saveBatchData',
method: 'post',
data
})
}
......
......@@ -20,9 +20,9 @@ export function getForm(tabName, djywbm) {
case "fwsyqslxx300":
form = require("@/views/ywbl/fdcq2/slxx300.vue");
break;
// case "fwsyqslxx400":
// form = require("@/views/ywbl/fdcq2/slxx400.vue");
// break;
case "fwsyqslxx400":
form = require("@/views/ywbl/fdcq2/slxx400.vue");
break;
case "tdslxxCfdj":
form = require("@/views/ywbl/cfdj/tdslxx.vue");
break;
......@@ -34,10 +34,10 @@ export function getForm(tabName, djywbm) {
break;
case "plslxxjfdj":
form = require("@/views/ywbl/cfdj/pljfslxx.vue");
break;
break;
case "jfslxxCfdj":
form = require("@/views/ywbl/cfdj/jfslxx.vue");
break;
break;
case "clxx":
form = require("@/views/workflow/components/clxx.vue");
break;
......