2b72185f by zhaoqian

自然幢提交按钮保存联调

1 parent 3c677d31
......@@ -46,4 +46,16 @@ export function getZrzDetailByBsm (data) {
id:data
}
})
}
\ No newline at end of file
}
/**
* 保存自然幢信息
*/
export function submit (data) {
return request({
url: '/system/submit/submitInfo',
method: 'get',
data:data
})
}
......
......@@ -270,7 +270,7 @@
<script>
import Qlr from "../../../components/formMenu/qlr";
import Qlxz from "../../../components/formMenu/qlxz";
import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm} from "../../../api/zrz"
import {getBdcdyh,saveZrzInfo,getZrzDetailByBsm,submit} from "../../../api/zrz"
import {getQjZdjbxxDetailById} from "../../../api/zd"
export default {
name:'zrz',
......@@ -412,6 +412,16 @@
}
},
onSubmit(){
let data={
glbsm:this.bsm,
status:1,
type:"zrz"
}
submit(data).then((res)=>{
if(res.code===200){
this.$message.success("提交完成!")
}
})
},
generatorCode(){
getBdcdyh(this.form.zddm,"zrz")
......