2efb740a by 夏齐

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

1 parent 0504d536
import request from '@/utils/request'
import SERVER from './config'
/*
/*
业务办理-获取收藏业务集合
*/
export function getCollectBiz () {
......@@ -10,7 +10,7 @@ export function getCollectBiz () {
})
}
/*
/*
业务办理-获取左侧菜单
*/
export function getleftMenu () {
......@@ -19,7 +19,7 @@ export function getleftMenu () {
method: 'post'
})
}
/*
/*
业务办理-获取下个节点内容
*/
export function getNextNode (bsmSqyw) {
......@@ -29,7 +29,7 @@ export function getNextNode (bsmSqyw) {
})
}
/*
/*
业务办理-选择单元-根据条件进行列表查询-国有建设用地使用权、房屋所有权(首次登记)
*/
export function selectScBdcdy (data) {
......@@ -40,7 +40,7 @@ export function selectScBdcdy (data) {
})
}
// /*
// /*
// 业务办理-选择单元-根据条件进行列表查询-房屋所有权
// */
// export function selectFwsyq (data) {
......@@ -68,7 +68,7 @@ export function deleteFlow (data) {
data
})
}
/*
/*
业务办理-发起业务申请流程
*/
export function startBusinessFlow (data) {
......@@ -78,7 +78,7 @@ export function startBusinessFlow (data) {
data
})
}
/*
/*
已办箱列表查询接口
*/
export function searchTaskDone (data) {
......@@ -88,7 +88,7 @@ export function searchTaskDone (data) {
data
})
}
/*
/*
业务办理-选择权利信息-根据条件进行列表查询
*/
export function selectQlxx (data) {
......@@ -98,7 +98,7 @@ export function selectQlxx (data) {
data
})
}
/*
/*
业务办理-选择抵押权信息-根据条件进行列表查询
*/
export function selectDiyaq (data) {
......@@ -108,7 +108,7 @@ export function selectDiyaq (data) {
data
})
}
/*
/*
业务办理-选择查封信息-根据条件进行列表查询
*/
export function selectCfdj (data) {
......@@ -118,7 +118,7 @@ export function selectCfdj (data) {
data
})
}
/*
/*
业务办理-业务申请-添加收藏业务
*/
export function addCollectBiz (bsmSqyw) {
......@@ -127,7 +127,7 @@ export function addCollectBiz (bsmSqyw) {
method: 'post'
})
}
/*
/*
业务办理-业务申请-添加收藏业务
*/
export function deleteCollectBiz (bsmSqyw) {
......@@ -188,7 +188,7 @@ export function selectNydsyqQlxx (data) {
})
}
/*
/*
业务办理-选择单元-查询宗地基本信息
*/
export function selectZdjbxx (data) {
......@@ -198,7 +198,7 @@ export function selectZdjbxx (data) {
data
})
}
/*
/*
业务办理-选择单元-查询自然幢信息
*/
export function selectZrz (data) {
......@@ -209,7 +209,7 @@ export function selectZrz (data) {
})
}
/*
/*
业务办理-选择单元-查询户信息
*/
export function selectH (data) {
......@@ -220,7 +220,7 @@ export function selectH (data) {
})
}
/*
/*
业务办理-选择单元-查询建设用地、宅基地信息
*/
export function selectJsydQlxx (data) {
......@@ -229,4 +229,17 @@ export function selectJsydQlxx (data) {
method: 'post',
data
})
}
\ No newline at end of file
}
/**
* 业务办理-选择权利信息-根据条件进行列表查询
* @param data
* @returns {*}
*/
export function selectFwsyq (data) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectFwsyq',
method: 'post',
data
})
}
......
......@@ -186,7 +186,7 @@
</template>
<script>
import InformationTable from "@/views/workflow/components/InformationTable";
import {Init, saveGZBatchData} from "@/api/fwsyqFlow.js";
import {Init, saveBatchData} from "@/api/fwsyqFlow.js";
import { mapGetters } from "vuex";
export default {
async created () {
......@@ -271,7 +271,7 @@ export default {
},
onSubmit () {
saveGZBatchData(this.ruleForm).then((res) => {
saveBatchData(this.ruleForm).then((res) => {
if (res.code === 200) {
this.$message({
showClose: true,
......
<template>
<!-- 主体权利信息查询 -->
<div class="from-clues">
<!-- 表单部分 -->
<div class="from-clues-header">
<el-form :model="queryForm" ref="queryForm" label-width="100px">
<el-row>
<el-col :span="5">
<el-form-item label="权利类型">
<el-select
v-model="queryForm.qllx"
filterable
clearable
placeholder="请选择权利类型"
>
<el-option
v-for="item in qllxs"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="不动产单元号">
<el-input
placeholder="请输入不动产单元号"
v-model="queryForm.bdcdyh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="不动产权证号">
<el-input
placeholder="请输入不动产权证号"
v-model="queryForm.bdcqzh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="2" class="btnColRight">
<el-form-item>
<el-button type="primary" @click="fetchData()">查询</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content">
<lb-table
ref="table"
@row-click="handleRowClick"
:page-size="pageData.pageSize"
:heightNum="400"
:current-page.sync="pageData.currentPage"
:total="tableData.total"
@size-change="handleSizeChange"
@p-current-change="handleCurrentChange"
@selection-change="handleSelectionChange"
:column="tableData.columns"
:data="tableData.data"
>
</lb-table>
</div>
<div class="submit_button">
<el-button @click="closeDialog">取消</el-button>
<el-button type="primary" plain @click="submitForm">发起申请</el-button>
</div>
</div>
</template>
<script>
import { datas, sendThis } from "../javascript/selectFwsyq.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
import jump from "./mixin/jump";
import { selectFwsyq, startBusinessFlow } from "@/api/ywbl.js";
export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: "" },
djqxObj: {
type: Object,
default: {},
},
bsmSqyw: { type: String, default: "" },
},
data() {
return {
queryForm: defaultParameters.defaultParameters(),
qllxs: [],
tableData: {
total: 0,
columns: datas.columns(),
data: [],
},
bdcdysz: [],
};
},
mounted() {
sendThis(this);
},
methods: {
//点击行选中或取消复选框
handleRowClick(row, column, event) {
//通过ref绑定后这里使用$refs.table来操作bom元素
this.$refs.table.toggleRowSelection(row);
},
closeDialog() {
this.$emit("closeDialog");
},
fetchData() {
if(this.djqxObj.nodetype==="djlx"){
this.queryForm.bsmSqyw = this.djqxObj.bsmSqyw;
}else{
this.queryForm.bsmSqyw = this.djqxObj.parentid;
}
console.log(this.queryForm);
selectFwsyq({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
});
},
submitForm() {
if (this.bdcdysz.length == 0) {
this.$message.error("请至少选择一条数据");
return;
}
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bdcdysz: this.bdcdysz,
djqxbm: this.djqxObj?.djqxbm,
djqxmc: this.djqxObj?.djqxmc,
}).then((res) => {
if (res.code == 200) {
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result, this.djywbm)
} else {
this.$emit('updateDialog', true)
}
} else {
this.$message.error(res.message);
}
});
},
handleSelectionChange(val) {
val.forEach((item, index) => {
item.bsmSsql = item.bsmQlxx;
item.ybdcqzsh = item.bdcqzh;
});
this.bdcdysz = val;
},
},
};
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";
</style>
import filter from '@/utils/filter.js'
let vm = null
const sendThis = (_this) => {
vm = _this
}
class data extends filter {
constructor() {
super()
}
columns () {
return [
{
type: 'selection',
label: '全选'
},
{
label: '序号',
type: 'index',
width: '50',
render: (h, scope) => {
return (
<div>
{(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
</div>
)
}
},
{
prop: "status",
label: "状态",
},
{
prop: "qllxmc",
label: "权利类型",
},
{
prop: "bdcdyh",
label: "不动产单元号",
},
{
prop: "bdcqzh",
label: "不动产权证号",
},
{
prop: "fwxz",
label: "房屋性质",
},
{
prop: "fwjgmc",
label: "房屋结构",
},
{
prop: "qlrmc",
label: "权利人",
},
{
prop: "zjh",
label: "证件号",
},
{
prop: "mj",
label: "面积",
},
{
prop: "showTdyt",
label: "用途",
},
{
prop: "zdmj",
label: "宗地面积",
},
{
prop: "zl",
label: "坐落",
}
]
}
}
let datas = new data()
export {
datas,
sendThis
}
......@@ -22,6 +22,11 @@ export function queueDjywmc(djywbm) {
case "A08100":
vm = "fwsyq";
break;
case "A04200":
case "A04300":
case "A04400":
vm="selectFwsyq";
break;
case "A23100"://农用地使用权(首次登记)
case "A09100"://土地经营权(首次登记)
vm = "nydsyq100";
......@@ -55,4 +60,4 @@ export function queueDjywmc(djywbm) {
vm = "selecBdcql";
}
return vm;
}
\ No newline at end of file
}
......