99094f77 by liangyifan

Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web

# Conflicts:
#	src/views/ywbl/fqsq/fqsq.vue
2 parents 2a81cf91 fc4eaed2
......@@ -168,6 +168,7 @@ export default {
this.$router.push('/')
}
}
console.log(this.$store.state.tagsView.visitedViews);
},
openMenu (tag, e) {
const menuMinWidth = 95
......
const state = {
visitedViews: []
visitedViews: [{
'fullPath': "/home",
'meta': {
affix: true
},
'name': "Dashboard",
'path': "/home",
'title': "工作台"
}]
}
const mutations = {
......
......@@ -66,8 +66,6 @@ export default {
computed: {
...mapGetters(['dictData']),
},
data () {
return {
queryForm: {
......@@ -90,23 +88,23 @@ export default {
mounted () {
sendThis(this);
let that = this
window.addEventListener('visibilitychange',this.init,true)
window.addEventListener('visibilitychange', this.init, true)
},
destroyed(){
window.removeEventListener('visibilitychange',this.init,true)
destroyed () {
window.removeEventListener('visibilitychange', this.init, true)
},
created () { },
methods: {
init(e){
init (e) {
var isHidden = document.hidden;
if (isHidden) {//切离该页面时执行
if (isHidden) {//切离该页面时执行
//页面切换时,处理逻辑
} else {//切换到该页面时执行
if(window.location.hash=='#/ywbl/dbx'){
console.log('让我看看',window.location)
that.fetchData()
} else {//切换到该页面时执行
if (window.location.hash == '#/ywbl/dbx') {
console.log('让我看看', window.location)
that.fetchData()
}
}
}
},
// 列表渲染接口
fetchData () {
......@@ -128,7 +126,7 @@ export default {
console.log(999999999999999);
},
ywhClick (item) {
const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid='+item.bestepid)
const { href } = this.$router.resolve('/fqsq?bsmSlsq=' + item.bsmSlsq + '&bestepid=' + item.bestepid)
window.open(href, '_blank');
},
},
......
......@@ -5,13 +5,13 @@
<li @click="operation(index, item)" v-for="(item, index) in headerleftList.slice(0, headerleftList.length - 4)"
:key="index">
<svg-icon :icon-class="item.icon" />
<span class="iconName">{{ item.name }}</span>
<span class="iconName">{{ item.name }}</span>
</li>
</ul>
<ul>
<li @click="operation(index,item)" v-for="(item, index) in headerleftList.slice(-4)" :key="index">
<li @click="operation(index, item)" v-for="(item, index) in headerleftList.slice(-4)" :key="index">
<svg-icon class="icon" :icon-class="item.icon" />
<span class="iconName">{{ item.name }}</span>
<span class="iconName">{{ item.name }}</span>
</li>
</ul>
</div>
......@@ -27,7 +27,7 @@
@click=" () => {
this.isShowdrawer = !this.isShowdrawer;}">
</div>
<ul v-if='this.isShowdrawer&&unitData.length>1'>
<ul v-if='this.isShowdrawer'>
<p>受理单元列表({{unitData.length}})</p>
<div v-for='(item,index) in unitData' :key='index'>
<li @click='unitClick(item)'>{{item.bdcdyh}}</li>
......@@ -35,30 +35,31 @@
</div>
</ul>
</div>
<div class="tabsList-right" >
<div class="tabsList-right">
<div class="fenpin" v-show="issplitScreen">
<p class="splitScreen tabsList-title">材料信息</p>
<div class="splitScreen" ></div>
<div class="splitScreen"></div>
</div>
<el-tabs v-model="activeName">
<el-tab-pane :label="item.name" :name="index + 1 + ''" v-for="(item, index) in tabList" :key="index">
<div class="splitScreen-con" v-if='index==0'>
<component ref='slxx' :is="editItem" :flag="flag" :key="key" />
<div class="splitScreen-con" v-if='index == 0'>
<component ref='slxx' :is="editItem" :flag="flag" :key="key" />
</div>
</el-tab-pane>
</el-tabs></div>
</el-tabs>
</div>
</div>
<zc v-model="zcDialog" :queryForm='queryForm' />
<thDialog ref='thdialogRef' v-model="thflag" :queryForm='queryForm' />
</div>
</template>
<script>
import { leftMenu } from "@/api/fqsq.js"
import zc from "./components/zc.vue"
import thDialog from "./components/th.vue"
import { leftMenu } from "@/api/fqsq.js"
import zc from "./components/zc.vue"
import thDialog from "./components/th.vue"
export default {
/**注册组件*/
components: {zc,thDialog},
components: { zc, thDialog },
data () {
return {
zcDialog:false,
......@@ -137,7 +138,7 @@ export default {
tabList: [],
editItem: '',
issplitScreen: false,
unitData:[],
unitData: [],
};
},
watch: {
......@@ -150,39 +151,38 @@ export default {
}
},
created () {
this.tabList = [...this.tabList1]
},
mounted(){
if(this.$route.query.bsmSlsq){
this.list(this.$route.query.bsmSlsq)
this.queryForm.bsmSlsq = this.$route.query.bsmSlsq
this.queryForm.bestepid = this.$route.query.bestepid
mounted () {
if (this.$route.query.bsmSlsq) {
this.list(this.$route.query.bsmSlsq)
this.queryForm.bsmSlsq = this.$route.query.bsmSlsq
this.queryForm.bestepid = this.$route.query.bestepid
}
},
methods: {
// 获取左侧列表
list(id){
list (id) {
let that = this
var formdata=new FormData();
formdata.append("bsmSlsq",id);
var formdata = new FormData();
formdata.append("bsmSlsq", id);
leftMenu(formdata).then(res => {
if (res.code === 200) {
this.unitData = res.result
this.unitData = res.result
setTimeout(() => {
that.$refs.slxx[0].list(that.unitData[0].bsmSldy)
that.$refs.slxx[0].list(that.unitData[0].bsmSldy)
}, 300);
}
})
},
// 左侧列表点击调用接口
unitClick(item){
this.$nextTick(()=>{
this.$refs.slxx[0].list(item.bsmSldy)
})
},
},
// 左侧列表点击调用接口
unitClick (item) {
this.$nextTick(() => {
this.$refs.slxx[0].list(item.bsmSldy)
})
},
operation (index, item) {
if (item.icon == 'fqsq5') {
this.key++
......@@ -193,24 +193,22 @@ export default {
} else {
this.tabList = [...this.tabList1]
}
}else if(item.icon=='fqsq8'){
this.thflag = true
this.$nextTick(()=>{
this.$refs.thdialogRef.tablelistFn()
})
} else if (item.icon == 'fqsq8') {
this.thflag = true
this.$nextTick(() => {
this.$refs.thdialogRef.tablelistFn()
})
}
else if(item.icon=='fqsq9'){
else if (item.icon == 'fqsq9') {
this.zcDialog = true
}
// if (index == 3) {
// window.close()
// }
},
loadView (view) {
return r => require.ensure([], () => r(require(`./components/${view}.vue`)))
},
},
}
</script>
......@@ -285,32 +283,35 @@ export default {
}
}
}
.map-drawer-expand {
width: 20px;
height: 77px;
background: url('../../../image/right.png');
background-size: cover;
position: absolute;
right: 0%;
top: 30%;
z-index: 999;
cursor: pointer;
}
.map-drawer-click {
width: 20px;
height: 77px;
background: url('../../../image/left.png');
background-size: cover;
position: absolute;
left: 0%;
top: 30%;
z-index: 999;
cursor: pointer;
}
.hide {
display: none;
}
width: 20px;
height: 77px;
background: url('../../../image/right.png');
background-size: cover;
position: absolute;
right: 0%;
top: 30%;
z-index: 999;
cursor: pointer;
}
.map-drawer-click {
width: 20px;
height: 77px;
background: url('../../../image/left.png');
background-size: cover;
position: absolute;
left: 0%;
top: 30%;
z-index: 999;
cursor: pointer;
}
.hide {
display: none;
}
.tabsList {
width: 100%;
position: sticky;
......@@ -318,43 +319,49 @@ export default {
background-color: #ffffff;
z-index: 100;
@include flex;
.tabsList-left{
.tabsList-left {
border-right: 1px solid #EBEEF5;
position: relative;
ul{
position: relative;
.xian{
background: #F2F2F2;
padding: 2px;
}
p{
padding: 20px;
text-align: center;
}
li{
padding: 10px;
font-size: 14px;
color: #606266;
ul {
position: relative;
}
li:hover{
color: #0F93F6;
cursor:pointer
}
}
.xian {
background: #F2F2F2;
padding: 2px;
}
p {
padding: 20px;
text-align: center;
}
li {
padding: 10px;
font-size: 14px;
color: #606266;
}
li:hover {
color: #0F93F6;
cursor: pointer
}
}
}
.tabsList-right{
.fenpin{
.tabsList-right {
.fenpin {
min-width: 50%;
border-right: 1px solid #EBEEF5;
}
background-color: #ffffff;
width: 100%;
height: 100%;
z-index: 100;
@include flex;
background-color: #ffffff;
width: 100%;
height: 100%;
z-index: 100;
@include flex;
}
}
......
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: "qllx",
label: "权利类型",
},
{
prop: "bdcdyh",
label: "不动产单元号",
},
{
prop: "bdcqzh",
label: "不动产权证号",
},
{
prop: "qlr",
label: "权利人",
},
{
prop: "zjh",
label: "证件号",
},
{
prop: "mj",
label: "面积",
},
{
prop: "yt",
label: "用途",
},
{
prop: "zl",
label: "坐落",
}
]
}
}
let datas = new data()
export {
datas,
sendThis
}
<template>
<div>
<dialogBox title="查询权利信息" @submitForm="submitForm" :saveloding="saveloding" saveButton="发起申请" width="85%"
@closeDialog="closeDialog" v-model="myValue">
<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="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" 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="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content">
<lb-table :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>
</dialogBox>
<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="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" 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="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content">
<lb-table :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" :loading="saveloding">发起申请</el-button>
</div>
</div>
</template>
<script>
import { datas, sendThis } from "./gyjsydsyqdata.js";
//查封等级
import { datas, sendThis } from "./cfdj.js";
import table from "@/utils/mixin/table";
import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
value: { type: Boolean, default: false },
bsmSqyw: { type: String, default: '' },
},
mixins: [table],
data () {
return {
appliDialog: false,
queryForm: {
qllx: "",
bdcdyh: "",
......@@ -79,23 +76,24 @@ export default {
columns: datas.columns(),
data: [],
},
myValue: this.value,
saveloding: false,
bdcdysz: []
bdcdysz: [],
saveloding: false
};
},
mounted () {
sendThis(this);
},
watch: {
value (val) {
this.myValue = val
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
},
methods: {
closeDialog () {
this.$emit("closeDialog")
},
fetchData () {
if (this.value) {
if (this.bsmSqyw) {
selectBdcdy({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
......@@ -117,15 +115,11 @@ export default {
bdcdysz: this.bdcdysz
}).then(res => {
this.saveloding = false
this.$emit('input', false)
this.$emit("closeDialog")
const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
window.open(href, '_blank');
})
},
closeDialog () {
this.$emit("input", false);
},
handleSelectionChange (val) {
this.bdcdysz = val
}
......
<template>
<dialogBox title="查询权利信息" width="85%" :isButton="false" @closeDialog="closeDialog" v-model="myValue">
<component :is="editItem" @closeDialog="closeDialog" :bsmSqyw="bsmSqyw" />
</dialogBox>
</template>
<script>
export default {
props: {
value: { type: Boolean, default: true },
bsmSqyw: { type: String, default: '' },
djywbm: { type: String, default: '' },
},
data () {
return {
editItem: '',
myValue: this.value,
};
},
watch: {
value (val) {
this.myValue = val
},
djywbm (val) {
let itemObj = { 'A03100': 'scdj', default: 'scdj' }
this.editItem = this.loadView(itemObj[val])
},
},
methods: {
loadView (view) {
return r => require.ensure([], () => r(require(`../${view}/${view}.vue`)))
},
closeDialog () {
this.$emit("input", false);
}
},
};
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";
/deep/.submit_button {
text-align: center;
padding: 10px;
margin: 10px;
}
</style>
<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="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" 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="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content">
<lb-table :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" :loading="saveloding">发起申请</el-button>
</div>
</div>
</template>
<script>
//首次登记
import { datas, sendThis } from "./scdj.js";
import table from "@/utils/mixin/table";
import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: '' },
},
mixins: [table],
data () {
return {
queryForm: {
qllx: "",
bdcdyh: "",
ywh: "",
bdcqzh: "",
sqywbm: "A03100",
},
qllxs: [],
tableData: {
total: 0,
columns: datas.columns(),
data: [],
},
bdcdysz: [],
saveloding: false
};
},
watch: {
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
},
methods: {
closeDialog () {
this.$emit("closeDialog")
},
fetchData () {
if (this.bsmSqyw) {
selectBdcdy({ ...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
}
this.saveloding = true
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bdcdysz: this.bdcdysz
}).then(res => {
this.saveloding = false
this.$emit("closeDialog")
const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
window.open(href, '_blank');
})
},
handleSelectionChange (val) {
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: "ywh",
label: "业务号",
},
{
prop: "bdcdyh",
label: "不动产单元号",
},
{
prop: "cfjg",
label: "查封机关",
},
{
prop: "cfwh",
label: "查封文号",
},
{
prop: "bzxqlr",
label: "被执行权利人",
},
{
prop: "cfqssj",
label: "查封起始时间",
},
{
prop: "cfjssj",
label: "查封结束时间",
},
{
prop: "zl",
label: "坐落",
}
]
}
}
let datas = new data()
export {
datas,
sendThis
}
<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="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" 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="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content">
<lb-table :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" :loading="saveloding">发起申请</el-button>
</div>
</div>
</template>
<script>
//续封登记
import { datas, sendThis } from "./xfdj.js";
import table from "@/utils/mixin/table";
import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: '' },
},
mixins: [table],
data () {
return {
queryForm: {
qllx: "",
bdcdyh: "",
ywh: "",
bdcqzh: "",
sqywbm: "A03100",
},
qllxs: [],
tableData: {
total: 0,
columns: datas.columns(),
data: [],
},
bdcdysz: [],
saveloding: false
};
},
watch: {
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
},
methods: {
closeDialog () {
this.$emit("closeDialog")
},
fetchData () {
if (this.bsmSqyw) {
selectBdcdy({ ...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
}
this.saveloding = true
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bdcdysz: this.bdcdysz
}).then(res => {
this.saveloding = false
this.$emit("closeDialog")
const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
window.open(href, '_blank');
})
},
handleSelectionChange (val) {
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: "bdczmh",
label: "不动产证明号",
},
{
prop: "bdcdyh",
label: "不动产单元号",
},
{
prop: "dyfs",
label: "抵押方式",
},
{
prop: "dyqr",
label: "抵押权人",
},
{
prop: "dyr",
label: "抵押人",
},
{
prop: "dyje",
label: "抵押金额(万元)",
},
{
prop: "dymj",
label: "抵押面积",
},
{
prop: "zwyxqx",
label: "债务履行期限",
},
{
prop: "zl",
label: "坐落",
}
]
}
}
let datas = new data()
export {
datas,
sendThis
}
<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="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" 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="btnCol">
<el-form-item>
<el-button type="primary" @click="queryClick()">查询</el-button>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content">
<lb-table :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" :loading="saveloding">发起申请</el-button>
</div>
</div>
</template>
<script>
//转移登记
import { datas, sendThis } from "./zydj.js";
import table from "@/utils/mixin/table";
import { selectBdcdy, startBusinessFlow } from "@/api/ywbl.js";
export default {
props: {
bsmSqyw: { type: String, default: '' },
},
mixins: [table],
data () {
return {
queryForm: {
qllx: "",
bdcdyh: "",
ywh: "",
bdcqzh: "",
sqywbm: "A03100",
},
qllxs: [],
tableData: {
total: 0,
columns: datas.columns(),
data: [],
},
bdcdysz: [],
saveloding: false
};
},
watch: {
bsmSqyw (val) {
this.fetchData()
},
},
mounted () {
sendThis(this);
},
methods: {
closeDialog () {
this.$emit("closeDialog")
},
fetchData () {
if (this.bsmSqyw) {
selectBdcdy({ ...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
}
this.saveloding = true
startBusinessFlow({
bsmSqyw: this.bsmSqyw,
bdcdysz: this.bdcdysz
}).then(res => {
this.saveloding = false
this.$emit("closeDialog")
const { href } = this.$router.resolve('/fqsq?bsmSqyw=' + this.bsmSqyw + '&bsmSlsq=' + res.message)
window.open(href, '_blank');
})
},
handleSelectionChange (val) {
this.bdcdysz = val
}
},
};
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";
</style>
......@@ -60,15 +60,15 @@
</div>
</div>
<div class="submit-button">
<el-button type="primary" :disabled="btnDisabled" @click="btnClick()">选择不动产信息</el-button>
<el-button type="primary" :disabled="btnDisabled" @click="btnClick">选择不动产信息</el-button>
</div>
</div>
<choiceDialog v-model="isDialog" :bsmSqyw="bsmSqyw" />
<fqsqDialog v-model="isDialog" :bsmSqyw="bsmSqyw" :djywbm="djywbm" />
</div>
</template>
<script>
import { getCollectBiz, getleftMenu, getNextNode } from "@/api/ywbl"
import choiceDialog from "./components/gyjsydsyq/gyjsydsyq.vue"
import fqsqDialog from "./components/fqsqDialog/fqsqDialog.vue"
export default {
data () {
return {
......@@ -89,11 +89,12 @@ export default {
djqxList: [],
bsmSqyw: '',
isDialog: false,
btnDisabled: true
btnDisabled: true,
djywbm: ''
}
},
components: {
choiceDialog
fqsqDialog
},
created () {
this.getDataList()
......@@ -127,9 +128,11 @@ export default {
if (item.sffqlc == '1') {
this.btnDisabled = false
this.bsmSqyw = item.bsmSqyw
this.djywbm = item.djywbm
}
},
handleList (list, obj) {
this.btnDisabled = true
list.forEach(item => {
if (item.check) item.check = false
})
......@@ -142,9 +145,8 @@ export default {
// 获取下个节点类型
getNextNode (bsmSqyw) {
getNextNode(bsmSqyw).then(res => {
let { djqx, djlx } = res.result
if (djqx) this.djqxList = djqx
if (djlx) this.djlxList = djlx
if (res.result.djqx) this.djqxList = res.result.djqx
if (res.result.djlx) this.djlxList = res.result.djlx
this.djqxList.forEach(item => {
this.$set(item, 'cselect', false)
})
......@@ -161,6 +163,8 @@ export default {
},
// 登记类型
handleDjlxSelect (item) {
console.log(item, 'itemitem');
this.btnDisabled = true
this.djlxList.forEach(item => {
if (item.select) item.select = false
})
......@@ -168,6 +172,7 @@ export default {
if (item.sffqlc == '1') {
this.btnDisabled = false
this.bsmSqyw = item.bsmSqyw
this.djywbm = item.djywbm
} else {
this.getNextNode(item.bsmSqyw)
}
......@@ -177,6 +182,9 @@ export default {
btnClick () {
this.isDialog = true
},
loadView (view) {
return r => require.ensure([], () => r(require(`./components/${view}/${view}.vue`)))
},
}
}
</script>
......