2b72185f by zhaoqian

自然幢提交按钮保存联调

1 parent 3c677d31
...@@ -46,4 +46,16 @@ export function getZrzDetailByBsm (data) { ...@@ -46,4 +46,16 @@ export function getZrzDetailByBsm (data) {
46 id:data 46 id:data
47 } 47 }
48 }) 48 })
49 }
...\ No newline at end of file ...\ No newline at end of file
49 }
50
51 /**
52 * 保存自然幢信息
53 */
54 export function submit (data) {
55 return request({
56 url: '/system/submit/submitInfo',
57 method: 'get',
58 data:data
59 })
60 }
61
......
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
270 <script> 270 <script>
271 import Qlr from "../../../components/formMenu/qlr"; 271 import Qlr from "../../../components/formMenu/qlr";
272 import Qlxz from "../../../components/formMenu/qlxz"; 272 import Qlxz from "../../../components/formMenu/qlxz";
273 import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm} from "../../../api/zrz" 273 import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm,submit} from "../../../api/zrz"
274 import {getQjZdjbxxDetailById} from "../../../api/zd" 274 import {getQjZdjbxxDetailById} from "../../../api/zd"
275 export default { 275 export default {
276 name:'zrz', 276 name:'zrz',
...@@ -412,6 +412,16 @@ ...@@ -412,6 +412,16 @@
412 } 412 }
413 }, 413 },
414 onSubmit(){ 414 onSubmit(){
415 let data={
416 glbsm:this.bsm,
417 status:1,
418 type:"zrz"
419 }
420 submit(data).then((res)=>{
421 if(res.code===200){
422 this.$message.success("提交完成!")
423 }
424 })
415 }, 425 },
416 generatorCode(){ 426 generatorCode(){
417 getBdcdyh(this.form.zddm,"zrz") 427 getBdcdyh(this.form.zddm,"zrz")
......