68c6b9ef by 蔡俊立
2 parents e8869ff7 53484481
import request from '@/utils/request'
import SERVER from './config'
// export function getMenuInfo () {
// return request({
// url: SERVER.SERVERAPI + '/rest/user/getUserMenus',
// method: 'get',
// })
// }
// 获取用户信息
export function getUserInfo () {
return request({
url: SERVER.SERVERAPI + '/rest/user/getUserInfo',
method: 'get',
})
}
// 获取菜单信息
export function getMenuInfo () {
return request({
url: SERVER.SERVERAPI + '/rest/user/getUserAuthorizationMenus',
......
......@@ -103,8 +103,8 @@ export default {
display: flex;
align-items: center;
width: 100%;
line-height: 32px;
height: 32px;
height: 28px;
line-height: 28px;
background: rgba(0, 0, 0, 0.1);
.icon {
......
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1668671631108" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1959" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M992 255.8H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h960c17.7 0 32 14.3 32 32 0 17.6-14.3 32-32 32zM992 544H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h960c17.7 0 32 14.3 32 32s-14.3 32-32 32zM992 832.3H32c-17.7 0-32-14.3-32-32s14.3-32 32-32h960c17.7 0 32 14.3 32 32 0 17.6-14.3 32-32 32z" p-id="1960" fill="#ffffff"></path></svg>
\ No newline at end of file
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1668673450787" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3461" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M313.67168 153.53856a40.96 40.96 0 0 1 39.7312 71.65952A327.53664 327.53664 0 0 0 184.32 512c0 180.98176 146.69824 327.68 327.68 327.68s327.68-146.69824 327.68-327.68c0-116.67456-61.44-222.65856-159.78496-281.45664a40.96 40.96 0 1 1 42.04544-70.30784A409.35424 409.35424 0 0 1 921.6 512c0 226.22208-183.37792 409.6-409.6 409.6S102.4 738.22208 102.4 512A409.43616 409.43616 0 0 1 313.67168 153.53856z" fill="#ffffff" p-id="3462"></path><path d="M471.04 102.4m40.96 0l0 0q40.96 0 40.96 40.96l0 409.6q0 40.96-40.96 40.96l0 0q-40.96 0-40.96-40.96l0-409.6q0-40.96 40.96-40.96Z" fill="#ffffff" p-id="3463"></path></svg>
\ No newline at end of file
......@@ -8,16 +8,15 @@
<theme style="float: right;height: 26px;width: 26px;margin-top: 26px;" @change="themeChange" />
</div>
<div class="right-menu">
<svg-icon class="function" icon-class='function' />
<el-dropdown class="avatar-container right-menu-item hover-effect" @command="handleCommand">
<div class="avatar-wrapper">
<span style="padding-right:10px">{{ name }}</span>
<img :src="avatar + '?imageView2/1/w/80/h/80'" class="user-avatar" />
<span style="margin-left: 10px;">{{ name }}</span>
</div>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item command="a">个人中心</el-dropdown-item>
<el-dropdown-item command="f">退出登录</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<svg-icon class="shutdown" icon-class='shutdown' />
</div>
</div>
<NoticeBar class="NoticeBar" :noticeList="noticeList" />
......@@ -160,6 +159,19 @@ export default {
float: right;
height: 100%;
line-height: 50px;
display: flex;
align-items: center;
.function {
margin: 0 15px;
cursor: pointer;
}
.shutdown {
font-size: 20px;
margin-left: 15px;
cursor: pointer;
}
.organization-item {
margin-right: 40px;
......@@ -191,7 +203,6 @@ export default {
.right-menu-item {
display: inline-block;
padding: 0 8px;
height: 100%;
font-size: 18px;
color: #fff;
......
......@@ -5,7 +5,6 @@ import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import getPageTitle from '@/utils/get-page-title'
import Cookies from 'js-cookie'
NProgress.configure({ showSpinner: false }) // NProgress Configuration
router.beforeEach(async (to, from, next) => {
......@@ -22,6 +21,8 @@ router.beforeEach(async (to, from, next) => {
} else {
const { result: getMenuData } = await getMenuInfo()
const accessRoutes = await store.dispatch('permission/generateRoutes', getMenuData)
// 获取用户信息
await store.dispatch('user/getUserInfo')
router.addRoutes([...accessRoutes, { path: '*', redirect: '/404', hidden: true }])
const routeTo = Cookies.get('routerTo')
console.log(routeTo)
......@@ -32,7 +33,6 @@ router.beforeEach(async (to, from, next) => {
}
}
NProgress.done()
})
router.afterEach(to => {
// 解决刷新页面报404问题
......
import store from '../index'
import router, { resetRouter } from '@/router'
import Cookies from 'js-cookie';
import { getUserInfo } from '@/api/user'
const state = {
name: Cookies.get('username'),
name: '',
avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png',
userInfo: null
}
const mutations = {
SET_NAME: (state, name) => {
state.name = name
},
SET_AVATAR: (state, avatar) => {
state.avatar = avatar
},
SET_USERINFO: (state, userInfo) => {
state.userInfo = userInfo
}
}
const actions = {
getUserInfo ({ commit }) {
return new Promise(async (resolve) => {
let { result: res } = await getUserInfo()
commit('SET_NAME', res.loginName)
resolve(true)
})
},
}
export default {
namespaced: true,
......
......@@ -87,14 +87,16 @@
<el-button @click="closeInvalidDiglog()">取 消</el-button>
<el-button type="primary" @click="confirmInvalid()">确 定</el-button>
</div>
<bdcqzPrint v-model="bdcqz" />
</div>
</el-dialog>
<el-empty description="暂无数据" v-if="tableData.length == 0"></el-empty>
</div>
</template>
<script>
import { getSlsqBdcqzList, invalidCertificate } from "@/api/fqsq.js";
import { getSlsqBdcqzList, invalidCertificate } from "@/api/bdcqz.js";
import bdcqzPrint from "./zsdy.vue";
export default {
components: {},
props: {},
......@@ -114,7 +116,6 @@ export default {
methods: {
//初始化列表
list() {
// var bsmSldy = this.$parent.unitData[0].bsmSldy;
var bsmSlsq = this.$route.query.bsmSlsq;
getSlsqBdcqzList({ bsmSlsq: bsmSlsq }).then((res) => {
if (res.code === 200) {
......@@ -146,22 +147,22 @@ export default {
});
} else {
//证书打印
this.$popup("证书打印", "workflow/components/zsdy", {
height: "700px",
width: "800px",
formData: {
bsmSlsq: this.bsmSlsq,
bdcqz: item,
},
btnShow: true,
confirmText: "打印证书",
cancel: () => {
console.log("取消回调");
},
confirm: () => {
that.list();
},
});
// this.$popup("证书打印", "workflow/components/zsdy", {
// height: "700px",
// width: "800px",
// formData: {
// bsmSlsq: this.bsmSlsq,
// bdcqz: item,
// },
// btnShow: true,
// confirmText: "打印证书",
// cancel: () => {
// console.log("取消回调");
// },
// confirm: () => {
// that.list();
// },
// });
}
},
//再次打印
......
......@@ -44,7 +44,7 @@
<script>
import { datas } from "../javascript/zsyl.js";
import { readYsxlh,certificate,getSlsqBdcqzList} from "@/api/fqsq.js"
import { readYsxlh,certificate,getSlsqBdcqzList} from "@/api/bdcqz.js"
export default {
components: {
},
......
......@@ -26,7 +26,7 @@
</div>
<div class="zsyl-right">
<div class="zsyl-title">附记</div>
<div class="zsyl-text"></div>
<div class="zsyl-text">{{bdcqz.fj}}</div>
</div>
</div>
</div>
......@@ -34,7 +34,7 @@
<script>
import { datas } from "../javascript/zsyl.js";
import { readYsxlh,certificate,getSlsqBdcqzList} from "@/api/fqsq.js"
import { getSlsqBdcqzList} from "@/api/bdcqz.js"
export default {
components: {
},
......@@ -82,17 +82,7 @@ export default {
methods: {
//获取证书内容
getRowValue(code){
var value = this.bdcqz[code]
if(code == 'gyqk'){
switch(value){
case '1':
return '单独所有';
case '2':
return '共同共有';
case '3':
return '按份所有';
}
}
var value = this.bdcqz[code];
return value;
},
//获取受理申请下全部不动产权证
......
......@@ -163,7 +163,7 @@
.topButton {
@include flex;
width: 100%;
height: 80px;
height: 85px;
background-color: #3498db;
color: #ffffff;
justify-content: space-between;
......@@ -194,3 +194,9 @@
}
}
}
.NoticeBar {
position: absolute;
left: 0;
bottom: 0;
}
\ No newline at end of file
......
......@@ -16,6 +16,7 @@
<span class="iconName">{{ item.name }}</span>
</li>
</ul>
<NoticeBar class="NoticeBar" :noticeList="noticeList" />
</div>
<!-- 内容框架 -->
<div class="containerFrame">
......@@ -81,6 +82,7 @@ import {
getStepFormInfo,
} from "@/api/fqsq.js";
import { mapGetters } from "vuex"
import NoticeBar from '@/components/NoticeBar/index'
import { deleteFlow, unClaimTask } from "@/api/ywbl.js";
import ProcessViewer from './components/processViewer.vue'
import { getWorkFlowImage } from "@/api/jsydsyqFlow.js";
......@@ -90,10 +92,22 @@ import { queueDjywmc } from "@/views/ywbl/ywsq/slectBdcdata.js";
export default {
components: {
fqsqDialog,
NoticeBar,
ProcessViewer
},
data () {
return {
noticeList: [
{
title: '6666666666666666666'
},
{
title: '3333333333333333333'
},
{
title: '6666666666666666666'
}
],
isDialog: false,
// 流程图
// 折叠
......
......@@ -10,16 +10,47 @@ export default {
moreQueryClick () {
this.isSearch = true
},
getSearch (val) {
if (!val) return
this.otherForm = val
handleSelect (bs, mc, code) {
let that = this
this.dictData[bs].forEach(item => {
if (item.dcode == this.queryForm[code]) {
this.searchForm[mc] = item.dname
}
})
},
handelItem (item, index) {
let obj = {
ywlymc: 'ywly',
qllxmc: 'qllx',
djlxmc: 'djlx'
}
this.searchList.splice(index, 1)
if (obj[item.zdm]) {
this.queryForm[obj[item.zdm]] = ''
} else if (this.otherForm[[item.zdm]]) {
this.otherForm[[item.zdm]] = ''
} else {
this.queryForm[item.zdm] = ''
}
this.searchForm[item.zdm] = ''
this.iterationData()
this.queryClick()
let obj = { ywlymc: '业务来源', qllxmc: '权利类型', djlxmc: '登记类型', ywh: '业务号', sqywmc: '申请业务名称', qlrmc: '权利人', ywrmc: '义务人', slsj: '受理时间' }
this.searchList = Object.entries({ ...this.searchForm, ...val }).map((item) => {
},
iterationData () {
let obj = {
ywlymc: '业务来源', qllxmc: '权利类型', djlxmc: '登记类型', ywh: '业务号', sqywmc: '申请业务名称',
qlrmc: '权利人', ywrmc: '义务人', slsj: '受理时间'
}
this.searchList = Object.entries({ ...this.searchForm, ...this.otherForm }).map((item) => {
const [name, value] = item
if (value) return { name: obj[name], value }
if (value) return { name: obj[name], value, zdm: name }
}).filter(Boolean)
},
getSearch (val) {
this.otherForm = val
this.iterationData()
this.queryClick()
},
hanldeCleanAll () {
this.searchForm = {}
this.queryForm = {
......
......@@ -49,7 +49,7 @@
<ul>
<li v-for="(item, index) in searchList" :key="index">
{{ item.name }}:{{ item.value }}
<i class="el-icon-circle-close" @click="handelItem(index)"></i>
<i class="el-icon-circle-close" @click="handelItem(item, index)"></i>
</li>
</ul>
<el-button class="clean-btn" type="text" v-if="searchList.length > 0" @click.native="hanldeCleanAll">清除全部
......@@ -59,7 +59,7 @@
</div>
<div class="from-clues-content">
<lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort"
:current-page.sync="pageData.currentPage" :heightNum="290" :total="tableData.total"
:current-page.sync="pageData.currentPage" :heightNum="295" :total="tableData.total"
@size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
:data="tableData.data">
</lb-table>
......@@ -114,19 +114,11 @@ export default {
}
},
methods: {
handleSelect (bs, mc, code) {
let that = this
this.dictData[bs].forEach(item => {
if (item.dcode == this.queryForm[code]) {
this.searchForm[mc] = item.dname
}
})
},
// 列表渲染接口
queryClick () {
this.$startLoading()
this.searchForm.ywh = this.queryForm.ywh
console.log(this.otherForm);
this.iterationData()
searchTaskToDo({ ...this.queryForm, ...this.pageData }).then(res => {
this.$endLoading()
if (res.code === 200) {
......@@ -139,15 +131,11 @@ export default {
item.qlrmcStr = item.qlrmc ? String(item.qlrmc) : ''
item.ywrmcStr = item.ywrmc ? String(item.ywrmc) : ''
})
this.tableData.total = total;
this.tableData.total = total ? total : 0
this.tableData.data = records ? records : []
}
})
},
handelItem (index) {
this.searchList.splice(index, 1)
},
handleSort (val) {
this.queryForm.sortField = val.prop
this.queryForm.sortOrder = val.order == "ascending" ? 'asc' : 'desc'
......
......@@ -220,9 +220,10 @@
:disabled="$route.query.viewtype == 1"
v-model="ruleForm.slywxx.gyfs"
>
<el-radio label="1">单独所有</el-radio>
<el-radio label="2">共同共有</el-radio>
<el-radio label="3">按份所有</el-radio>
<el-radio label="0">单独所有</el-radio>
<el-radio label="1">共同共有</el-radio>
<el-radio label="2">按份所有</el-radio>
<el-radio label="3">其它共有</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
......
......@@ -6,8 +6,8 @@
<el-row>
<el-col :span="5">
<el-form-item label="业务来源">
<el-select v-model="queryForm.ywly" @change="queryClick()" class="width100" filterable clearable
placeholder="请选择业务来源">
<el-select v-model="queryForm.ywly" @change="handleSelect('ywly', 'ywlymc', 'ywly')" class="width100"
filterable clearable placeholder="请选择业务来源">
<el-option v-for="item in dictData['ywly']" :key="item.dcode" :label="item.dname" :value="item.dcode">
</el-option>
</el-select>
......@@ -15,8 +15,8 @@
</el-col>
<el-col :span="5">
<el-form-item label="权利类型">
<el-select v-model="queryForm.qllx" @change="queryClick()" class="width100" filterable clearable
placeholder="请选择权利类型">
<el-select v-model="queryForm.qllx" @change="handleSelect('A8', 'qllxmc', 'qllx')" class="width100"
filterable clearable placeholder="请选择权利类型">
<el-option v-for="item in dictData['A8']" :key="item.dcode" :label="item.dname" :value="item.dcode">
</el-option>
</el-select>
......@@ -24,8 +24,8 @@
</el-col>
<el-col :span="5">
<el-form-item label="登记类型">
<el-select v-model="queryForm.djlx" @change="queryClick()" class="width100" filterable clearable
placeholder="请选择登记类型">
<el-select v-model="queryForm.djlx" @change="handleSelect('A21', 'djlxmc', 'djlx')" class="width100"
filterable clearable placeholder="请选择登记类型">
<el-option v-for="item in dictData['A21']" :key="item.dcode" :label="item.dname" :value="item.dcode">
</el-option>
</el-select>
......@@ -50,7 +50,7 @@
<ul>
<li v-for="(item, index) in searchList" :key="index">
{{ item.name }}:{{ item.value }}
<i class="el-icon-circle-close" @click="handelItem(index)"></i>
<i class="el-icon-circle-close" @click="handelItem(item, index)"></i>
</li>
</ul>
<el-button class="clean-btn" type="text" v-if="searchList.length > 0" @click.native="hanldeCleanAll">清除全部
......@@ -60,9 +60,10 @@
</div>
<!-- 表格 -->
<div class="from-clues-content">
<lb-table :page-size="pageData.size" class="loadingtext" :heightNum="300" @sort-change="handleSort" border
:current-page.sync="pageData.current" :total="pageData.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
<lb-table :page-size="pageData.size" class="loadingtext" @sort-change="handleSort"
:current-page.sync="pageData.currentPage" :heightNum="295" :total="tableData.total"
@size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns"
:data="tableData.data">
</lb-table>
</div>
<searchBox v-model="isSearch" @getSearch="getSearch" />
......@@ -94,10 +95,11 @@ export default {
djlx: "",
ywh: "",
},
pageData: {
current: 1,
size: 10,
total: 2,
searchForm: {
ywlymc: '',
qllxmc: '',
djlxmc: '',
ywh: ''
},
tableData: {
total: 0,
......@@ -110,18 +112,20 @@ export default {
// 列表渲染接口
queryClick () {
this.$startLoading()
searchTaskDone({ ...this.queryForm, ...this.pageData }, { 'target': '#ybxLoading' }).then(res => {
if (res.code === 200) {
this.searchForm.ywh = this.queryForm.ywh
this.iterationData()
searchTaskDone({ ...this.queryForm, ...this.pageData }).then(res => {
this.$endLoading()
if (res.code === 200) {
let { total, records } = res.result
this.pageData.total = total;
records.forEach(item => {
item.qlrmc = item.qlrmc.join(',')
item.ywh = item.ywh.join(',')
item.zl = item.zl.join(',')
item.outstepdate = item.outstepdate[0]
})
this.tableData.data = records
this.tableData.total = total ? total : 0
this.tableData.data = records ? records : []
}
})
},
......
......@@ -97,7 +97,7 @@ export default {
},
fetchData () {
this.queryForm.sqywbm = this.djywbm;
selectQlxx({ ...this.queryForm, ...this.pageData }, { 'target': '#bdcql' })
selectQlxx({ ...this.queryForm, ...this.pageData })
.then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
......
......@@ -7,27 +7,52 @@
<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-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
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
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
placeholder="请输入不动产权证号"
v-model="queryForm.bdcqzh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
......@@ -41,10 +66,19 @@
</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
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">
......@@ -63,14 +97,14 @@ export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' },
djywbm: { type: String, default: "" },
djqxObj: {
type: Object,
default: {}
default: {},
},
bsmSqyw: { type: String, default: '' }
bsmSqyw: { type: String, default: "" },
},
data () {
data() {
return {
queryForm: defaultParameters.defaultParameters(),
qllxs: [],
......@@ -79,33 +113,32 @@ export default {
columns: datas.columns(),
data: [],
},
bdcdysz: []
bdcdysz: [],
};
},
mounted () {
sendThis(this)
mounted() {
sendThis(this);
},
methods: {
//点击行选中或取消复选框
handleRowClick (row, column, event) {
handleRowClick(row, column, event) {
//通过ref绑定后这里使用$refs.table来操作bom元素
this.$refs.table.toggleRowSelection(row);
},
closeDialog () {
this.$emit("closeDialog")
closeDialog() {
this.$emit("closeDialog");
},
fetchData () {
fetchData() {
this.queryForm.sqywbm = this.djywbm;
selectQlxx({ ...this.queryForm, ...this.pageData })
.then((res) => {
selectQlxx({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
let { total, records } = res.result;
this.tableData.total = total;
this.tableData.data = records;
}
})
});
},
submitForm () {
submitForm() {
if (this.bdcdysz.length == 0) {
this.$message.error("请至少选择一条数据");
return;
......@@ -114,22 +147,31 @@ export default {
bsmSqyw: this.bsmSqyw,
bdcdysz: this.bdcdysz,
djqxbm: this.djqxObj?.djqxbm,
djqxmc: this.djqxObj?.djqxmc
djqxmc: this.djqxObj?.djqxmc,
}).then((res) => {
if (res.code == 200) {
this.jump(res.result)
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) {
handleSelectionChange(val) {
val.forEach((item, index) => {
item.bsmSsql = item.bsmQlxx
item.ybdcqzsh = item.bdcqzh
})
this.bdcdysz = val
}
item.bsmSsql = item.bsmQlxx;
item.ybdcqzsh = item.bdcqzh;
});
this.bdcdysz = val;
},
},
};
</script>
......
<template>
<!-- 抵押权利信息查询 -->
<div class="from-clues">
<!-- 表单部分 -->
<div class="from-clues-header">
<el-form :model="queryForm" ref="queryForm" label-width="120px">
<el-form :model="queryForm" ref="queryForm" label-width="100px">
<el-row>
<el-col :span="10">
<el-col :span="5">
<el-form-item label="权利类型">
<el-select v-model="queryForm.qllx" filterable clearable placeholder="请选择权利类型" class="width300px">
<el-option v-for="item in qllxs" :key="item.value" :label="item.label" :value="item.value">
<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="10">
<el-col :span="6">
<el-form-item label="不动产单元号">
<el-input placeholder="请输入不动产单元号" v-model="queryForm.bdcdyh" clearable class="width300px">
<el-input
placeholder="请输入不动产单元号"
v-model="queryForm.bdcdyh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="10">
<el-col :span="5">
<el-form-item label="业务号">
<el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width300px">
<el-input
placeholder="请输入业务号"
v-model="queryForm.ywh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
<el-col :span="10">
<el-col :span="6">
<el-form-item label="不动产权证号">
<el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width300px">
<el-input
placeholder="请输入不动产权证号"
v-model="queryForm.bdcqzh"
clearable
class="width200px"
>
</el-input>
</el-form-item>
</el-col>
......@@ -42,20 +66,30 @@
</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
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>
<el-button type="primary" plain @click="submitFormClick()"
>发起申请</el-button
>
</div>
</div>
</template>
<script>
//抵押权首次登记
import { datas, sendThis } from "../javascript/diyaq.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import table from "@/utils/mixin/table";
......@@ -65,14 +99,14 @@ export default {
mixins: [table, jump],
props: {
isJump: { type: Boolean, default: false },
djywbm: { type: String, default: '' },
djywbm: { type: String, default: "" },
djqxObj: {
type: Object,
default: {}
default: {},
},
bsmSqyw: { type: String, default: '' },
bsmSqyw: { type: String, default: "" },
},
data () {
data() {
return {
queryForm: defaultParameters.defaultParameters(),
qllxs: [],
......@@ -81,22 +115,22 @@ export default {
columns: datas.columns(),
data: [],
},
bdcdysz: []
bdcdysz: [],
};
},
mounted () {
mounted() {
sendThis(this);
},
methods: {
//点击行选中或取消复选框
handleRowClick (row, column, event) {
handleRowClick(row, column, event) {
//通过ref绑定后这里使用$refs.table来操作bom元素
this.$refs.table.toggleRowSelection(row);
},
closeDialog () {
closeDialog() {
this.$emit("closeDialog");
},
fetchData () {
fetchData() {
this.queryForm.sqywbm = this.djywbm;
selectDiyaq({ ...this.queryForm, ...this.pageData }).then((res) => {
if (res.code === 200) {
......@@ -104,9 +138,9 @@ export default {
this.tableData.total = total;
this.tableData.data = records;
}
})
});
},
submitForm () {
submitFormClick() {
if (this.bdcdysz.length == 0) {
this.$message.error("请至少选择一条数据");
return;
......@@ -115,33 +149,33 @@ export default {
bsmSqyw: this.bsmSqyw,
bdcdysz: this.bdcdysz,
djqxbm: this.djqxObj?.djqxbm,
djqxmc: this.djqxObj?.djqxmc
djqxmc: this.djqxObj?.djqxmc,
}).then((res) => {
if (res.code == 200) {
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
message: "发起申请成功",
type: "success",
});
if (!this.isJump) {
this.jump(res.result, this.djywbm)
this.jump(res.result, this.djywbm);
} else {
this.$emit('updateDialog', true)
this.$emit("updateDialog", true);
}
} else {
this.$message.error(res.message);
}
});
},
handleSelectionChange (val) {
handleSelectionChange(val) {
val.forEach((item, index) => {
item.bsmSsql = item.bsmQlxx
item.ybdcqzsh = item.bdcqzh
})
item.bsmSsql = item.bsmQlxx;
item.ybdcqzsh = item.bdcqzh;
});
this.bdcdysz = val;
}
}
}
},
},
};
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
......