b0a4b5fe by tianhaohao@pashanhoo.com

修改查封登记系统功能

1 parent 3e3c42d9
...@@ -5,29 +5,31 @@ ...@@ -5,29 +5,31 @@
5 {{ title }} 5 {{ title }}
6 <div class="checkbox"> 6 <div class="checkbox">
7 <el-checkbox-group v-model="checkList" @change="checkChange"> 7 <el-checkbox-group v-model="checkList" @change="checkChange">
8 <el-checkbox v-for="item in qsztList" :key="item.value" :label="item.value">{{ item.label }}</el-checkbox> 8 <el-checkbox
9 v-for="item in qsztList"
10 :key="item.value"
11 :label="item.value"
12 >{{ item.label }}</el-checkbox>
9 </el-checkbox-group> 13 </el-checkbox-group>
10 </div> 14 </div>
11 </div> 15 </div>
12 <div class="xxTableBox rollTable"> 16 <div class="xxTableBox rollTable">
13 <table class="xxTable"> 17 <table class="xxTable">
14 <tr v-for="(item, colindex) in columns" :key="colindex"> 18 <tr v-for="(item, colindex) in columns" :key="colindex">
15 <td> 19 <td>{{ item.label }}</td>
16 {{ item.label }} 20 <td
17 </td> 21 v-for="(row, index) in tableData"
18 <td v-for="(row, index) in tableData" :key="index" :class="[ 22 :key="index"
23 :class="[
19 row.qszt == '2' ? 'lishi' : '', 24 row.qszt == '2' ? 'lishi' : '',
20 row.qszt == '0' ? 'linshi' : '', 25 row.qszt == '0' ? 'linshi' : '',
21 item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', 26 item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))? 'linshiIcon' : '',
22 ]"> 27 ]"
23 <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> 28 >
24 正在办理 29 <div class="icon" v-if="item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))">正在办理</div>
25 </div> 30 <span v-if="item.prop == 'qszt'">{{ getQsztName(row[item.prop]) }}</span>
26 <span v-if="item.prop == 'qszt'">
27 {{ getQsztName(row[item.prop]) }}
28 </span>
29 31
30 <span v-else> {{ row[item.prop] }}</span> 32 <span v-else>{{ row[item.prop] }}</span>
31 </td> 33 </td>
32 <td v-for="count in emptycolNum" :key="~count"></td> 34 <td v-for="count in emptycolNum" :key="~count"></td>
33 </tr> 35 </tr>
...@@ -41,7 +43,7 @@ ...@@ -41,7 +43,7 @@
41 import { getCfdjList } from "@/api/registerBook.js"; 43 import { getCfdjList } from "@/api/registerBook.js";
42 import { datas } from "./qlxxFormData.js"; 44 import { datas } from "./qlxxFormData.js";
43 export default { 45 export default {
44 data () { 46 data() {
45 return { 47 return {
46 title: "查封登记信息", 48 title: "查封登记信息",
47 qsztList: datas.columns().qsztList, 49 qsztList: datas.columns().qsztList,
...@@ -56,11 +58,11 @@ export default { ...@@ -56,11 +58,11 @@ export default {
56 columns: datas.columns().CFDJ, 58 columns: datas.columns().CFDJ,
57 }; 59 };
58 }, 60 },
59 created () { 61 created() {
60 this.loadData(); 62 this.loadData();
61 }, 63 },
62 methods: { 64 methods: {
63 loadData () { 65 loadData() {
64 getCfdjList({ 66 getCfdjList({
65 bdcdyid: this.propsParam.bdcdyid, 67 bdcdyid: this.propsParam.bdcdyid,
66 qllx: this.propsParam.qllx, 68 qllx: this.propsParam.qllx,
...@@ -69,12 +71,12 @@ export default { ...@@ -69,12 +71,12 @@ export default {
69 if (res.code === 200) { 71 if (res.code === 200) {
70 this.tableData = res.result; 72 this.tableData = res.result;
71 this.tableData.forEach((item, index) => { 73 this.tableData.forEach((item, index) => {
72 if (item.sfbxf == '1') { 74 if (item.sfbxf == "1") {
73 item.zxywh = ''; 75 item.zxywh = "";
74 item.zxdbr = ''; 76 item.zxdbr = "";
75 item.zxsj = ''; 77 item.zxsj = "";
76 } 78 }
77 }) 79 });
78 if (this.tableData.length < datas.columns().emptycolNum) { 80 if (this.tableData.length < datas.columns().emptycolNum) {
79 this.emptycolNum = 81 this.emptycolNum =
80 datas.columns().emptycolNum - this.tableData.length; 82 datas.columns().emptycolNum - this.tableData.length;
...@@ -84,7 +86,7 @@ export default { ...@@ -84,7 +86,7 @@ export default {
84 } 86 }
85 }); 87 });
86 }, 88 },
87 checkChange () { 89 checkChange() {
88 if (this.checkList.length === 0) { 90 if (this.checkList.length === 0) {
89 this.tableData = []; 91 this.tableData = [];
90 this.emptycolNum = datas.columns().emptycolNum; 92 this.emptycolNum = datas.columns().emptycolNum;
...@@ -92,7 +94,7 @@ export default { ...@@ -92,7 +94,7 @@ export default {
92 this.loadData(); 94 this.loadData();
93 } 95 }
94 }, 96 },
95 getQsztName (code) { 97 getQsztName(code) {
96 let name = ""; 98 let name = "";
97 for (let item of this.qsztList) { 99 for (let item of this.qsztList) {
98 if (item.value == code) { 100 if (item.value == code) {
......
...@@ -793,15 +793,15 @@ class data extends filter { ...@@ -793,15 +793,15 @@ class data extends filter {
793 label: "查封机关", 793 label: "查封机关",
794 }, 794 },
795 { 795 {
796 prop: "qlrmc", 796 prop: "ywrmc",
797 label: "不动产权利人", 797 label: "被执行人",
798 }, 798 },
799 { 799 {
800 prop: "qlrzjzl", 800 prop: "ywrzjzl",
801 label: "证件种类", 801 label: "证件种类",
802 }, 802 },
803 { 803 {
804 prop: "qlrzjhm", 804 prop: "ywrzjhm",
805 label: "证件号", 805 label: "证件号",
806 }, 806 },
807 807
......
...@@ -4,28 +4,43 @@ ...@@ -4,28 +4,43 @@
4 <div class="from-clues-header"> 4 <div class="from-clues-header">
5 <el-form :model="queryForm" ref="queryForm" label-width="100px"> 5 <el-form :model="queryForm" ref="queryForm" label-width="100px">
6 <el-row> 6 <el-row>
7 <el-col :span="6"> 7 <el-col :span="8">
8 <el-form-item label="不动产单元号"> 8 <el-form-item label="不动产单元号">
9 <el-input placeholder="请输入不动产单元号" maxlength="28" v-model="queryForm.bdcdyh" clearable class="width200px"> 9 <el-input
10 </el-input> 10 placeholder="请输入不动产单元号"
11 maxlength="28"
12 v-model="queryForm.bdcdyh"
13 clearable
14 class="width200px"
15 ></el-input>
11 </el-form-item> 16 </el-form-item>
12 </el-col> 17 </el-col>
13 <el-col :span="5"> 18 <el-col :span="8">
14 <el-form-item label="业务号"> 19 <el-form-item label="查封机关">
15 <el-input placeholder="请输入业务号" v-model="queryForm.ywh" clearable class="width200px"> 20 <el-input placeholder="请输入查封机关" v-model="queryForm.cfjg" clearable class="width200px"></el-input>
16 </el-input> 21 </el-form-item>
22 </el-col>
23 <el-col :span="8">
24 <el-form-item label="查封文号">
25 <el-input
26 placeholder="请输入不动产权证号"
27 v-model="queryForm.cfwh"
28 clearable
29 class="width200px"
30 ></el-input>
17 </el-form-item> 31 </el-form-item>
18 </el-col> 32 </el-col>
19 <el-col :span="6"> 33 </el-row>
20 <el-form-item label="不动产权证号"> 34 <el-row>
21 <el-input placeholder="请输入不动产权证号" v-model="queryForm.bdcqzh" clearable class="width200px"> 35 <el-col :span="5">
22 </el-input> 36 <el-form-item label="坐落">
37 <el-input placeholder="请输入坐落" v-model="queryForm.zl" clearable class="width200px"></el-input>
23 </el-form-item> 38 </el-form-item>
24 </el-col> 39 </el-col>
25 <el-col :span="2" class="btnColRight"> 40 <el-col :span="6" class="btnColRight">
26 <el-form-item> 41 <el-form-item>
27 <el-button type="primary" @click="resetForm(true)">重置</el-button> 42 <el-button type="primary" @click="resetForm(true)">重置</el-button>
28 <el-button type="primary" @click="handleSearch">查询</el-button> 43 <el-button type="primary" @click="queryClick">查询</el-button>
29 </el-form-item> 44 </el-form-item>
30 </el-col> 45 </el-col>
31 </el-row> 46 </el-row>
...@@ -33,11 +48,20 @@ ...@@ -33,11 +48,20 @@
33 </div> 48 </div>
34 <!-- 表格 --> 49 <!-- 表格 -->
35 <div class="from-clues-content loadingtext"> 50 <div class="from-clues-content loadingtext">
36 <lb-table ref="table" @row-click="handleRowClick" :page-size="pageData.pageSize" :calcHeight="300" 51 <lb-table
37 :current-page.sync="pageData.currentPage" :total="tableData.total" @size-change="handleSizeChange" @select="select" 52 ref="table"
38 @p-current-change="handleCurrentChange" @selection-change="handleSelectionChange" :column="tableData.columns" 53 @row-click="handleRowClick"
39 :data="tableData.data"> 54 :page-size="pageData.pageSize"
40 </lb-table> 55 :calcHeight="300"
56 :current-page.sync="pageData.currentPage"
57 :total="tableData.total"
58 @size-change="handleSizeChange"
59 @select="select"
60 @p-current-change="handleCurrentChange"
61 @selection-change="handleSelectionChange"
62 :column="tableData.columns"
63 :data="tableData.data"
64 ></lb-table>
41 </div> 65 </div>
42 <div class="submit_button"> 66 <div class="submit_button">
43 <el-button @click="$popupCacel">取消</el-button> 67 <el-button @click="$popupCacel">取消</el-button>
...@@ -46,141 +70,138 @@ ...@@ -46,141 +70,138 @@
46 </div> 70 </div>
47 </template> 71 </template>
48 <script> 72 <script>
49 //查封登记 73 //查封登记
50 import store from '@/store/index.js' 74 import store from "@/store/index.js";
51 import { datas, sendThis } from "../javascript/cfdj.js"; 75 import { datas, sendThis } from "../javascript/cfdj.js";
52 import { defaultParameters } from "../javascript/publicDefaultPar.js"; 76 import { defaultParameters } from "../javascript/publicDefaultPar.js";
53 import table from "@/utils/mixin/table"; 77 import table from "@/utils/mixin/table";
54 import jump from "../components/mixin/jump"; 78 import jump from "../components/mixin/jump";
55 import { selectCfdj, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js"; 79 import { selectCfdj, startBusinessFlow, choiceBdcdy } from "@/api/ywbl.js";
56 export default { 80 export default {
57 props: { 81 props: {
58 isJump: { type: Boolean, default: false }, 82 isJump: { type: Boolean, default: false },
59 sqywInfo: { type: Object, default: () => { } }, 83 sqywInfo: { type: Object, default: () => {} },
84 },
85 mixins: [table, jump],
86 data() {
87 return {
88 queryForm: defaultParameters.defaultParameters(),
89 tableData: {
90 total: 0,
91 columns: datas.columns(),
92 data: [],
93 },
94 bdcdysz: [],
95 bsmSqyw:
96 this.sqywInfo.nodetype === "djlx"
97 ? this.sqywInfo.bsmSqyw
98 : this.sqywInfo.parentid,
99 };
100 },
101 mounted() {
102 sendThis(this);
103 },
104 methods: {
105 queryClick() {
106 console.log("申请业务单一流向状态", this.sqywInfo.sqywdylx);
107 this.$startLoading();
108 selectCfdj({ ...this.queryForm, ...this.pageData }).then((res) => {
109 this.$endLoading();
110 if (res.code === 200) {
111 let { total, records } = res.result;
112 this.tableData.total = total;
113 this.tableData.data = records;
114 }
115 });
116 },
117 submitForm() {
118 if (this.bdcdysz.length == 0) {
119 this.$message.error("请至少选择一条数据");
120 return;
121 }
122 if (!this.isJump) {
123 startBusinessFlow({
124 bsmSqyw: this.bsmSqyw,
125 bdcdysz: this.bdcdysz,
126 djqxbm:
127 this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
128 djqxmc:
129 this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
130 }).then((res) => {
131 if (res.code == 200) {
132 this.$message({
133 showClose: true,
134 message: "发起申请成功",
135 type: "success",
136 });
137 this.jump(res.result, this.sqywInfo.djywbm);
138 } else {
139 this.$message.error(res.message);
140 }
141 });
142 } else {
143 choiceBdcdy({
144 bsmSlsq: this.$route.query.bsmSlsq,
145 bdcdysz: this.bdcdysz,
146 }).then((res) => {
147 if (res.code == 200) {
148 this.$message({
149 showClose: true,
150 message: "发起申请成功",
151 type: "success",
152 });
153 store.dispatch("user/refreshPage", true);
154 } else {
155 this.$message.error(res.message);
156 }
157 this.$popupCacel();
158 });
159 }
60 }, 160 },
61 mixins: [table, jump], 161 handleSelectionChange(val) {
62 data () { 162 val.forEach((item, index) => {
63 return { 163 item.bsmSsql = item.bsmQlxx;
64 queryForm: defaultParameters.defaultParameters(), 164 item.ybdcqzsh = item.bdcqzh;
65 tableData: { 165 });
66 total: 0, 166 this.bdcdysz = val;
67 columns: datas.columns(),
68 data: [],
69 },
70 bdcdysz: [],
71 bsmSqyw:
72 this.sqywInfo.nodetype === "djlx"
73 ? this.sqywInfo.bsmSqyw
74 : this.sqywInfo.parentid,
75 };
76 }, 167 },
77 mounted () { 168 select(selection, row) {
78 sendThis(this); 169 if (this.sqywInfo.sqywdylx == "1") {
170 // 清除 所有勾选项
171 this.$refs.table.clearSelection();
172 // 当表格数据都没有被勾选的时候 就返回
173 // 主要用于将当前勾选的表格状态清除
174 if (selection.length == 0) return;
175 this.$refs.table.toggleRowSelection(row, true);
176 }
79 }, 177 },
80 methods: { 178 handleRowClick(row) {
81 queryClick () { 179 // 如果状态是1,那就是单选
82 console.log("申请业务单一流向状态",this.sqywInfo.sqywdylx); 180 if (this.sqywInfo.sqywdylx == "1") {
83 this.$startLoading(); 181 const bdcdysz = this.bdcdysz;
84 this.queryForm.sqywbm = this.sqywInfo.djywbm; 182 this.$refs.table.clearSelection();
85 selectCfdj({ ...this.queryForm, ...this.pageData }) 183 if (bdcdysz.length == 1) {
86 .then((res) => { 184 bdcdysz.forEach((item) => {
87 this.$endLoading(); 185 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
88 if (res.code === 200) { 186 if (item == row) {
89 let { total, records } = res.result; 187 this.$refs.table.toggleRowSelection(row, false);
90 this.tableData.total = total;
91 this.tableData.data = records;
92 } 188 }
93 }) 189 // 不然就让当前的一行勾选
94 }, 190 else {
95 submitForm () { 191 this.$refs.table.toggleRowSelection(row, true);
96 if (this.bdcdysz.length == 0) {
97 this.$message.error("请至少选择一条数据");
98 return;
99 }
100 if (!this.isJump) {
101 startBusinessFlow({
102 bsmSqyw: this.bsmSqyw,
103 bdcdysz: this.bdcdysz,
104 djqxbm: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodecode : "",
105 djqxmc: this.sqywInfo.nodetype == "djqx" ? this.sqywInfo.nodename : "",
106 }).then((res) => {
107 if (res.code == 200) {
108 this.$message({
109 showClose: true,
110 message: '发起申请成功',
111 type: 'success'
112 })
113 this.jump(res.result, this.sqywInfo.djywbm)
114 } else {
115 this.$message.error(res.message)
116 } 192 }
117 }) 193 });
118 } else { 194 } else {
119 choiceBdcdy({ 195 this.$refs.table.toggleRowSelection(row, true);
120 bsmSlsq: this.$route.query.bsmSlsq,
121 bdcdysz: this.bdcdysz
122 }).then(res => {
123 if (res.code == 200) {
124 this.$message({
125 showClose: true,
126 message: '发起申请成功',
127 type: 'success'
128 })
129 store.dispatch('user/refreshPage', true);
130 } else {
131 this.$message.error(res.message);
132 }
133 this.$popupCacel()
134 })
135 } 196 }
136 }, 197 } else {
137 handleSelectionChange (val) { 198 this.$refs.table.toggleRowSelection(row);
138 val.forEach((item, index) => { 199 }
139 item.bsmSsql = item.bsmQlxx
140 item.ybdcqzsh = item.bdcqzh
141 })
142 this.bdcdysz = val
143 },
144 select(selection, row){
145 if(this.sqywInfo.sqywdylx=="1"){
146 // 清除 所有勾选项
147 this.$refs.table.clearSelection()
148 // 当表格数据都没有被勾选的时候 就返回
149 // 主要用于将当前勾选的表格状态清除
150 if(selection.length == 0) return
151 this.$refs.table.toggleRowSelection(row, true);
152 }
153 },
154 handleRowClick(row){
155 // 如果状态是1,那就是单选
156 if(this.sqywInfo.sqywdylx=="1"){
157 const bdcdysz = this.bdcdysz
158 this.$refs.table.clearSelection()
159 if( bdcdysz.length == 1 ) {
160 bdcdysz.forEach(item => {
161 // 判断 如果当前的一行被勾选, 再次点击的时候就会取消选中
162 if (item == row) {
163 this.$refs.table.toggleRowSelection(row, false);
164 }
165 // 不然就让当前的一行勾选
166 else {
167 this.$refs.table.toggleRowSelection(row, true);
168 }
169 })
170 }
171 else {
172 this.$refs.table.toggleRowSelection(row, true);
173 }
174 }else{
175 this.$refs.table.toggleRowSelection(row);
176 }
177 },
178
179
180 }, 200 },
181 }; 201 },
202 };
182 </script> 203 </script>
183 <style scoped lang="scss"> 204 <style scoped lang="scss">
184 @import "~@/styles/mixin.scss"; 205 @import "~@/styles/mixin.scss";
185 @import "~@/styles/public.scss"; 206 @import "~@/styles/public.scss";
186 </style> 207 </style>
......
...@@ -39,17 +39,7 @@ class data extends filter { ...@@ -39,17 +39,7 @@ class data extends filter {
39 return ( 39 return (
40 <div> 40 <div>
41 {/* <a v-on:click="doSomething"></a> */} 41 {/* <a v-on:click="doSomething"></a> */}
42 <a style='color:#3498db;' v-show={scope.row.djblzt == 1} >正在办理</a> 42 <a style='color:#3498db;' v-show={scope.row.qlblzt == 1} >正在办理</a>
43 <span v-show={scope.row.zjgcdyzt == 1}>,在建工程抵押</span>
44 <span v-show={scope.row.ycfzt == 1}>,已预查封</span>
45 <span v-show={scope.row.ycfzt == 1}>,已预查封</span>
46 <span v-show={scope.row.cfzt == 1}>,已查封</span>
47 <span v-show={scope.row.diyizt == 1}>,已地役</span>
48 <span v-show={scope.row.yyzt == 1}>,异议中</span>
49 <span v-show={scope.row.xzzt == 1}>,已限制</span>
50 <span v-show={scope.row.ygmmzt == 1}>,已预告买卖</span>
51 <span v-show={scope.row.ygdyzt == 1}>,已预告抵押</span>
52 <span v-show={scope.row.dyzt == 1}>,已抵押</span>
53 </div> 43 </div>
54 ) 44 )
55 } 45 }
...@@ -68,6 +58,10 @@ class data extends filter { ...@@ -68,6 +58,10 @@ class data extends filter {
68 label: "查封机关", 58 label: "查封机关",
69 }, 59 },
70 { 60 {
61 prop: "cflxmc",
62 label: "查封类型",
63 },
64 {
71 prop: "cfwh", 65 prop: "cfwh",
72 label: "查封文号", 66 label: "查封文号",
73 }, 67 },
......