From 63947b70ce769db54c768e2cd08e3ee2c44e617c Mon Sep 17 00:00:00 2001
From: xy <271556543@qq.com>
Date: Tue, 19 Sep 2023 17:33:21 +0800
Subject: [PATCH] 2023-9-19
---
src/views/assets/component/addHistory.vue | 2 +-
src/views/assets/history.vue | 109 ++++++++++++++++++++++
src/views/assets/house.vue | 51 +++++++---
src/views/assets/land.vue | 91 ++++++++++++++----
4 files changed, 222 insertions(+), 31 deletions(-)
create mode 100644 src/views/assets/history.vue
diff --git a/src/views/assets/component/addHistory.vue b/src/views/assets/component/addHistory.vue
index db722eb..71937a3 100644
--- a/src/views/assets/component/addHistory.vue
+++ b/src/views/assets/component/addHistory.vue
@@ -85,7 +85,7 @@ export default {
},
async getDetail() {
- const res = await show({ id: this.row.id_his_evolutions_house_id_relation?.id || this.row.id_his_evolutions_land_id_relation?.id, table_name: 'his_evolutions' });
+ const res = await show({ id: this.id, table_name: 'his_evolutions' });
this.$integrateData(this.form, res);
this.formInfo.forEach((i) => {
diff --git a/src/views/assets/history.vue b/src/views/assets/history.vue
new file mode 100644
index 0000000..ae14484
--- /dev/null
+++ b/src/views/assets/history.vue
@@ -0,0 +1,109 @@
+
+
+
+
+ {
+ $refs['addHistory'].setId(row1.id),
+ $refs['addHistory'].setType('editor');
+ $refs['addHistory'].setRow(row);
+ $refs['addHistory'].show();
+ }
+ "
+ >
+
+
+
+
+
+
+
+
+
diff --git a/src/views/assets/house.vue b/src/views/assets/house.vue
index 8938a4f..04d7f78 100644
--- a/src/views/assets/house.vue
+++ b/src/views/assets/house.vue
@@ -290,10 +290,7 @@
"
>
-
@@ -610,13 +607,41 @@ export default {
"wuyedanwei",
];
switch (i.field) {
+ case "bufuqingkuang":
+ this.table.push({
+ label: i.name,
+ width: i.width,
+ customFn: (row) => {
+ return (
+
+ {row.tudiquanshuren !== row.quanliren ||
+ row.dengjimianji !== row.shijimianji ? (
+
+
+ {row.tudiquanshuren !== row.quanliren
+ ? "权利人名称不符"
+ : ""}
+
+
+ {row.dengjimianji !== row.shijimianji
+ ? "登记面积不符"
+ : ""}
+
+
+ ) : (
+
无
+ )}
+
+ );
+ },
+ });
+ break;
case "bufuyuanyin":
this.table.push({
prop: i.field,
label: i.name,
width: i.width,
- align: alignLeft.find((m) => m === i.field) ? "left" : "center",
- fixed: i.is_fixed,
+ align: "center",
customFn: (row) => {
return (
+
@@ -323,7 +324,8 @@ import { listdept } from "@/api/system/department"
import add from "./component/addLand.vue";
import LxHeader from "@/components/LxHeader/index.vue";
import headerContent from "@/components/LxHeader/XyContent.vue";
-import addHistory from '@/views/assets/component/addHistory.vue'
+import addHistory from '@/views/assets/component/addHistory.vue';
+import history from '@/views/assets/history.vue';
// import drawer from "@/views/component/drawer.vue";
// import imports from "./imports.vue";
// import atlas from "@/views/assets/atlas.vue";
@@ -335,6 +337,7 @@ export default {
LxHeader,
add,
headerContent,
+ history
// drawer,
// imports,
@@ -585,6 +588,46 @@ export default {
let alignLeft = ['dikuaimingcheng','chengjiandanwei','jianshedanwei','wuyedanwei']
switch (i.field) {
+ case "fangchanzhuangtai":
+ this.table.push({
+ label: i.name,
+ width: i.width,
+ customFn:row => {
+ return (
+ { row.id_house_properties_land_id_relation?.land_id === row.id ? '房地权属合一' : '房地权属分离' }
+ )
+ }
+ })
+ break;
+ case "bufuqingkuang":
+ this.table.push({
+ label: i.name,
+ width: i.width,
+ customFn: (row) => {
+ return (
+
+ {row.tudiquanshuren !== row.quanliren ||
+ row.dengjimianji !== row.shijimianji ? (
+
+
+ {row.tudiquanshuren !== row.quanliren
+ ? "权利人名称不符"
+ : ""}
+
+
+ {row.dengjimianji !== row.shijimianji
+ ? "登记面积不符"
+ : ""}
+
+
+ ) : (
+
无
+ )}
+
+ );
+ },
+ });
+ break;
case "bufuyuanyin":
this.table.push({
prop: i.field,
@@ -594,17 +637,27 @@ export default {
fixed: i.is_fixed,
customFn: (row) => {
return (
- {
- this.$refs["addHistory"].setRow(row);
- this.$refs["addHistory"].setType("show");
- this.$refs["addHistory"].show();
- },
- }}
- >
- 查看
-
+
+
+
+
+
+
+
+
+ 查看
+
+ // {
+ // this.$refs["addHistory"].setRow(row);
+ // this.$refs["addHistory"].setType("show");
+ // this.$refs["addHistory"].show();
+ // },
+ // }}
+ // >
+ // 查看
+ //
);
},
});
@@ -634,12 +687,14 @@ export default {
},
toHistory (row) {
- if (row.id_his_evolutions_land_id_relation?.id) {
- this.$refs['addHistory'].setType('editor')
- this.$refs['addHistory'].setId(row.id_his_evolutions_land_id_relation?.id)
- }
- this.$refs['addHistory'].setRow(row);
- this.$refs['addHistory'].show();
+ this.$refs['history'].setRow(row);
+ this.$refs['history'].show();
+ // if (row.id_his_evolutions_land_id_relation?.id) {
+ // this.$refs['addHistory'].setType('editor')
+ // this.$refs['addHistory'].setId(row.id_his_evolutions_land_id_relation?.id)
+ // }
+ // this.$refs['addHistory'].setRow(row);
+ // this.$refs['addHistory'].show();
}
},