415da832 by 夏齐

首次登记和注销登记代码优化

1 parent e536423d
1 import request from '@/utils/request'
2 import SERVER from '../config'
3 // 初始化内容
4 export function Init (data) {
5 let apiUrl = "";
6 switch (data.get("djlx")) {
7 case "100":
8 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdy/fristInit";
9 break;
10 case "200":
11 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdy/transferInit";
12 break;
13 case "300":
14 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdy/changeInit";
15 break;
16 case "400":
17 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdy/logoutInit";
18 break;
19 case "500":
20 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdy/riviseInit";
21 break;
22 case "901":
23 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdy/renewalInit";
24 break;
25 case "902":
26 apiUrl = SERVER.SERVERAPI + "/rest/ywbl/ygdy/replaceInit";
27 break;
28 }
29 return request({
30 url: apiUrl,
31 method: 'post',
32 data
33 })
34 }
35 // 初始化内容
36 export function saveData (data) {
37 return request({
38 url: SERVER.SERVERAPI + '/rest/ywbl/ygdy/saveData',
39 method: 'post',
40 data
41 })
42 }
43
44
...@@ -267,3 +267,15 @@ export function selectYgdj200 (data) { ...@@ -267,3 +267,15 @@ export function selectYgdj200 (data) {
267 data 267 data
268 }) 268 })
269 } 269 }
270 /**
271 * 业务办理-预告抵押登记-选择权利信息-根据条件进行列表查询
272 * @param data
273 * @returns {*}
274 */
275 export function selectYgdy (data) {
276 return request({
277 url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectYgdy',
278 method: 'post',
279 data
280 })
281 }
......
...@@ -718,7 +718,7 @@ class data extends filter { ...@@ -718,7 +718,7 @@ class data extends filter {
718 label: "登记原因", 718 label: "登记原因",
719 }, 719 },
720 { 720 {
721 prop: "bdbzzqse", 721 prop: "qdjg",
722 label: "取得价格/被担保主债权数额", 722 label: "取得价格/被担保主债权数额",
723 }, 723 },
724 { 724 {
......
...@@ -51,6 +51,10 @@ export function getForm (tabName, djywbm) { ...@@ -51,6 +51,10 @@ export function getForm (tabName, djywbm) {
51 case "ygmm300": 51 case "ygmm300":
52 form = require("@/views/ywbl/ygdj/slxx300.vue"); 52 form = require("@/views/ywbl/ygdj/slxx300.vue");
53 break; 53 break;
54 case "ygdy100":
55 case "ygdy300":
56 form = require("@/views/ywbl/ygdy/slxx.vue");
57 break;
54 case "cfdjxx": 58 case "cfdjxx":
55 form = require("@/views/registerBook/cfdj.vue"); 59 form = require("@/views/registerBook/cfdj.vue");
56 break; 60 break;
......
1 <template>
2 <!-- 主体权利信息查询 -->
3 <div class="from-clues">
4 <!-- 表单部分 -->
5 <div class="from-clues-header">
6 <el-form :model="queryForm" ref="queryForm" label-width="100px">
7 <el-row>
8 <el-col :span="8">
9 <el-form-item label="不动产权证号">
10 <el-input
11 placeholder="请输入不动产权证号"
12 v-model="queryForm.bdcqzh"
13 clearable
14 class="width200px"
15 >
16 </el-input>
17 </el-form-item>
18 </el-col>
19 <el-col :span="8">
20 <el-form-item label="不动产单元号">
21 <el-input
22 placeholder="请输入不动产单元号"
23 v-model="queryForm.bdcdyh"
24 clearable
25 class="width200px"
26 >
27 </el-input>
28 </el-form-item>
29 </el-col>
30 <el-col :span="6">
31 <el-form-item label="坐落">
32 <el-input
33 placeholder=""
34 v-model="queryForm.zl"
35 clearable
36 class="width200px"
37 >
38 </el-input>
39 </el-form-item>
40 </el-col>
41 <el-col :span="2" class="btnColRight">
42 <el-form-item>
43 <el-button type="primary" @click="fetchData()">查询</el-button>
44 </el-form-item>
45 </el-col>
46 </el-row>
47 </el-form>
48 </div>
49 <!-- 表格 -->
50 <div class="from-clues-content">
51 <lb-table
52 ref="table"
53 @row-click="handleRowClick"
54 :page-size="pageData.pageSize"
55 :heightNum="400"
56 :current-page.sync="pageData.currentPage"
57 :total="tableData.total"
58 @size-change="handleSizeChange"
59 @p-current-change="handleCurrentChange"
60 @selection-change="handleSelectionChange"
61 :column="tableData.columns"
62 :data="tableData.data"
63 >
64 </lb-table>
65 </div>
66 <div class="submit_button">
67 <el-button @click="closeDialog">取消</el-button>
68 <el-button type="primary" plain @click="submitForm">发起申请</el-button>
69 </div>
70 </div>
71 </template>
72 <script>
73 import { datas, sendThis } from "../javascript/selectYgdy.js";
74 import { defaultParameters } from "../javascript/publicDefaultPar.js";
75 import table from "@/utils/mixin/table";
76 import jump from "./mixin/jump";
77 import { selectYgdy, startBusinessFlow } from "@/api/ywbl.js";
78 export default {
79 mixins: [table, jump],
80 props: {
81 isJump: { type: Boolean, default: false },
82 sqywInfo: { type: Object, default: () => {} },
83 },
84 data() {
85 return {
86 queryForm: defaultParameters.defaultParameters(),
87 tableData: {
88 total: 0,
89 columns: datas.columns(),
90 data: [],
91 },
92 bdcdysz: [],
93 };
94 },
95 mounted() {
96 sendThis(this);
97 },
98 methods: {
99 //点击行选中或取消复选框
100 handleRowClick(row, column, event) {
101 //通过ref绑定后这里使用$refs.table来操作bom元素
102 this.$refs.table.toggleRowSelection(row);
103 },
104 closeDialog() {
105 this.$emit("closeDialog");
106 },
107 fetchData() {
108 this.queryForm.sqywbm = this.sqywInfo.djywbm;
109 selectYgdy({ ...this.queryForm, ...this.pageData }).then((res) => {
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 startBusinessFlow({
123 bsmSqyw: this.sqywInfo.bsmSqyw,
124 bdcdysz: this.bdcdysz,
125 djqxbm: this.sqywInfo.nodetype=="djqx"?this.sqywInfo.nodecode:"",
126 djqxmc: this.sqywInfo.nodetype=="djqx"?this.sqywInfo.nodename:"",
127 }).then((res) => {
128 if (res.code == 200) {
129 this.$message({
130 showClose: true,
131 message: '发起申请成功',
132 type: 'success'
133 })
134 if (!this.isJump) {
135 this.jump(res.result, this.sqywInfo.djywbm)
136 } else {
137 this.$emit('updateDialog', true)
138 }
139 } else {
140 this.$message.error(res.message);
141 }
142 });
143 },
144 handleSelectionChange(val) {
145 val.forEach((item, index) => {
146 item.bsmSsql = item.bsmQlxx;
147 item.ybdcqzsh = item.bdcqzh;
148 });
149 this.bdcdysz = val;
150 },
151 },
152 };
153 </script>
154 <style scoped lang="scss">
155 @import "~@/styles/mixin.scss";
156 @import "~@/styles/public.scss";
157 </style>
1 import filter from '@/utils/filter.js'
2 let vm = null
3
4 const sendThis = (_this) => {
5 vm = _this
6 }
7 class data extends filter {
8 constructor() {
9 super()
10 }
11 columns () {
12 return [
13 {
14 type: 'selection',
15 label: '全选'
16 },
17 {
18 label: '序号',
19 type: 'index',
20 width: '50',
21 render: (h, scope) => {
22 return (
23 <div>
24 {(vm.pageData.currentPage - 1) * vm.pageData.pageSize + scope.$index + 1}
25 </div>
26 )
27 }
28 },
29 {
30 prop: "status",
31 label: "状态",
32 render: (h, scope) => {
33 return (
34 <div>
35 {/* <a v-on:click="doSomething"></a> */}
36 <a style='color:#3498db;' v-show={scope.row.djblzt == 1} >正在办理</a>
37 <span v-show={scope.row.zjgcdyzt == 1}>,在建工程抵押</span>
38 <span v-show={scope.row.ycfzt == 1}>,已预查封</span>
39 <span v-show={scope.row.ycfzt == 1}>,已预查封</span>
40 <span v-show={scope.row.cfzt == 1}>,已查封</span>
41 <span v-show={scope.row.diyizt == 1}>,已地役</span>
42 <span v-show={scope.row.yyzt == 1}>,异议中</span>
43 <span v-show={scope.row.xzzt == 1}>,已限制</span>
44 <span v-show={scope.row.ygmmzt == 1}>,已预告买卖</span>
45 <span v-show={scope.row.ygdyzt == 1}>,已预告抵押</span>
46 <span v-show={scope.row.dyzt == 1}>,已抵押</span>
47 </div>
48 )
49 }
50 },
51 {
52 prop: "bdcqzh",
53 label: "不动产证明号",
54 },
55 {
56 prop: "bdcdyh",
57 label: "不动产单元号",
58 },
59 {
60 prop: "dyfs",
61 label: "抵押方式",
62 render: (h, scope) => {
63 switch (scope.row.dyfs) {
64 case '1':
65 return <span>一般抵押</span>
66 case '2':
67 return <span>最高额抵押</span>
68 }
69 }
70 },
71 {
72 prop: "qlrmc",
73 label: "抵押权人",
74 },
75 {
76 prop: "qlrzjhm",
77 label: "抵押权人证件号",
78 },
79 {
80 prop: "ywrmc",
81 label: "抵押人",
82 },
83 {
84 prop: "ywrzjhm",
85 label: "抵押人证件号",
86 },
87 {
88 prop: "dyje",
89 label: "抵押金额(万元)",
90 },
91 {
92 prop: "dymj",
93 label: "抵押面积",
94 },
95 {
96 prop: "dyqx",
97 label: "债务履行期限",
98 },
99 {
100 prop: "zl",
101 label: "坐落",
102 }
103 ]
104 }
105
106
107 }
108 let datas = new data()
109 export {
110 datas,
111 sendThis
112 }
...@@ -54,8 +54,14 @@ export function queueDjywmc(djywbm) { ...@@ -54,8 +54,14 @@ export function queueDjywmc(djywbm) {
54 case "B40200"://预告转移 54 case "B40200"://预告转移
55 case "B40300"://预告变更 55 case "B40300"://预告变更
56 case "B40400"://预告注销 56 case "B40400"://预告注销
57 case "B41100": //预告抵押首次
57 vm ="selectYgdj200"; 58 vm ="selectYgdj200";
58 break; 59 break;
60 case "B41200": //预告抵押转移
61 case "B41300": //预告抵押变更
62 case "B41400": //预告抵押注销
63 vm ="selectYgdy";
64 break;
59 default: 65 default:
60 vm = "selecBdcql"; 66 vm = "selecBdcql";
61 break; 67 break;
......