cc30c538 by renchao@pashanhoo.com

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

2 parents 2607c825 752af11f
1 /*
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-05-17 10:31:23
5 */
6 import request from '@/utils/request'
7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
8
9 // 初始化内容
10 export function Init (data) {
11 let apiUrl = "";
12 switch (data.get("djlx")) {
13 case "100":
14 apiUrl = "/rest/ywbl/tdsyq/fristInit";
15 break;
16 case "200":
17 apiUrl = "/rest/ywbl/tdsyq/transferInit";
18 break;
19 case "300":
20 apiUrl = "/rest/ywbl/tdsyq/changeInit";
21 break;
22 case "400":
23 apiUrl = "/rest/ywbl/tdsyq/logoutInit";
24 break;
25 case "500":
26 apiUrl = "/rest/ywbl/tdsyq/riviseInit";
27 break;
28 case "901":
29 apiUrl = "/rest/ywbl/tdsyq/renewalInit";
30 break;
31 case "902":
32 apiUrl = "/rest/ywbl/tdsyq/replaceInit";
33 break;
34 }
35 return request({
36 url: SERVER.SERVERAPI + apiUrl,
37 method: 'post',
38 data
39 })
40 }
41 /**
42 * @description: 受理信息保存
43 * @param {*} data
44 * @author: renchao
45 */
46 export function saveData (data) {
47 return request({
48 url: SERVER.SERVERAPI + '/rest/ywbl/tdsyq/saveData',
49 method: 'post',
50 data
51 })
52 }
53
54 /**
55 * @description: 流程图
56 * @param {*} bsmSlsq
57 * @param {*} bestepid
58 * @author: renchao
59 */
60 export function getWorkFlowImage (bsmSlsq, bestepid) {
61 return request({
62 url: SERVER.SERVERAPI + '/rest/business/workFlow/getWorkFlowImage',
63 method: 'get',
64 params: {
65 bsmSlsq: bsmSlsq,
66 bestepid: bestepid
67 }
68 })
69 }
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
7 export function getForm (tabName, djywbm) { 7 export function getForm (tabName, djywbm) {
8 let form; 8 let form;
9 switch (tabName) { 9 switch (tabName) {
10 case "tdsyqslxx":
11 form = require("@/views/ywbl/slsqxx/tdsyq/slxx.vue");
12 break;
10 case "jsydsyqslxx100": 13 case "jsydsyqslxx100":
11 form = require("@/views/ywbl/slsqxx/jsydsyq/slxx.vue"); 14 form = require("@/views/ywbl/slsqxx/jsydsyq/slxx.vue");
12 break; 15 break;
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-05-25 08:59:02
5 -->
6 <template>
7 <!-- 受理信息 -->
8 <div class="slxx">
9 <el-form :model="ruleForm" :rules="rules" class="loadingtext" ref="ruleForm" :label-position="flag ? 'top' : ''"
10 :inline="flag" label-width="120px">
11 <div class="slxx_con" v-if="isShow" :class="flag ? 'formMarginBot0' : ''">
12 <div class="slxx_title title-block">
13 受理信息
14 <div class="triangle"></div>
15 </div>
16 <el-row :gutter="10">
17 <el-col :span="8">
18 <el-form-item label="业务号:">
19 <el-input disabled v-model="ruleForm.flow.ywh"></el-input>
20 </el-form-item>
21 </el-col>
22 <el-col :span="8">
23 <el-form-item label="受理人员:">
24 <el-input disabled v-model="ruleForm.slsq1.slry"></el-input>
25 </el-form-item>
26 </el-col>
27 <el-col :span="8">
28 <el-form-item label="受理时间:">
29 <el-input disabled v-model="ruleForm.slsq1.slsj"></el-input>
30 </el-form-item>
31 </el-col>
32 </el-row>
33 <el-row :gutter="10">
34 <el-col :span="8">
35 <el-form-item label="权利类型:">
36 <el-input disabled v-model="ruleForm.sldy.qllxmc"></el-input>
37 </el-form-item>
38 </el-col>
39 <el-col :span="8">
40 <el-form-item label="登记类型:">
41 <el-input disabled v-model="ruleForm.sldy.djlxmc"></el-input>
42 </el-form-item>
43 </el-col>
44 <el-col :span="8">
45 <el-form-item label="登记情形:">
46 <el-input disabled v-model="ruleForm.slsq1.djqxmc"></el-input>
47 </el-form-item>
48 </el-col>
49 </el-row>
50 <div class="slxx_title title-block">
51 不动产单元情况
52 <div class="triangle"></div>
53 </div>
54 <el-row :gutter="10">
55 <el-col :span="8">
56 <el-form-item label="宗地代码:">
57 <el-input disabled v-model="ruleForm.zdjbxx.zddm"></el-input>
58 </el-form-item>
59 </el-col>
60 <el-col :span="8">
61 <el-form-item label="不动产单元号:">
62 <el-input disabled v-model="ruleForm.zdjbxx.bdcdyh"></el-input>
63 </el-form-item>
64 </el-col>
65 <el-col :span="8">
66 <el-form-item label="权利性质:">
67 <el-input disabled v-model="ruleForm.zdjbxx.qlxzmc"></el-input>
68 </el-form-item>
69 </el-col>
70 </el-row>
71 <el-row :gutter="10">
72 <el-col :span="8">
73 <el-form-item label="宗地面积:">
74 <el-input disabled v-model="ruleForm.zdjbxx.zdmj"></el-input>
75 </el-form-item>
76 </el-col>
77 <el-col :span="8">
78 <el-form-item label="土地用途:">
79 <el-input disabled v-model="ruleForm.zdjbxx.ghytmc"></el-input>
80 </el-form-item>
81 </el-col>
82 <el-col :span="8">
83 <el-form-item label="权利设定方式:">
84 <el-input disabled v-model="ruleForm.zdjbxx.qlsdfsmc"></el-input>
85 </el-form-item>
86 </el-col>
87 </el-row>
88 <el-row :gutter="10">
89 <el-col :span="8">
90 <el-form-item label="取得价格:">
91 <div style="display:flex">
92 <el-input v-model="ruleForm.jsydsyq.qdjg" style="width:500%" :disabled="$route.query.viewtype == '1'"
93 oninput="value=value.replace(/[^\d.]/g,'')"></el-input>
94 <el-select v-model="ruleForm.jsydsyq.jedw" :disabled="$route.query.viewtype == '1'">
95 <el-option v-for="item in dictData['A57']" :key="item.dcode" :label="item.dname" :value="item.dcode">
96 </el-option>
97 </el-select>
98 </div>
99 </el-form-item>
100 </el-col>
101
102 <el-col :span="16">
103 <el-form-item label="坐落:">
104 <el-input disabled v-model="ruleForm.zdjbxx.zl"></el-input>
105 </el-form-item>
106 </el-col>
107 </el-row>
108 <!-- <el-row :gutter="10">
109 <el-col :span="8">
110 <el-form-item label="使用期限:">
111 <el-input disabled v-model="ruleForm.jsydsyq.tdsyqx"></el-input>
112 </el-form-item>
113 </el-col>
114
115 <el-col :span="16">
116 <el-form-item label="使用权起止时间:">
117 <el-input disabled v-model="ruleForm.jsydsyq.syqqzsj"></el-input>
118 </el-form-item>
119 </el-col>
120 </el-row> -->
121 <!-- <el-row :gutter="10">
122 <el-col>
123 <el-form-item label="附记:" prop="fj">
124 <el-input type="textarea" v-model="ruleForm.jsydsyq.fj" :disabled="$route.query.viewtype == '1'"></el-input>
125 </el-form-item>
126 </el-col>
127 </el-row> -->
128 <div class="slxx_title title-block">
129 权利人信息
130 <div class="triangle"></div>
131 </div>
132 <el-row :gutter="10">
133 <el-col :span="12">
134 <el-form-item label="共有方式:">
135 <el-radio-group :disabled="$route.query.viewtype == 0" v-model="ruleForm.sldy.gyfs">
136 <el-radio label="0">单独所有</el-radio>
137 <el-radio label="1">共同共有</el-radio>
138 <el-radio label="2">按份所有</el-radio>
139 <el-radio label="3">其它共有</el-radio>
140 </el-radio-group>
141 </el-form-item>
142 </el-col>
143 <el-col :span="6" v-show="ruleForm.sldy.gyfs == '1'">
144 <el-form-item label="是否分别持证:">
145 <el-radio-group v-model="ruleForm.sldy.sqfbcz">
146 <el-radio :label=1></el-radio>
147 <el-radio :label=0></el-radio>
148 </el-radio-group>
149 </el-form-item>
150 </el-col>
151 <el-col :span="6" v-show="ruleForm.sldy.sqfbcz == '0'&&ruleForm.sldy.gyfs == '1'">
152 <el-form-item label="持证人:">
153 <el-select v-model="ruleForm.czr" placeholder="持证人">
154 <el-option v-for="item in czrOptions" :key="item.zjh" :label="item.sqrmc" :value="item.zjh">
155 </el-option>
156 </el-select>
157 </el-form-item>
158 </el-col>
159 </el-row>
160 <qlrCommonTable :tableData="ruleForm.qlrList" @upDateQlrxxList="upDateQlrxxList" :key="key"
161 :viewtype="$route.query.viewtype" :gyfs="ruleForm.sldy.gyfs" />
162
163 <div v-if="ruleForm.ywrList && ruleForm.ywrList.length > 0">
164 <div class="slxx_title title-block">
165 义务人信息
166 <div class="triangle"></div>
167 </div>
168 <qlrCommonTable v-if="ruleForm.ywrList" :tableData="ruleForm.ywrList" :key="key" @upDateQlrxxList="upDateYwrxxList"
169 :viewtype="$route.query.viewtype" />
170 </div>
171
172 <div class="slxx_title title-block">
173 登记原因
174 <div class="triangle"></div>
175 </div>
176 <el-row :gutter="10">
177 <el-col>
178 <el-form-item label="登记原因:" prop="djyy">
179 <el-input class="textArea" type="textarea" :disabled="$route.query.viewtype"
180 v-model="ruleForm.jsydsyq.djyy">
181 </el-input>
182 </el-form-item>
183 </el-col>
184 </el-row>
185 </div>
186 <el-row class="btn" v-if="!$route.query.viewtype && ableOperation">
187 <el-form-item>
188 <el-button type="primary" @click="onSubmit">保存</el-button>
189 </el-form-item>
190 </el-row>
191 </el-form>
192 </div>
193 </template>
194 <script>
195 import { mapGetters } from "vuex"
196 import { Init, saveData } from "@/api/workflow/tdsyqFlow.js"
197 import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"
198 export default {
199 mounted () {
200 this.ableOperation = this.$parent.currentSelectTab.ableOperation
201 this.propsParam = this.$attrs;
202 var formdata = new FormData();
203 let that = this
204 this.$startLoading();
205 formdata.append("bsmSldy", this.propsParam.bsmSldy);
206 formdata.append("djlx", this.propsParam.djlx);
207 formdata.append("isEdit", this.ableOperation);
208 Init(formdata).then((res) => {
209 this.$nextTick(() => {
210 that.ruleForm = res.result;
211 that.$endLoading();
212 that.isShow = true;
213 this.czrOptions = this.ruleForm.qlrList;
214 })
215 })
216 },
217 components: { qlrCommonTable },
218 computed: {
219 ...mapGetters(["dictData", "flag"])
220 },
221 data () {
222 return {
223 //表单是否可操作
224 ableOperation: true,
225 key: 0,
226 isShow: false,
227 disabled: true,
228 czrOptions: [],
229 ruleForm: {},
230 //传递参数
231 propsParam: {},
232 rules: {}
233 }
234 },
235 methods: {
236 // 更新权利人信息
237 upDateQlrxxList (val) {
238 this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val))
239 this.czrOptions = this.ruleForm.qlrList;
240 this.key++
241 },
242 // 更新义务人信息
243 upDateYwrxxList (val) {
244 this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val))
245 this.key++
246 },
247 onSubmit () {
248 if (this.ruleForm.qlrList.length == 0) {
249 this.$message({
250 showClose: true,
251 message: "请确认权利人信息",
252 type: "error",
253 });
254 return false;
255 }
256
257 if (this.ruleForm.sldy.gyfs == "0") {
258 if (this.ruleForm.qlrList.length > 1) {
259 this.$message({
260 showClose: true,
261 message: "共有方式:单独所有,权利人只能是一个人",
262 type: "error",
263 });
264 return false;
265 }
266 this.ruleForm.qlrList[0].sfczr = "1";
267 }
268 if (this.ruleForm.sldy.gyfs == "1") {
269 //是否分别持证
270 if (this.ruleForm.sldy.sqfbcz == '1') { //是
271 this.ruleForm.qlrList.forEach((item, index) => {
272 item.sfczr = "1"
273 });
274 } else {
275 this.ruleForm.qlrList.forEach((item, index) => {
276 if (item.zjh == this.ruleForm.czr) {
277 item.sfczr = "1"
278 } else {
279 item.sfczr = "0"
280 }
281 })
282 }
283 }
284 saveData(this.ruleForm).then((res) => {
285 if (res.code === 200) {
286 this.$message({
287 showClose: true,
288 message: "保存成功!",
289 type: "success"
290 })
291 this.$store.dispatch('user/refreshPage', true);
292 } else {
293 this.$message({
294 showClose: true,
295 message: res.message,
296 type: "error"
297 })
298 }
299 })
300 }
301 }
302 }
303 </script>
304 <style scoped lang='scss'>
305 @import "~@/styles/public.scss";
306 @import "~@/styles/slxx/slxx.scss";
307 </style>
...\ No newline at end of file ...\ No newline at end of file
...@@ -8,6 +8,8 @@ export function queueDjywmc(djywbm, djqxbm) { ...@@ -8,6 +8,8 @@ export function queueDjywmc(djywbm, djqxbm) {
8 } 8 }
9 let vm = null; 9 let vm = null;
10 switch (djywbm) { 10 switch (djywbm) {
11 case "A01100"://国有土地所有权(首次登记)
12 case "A02100"://集体土地所有权(首次登记)
11 case "A03100"://建设用地使用权(首次登记) 13 case "A03100"://建设用地使用权(首次登记)
12 case "A05100"://宅基地使用权(首次登记) 14 case "A05100"://宅基地使用权(首次登记)
13 case "A07100"://集体建设用地使用权(首次登记) 15 case "A07100"://集体建设用地使用权(首次登记)
......