daeced16 by 夏齐

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

1 parent cf036db5
......@@ -32,10 +32,18 @@ export function Init(data) {
data
})
}
// 初始化内容
export function saveData (data) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/fdcq2lr/saveData',
method: 'post',
data
})
}
// 注销登记提交数据
export function saveLogoutData(data) {
return request({
url: '/ywbl/fdcq2lr/saveLogoutData',
url: SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/saveLogoutData",
method: 'post',
data
})
......@@ -43,7 +51,15 @@ export function saveLogoutData(data) {
// 首次登记提交
export function saveBatchData(data) {
return request({
url: '/ywbl/fdcq2lr/saveBatchData',
url: SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/saveBatchData",
method: 'post',
data
})
}
// 更正/变更登记提交
export function saveGZBatchData(data) {
return request({
url: SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/saveGZBatchData",
method: 'post',
data
})
......
......@@ -188,7 +188,7 @@
</template>
<script>
import InformationTable from "@/views/workflow/components/InformationTable";
import { Init } from "@/api/fwsyqFlow.js";
import {Init, saveGZBatchData} from "@/api/fwsyqFlow.js";
import { mapGetters } from "vuex";
export default {
async created () {
......@@ -298,7 +298,7 @@ export default {
});
},
onSubmit () {
fristReg(this.ruleForm).then((res) => {
saveGZBatchData(this.ruleForm).then((res) => {
if (res.code === 200 && res.result) {
console.log(res);
//this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas }
......