ba64eba2 by 夏齐

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

1 parent b233bab3
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
39 } 39 }
40 40
41 .xxTable { 41 .xxTable {
42 border-spacing: 1px; 42 //border-spacing: 1px;
43 width: 100%; 43 width: 100%;
44 44
45 tr>th { 45 tr>th {
...@@ -146,4 +146,4 @@ ...@@ -146,4 +146,4 @@
146 margin-left: 2px; 146 margin-left: 2px;
147 } 147 }
148 } 148 }
149 }
...\ No newline at end of file ...\ No newline at end of file
149 }
......
...@@ -355,4 +355,4 @@ export default { ...@@ -355,4 +355,4 @@ export default {
355 /deep/.el-form-item__label { 355 /deep/.el-form-item__label {
356 padding-bottom: 0px; 356 padding-bottom: 0px;
357 } 357 }
358 </style>
...\ No newline at end of file ...\ No newline at end of file
358 </style>
......
...@@ -140,6 +140,15 @@ ...@@ -140,6 +140,15 @@
140 </el-radio-group> 140 </el-radio-group>
141 </el-form-item> 141 </el-form-item>
142 </el-col> 142 </el-col>
143 <el-col :span="5">
144 <el-form-item :class="flag ? 'marginBot0' : ''" label="发证方式:">
145 <el-radio-group v-model="ruleForm.slywxx.fzfs">
146 <el-radio label="1">小证</el-radio>
147 <el-radio label="2">大证</el-radio>
148 </el-radio-group>
149 </el-form-item>
150 </el-col>
151
143 <el-col :span="5" v-show="ruleForm.qlxx&&ruleForm.qlxx.gyfs == '2'"> 152 <el-col :span="5" v-show="ruleForm.qlxx&&ruleForm.qlxx.gyfs == '2'">
144 <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:"> 153 <el-form-item :class="flag ? 'marginBot0' : ''" label="是否分别持证:">
145 <el-radio-group v-model="ruleForm.slywxx.sffbcz"> 154 <el-radio-group v-model="ruleForm.slywxx.sffbcz">
...@@ -195,9 +204,7 @@ export default { ...@@ -195,9 +204,7 @@ export default {
195 if (res.code === 200 && res.result) { 204 if (res.code === 200 && res.result) {
196 this.ruleForm = { 205 this.ruleForm = {
197 ...res.result, 206 ...res.result,
198 ...res.result.zdjbxxdatas,
199 ...res.result.qlxxdatas, 207 ...res.result.qlxxdatas,
200 ...res.result.jsydsyqdatas,
201 } 208 }
202 } 209 }
203 }); 210 });
...@@ -231,8 +238,18 @@ export default { ...@@ -231,8 +238,18 @@ export default {
231 }, 238 },
232 onSubmit () { 239 onSubmit () {
233 saveBatchData(this.ruleForm).then((res) => { 240 saveBatchData(this.ruleForm).then((res) => {
234 if (res.code === 200 && res.result) { 241 if (res.code === 200) {
235 console.log(res); 242 this.$message({
243 showClose: true,
244 message: "保存成功!",
245 type: "success",
246 });
247 } else {
248 this.$message({
249 showClose: true,
250 message: res.message,
251 type: "error",
252 });
236 } 253 }
237 }); 254 });
238 }, 255 },
......
...@@ -249,10 +249,18 @@ export default { ...@@ -249,10 +249,18 @@ export default {
249 }, 249 },
250 onSubmit () { 250 onSubmit () {
251 saveData(this.ruleForm).then((res) => { 251 saveData(this.ruleForm).then((res) => {
252 console.log(this.ruleForm); 252 if (res.code === 200) {
253 if (res.code === 200 && res.result) { 253 this.$message({
254 console.log(res); 254 showClose: true,
255 //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } 255 message: "保存成功!",
256 type: "success",
257 });
258 } else {
259 this.$message({
260 showClose: true,
261 message: res.message,
262 type: "error",
263 });
256 } 264 }
257 }); 265 });
258 }, 266 },
......
...@@ -253,24 +253,12 @@ export default { ...@@ -253,24 +253,12 @@ export default {
253 }, 253 },
254 methods: { 254 methods: {
255 onClick(){ 255 onClick(){
256 this.$popup({ 256 this.$popup("房屋信息比对","ywbl/fdcq2/slxxCompareDetai",
257 titleStyle: "left", 257 {
258 title: "登记簿详情", // 弹窗标题 258 formData: {
259 editItem: "ywbl/fdcq2/slxxCompareDetai", // 弹窗内容 259 bsmSldy: this.propsParam.bsmSldy,
260 formData: { 260 qllx: this.propsParam.qllx
261 bsmSldy: this.propsParam.bsmSldy, 261 }
262 qllx: this.propsParam.qllx
263 },
264 width: "1220px",
265 height: "790px",
266 // cancelText: '取消摆烂', // 右边按钮文本
267 // confirmText: '确定点击', //左边按钮文本
268 cancel: () => {
269 console.log("取消回调");
270 },
271 confirm: () => {
272 console.log("确认回调");
273 },
274 }); 262 });
275 }, 263 },
276 // 更新权利人信息 264 // 更新权利人信息
...@@ -284,9 +272,18 @@ export default { ...@@ -284,9 +272,18 @@ export default {
284 272
285 onSubmit () { 273 onSubmit () {
286 saveGZBatchData(this.ruleForm).then((res) => { 274 saveGZBatchData(this.ruleForm).then((res) => {
287 if (res.code === 200 && res.result) { 275 if (res.code === 200) {
288 console.log(res); 276 this.$message({
289 //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } 277 showClose: true,
278 message: "保存成功!",
279 type: "success",
280 });
281 } else {
282 this.$message({
283 showClose: true,
284 message: res.message,
285 type: "error",
286 });
290 } 287 }
291 }); 288 });
292 }, 289 },
......
...@@ -266,9 +266,18 @@ export default { ...@@ -266,9 +266,18 @@ export default {
266 }, 266 },
267 onSubmit () { 267 onSubmit () {
268 saveLogoutData(this.ruleForm).then((res) => { 268 saveLogoutData(this.ruleForm).then((res) => {
269 if (res.code === 200 && res.result) { 269 if (res.code === 200) {
270 console.log(res); 270 this.$message({
271 //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } 271 showClose: true,
272 message: "保存成功!",
273 type: "success",
274 });
275 } else {
276 this.$message({
277 showClose: true,
278 message: res.message,
279 type: "error",
280 });
272 } 281 }
273 }); 282 });
274 }, 283 },
......
...@@ -228,26 +228,20 @@ export default { ...@@ -228,26 +228,20 @@ export default {
228 upDateYwrxxList (val) { 228 upDateYwrxxList (val) {
229 this.ruleForm.ywrList = _.cloneDeep(val); 229 this.ruleForm.ywrList = _.cloneDeep(val);
230 }, 230 },
231 list (bsmSldy) {
232 var formdata = new FormData();
233 formdata.append("bsmSldy", bsmSldy);
234 Init(formdata).then((res) => {
235 if (res.code === 200 && res.result) {
236 this.ruleForm = {
237 ...res.result,
238 ...res.result.zdjbxxdatas,
239 ...res.result.qlxxdatas,
240 ...res.result.jsydsyqdatas,
241 };
242 }
243 });
244 },
245 onSubmit () { 231 onSubmit () {
246 saveBHZData(this.ruleForm).then((res) => { 232 saveBHZData(this.ruleForm).then((res) => {
247 console.log(this.ruleForm); 233 if (res.code === 200) {
248 if (res.code === 200 && res.result) { 234 this.$message({
249 console.log(res); 235 showClose: true,
250 //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } 236 message: "保存成功!",
237 type: "success",
238 });
239 } else {
240 this.$message({
241 showClose: true,
242 message: res.message,
243 type: "error",
244 });
251 } 245 }
252 }); 246 });
253 }, 247 },
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
44 <script> 44 <script>
45 import {getFdcqLSInfo} from "@/api/registerBook.js"; 45 import {getFdcqLSInfo} from "@/api/registerBook.js";
46 import { datas } from "@/views/registerBook/qlxxFormData.js"; 46 import { datas } from "@/views/registerBook/qlxxFormData.js";
47
47 export default { 48 export default {
48 data() { 49 data() {
49 return { 50 return {
...@@ -73,7 +74,6 @@ export default { ...@@ -73,7 +74,6 @@ export default {
73 }, 74 },
74 methods: { 75 methods: {
75 loadData() { 76 loadData() {
76 console.log(this.propsParam.formData);
77 var formdata = new FormData(); 77 var formdata = new FormData();
78 formdata.append("bsmSldy", this.propsParam.formData.bsmSldy); 78 formdata.append("bsmSldy", this.propsParam.formData.bsmSldy);
79 formdata.append("qllx", this.propsParam.formData.qllx); 79 formdata.append("qllx", this.propsParam.formData.qllx);
......