Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
c1566b3a
authored
2023-08-10 16:31:31 +0800
by
yangwei
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
林权选择不动产的表格数据查询
1 parent
dbfcaa78
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
495 additions
and
1 deletions
src/api/ywsq.js
src/views/ywbl/ywsq/components/selectLqqt.vue
src/views/ywbl/ywsq/components/selectLqsc.vue
src/views/ywbl/ywsq/javascript/slectBdcdata.js
src/api/ywsq.js
View file @
c1566b3
...
...
@@ -254,3 +254,28 @@ export function selectRepairQlxx (data) {
data
})
}
/**
* @description: 选择林权首次
* @param {*} data
* @author: renchao
*/
export
function
selectLqQjdc
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/ywbl/ywsq/selectLqQjdc'
,
method
:
'post'
,
data
})
}
/**
* @description: 选择林权转移/变更/注销
* @param {*} data
* @author: renchao
*/
export
function
selectLq
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/ywbl/ywsq/selectLq'
,
method
:
'post'
,
data
})
}
...
...
src/views/ywbl/ywsq/components/selectLqqt.vue
0 → 100644
View file @
c1566b3
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-10 16:30:18
-->
<
template
>
<div
class=
"from-clues"
>
<!-- 表单部分 林权转移变更注销 -->
<div
class=
"from-clues-header"
>
<el-form
:model=
"queryForm"
ref=
"queryForm"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"宗地代码"
>
<el-input
placeholder=
"请输入宗地代码"
maxlength=
"19"
v-model=
"queryForm.zddm"
clearable
class=
"width100"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"不动产单元号"
>
<el-input
placeholder=
"请输入不动产单元号"
maxlength=
"28"
v-model=
"queryForm.bdcdyh"
clearable
class=
"width100"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"坐落"
>
<el-input
placeholder=
"请输入坐落"
v-model
.
trim=
"queryForm.zl"
clearable
class=
"width100"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
class=
"btnColRight"
>
<el-form-item>
<!--
<el-button
type=
"primary"
@
click=
"resetForm(true)"
>
重置
</el-button>
-->
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div
class=
"from-clues-content loadingtext"
>
<lb-table
ref=
"table"
@
row-click=
"handleRowClick"
:page-size=
"pageData.pageSize"
:calcHeight=
"300"
:current-page
.
sync=
"pageData.currentPage"
:total=
"tableData.total"
@
size-change=
"handleSizeChange"
@
select=
"select"
@
p-current-change=
"handleCurrentChange"
@
selection-change=
"handleSelectionChange"
:column=
"tableData.columns"
:data=
"tableData.data"
>
</lb-table>
</div>
<div
class=
"submit_button"
>
<el-button
@
click=
"$popupCacel"
>
取消
</el-button>
<el-button
type=
"primary"
plain
@
click=
"submitForm"
:loading=
"loading"
>
发起申请
</el-button>
</div>
</div>
</
template
>
<
script
>
//首次登记
import
jump
from
"./mixin/jump"
;
import
store
from
'@/store/index.js'
import
table
from
"@/utils/mixin/table"
;
import
{
ywPopupDialog
}
from
"@/utils/popup.js"
;
import
{
selectLq
}
from
"@/api/ywsq.js"
;
import
{
startBusinessFlow
}
from
"@/api/workFlow.js"
;
import
{
datas
,
sendThis
}
from
"../javascript/selectQjzdjbxx.js"
;
import
{
defaultParameters
}
from
"../javascript/publicDefaultPar.js"
;
export
default
{
mixins
:
[
table
,
jump
],
props
:
{
isJump
:
{
type
:
Boolean
,
default
:
false
},
sqywInfo
:
{
type
:
Object
,
default
:
()
=>
{
}
},
},
data
()
{
return
{
loading
:
false
,
queryForm
:
defaultParameters
.
defaultParameters
(),
tableData
:
{
total
:
0
,
columns
:
datas
.
columns
(),
data
:
[],
},
bdcdysz
:
[],
bsmSqyw
:
this
.
sqywInfo
.
nodetype
===
"djlx"
?
this
.
sqywInfo
.
bsmSqyw
:
this
.
sqywInfo
.
parentid
,
};
},
mounted
()
{
sendThis
(
this
);
},
methods
:
{
/**
* @description: queryClick
* @author: renchao
*/
queryClick
()
{
this
.
$startLoading
();
this
.
queryForm
.
sqywbm
=
this
.
sqywInfo
.
djywbm
;
selectLq
({
...
this
.
queryForm
,
...
this
.
pageData
}).
then
((
res
)
=>
{
this
.
$endLoading
();
if
(
res
.
code
===
200
)
{
let
{
total
,
records
}
=
res
.
result
;
this
.
tableData
.
total
=
total
;
this
.
tableData
.
data
=
records
;
}
});
},
/**
* @description: submitForm
* @author: renchao
*/
submitForm
()
{
if
(
this
.
bdcdysz
.
length
==
0
)
{
this
.
$alert
(
"请至少选择一条数据"
);
return
;
}
this
.
loading
=
true
startBusinessFlow
({
bsmSqyw
:
this
.
bsmSqyw
,
bdcdysz
:
this
.
bdcdysz
,
djqxbm
:
this
.
sqywInfo
.
nodetype
==
"djqx"
?
this
.
sqywInfo
.
nodecode
:
""
,
djqxmc
:
this
.
sqywInfo
.
nodetype
==
"djqx"
?
this
.
sqywInfo
.
nodename
:
""
,
}).
then
((
res
)
=>
{
this
.
loading
=
false
if
(
res
.
code
==
200
)
{
this
.
$message
({
showClose
:
true
,
message
:
"发起申请成功"
,
type
:
"success"
,
});
if
(
!
this
.
isJump
)
{
this
.
jump
(
res
.
result
,
this
.
djywbm
);
}
else
{
store
.
dispatch
(
'user/refreshPage'
,
true
);
}
this
.
$popupCacel
()
}
else
{
ywPopupDialog
(
"申请错误明细"
,
"components/ywdialog"
,
{
message
:
res
.
message
,
result
:
res
.
result
},
'36%'
)
}
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
/**
* @description: handleSelectionChange
* @param {*} val
* @author: renchao
*/
handleSelectionChange
(
val
)
{
val
.
forEach
((
item
,
index
)
=>
{
item
.
bsm
=
item
.
zdbsm
;
});
if
(
this
.
sqywInfo
.
sqywdylx
==
"1"
)
{
if
(
val
.
length
>
1
)
{
this
.
bdcdysz
=
[...
val
[
val
.
length
-
1
]];
}
else
{
this
.
bdcdysz
=
val
;
}
}
else
{
this
.
bdcdysz
=
val
;
}
},
/**
* @description: select
* @param {*} selection
* @param {*} row
* @author: renchao
*/
select
(
selection
,
row
)
{
if
(
this
.
sqywInfo
.
sqywdylx
==
"1"
)
{
// 清除 所有勾选项
this
.
$refs
.
table
.
clearSelection
()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if
(
selection
.
length
==
0
)
return
this
.
$refs
.
table
.
toggleRowSelection
(
row
,
true
);
}
},
/**
* @description: handleRowClick
* @param {*} row
* @author: renchao
*/
handleRowClick
(
row
)
{
// 如果状态是1,那就是单选
if
(
this
.
sqywInfo
.
sqywdylx
==
"1"
)
{
const
bdcdysz
=
this
.
bdcdysz
this
.
$refs
.
table
.
clearSelection
()
if
(
bdcdysz
.
length
==
1
)
{
bdcdysz
.
forEach
(
item
=>
{
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if
(
item
==
row
)
{
this
.
$refs
.
table
.
toggleRowSelection
(
row
,
false
);
}
// 不然就让当前的一行勾选
else
{
this
.
$refs
.
table
.
toggleRowSelection
(
row
,
true
);
}
})
}
else
{
this
.
$refs
.
table
.
toggleRowSelection
(
row
,
true
);
}
}
else
{
this
.
$refs
.
table
.
toggleRowSelection
(
row
);
}
},
/**
* @description: openBook
* @param {*} row
* @author: renchao
*/
openBook
(
row
)
{
var
param
=
{
bdcdyid
:
row
.
bdcdyid
,
qllx
:
row
.
qllx
,
bdcdyh
:
row
.
bdcdyh
,
bsmQlxx
:
row
.
bsmQlxx
,
};
this
.
$popup
(
"登记簿详情"
,
"registerBook/djbFrame"
,
{
formData
:
param
})
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/public.scss"
;
</
style
>
src/views/ywbl/ywsq/components/selectLqsc.vue
0 → 100644
View file @
c1566b3
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-08-09 16:12:34
-->
<
template
>
<div
class=
"from-clues"
>
<!-- 表单部分 林权首次 -->
<div
class=
"from-clues-header"
>
<el-form
:model=
"queryForm"
ref=
"queryForm"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"6"
>
<el-form-item
label=
"宗地代码"
>
<el-input
placeholder=
"请输入宗地代码"
maxlength=
"19"
v-model=
"queryForm.zddm"
clearable
class=
"width100"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"不动产单元号"
>
<el-input
placeholder=
"请输入不动产单元号"
maxlength=
"28"
v-model=
"queryForm.bdcdyh"
clearable
class=
"width100"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
>
<el-form-item
label=
"坐落"
>
<el-input
placeholder=
"请输入坐落"
v-model
.
trim=
"queryForm.zl"
clearable
class=
"width100"
>
</el-input>
</el-form-item>
</el-col>
<el-col
:span=
"6"
class=
"btnColRight"
>
<el-form-item>
<!--
<el-button
type=
"primary"
@
click=
"resetForm(true)"
>
重置
</el-button>
-->
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div
class=
"from-clues-content loadingtext"
>
<lb-table
ref=
"table"
@
row-click=
"handleRowClick"
:page-size=
"pageData.pageSize"
:calcHeight=
"300"
:current-page
.
sync=
"pageData.currentPage"
:total=
"tableData.total"
@
size-change=
"handleSizeChange"
@
select=
"select"
@
p-current-change=
"handleCurrentChange"
@
selection-change=
"handleSelectionChange"
:column=
"tableData.columns"
:data=
"tableData.data"
>
</lb-table>
</div>
<div
class=
"submit_button"
>
<el-button
@
click=
"$popupCacel"
>
取消
</el-button>
<el-button
type=
"primary"
plain
@
click=
"submitForm"
:loading=
"loading"
>
发起申请
</el-button>
</div>
</div>
</
template
>
<
script
>
//首次登记
import
jump
from
"./mixin/jump"
;
import
store
from
'@/store/index.js'
import
table
from
"@/utils/mixin/table"
;
import
{
ywPopupDialog
}
from
"@/utils/popup.js"
;
import
{
selectLqQjdc
}
from
"@/api/ywsq.js"
;
import
{
startBusinessFlow
}
from
"@/api/workFlow.js"
;
import
{
datas
,
sendThis
}
from
"../javascript/selectQjzdjbxx.js"
;
import
{
defaultParameters
}
from
"../javascript/publicDefaultPar.js"
;
export
default
{
mixins
:
[
table
,
jump
],
props
:
{
isJump
:
{
type
:
Boolean
,
default
:
false
},
sqywInfo
:
{
type
:
Object
,
default
:
()
=>
{
}
},
},
data
()
{
return
{
loading
:
false
,
queryForm
:
defaultParameters
.
defaultParameters
(),
tableData
:
{
total
:
0
,
columns
:
datas
.
columns
(),
data
:
[],
},
bdcdysz
:
[],
bsmSqyw
:
this
.
sqywInfo
.
nodetype
===
"djlx"
?
this
.
sqywInfo
.
bsmSqyw
:
this
.
sqywInfo
.
parentid
,
};
},
mounted
()
{
sendThis
(
this
);
},
methods
:
{
/**
* @description: queryClick
* @author: renchao
*/
queryClick
()
{
this
.
$startLoading
();
this
.
queryForm
.
sqywbm
=
this
.
sqywInfo
.
djywbm
;
selectLqQjdc
({
...
this
.
queryForm
,
...
this
.
pageData
}).
then
((
res
)
=>
{
this
.
$endLoading
();
if
(
res
.
code
===
200
)
{
let
{
total
,
records
}
=
res
.
result
;
this
.
tableData
.
total
=
total
;
this
.
tableData
.
data
=
records
;
}
});
},
/**
* @description: submitForm
* @author: renchao
*/
submitForm
()
{
if
(
this
.
bdcdysz
.
length
==
0
)
{
this
.
$alert
(
"请至少选择一条数据"
);
return
;
}
this
.
loading
=
true
startBusinessFlow
({
bsmSqyw
:
this
.
bsmSqyw
,
bdcdysz
:
this
.
bdcdysz
,
djqxbm
:
this
.
sqywInfo
.
nodetype
==
"djqx"
?
this
.
sqywInfo
.
nodecode
:
""
,
djqxmc
:
this
.
sqywInfo
.
nodetype
==
"djqx"
?
this
.
sqywInfo
.
nodename
:
""
,
}).
then
((
res
)
=>
{
this
.
loading
=
false
if
(
res
.
code
==
200
)
{
this
.
$message
({
showClose
:
true
,
message
:
"发起申请成功"
,
type
:
"success"
,
});
if
(
!
this
.
isJump
)
{
this
.
jump
(
res
.
result
,
this
.
djywbm
);
}
else
{
store
.
dispatch
(
'user/refreshPage'
,
true
);
}
this
.
$popupCacel
()
}
else
{
ywPopupDialog
(
"申请错误明细"
,
"components/ywdialog"
,
{
message
:
res
.
message
,
result
:
res
.
result
},
'36%'
)
}
}).
catch
(()
=>
{
this
.
loading
=
false
})
},
/**
* @description: handleSelectionChange
* @param {*} val
* @author: renchao
*/
handleSelectionChange
(
val
)
{
val
.
forEach
((
item
,
index
)
=>
{
item
.
bsm
=
item
.
zdbsm
;
});
if
(
this
.
sqywInfo
.
sqywdylx
==
"1"
)
{
if
(
val
.
length
>
1
)
{
this
.
bdcdysz
=
[...
val
[
val
.
length
-
1
]];
}
else
{
this
.
bdcdysz
=
val
;
}
}
else
{
this
.
bdcdysz
=
val
;
}
},
/**
* @description: select
* @param {*} selection
* @param {*} row
* @author: renchao
*/
select
(
selection
,
row
)
{
if
(
this
.
sqywInfo
.
sqywdylx
==
"1"
)
{
// 清除 所有勾选项
this
.
$refs
.
table
.
clearSelection
()
// 当表格数据都没有被勾选的时候 就返回
// 主要用于将当前勾选的表格状态清除
if
(
selection
.
length
==
0
)
return
this
.
$refs
.
table
.
toggleRowSelection
(
row
,
true
);
}
},
/**
* @description: handleRowClick
* @param {*} row
* @author: renchao
*/
handleRowClick
(
row
)
{
// 如果状态是1,那就是单选
if
(
this
.
sqywInfo
.
sqywdylx
==
"1"
)
{
const
bdcdysz
=
this
.
bdcdysz
this
.
$refs
.
table
.
clearSelection
()
if
(
bdcdysz
.
length
==
1
)
{
bdcdysz
.
forEach
(
item
=>
{
// 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
if
(
item
==
row
)
{
this
.
$refs
.
table
.
toggleRowSelection
(
row
,
false
);
}
// 不然就让当前的一行勾选
else
{
this
.
$refs
.
table
.
toggleRowSelection
(
row
,
true
);
}
})
}
else
{
this
.
$refs
.
table
.
toggleRowSelection
(
row
,
true
);
}
}
else
{
this
.
$refs
.
table
.
toggleRowSelection
(
row
);
}
},
/**
* @description: openBook
* @param {*} row
* @author: renchao
*/
openBook
(
row
)
{
var
param
=
{
bdcdyid
:
row
.
bdcdyid
,
qllx
:
row
.
qllx
,
bdcdyh
:
row
.
bdcdyh
,
bsmQlxx
:
row
.
bsmQlxx
,
};
this
.
$popup
(
"登记簿详情"
,
"registerBook/djbFrame"
,
{
formData
:
param
})
},
},
};
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
@import
"~@/styles/public.scss"
;
</
style
>
src/views/ywbl/ywsq/javascript/slectBdcdata.js
View file @
c1566b3
...
...
@@ -13,7 +13,6 @@ export function queueDjywmc (djywbm, djqxbm) {
case
"A03100"
:
//建设用地使用权(首次登记)
case
"A05100"
:
//宅基地使用权(首次登记)
case
"A07100"
:
//集体建设用地使用权(首次登记)
case
"A11100"
:
//林地使用权
vm
=
"selectQjzdjbxx"
;
break
;
case
"A01200"
:
...
...
@@ -95,6 +94,14 @@ export function queueDjywmc (djywbm, djqxbm) {
case
"C04371"
:
//一并国有房屋转移
vm
=
"selectYbgybg"
;
break
;
case
"A11100"
:
//林地使用权首次
vm
=
"selectLqsc"
;
break
;
case
"A11200"
:
//林地使用权转移
case
"A11300"
:
//林地使用权登记
case
"A11400"
:
//林地使用权变更
vm
=
"selectLqqt"
;
break
;
default
:
vm
=
"selecBdcql"
;
break
;
...
...
Please
register
or
sign in
to post a comment