d80b4dac by tianhaohao@pashanhoo.com

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

2 parents 399ab7b9 d9def320
/*
* @Description: 互联共享数据
* @Autor:
* @LastEditTime: 2023-09-06 09:47:59
* @LastEditTime: 2024-01-23 15:37:47
*/
import request from "@/utils/request";
......@@ -16,7 +16,7 @@ let SERVER = window.config
*/
export function sfhc(data) {
return request({
url: SERVER.SERVERAPI + "/v1/gab/sfhc",
url: SERVER.SERVERAPI + "/rest/bj/sfhc",
method: "post",
data,
});
......@@ -28,7 +28,7 @@ export function sfhc(data) {
*/
export function hy(data) {
return request({
url: SERVER.SERVERAPI + "/v1/mzb/hy",
url: SERVER.SERVERAPI + "/rest/bj/hy",
method: "post",
data,
});
......@@ -40,7 +40,7 @@ export function hy(data) {
*/
export function jrxkz(data) {
return request({
url: SERVER.SERVERAPI + "/v1/ybj/jrxkz",
url: SERVER.SERVERAPI + "/rest/bj/jrxkz",
method: "post",
data,
});
......@@ -52,7 +52,7 @@ export function jrxkz(data) {
*/
export function qyjbxx(data) {
return request({
url: SERVER.SERVERAPI + "/v1/scjg/qyjbxx",
url: SERVER.SERVERAPI + "/rest/scjg/qyjbxx",
method: "post",
data,
});
......@@ -64,7 +64,7 @@ export function qyjbxx(data) {
*/
export function qyjbxxyz(data) {
return request({
url: SERVER.SERVERAPI + "/v1/scjg/qyjbxxyz",
url: SERVER.SERVERAPI + "/rest/scjg/qyjbxxyz",
method: "post",
data,
});
......@@ -76,7 +76,7 @@ export function qyjbxxyz(data) {
*/
export function dm(data) {
return request({
url: SERVER.SERVERAPI + "/v1/mzb/dm",
url: SERVER.SERVERAPI + "/rest/bj/dm",
method: "post",
data,
});
......@@ -88,7 +88,7 @@ export function dm(data) {
*/
export function gtgshjbxx(data) {
return request({
url: SERVER.SERVERAPI + "/v1/sczj/gtgshjbxx",
url: SERVER.SERVERAPI + "/rest/scjg/gtgshjbxx",
method: "post",
data,
});
......@@ -100,7 +100,7 @@ export function gtgshjbxx(data) {
*/
export function gtgshjbxxyz(data) {
return request({
url: SERVER.SERVERAPI + "/v1/sczj/gtgshjbxxyz",
url: SERVER.SERVERAPI + "/rest/scjg/gtgshjbxxyz",
method: "post",
data,
});
......@@ -112,7 +112,7 @@ export function gtgshjbxxyz(data) {
*/
export function xydm(data) {
return request({
url: SERVER.SERVERAPI + "/v1/zbb/xydm",
url: SERVER.SERVERAPI + "/rest/bj/xydm",
method: "post",
data,
});
......@@ -124,7 +124,7 @@ export function xydm(data) {
*/
export function jgxxcx(data) {
return request({
url: SERVER.SERVERAPI + "/v1/mzb/xydm",
url: SERVER.SERVERAPI + "/rest/bj/mzbxydm",
method: "post",
data,
});
......@@ -136,7 +136,7 @@ export function jgxxcx(data) {
*/
export function bdcdj(data) {
return request({
url: SERVER.SERVERAPI + "/v1/mzt/bdcdj",
url: SERVER.SERVERAPI + "/rest/mzsf/mzt/bdcdj",
method: "post",
data,
});
......@@ -148,7 +148,7 @@ export function bdcdj(data) {
*/
export function dzyyzz(data) {
return request({
url: SERVER.SERVERAPI + "/v1/sczj/dzyyzz",
url: SERVER.SERVERAPI + "/rest/scjg/dzyyzz",
method: "post",
data,
});
......@@ -158,11 +158,11 @@ export function dzyyzz(data) {
* @param {*} data
* @author:
*/
export function gzsxx(data) {
export function gzsxx(params) {
return request({
url: SERVER.SERVERAPI + "/v1/sft/gzsxx",
method: "post",
data,
url: SERVER.SERVERAPI + "/rest/mzsf/sft/gzsxx",
method: "get",
params,
});
}
/**
......@@ -172,7 +172,7 @@ export function gzsxx(data) {
*/
export function pjws(data) {
return request({
url: SERVER.SERVERAPI + "/v1/zgf/pjws",
url: SERVER.SERVERAPI + "/rest/bj/pjws",
method: "post",
data,
});
......@@ -184,9 +184,8 @@ export function pjws(data) {
*/
export function pjwsDetail(data) {
return request({
url: SERVER.SERVERAPI + "/v1/zgf/pjwsDetail",
url: SERVER.SERVERAPI + "/rest/bj/pjwsDetail",
method: "post",
data,
});
}
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-17 10:30:58
* @LastEditTime: 2024-01-23 10:59:37
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
......@@ -11,7 +11,7 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap
* @param data
* @author ssq 2023年5月26日14点29分
*/
export function BatchInit(data) {
export function BatchInit (data) {
let apiUrl = "";
switch (data.get("djlx")) {
case "100":
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-23 14:10:30
*/
import request from '@/utils/request'
let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
/**
* @description: 初始化
* @param {*} data
* @author: renchao
*/
export function Init (data) {
let apiUrl = "";
switch (data.get("djlx")) {
case "100":
apiUrl = "/system/tdcbjyq/fristInit";
break;
case "200":
apiUrl = "/system/tdcbjyq/transferInit";
break;
case "300":
apiUrl = "/system/tdcbjyq/changeInit";
break;
case "400":
apiUrl = "/system/tdcbjyq/logoutInit";
break;
case "500":
apiUrl = "/system/tdcbjyq/riviseInit";
break;
case "901":
apiUrl = "/system/tdcbjyq/renewalInit";
break;
case "902":
apiUrl = "/system/tdcbjyq/replaceInit";
break;
}
return request({
url: SERVER.SERVERAPI + apiUrl,
method: 'post',
data
})
}
/**
* @description: 受理信息保存
* @param {*} data
* @author: renchao
*/
export function saveData (data) {
return request({
url: SERVER.SERVERAPI + '/system/tdcbjyq/saveData',
method: 'post',
data
})
}
/*
* @Description: 业务申请
* @Autor: renchao
* @LastEditTime: 2023-11-14 09:30:08
* @LastEditTime: 2024-01-23 13:17:00
*/
import request from '@/utils/request'
......@@ -84,6 +84,19 @@ export function selectNydsyqQlxx (data) {
})
}
/**
* @description: 业务办理-查询土地承包经营权-根据条件进行列表查询
* @param {*} data
* @author: renchao
*/
export function selectTdcbjyq (data) {
return request({
url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectTdcbjyq',
method: 'post',
data
})
}
/**
* @description: 业务办理-选择单元-查询宗地基本信息
......
......@@ -2,7 +2,7 @@
/*
* @Description: 此文件主要创建 axios 实例,然后添加请求拦截器和响应拦截器
* @Autor: renchao
* @LastEditTime: 2023-09-20 14:20:39
* @LastEditTime: 2024-01-22 17:02:42
*/
import axios from 'axios'
import Router from '@/router'
......@@ -18,7 +18,7 @@ const service = axios.create({
: window._config.baseUrl + "/",
withCredentials: true, //是否允许跨域
headers: {
'Content-Type': 'application/json; charset=utf-8'
'Content-Type': 'application/json'
},
timeout: 15000
})
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-11-14 15:43:23
* @LastEditTime: 2024-01-23 10:37:15
-->
<template>
<div class="content">
......@@ -94,8 +94,17 @@
};
},
props: ["formData"],
mounted () {
this.loadData(this.formData.bdcdyh);
// mounted () {
// this.loadData(this.formData.bdcdyh);
// },
watch: {
'formData.bdcdyh': {
handler (newName, oldName) {
this.loadData(this.formData.bdcdyh);
},
immediate: true,
deep: true
}
},
methods: {
/**
......
<!--
* @Author: yangwei
* @Date: 2023-09-06 09:00:34
* @LastEditors: yangwei
* @LastEditTime: 2023-09-07 11:11:32
* @LastEditors: vers
* @LastEditTime: 2024-01-23 15:36:59
* @FilePath: \bdcdj-web\src\views\sjgx\gbmhlgxsjgx\components\gzsxxcx.vue
* @Description:
*
......@@ -19,7 +19,7 @@
label-width="80px"
>
<el-row>
<el-col :span="9">
<!-- <el-col :span="9">
<el-form-item label="业务号">
<el-input
placeholder="业务号"
......@@ -29,12 +29,12 @@
>
</el-input>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="9">
<el-form-item label="证件号码">
<el-input
placeholder="证件号码"
v-model="queryForm.certCode"
v-model="queryForm.zjhm"
clearable
class="width100"
>
......@@ -74,7 +74,8 @@
</el-table-column>
<el-table-column prop="notary_name" label="公证员" width="120">
</el-table-column>
<el-table-column prop="accept_date" label="公证日期" width="120"> </el-table-column>
<el-table-column prop="accept_date" label="公证日期" width="120">
</el-table-column>
<el-table-column prop="fwbh" label="房屋编号" width="120">
</el-table-column>
<el-table-column prop="mj" label="面积" width="120">
......
......@@ -677,18 +677,18 @@
arr.push(currentLine);
if (i > 0) {
arr.forEach((line, index) => {
context.fillText(line, 770, 610 + (25 * (i - 1)) + 5 * num + (index * 22)); // 调整行高
context.fillText(line, 770, 605 + (24 * (i - 1)) + 5 * num + (index * 17)); // 调整行高
})
} else {
arr.forEach((line, index) => {
context.fillText(line, 770, 610 + (25 * (i - 1)) + (index * 22)); // 调整行高
context.fillText(line, 770, 605 + (24 * (i - 1)) + (index * 17)); // 调整行高
})
}
} else {
if (i > 0) {
context.fillText(lines1[i] ? lines1[i] : '', 770, 610 + 5 * num + (24 * (i - 1)));
context.fillText(lines1[i] ? lines1[i] : '', 770, 616 + 6 * num + (25 * (i - 1)));
} else {
context.fillText(lines1[i] ? lines1[i] : '', 770, 610 + (24 * (i - 1)));
context.fillText(lines1[i] ? lines1[i] : '', 770, 616 + (25 * (i - 1)));
}
}
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-18 11:25:39
* @LastEditTime: 2024-01-23 11:07:58
-->
<template>
<div class="from-clues loadingtext" v-Loading="loading" element-loading-text="拼命加载中..." style="text-align: center;">
......@@ -606,18 +606,18 @@
arr.push(currentLine);
if (i > 0) {
arr.forEach((line, index) => {
context.fillText(line, 770, 610 + (25 * (i - 1)) + 5 * num + (index * 22)); // 调整行高
context.fillText(line, 770, 605 + (24 * (i - 1)) + 5 * num + (index * 17)); // 调整行高
})
} else {
arr.forEach((line, index) => {
context.fillText(line, 770, 610 + (25 * (i - 1)) + (index * 22)); // 调整行高
context.fillText(line, 770, 605 + (24 * (i - 1)) + (index * 17)); // 调整行高
})
}
} else {
if (i > 0) {
context.fillText(lines1[i] ? lines1[i] : '', 770, 610 + 5 * num + (24 * (i - 1)));
context.fillText(lines1[i] ? lines1[i] : '', 770, 616 + 6 * num + (25 * (i - 1)));
} else {
context.fillText(lines1[i] ? lines1[i] : '', 770, 610 + (24 * (i - 1)));
context.fillText(lines1[i] ? lines1[i] : '', 770, 616 + (25 * (i - 1)));
}
}
}
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-22 14:56:43
* @LastEditTime: 2024-01-23 14:07:58
*/
/**
* @description: 流程环节操作按钮
......@@ -21,6 +21,10 @@ export function getForm (tabName) {
case "jsydsyqslxx300":
form = require("@/views/ywbl/slsqxx/jsydsyq/slxx300.vue");
break;
//土地承包经营权
case "tdcbjyqslxx100":
form = require("@/views/ywbl/slsqxx/tdcbjyq/slxx.vue");
break;
//国有建设用地使用权/房屋所有权
case "fwsyqdzslxx":
form = require("@/views/ywbl/slsqxx/fdcq1/slxx.vue");
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-12-19 10:02:03
* @LastEditTime: 2024-01-23 09:57:51
*/
import Vue from 'vue'
import { getPrintTemplateByCode } from "@/api/print";
......@@ -173,6 +173,7 @@ export default {
case "B-TXDW":
getZdInfo(this.currentSelectProps.bdcdyid).then(res => {
this.bsmZd = res?.result[0]?.bsmZd
console.log(this.bsmZd);
this.$popupDialog('图形定位', 'workflow/components/dialog/txdw', { bsmZd: this.bsmZd }, '85%', true)
})
break;
......
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-22 11:00:07
* @LastEditTime: 2024-01-23 10:23:02
*/
import { getForm } from "../flowform";
import { getHomeNoticeList } from "@/api/home.js"
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-22 14:57:22
* @LastEditTime: 2024-01-23 10:25:51
-->
<template>
<div class="container">
......@@ -245,7 +245,13 @@
if (res.code === 200) {
//获取单元对应的所有表单信息
this.tabList = res.result;
var indexTab = 0
//默认加载第一个表单信息
res.result.forEach((item, index) => {
if (item.defaultForm) {
indexTab = index
}
})
let arr = res.result.filter((item) => item.defaultForm);
if (arr.length > 0) {
this.tabName = arr[0].value;
......@@ -255,8 +261,8 @@
if (sessionStorage.getItem('activeName') == this.tabName) {
this.fresh++;
}
this.ableOperation = this.tabList[0].ableOperation;
this.currentSelectTab = this.tabList[0];
this.ableOperation = this.tabList[indexTab].ableOperation;
this.currentSelectTab = this.tabList[indexTab];
//批量操作无分屏按钮
if (index != null) {
//处理分屏材料信息
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-22 11:04:51
* @LastEditTime: 2024-01-23 10:21:28
-->
<template>
<div class="container">
......@@ -129,15 +129,21 @@
if (res.code === 200) {
//获取单元对应的所有表单信息
this.tabList = res.result;
var indexTab = 0
//默认加载第一个表单信息
res.result.forEach((item, index) => {
if (item.defaultForm) {
indexTab = index
}
})
if (res.result.length > 0) {
that.tabName = res.result[0].value;
}
if (sessionStorage.getItem('activeName') == this.tabName) {
that.fresh++;
}
this.ableOperation = this.tabList[0].ableOperation
this.currentSelectTab = this.tabList[0];
this.ableOperation = this.tabList[indexTab].ableOperation
this.currentSelectTab = this.tabList[indexTab];
//批量操作无分屏按钮
if (index != null) {
//处理分屏材料信息
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-07-19 14:08:17
* @LastEditTime: 2024-01-23 09:44:44
-->
<template>
<dialogBox :isButton="false" :isFullscreen="false" width="50%" @closeDialog="closeDialog" v-model="myValue"
title="高级搜索">
<el-form :model="ruleForm" ref="ruleForm" label-width="100px">
<el-row>
<el-col :span="8">
<!-- <el-col :span="8">
<el-form-item label="申请业务名称" prop="sqywmc">
<el-input v-model="ruleForm.sqywmc" placeholder="请输入申请业务名称"></el-input>
</el-form-item>
</el-col>
</el-col> -->
<el-col :span="8">
<el-form-item label="权利人" prop="qlrmc">
<el-input v-model="ruleForm.qlrmc" placeholder="请输入权利人"></el-input>
......@@ -23,8 +23,11 @@
<el-input v-model="ruleForm.ywrmc" placeholder="请输入义务人"></el-input>
</el-form-item>
</el-col>
<el-col :span="8" class="btnColRight">
<el-button type="primary" icon="el-icon-search" @click="submitForm('ruleForm')">查询</el-button>
</el-col>
</el-row>
<el-row>
<!-- <el-row>
<el-col :span="8">
<el-form-item label="受理时间" prop="slsj">
<el-date-picker v-model="ruleForm.slsj" value-format="yyyy-MM-dd" class="width100" type="date"
......@@ -32,11 +35,11 @@
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
</el-row> -->
<el-row class="search-btn">
<el-button type="text" @click.native="closeDialog">收起搜索</el-button>
<el-button type="primary" icon="el-icon-search" @click="submitForm('ruleForm')">查询</el-button>
<el-button icon="el-icon-refresh-left" @click="resetForm('ruleForm')">重置</el-button>
<!-- <el-button type="text" @click.native="closeDialog">收起搜索</el-button> -->
<!-- <el-button type="primary" icon="el-icon-search" @click="submitForm('ruleForm')">查询</el-button> -->
<!-- <el-button icon="el-icon-refresh-left" @click="resetForm('ruleForm')">重置</el-button> -->
</el-row>
</el-form>
</dialogBox>
......
<!--
* @Description: 受理信息
* @Autor: renchao
* @LastEditTime: 2024-01-18 16:19:51
* @LastEditTime: 2024-01-22 17:08:30
-->
<template>
<div class="slxx">
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-10-24 17:35:49
* @LastEditTime: 2024-01-23 15:14:11
-->
<template>
<!-- 受理信息 -->
......@@ -215,7 +215,7 @@
:key="key"
:gyfs="ruleForm.sldy.gyfs" />
<div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0">
<div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0 && ruleForm.qlxx.djlx==200">
<div class="slxx_title title-block">
义务人信息
<div class="triangle"></div>
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-11-16 14:08:55
* @LastEditTime: 2024-01-23 13:45:28
-->
<template>
<div class="from-clues">
......@@ -33,7 +33,7 @@
<!-- 表格 -->
<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"
: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>
......@@ -62,6 +62,7 @@
},
data () {
return {
radioVal: '',
loading: false,
queryForm: defaultParameters.defaultParameters(),
qllxs: [],
......@@ -75,6 +76,28 @@
},
mounted () {
sendThis(this);
if (this.sqywInfo.sqywdylx == "1") {
this.tableData.columns = [{
label: '选择',
width: '50px',
render: (h, scope) => {
return (
<div class="orgColumn">
<el-radio onChange={() => { this.handleChange(scope.row) }} v-model={this.radioVal} label={scope.row.bdcdyid}>
&ensp;
</el-radio>
</div>
)
}
}].concat(datas.columns())
} else {
this.tableData.columns =
[{
type: 'selection',
label: '全选',
width: '50'
}].concat(datas.columns())
}
},
methods: {
/**
......@@ -158,21 +181,10 @@
formData: param
})
},
/**
* @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);
}
handleChange () {
let arr = this.tableData.data.filter(item => item.bdcdyid == this.radioVal)
arr[0].bsm = arr[0].zdbsm
this.bdcdysz = arr
},
/**
* @description: handleRowClick
......@@ -181,28 +193,15 @@
*/
handleRowClick (row) {
// 如果状态是1,那就是单选
let refs = 'table';
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);
}
row.bsm = row.zdbsm
this.bdcdysz = [row]
this.radioVal = row.bdcdyid
} else {
this.$refs.table.toggleRowSelection(row);
this.$refs[refs].toggleRowSelection(row)
}
},
}
}
}
</script>
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-17 14:18:01
* @LastEditTime: 2024-01-23 13:47:01
-->
<template>
<div class="from-clues">
......@@ -53,7 +53,7 @@
<!-- 表格 -->
<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"
: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>
......@@ -82,6 +82,7 @@
},
data () {
return {
radioVal: '',
loading: false,
queryForm: defaultParameters.defaultParameters(),
tableData: {
......@@ -94,6 +95,28 @@
},
mounted () {
sendThis(this);
if (this.sqywInfo.sqywdylx == "1") {
this.tableData.columns = [{
label: '选择',
width: '50px',
render: (h, scope) => {
return (
<div class="orgColumn">
<el-radio onChange={() => { this.handleChange(scope.row) }} v-model={this.radioVal} label={scope.row.bdcdyid}>
&ensp;
</el-radio>
</div>
)
}
}].concat(datas.columns())
} else {
this.tableData.columns =
[{
type: 'selection',
label: '全选',
width: '50'
}].concat(datas.columns())
}
},
methods: {
/**
......@@ -182,21 +205,10 @@
formData: param
})
},
/**
* @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);
}
handleChange () {
let arr = this.tableData.data.filter(item => item.bdcdyid == this.radioVal)
arr[0].bsm = arr[0].zdbsm
this.bdcdysz = arr
},
/**
* @description: handleRowClick
......@@ -205,26 +217,13 @@
*/
handleRowClick (row) {
// 如果状态是1,那就是单选
let refs = 'table';
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);
}
row.bsm = row.zdbsm
this.bdcdysz = [row]
this.radioVal = row.bdcdyid
} else {
this.$refs.table.toggleRowSelection(row);
this.$refs[refs].toggleRowSelection(row)
}
}
}
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-22 16:24:56
* @LastEditTime: 2024-01-23 13:40:23
-->
<template>
<div class="from-clues">
......@@ -198,6 +198,7 @@
// 如果状态是1,那就是单选
let refs = 'table';
if (this.sqywInfo.sqywdylx == "1") {
row.bsm = row.zdbsm
this.bdcdysz = [row]
this.radioVal = row.bdcdyid
} else {
......
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-23 13:44:44
-->
<template>
<div class="from-clues">
<!-- 表单部分 -->
<div class="from-clues-header">
<el-form :model="queryForm" ref="queryForm" label-width="100px">
<el-row>
<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">
<el-form-item label="权利人">
<el-input placeholder="请输入权利人" v-model.trim="queryForm.qlr" 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.zjh" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="24" 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"
@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 store from '@/store/index.js'
import ywsqTable from "@/utils/mixin/ywsqTable";
import jump from "../components/mixin/jump";
import { ywPopupDialog } from "@/utils/popup.js";
import { datas, sendThis } from "../javascript/selectJsydsyq.js";
import { defaultParameters } from "../javascript/publicDefaultPar.js";
import { selectTdcbjyq } from "@/api/ywsq.js";
import { startBusinessFlow } from "@/api/workFlow.js";
export default {
mixins: [ywsqTable, jump],
props: {
isJump: { type: Boolean, default: false },
sqywInfo: { type: Object, default: () => { } },
},
data () {
return {
radioVal: '',
loading: false,
queryForm: defaultParameters.defaultParameters(),
qllxs: [],
tableData: {
total: 0,
columns: datas.columns(),
data: [],
},
bdcdysz: []
};
},
mounted () {
sendThis(this);
if (this.sqywInfo.sqywdylx == "1") {
this.tableData.columns = [{
label: '选择',
width: '50px',
render: (h, scope) => {
return (
<div class="orgColumn">
<el-radio onChange={() => { this.handleChange(scope.row) }} v-model={this.radioVal} label={scope.row.bdcdyid}>
&ensp;
</el-radio>
</div>
)
}
}].concat(datas.columns())
} else {
this.tableData.columns =
[{
type: 'selection',
label: '全选',
width: '50'
}].concat(datas.columns())
}
},
methods: {
/**
* @description: queryClick
* @author: renchao
*/
queryClick () {
this.$startLoading();
this.queryForm.sqywbm = this.sqywInfo.djywbm;
selectTdcbjyq({ ...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.$message.error("请至少选择一条数据");
return;
}
this.loading = true
startBusinessFlow({
bsmSqyw: this.sqywInfo.bsmSqyw,
bdcdysz: this.bdcdysz,
}).then((res) => {
this.loading = false
if (res.code == 200) {
this.$message({
showClose: true,
message: '发起申请成功',
type: 'success'
})
if (!this.isJump) {
this.jump(res.result)
} else {
store.dispatch('user/refreshPage', true);
}
this.$popupCacel()
} else {
if (res.result && res.result.length > 0) {
ywPopupDialog("申请错误明细", "components/ywdialog", { result: res.result }, '36%', true)
} else {
ywPopupDialog("申请错误明细", "components/ywdialog", { message: res.message }, '36%', true)
}
}
}).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: 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
})
},
handleChange () {
let arr = this.tableData.data.filter(item => item.bdcdyid == this.radioVal)
arr[0].bsm = arr[0].zdbsm
this.bdcdysz = arr
},
/**
* @description: handleRowClick
* @param {*} row
* @author: renchao
*/
handleRowClick (row) {
// 如果状态是1,那就是单选
let refs = 'table';
if (this.sqywInfo.sqywdylx == "1") {
row.bsm = row.zdbsm
this.bdcdysz = [row]
this.radioVal = row.bdcdyid
} else {
this.$refs[refs].toggleRowSelection(row)
}
}
}
}
</script>
<style scoped lang="scss">
@import "~@/styles/mixin.scss";
@import "~@/styles/public.scss";
</style>
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-01-17 09:44:35
* @LastEditTime: 2024-01-23 13:43:12
*/
import filter from '@/utils/filter.js'
let vm = null
......@@ -15,11 +15,11 @@ class data extends filter {
}
columns () {
return [
{
type: 'selection',
label: '全选',
selectable: this.selected
},
// {
// type: 'selection',
// label: '全选',
// selectable: this.selected
// },
{
label: '序号',
type: 'index',
......
......@@ -73,7 +73,9 @@ export function queueDjywmc (djywbm, djqxbm) {
case "A23200":
case "A23300":
case "A23400":
case "A09200":
case "A09200": // 土地承包经营权(转移登记)
vm = "tdjyq200";
break;
case "A09300":
case "A09400":
vm = "nydsyq200";
......