首次登记和注销登记代码优化
Showing
2 changed files
with
20 additions
and
4 deletions
... | @@ -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 | // 初始化内容 | ||
36 | export function saveData (data) { | ||
37 | return request({ | ||
38 | url: SERVER.SERVERAPI + '/rest/ywbl/fdcq2lr/saveData', | ||
39 | method: 'post', | ||
40 | data | ||
41 | }) | ||
42 | } | ||
35 | // 注销登记提交数据 | 43 | // 注销登记提交数据 |
36 | export function saveLogoutData(data) { | 44 | export function saveLogoutData(data) { |
37 | return request({ | 45 | return request({ |
38 | url: '/ywbl/fdcq2lr/saveLogoutData', | 46 | url: SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/saveLogoutData", |
39 | method: 'post', | 47 | method: 'post', |
40 | data | 48 | data |
41 | }) | 49 | }) |
... | @@ -43,7 +51,15 @@ export function saveLogoutData(data) { | ... | @@ -43,7 +51,15 @@ export function saveLogoutData(data) { |
43 | // 首次登记提交 | 51 | // 首次登记提交 |
44 | export function saveBatchData(data) { | 52 | export function saveBatchData(data) { |
45 | return request({ | 53 | return request({ |
46 | url: '/ywbl/fdcq2lr/saveBatchData', | 54 | url: SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/saveBatchData", |
55 | method: 'post', | ||
56 | data | ||
57 | }) | ||
58 | } | ||
59 | // 更正/变更登记提交 | ||
60 | export function saveGZBatchData(data) { | ||
61 | return request({ | ||
62 | url: SERVER.SERVERAPI+"/rest/ywbl/fdcq2lr/saveGZBatchData", | ||
47 | method: 'post', | 63 | method: 'post', |
48 | data | 64 | data |
49 | }) | 65 | }) | ... | ... |
... | @@ -188,7 +188,7 @@ | ... | @@ -188,7 +188,7 @@ |
188 | </template> | 188 | </template> |
189 | <script> | 189 | <script> |
190 | import InformationTable from "@/views/workflow/components/InformationTable"; | 190 | import InformationTable from "@/views/workflow/components/InformationTable"; |
191 | import { Init } from "@/api/fwsyqFlow.js"; | 191 | import {Init, saveGZBatchData} from "@/api/fwsyqFlow.js"; |
192 | import { mapGetters } from "vuex"; | 192 | import { mapGetters } from "vuex"; |
193 | export default { | 193 | export default { |
194 | async created () { | 194 | async created () { |
... | @@ -298,7 +298,7 @@ export default { | ... | @@ -298,7 +298,7 @@ export default { |
298 | }); | 298 | }); |
299 | }, | 299 | }, |
300 | onSubmit () { | 300 | onSubmit () { |
301 | fristReg(this.ruleForm).then((res) => { | 301 | saveGZBatchData(this.ruleForm).then((res) => { |
302 | if (res.code === 200 && res.result) { | 302 | if (res.code === 200 && res.result) { |
303 | console.log(res); | 303 | console.log(res); |
304 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | 304 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | ... | ... |
-
Please register or sign in to post a comment