登记簿菜单调整
Showing
14 changed files
with
439 additions
and
124 deletions
src/image/icons/svg/addQlxx.svg
0 → 100644
1 | <svg t="1661331325273" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2167" width="200" height="200"><path d="M521.309091 158.254545a27.927273 27.927273 0 0 1 27.927273 27.927273v586.472727a27.927273 27.927273 0 0 1-27.927273 27.927273h-372.363636a83.781818 83.781818 0 0 1-83.781819-83.781818V242.036364a83.781818 83.781818 0 0 1 83.781819-83.781819z m400.290909 0a83.781818 83.781818 0 0 1 83.502545 76.893091l0.279273 6.888728v474.763636a83.781818 83.781818 0 0 1-76.893091 83.502545l-6.888727 0.279273h-260.654545a27.927273 27.927273 0 0 1-4.51491-55.482182L660.945455 744.727273h260.654545a27.927273 27.927273 0 0 0 27.554909-23.412364l0.372364-4.514909V242.036364a27.927273 27.927273 0 0 0-23.412364-27.554909L921.6 214.109091h-260.654545a27.927273 27.927273 0 0 1-4.51491-55.482182L660.945455 158.254545h260.654545z m-428.218182 55.854546H148.945455a27.927273 27.927273 0 0 0-27.55491 23.412364L121.018182 242.036364v474.763636a27.927273 27.927273 0 0 0 27.927273 27.927273h344.436363V214.109091z" p-id="2168"></path></svg> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | <!-- | ||
2 | * @Description: | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-05-09 09:20:10 | ||
5 | --> | ||
6 | <template> | ||
7 | <el-dialog | ||
8 | :close-on-click-modal="false" | ||
9 | title="选择权利类型" | ||
10 | class="qllxdialog" | ||
11 | :visible.sync="dialogVisible" | ||
12 | custom-class="insetDialog" | ||
13 | append-to-body | ||
14 | width="20%" | ||
15 | > | ||
16 | <el-select v-model="qllxvalue" placeholder="请选择"> | ||
17 | <el-option | ||
18 | v-for="item in options" | ||
19 | :key="item.value" | ||
20 | :label="item.label" | ||
21 | :value="item.value" | ||
22 | > | ||
23 | </el-option> | ||
24 | </el-select> | ||
25 | <!-- <el-radio-group v-model="radio"> | ||
26 | <el-radio :label="1">111</el-radio> | ||
27 | <el-radio :label="2">111</el-radio> | ||
28 | </el-radio-group> --> | ||
29 | <el-button type="primary" @click="handleSubmit">确定</el-button> | ||
30 | <el-button type="primary" @click="closeDialog">取消</el-button> | ||
31 | </el-dialog> | ||
32 | </template> | ||
33 | |||
34 | <script> | ||
35 | export default { | ||
36 | |||
37 | data () { | ||
38 | return { | ||
39 | dialogVisible:false, | ||
40 | options: [ | ||
41 | { | ||
42 | value: "选项1", | ||
43 | label: "抵押权", | ||
44 | }, | ||
45 | { | ||
46 | value: "选项2", | ||
47 | label: "地役权", | ||
48 | }, | ||
49 | { | ||
50 | value: "选项3", | ||
51 | label: "预告登记", | ||
52 | }, | ||
53 | { | ||
54 | value: "选项4", | ||
55 | label: "异议登记", | ||
56 | }, | ||
57 | { | ||
58 | value: "选项5", | ||
59 | label: "查封登记", | ||
60 | }, | ||
61 | ], | ||
62 | qllxvalue: "", | ||
63 | radio:3, | ||
64 | qllxobj:{ | ||
65 | qllx:"", | ||
66 | bsmQlxx | ||
67 | |||
68 | } | ||
69 | }; | ||
70 | }, | ||
71 | methods: { | ||
72 | closeDialog () { | ||
73 | this.dialogVisible=false | ||
74 | }, | ||
75 | handleSubmit () { | ||
76 | let qllxobj={ | ||
77 | qllx:this.value, | ||
78 | bsmQlxx:this.value | ||
79 | |||
80 | } | ||
81 | // this.$parent.addRepairRecord(qllxobj) | ||
82 | }, | ||
83 | }, | ||
84 | }; | ||
85 | </script> | ||
86 | <style scoped lang="scss"> | ||
87 | .qllxdialog{ | ||
88 | margin-top: 200px; | ||
89 | /deep/.el-dialog__body{ | ||
90 | margin-top: 10px; | ||
91 | height: 100px; | ||
92 | } | ||
93 | .el-button{ | ||
94 | margin-top: 10px; | ||
95 | margin-left: 20px; | ||
96 | } | ||
97 | } | ||
98 | </style> |
... | @@ -56,46 +56,79 @@ export function getForm (tabName, djywbm) { | ... | @@ -56,46 +56,79 @@ export function getForm (tabName, djywbm) { |
56 | // case "zdt": | 56 | // case "zdt": |
57 | // form = require("@/views/djbworkflow/components/zdt.vue"); | 57 | // form = require("@/views/djbworkflow/components/zdt.vue"); |
58 | // break; | 58 | // break; |
59 | // 宗地基本信息 | ||
60 | case "zdjbxx": | 59 | case "zdjbxx": |
61 | form = require("@/views/djbworkflow/djbBook/zdjbxx.vue"); | 60 | form = require("@/views/registerBook/zdjbxx.vue"); |
62 | break; | 61 | break; |
63 | // 查封登记 | ||
64 | case "cfdj": | 62 | case "cfdj": |
65 | form = require("@/views/djbworkflow/djbBook/cfdj.vue"); | 63 | form = require("@/views/registerBook/cfdj.vue"); |
66 | break; | 64 | break; |
67 | // 国有建设用地使用权 | ||
68 | case "jsydsyq": | 65 | case "jsydsyq": |
69 | form = require("@/views/djbworkflow/djbBook/jsydsyq.vue"); | 66 | form = require("@/views/registerBook/jsydsyq.vue"); |
70 | break; | 67 | break; |
71 | // 农用地使用权 | ||
72 | case "nydsyq": | 68 | case "nydsyq": |
73 | form = require("@/views/djbworkflow/djbBook/nydsyq.vue"); | 69 | form = require("@/views/registerBook/nydsyq.vue"); |
74 | break; | 70 | break; |
75 | // 房屋产权2 | ||
76 | case "fdcq2": | 71 | case "fdcq2": |
77 | form = require("@/views/djbworkflow/djbBook/fdcq2.vue"); | 72 | form = require("@/views/registerBook/fdcq2.vue"); |
78 | break; | 73 | break; |
79 | // 抵押权 | ||
80 | case "diyaq": | 74 | case "diyaq": |
81 | form = require("@/views/djbworkflow/djbBook/diyaq.vue"); | 75 | form = require("@/views/registerBook/diyaq.vue"); |
82 | break; | 76 | break; |
83 | // 预告登记 | ||
84 | case "ygdj": | 77 | case "ygdj": |
85 | form = require("@/views/djbworkflow/djbBook/ygdj.vue"); | 78 | form = require("@/views/registerBook/ygdj.vue"); |
86 | break; | 79 | break; |
87 | // 地役权 | 80 | // 地役权 |
88 | case "diyiq": | 81 | case "diyiq": |
89 | form = require("@/views/djbworkflow/djbBook/diyiq.vue"); | 82 | form = require("@/views/registerBook/diyiq.vue"); |
90 | break; | 83 | break; |
91 | // 登记簿封面 | 84 | // 登记簿封面 |
92 | case "djbfm": | 85 | case "djbfm": |
93 | form = require("@/views/djbworkflow/djbBook/djbfm.vue"); | 86 | form = require("@/views/registerBook/djbfm.vue"); |
94 | break; | 87 | break; |
95 | // 异议登记 | 88 | // 异议登记 |
96 | case "yydj": | 89 | case "yydj": |
97 | form = require("@/views/djbworkflow/djbBook/yydj.vue"); | 90 | form = require("@/views/registerBook/yydj.vue"); |
98 | break; | 91 | break; |
92 | // // 宗地基本信息 | ||
93 | // case "zdjbxx": | ||
94 | // form = require("@/views/djbworkflow/djbBook/zdjbxx.vue"); | ||
95 | // break; | ||
96 | // // 查封登记 | ||
97 | // case "cfdj": | ||
98 | // form = require("@/views/djbworkflow/djbBook/cfdj.vue"); | ||
99 | // break; | ||
100 | // // 国有建设用地使用权 | ||
101 | // case "jsydsyq": | ||
102 | // form = require("@/views/djbworkflow/djbBook/jsydsyq.vue"); | ||
103 | // break; | ||
104 | // // 农用地使用权 | ||
105 | // case "nydsyq": | ||
106 | // form = require("@/views/djbworkflow/djbBook/nydsyq.vue"); | ||
107 | // break; | ||
108 | // // 房屋产权2 | ||
109 | // case "fdcq2": | ||
110 | // form = require("@/views/djbworkflow/djbBook/fdcq2.vue"); | ||
111 | // break; | ||
112 | // // 抵押权 | ||
113 | // case "diyaq": | ||
114 | // form = require("@/views/djbworkflow/djbBook/diyaq.vue"); | ||
115 | // break; | ||
116 | // // 预告登记 | ||
117 | // case "ygdj": | ||
118 | // form = require("@/views/djbworkflow/djbBook/ygdj.vue"); | ||
119 | // break; | ||
120 | // // 地役权 | ||
121 | // case "diyiq": | ||
122 | // form = require("@/views/djbworkflow/djbBook/diyiq.vue"); | ||
123 | // break; | ||
124 | // // 登记簿封面 | ||
125 | // case "djbfm": | ||
126 | // form = require("@/views/djbworkflow/djbBook/djbfm.vue"); | ||
127 | // break; | ||
128 | // // 异议登记 | ||
129 | // case "yydj": | ||
130 | // form = require("@/views/djbworkflow/djbBook/yydj.vue"); | ||
131 | // break; | ||
99 | // 受理信息 | 132 | // 受理信息 |
100 | case "slxx": | 133 | case "slxx": |
101 | form = require("@/views/djbworkflow/djbBook/components/blxxtabs/fwsyq/slxx.vue"); | 134 | form = require("@/views/djbworkflow/djbBook/components/blxxtabs/fwsyq/slxx.vue"); | ... | ... |
... | @@ -80,7 +80,7 @@ export default { | ... | @@ -80,7 +80,7 @@ export default { |
80 | break; | 80 | break; |
81 | case "B2": //材料分屏按钮 | 81 | case "B2": //材料分屏按钮 |
82 | this.splitScreen = this.splitScreen ? false : true; | 82 | this.splitScreen = this.splitScreen ? false : true; |
83 | this.$store.dispatch("app/settScreen", this.splitScreen); | 83 | this.$store.dispatch("app/set1tScreen", this.splitScreen); |
84 | if (this.splitScreen) { | 84 | if (this.splitScreen) { |
85 | //如果当前选项卡为材料信息内容,递减到上一个选项卡内容 | 85 | //如果当前选项卡为材料信息内容,递减到上一个选项卡内容 |
86 | if (this.tabName == this.clxxTab.value) { | 86 | if (this.tabName == this.clxxTab.value) { |
... | @@ -100,59 +100,44 @@ export default { | ... | @@ -100,59 +100,44 @@ export default { |
100 | case "B4": | 100 | case "B4": |
101 | this.$popupDialog("登记簿详情", "registerBook/djbFrame", this.currentSelectProps, '80%', true) | 101 | this.$popupDialog("登记簿详情", "registerBook/djbFrame", this.currentSelectProps, '80%', true) |
102 | break; | 102 | break; |
103 | case "B5": | 103 | // case "B5": |
104 | const h = this.$createElement; | 104 | // const h = this.$createElement; |
105 | this.$msgbox({ | 105 | // this.$msgbox({ |
106 | title: '消息', | 106 | // title: '请选择新增权利类型', |
107 | message: h('p', null, [ | 107 | // message: h('p', null, [ |
108 | h('span', null, '内容可以是 '), | 108 | // h('span', null, '内容可以是 '), |
109 | h('i', { style: 'color: teal' }, 'VNode') | 109 | // h('el-button', { style: 'color: teal' }, 'VNode'), |
110 | ]), | 110 | // h('i', { style: 'color: teal' }, 'VNode') |
111 | showCancelButton: true, | 111 | // ]), |
112 | confirmButtonText: '确定', | 112 | // showCancelButton: true, |
113 | cancelButtonText: '取消', | ||
114 | beforeClose: (action, instance, done) => { | ||
115 | if (action === 'confirm') { | ||
116 | instance.confirmButtonLoading = true; | ||
117 | instance.confirmButtonText = '执行中...'; | ||
118 | setTimeout(() => { | ||
119 | done(); | ||
120 | setTimeout(() => { | ||
121 | instance.confirmButtonLoading = false; | ||
122 | }, 300); | ||
123 | }, 3000); | ||
124 | } else { | ||
125 | done(); | ||
126 | } | ||
127 | } | ||
128 | }).then(action => { | ||
129 | this.addRepairRecord() | ||
130 | this.$message({ | ||
131 | type: 'info', | ||
132 | message: 'action: ' + action | ||
133 | }); | ||
134 | }); | ||
135 | // this.$popupDialog("证书预览", "workflow/components/dialog/zsyl", { | ||
136 | // bsmSlsq: this.bsmSlsq, | ||
137 | // entryType: '1' | ||
138 | // }, '65%', true) | ||
139 | // this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | ||
140 | // confirmButtonText: '确定', | 113 | // confirmButtonText: '确定', |
141 | // cancelButtonText: '取消', | 114 | // cancelButtonText: '取消', |
142 | // type: 'warning' | 115 | // beforeClose: (action, instance, done) => { |
143 | // }).then(() => { | 116 | // if (action === 'confirm') { |
117 | // instance.confirmButtonLoading = true; | ||
118 | // instance.confirmButtonText = '执行中...'; | ||
119 | // setTimeout(() => { | ||
120 | // done(); | ||
121 | // setTimeout(() => { | ||
122 | // instance.confirmButtonLoading = false; | ||
123 | // }, 300); | ||
124 | // }, 3000); | ||
125 | // } else { | ||
126 | // done(); | ||
127 | // } | ||
128 | // } | ||
129 | // }).then(action => { | ||
144 | // this.addRepairRecord() | 130 | // this.addRepairRecord() |
145 | // this.$message({ | 131 | // this.$message({ |
146 | // type: 'success', | ||
147 | // message: '补录成功!' | ||
148 | // }); | ||
149 | // }).catch(() => { | ||
150 | // this.$message({ | ||
151 | // type: 'info', | 132 | // type: 'info', |
152 | // message: '取消编辑' | 133 | // message: 'action: ' + action |
153 | // }); | 134 | // }); |
154 | // }); | 135 | // }); |
155 | 136 | ||
137 | // break; | ||
138 | case "B5": | ||
139 | // this.$popupDialog("选择新增权力类型", "djbworkflow/djbBook/components/qllxcloseDailog", this.currentSelectProps, '50%', true) | ||
140 | this.$refs.qllxlist.dialogVisible=true | ||
156 | break; | 141 | break; |
157 | case "B6": | 142 | case "B6": |
158 | //根据编号获取对应信息 | 143 | //根据编号获取对应信息 | ... | ... |
... | @@ -62,6 +62,8 @@ | ... | @@ -62,6 +62,8 @@ |
62 | </div> | 62 | </div> |
63 | </div> | 63 | </div> |
64 | </div> | 64 | </div> |
65 | <!-- 新增补录信息勾选权利类型 --> | ||
66 | <qllxDailog ref="qllxlist"/> | ||
65 | </div> | 67 | </div> |
66 | </template> | 68 | </template> |
67 | <style scoped lang="scss"> | 69 | <style scoped lang="scss"> |
... | @@ -70,18 +72,18 @@ | ... | @@ -70,18 +72,18 @@ |
70 | </style> | 72 | </style> |
71 | <script> | 73 | <script> |
72 | import WorkFlow from "./mixin/index"; | 74 | import WorkFlow from "./mixin/index"; |
73 | import { getForm } from "./flowform" | 75 | import { getForm } from "./flowform"; |
74 | import NoticeBar from "@/components/NoticeBar/index"; | 76 | import NoticeBar from "@/components/NoticeBar/index"; |
75 | import { unClaimTask } from "@/api/ywbl.js"; | ||
76 | import ProcessViewer from "./components/processViewer.vue"; | 77 | import ProcessViewer from "./components/processViewer.vue"; |
77 | // 引入左侧菜单 | 78 | // 引入左侧菜单 |
78 | import ordinaryMenu from "./components/leftmenu/ordinaryMenu.vue"; | 79 | import ordinaryMenu from "./components/leftmenu/ordinaryMenu.vue"; |
80 | import qllxDailog from "./djbBook/components/qllxDailog"; | ||
79 | import selectBdc from "@/views/ywbl/ywsq/selectBdc.vue"; | 81 | import selectBdc from "@/views/ywbl/ywsq/selectBdc.vue"; |
80 | import { loadTreeData, getNode } from "./components/leftmenu/djbFrameData.js"; | 82 | import { loadTreeData, getNode } from "./components/leftmenu/djbFrameData.js"; |
81 | // 登记簿数据信息 | 83 | // 登记簿数据信息 |
82 | import { addRepairRecord } from "@/api/djbbl.js" | 84 | import { addRepairRecord } from "@/api/djbbl.js"; |
83 | // 获取权利类型数组 | 85 | // 获取权利类型数组 |
84 | import { getQllxByBdcdyid } from "@/api/djbbl.js" | 86 | import { getQllxByBdcdyid } from "@/api/djbbl.js"; |
85 | 87 | ||
86 | import { getBdcqljqtsx } from "@/api/registerBook.js"; | 88 | import { getBdcqljqtsx } from "@/api/registerBook.js"; |
87 | export default { | 89 | export default { |
... | @@ -90,6 +92,7 @@ export default { | ... | @@ -90,6 +92,7 @@ export default { |
90 | NoticeBar, | 92 | NoticeBar, |
91 | ProcessViewer, | 93 | ProcessViewer, |
92 | ordinaryMenu, | 94 | ordinaryMenu, |
95 | qllxDailog, | ||
93 | }, | 96 | }, |
94 | mixins: [WorkFlow], | 97 | mixins: [WorkFlow], |
95 | data() { | 98 | data() { |
... | @@ -104,8 +107,10 @@ export default { | ... | @@ -104,8 +107,10 @@ export default { |
104 | qllx: this.$route.query.qllx, | 107 | qllx: this.$route.query.qllx, |
105 | //设置那个表单选中 | 108 | //设置那个表单选中 |
106 | tabName: "", | 109 | tabName: "", |
110 | // 弹框显示 | ||
111 | dialogVisible: true, | ||
107 | // 权利类型数组 | 112 | // 权利类型数组 |
108 | qllxlist:[], | 113 | qllxlist: [], |
109 | //表单集合 | 114 | //表单集合 |
110 | tabList: [], | 115 | tabList: [], |
111 | //选择加载哪一个组件 | 116 | //选择加载哪一个组件 |
... | @@ -118,37 +123,35 @@ export default { | ... | @@ -118,37 +123,35 @@ export default { |
118 | clxxTab: {}, | 123 | clxxTab: {}, |
119 | //页面监听时间 | 124 | //页面监听时间 |
120 | _beforeUnload_time: "", | 125 | _beforeUnload_time: "", |
121 | treedata:{}, | 126 | treedata: {}, |
122 | tabdata:[], | 127 | tabdata: [], |
123 | defaultNode:{} | 128 | defaultNode: {}, |
124 | }; | ||
125 | }, | ||
126 | mounted() { | ||
127 | 129 | ||
130 | }; | ||
128 | }, | 131 | }, |
132 | mounted() {}, | ||
129 | 133 | ||
130 | methods: { | 134 | methods: { |
131 | getQllxByBdcdyid(){ | 135 | getQllxByBdcdyid() { |
132 | console.log("this.currentSelectProps.bdcdyid",this.currentSelectProps.bdcdyid); | 136 | getQllxByBdcdyid({ bdcdyid: this.currentSelectProps.bdcdyid }).then( |
133 | getQllxByBdcdyid({bdcdyid:this.currentSelectProps.bdcdyid}).then((res) => { | 137 | (res) => { |
134 | if (res.code === 200) { | 138 | if (res.code === 200) { |
135 | console.log("Qllxlist",res); | 139 | console.log("Qllxlist", res); |
136 | |||
137 | } | 140 | } |
138 | }); | 141 | } |
142 | ); | ||
139 | }, | 143 | }, |
140 | // 获取右侧选项卡 | 144 | // 获取右侧选项卡 |
141 | getCurrentSelectProps (val) { | 145 | getCurrentSelectProps(val) { |
142 | this.currentSelectProps = val | 146 | this.currentSelectProps = val; |
143 | if(this.currentSelectProps.bsmRepair){ | 147 | if (this.currentSelectProps.bsmRepair) { |
144 | this.tabset(val) | 148 | this.tabset(val); |
145 | }else{ | 149 | } else { |
146 | this.getdjblist() | 150 | this.getdjblist(); |
147 | } | 151 | } |
148 | |||
149 | }, | 152 | }, |
150 | // 获取渲染登记簿列表 | 153 | // 获取渲染登记簿列表 |
151 | getdjblist(){ | 154 | getdjblist() { |
152 | getBdcqljqtsx({ | 155 | getBdcqljqtsx({ |
153 | bdcdyid: this.currentSelectProps.bdcdyid, | 156 | bdcdyid: this.currentSelectProps.bdcdyid, |
154 | bdcdyh: this.currentSelectProps.bdcdyh, | 157 | bdcdyh: this.currentSelectProps.bdcdyh, |
... | @@ -156,32 +159,36 @@ export default { | ... | @@ -156,32 +159,36 @@ export default { |
156 | if (res.code === 200) { | 159 | if (res.code === 200) { |
157 | this.treedata = loadTreeData(res.result, this.bdcdyh); | 160 | this.treedata = loadTreeData(res.result, this.bdcdyh); |
158 | this.$nextTick(function () { | 161 | this.$nextTick(function () { |
159 | console.log("this.currentSelectProps.qllx",this.currentSelectProps); | 162 | this.defaultNode = getNode( |
160 | this.defaultNode = getNode(this.currentSelectProps.qllx, { linShi: 0, xianShi: 0, liShi: 0 }, ""); | 163 | this.currentSelectProps.qllx, |
161 | console.log("this.defaultNode",this.defaultNode); | 164 | { linShi: 0, xianShi: 0, liShi: 0 }, |
162 | this.tabName =this.defaultNode.id; //data[0].id为默认选中的节点 | 165 | "" |
166 | ); | ||
167 | this.tabName = this.defaultNode.id; //data[0].id为默认选中的节点 | ||
163 | }); | 168 | }); |
164 | } | 169 | } |
165 | }); | 170 | }); |
166 | 171 | ||
167 | setTimeout(() => { | 172 | setTimeout(() => { |
168 | let settree=JSON.parse(JSON.stringify(this.treedata)) | 173 | let settree = JSON.parse(JSON.stringify(this.treedata)); |
169 | this.tabdata=[...settree,...settree[1].children[0].children[0].children] | 174 | this.tabdata = [ |
170 | this.tabdata.forEach((item,index,arr) => { | 175 | ...settree, |
171 | arr[index].name=item.label; | 176 | ...settree[1].children[0].children[0].children, |
172 | arr[index].value=item.id | 177 | ]; |
173 | }) | 178 | this.tabdata.forEach((item, index, arr) => { |
174 | this.tabList=this.tabdata | 179 | arr[index].name = item.label; |
175 | this.getQllxByBdcdyid() | 180 | arr[index].value = item.id; |
176 | }, 200) | 181 | }); |
177 | 182 | this.tabList = this.tabdata; | |
183 | this.getQllxByBdcdyid(); | ||
184 | }, 200); | ||
178 | }, | 185 | }, |
179 | 186 | ||
180 | tabset(val){ | 187 | tabset(val) { |
181 | this.tabName = ''; | 188 | this.tabName = ""; |
182 | this.tabList = [ | 189 | this.tabList = [ |
183 | { | 190 | { |
184 | name:val.qllxmc+ "补录信息", | 191 | name: val.qllxmc + "补录信息", |
185 | value: "slxx", | 192 | value: "slxx", |
186 | sort: 1, | 193 | sort: 1, |
187 | }, | 194 | }, |
... | @@ -198,20 +205,19 @@ export default { | ... | @@ -198,20 +205,19 @@ export default { |
198 | ]; | 205 | ]; |
199 | 206 | ||
200 | this.$nextTick(function () { | 207 | this.$nextTick(function () { |
201 | this.tabName = 'slxx'; | 208 | this.tabName = "slxx"; |
202 | }); | 209 | }); |
203 | |||
204 | }, | 210 | }, |
205 | 211 | ||
206 | //右侧表单选项卡事件 | 212 | //右侧表单选项卡事件 |
207 | beforeLeave (activeName, oldActiveName) { | 213 | beforeLeave(activeName, oldActiveName) { |
208 | if (activeName && activeName != 0) this.getFromRouter(activeName) | 214 | if (activeName && activeName != 0) this.getFromRouter(activeName); |
209 | }, | 215 | }, |
210 | //切换选项卡内容组件 | 216 | //切换选项卡内容组件 |
211 | getFromRouter (tabname) { | 217 | getFromRouter(tabname) { |
212 | for (let item of this.tabList) { | 218 | for (let item of this.tabList) { |
213 | if (item.value === tabname) { | 219 | if (item.value === tabname) { |
214 | this.currentSelectTab = item | 220 | this.currentSelectTab = item; |
215 | break; | 221 | break; |
216 | } | 222 | } |
217 | } | 223 | } |
... | @@ -219,19 +225,18 @@ export default { | ... | @@ -219,19 +225,18 @@ export default { |
219 | }, | 225 | }, |
220 | 226 | ||
221 | // 增加补录记录 | 227 | // 增加补录记录 |
222 | addRepairRecord(row){ | 228 | addRepairRecord(row) { |
223 | console.log("this.currentSelectProps",this.currentSelectProps); | 229 | let from = { |
224 | let from={ | 230 | bsmQlxx: "", |
225 | bsmQlxx:"", | 231 | bsmSlsq: this.bsmSlsq, |
226 | bsmSlsq:this.bsmSlsq, | 232 | bsmSldy: this.currentSelectProps.bsmSldy, |
227 | bsmSldy:this.currentSelectProps.bsmSldy, | 233 | operate: "C", |
228 | operate:"C", | 234 | qllx: this.currentSelectProps.qllx, |
229 | qllx:this.currentSelectProps.qllx | 235 | }; |
230 | } | 236 | if (row) { |
231 | if(row){ | 237 | from.bsmQlxx = row.bsmQlxx; |
232 | from.bsmQlxx=row.bsmQlxx | 238 | from.operate = "U"; |
233 | from.operate="U" | 239 | from.qllx = row.qllx; |
234 | from.qllx=row.qllx | ||
235 | } | 240 | } |
236 | 241 | ||
237 | addRepairRecord(from).then((res) => { | 242 | addRepairRecord(from).then((res) => { |
... | @@ -240,6 +245,9 @@ export default { | ... | @@ -240,6 +245,9 @@ export default { |
240 | }); | 245 | }); |
241 | }); | 246 | }); |
242 | }, | 247 | }, |
248 | |||
243 | }, | 249 | }, |
244 | }; | 250 | }; |
245 | </script> | 251 | </script> |
252 | <style scoped lang="scss"> | ||
253 | </style> | ... | ... |
... | @@ -26,6 +26,10 @@ | ... | @@ -26,6 +26,10 @@ |
26 | item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))? 'linshiIcon' : '', | 26 | item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))? 'linshiIcon' : '', |
27 | ]" | 27 | ]" |
28 | > | 28 | > |
29 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
30 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
31 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | ||
32 | </div> | ||
29 | <div class="icon" v-if="item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))">正在办理</div> | 33 | <div class="icon" v-if="item.prop == 'qszt' && (row.qszt == '0' ||(row.qszt == '1' &&row.qlblzt == '1'&&row.zxywh != null))">正在办理</div> |
30 | <span v-if="item.prop == 'qszt'">{{ getQsztName(row[item.prop]) }}</span> | 34 | <span v-if="item.prop == 'qszt'">{{ getQsztName(row[item.prop]) }}</span> |
31 | 35 | ||
... | @@ -63,6 +67,11 @@ export default { | ... | @@ -63,6 +67,11 @@ export default { |
63 | }, | 67 | }, |
64 | methods: { | 68 | methods: { |
65 | loadData() { | 69 | loadData() { |
70 | if(this.$parent.addRepairRecord){ | ||
71 | this.columns.unshift({prop:"cz", | ||
72 | label:"操作" | ||
73 | }) | ||
74 | } | ||
66 | getCfdjList({ | 75 | getCfdjList({ |
67 | bdcdyid: this.propsParam.bdcdyid, | 76 | bdcdyid: this.propsParam.bdcdyid, |
68 | qllx: this.propsParam.qllx, | 77 | qllx: this.propsParam.qllx, | ... | ... |
... | @@ -20,6 +20,10 @@ | ... | @@ -20,6 +20,10 @@ |
20 | row.qszt == '0' ? 'linshi' : '', | 20 | row.qszt == '0' ? 'linshi' : '', |
21 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 21 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
22 | ]"> | 22 | ]"> |
23 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
24 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
25 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | ||
26 | </div> | ||
23 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> | 27 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> |
24 | 正在办理 | 28 | 正在办理 |
25 | </div> | 29 | </div> |
... | @@ -61,6 +65,11 @@ export default { | ... | @@ -61,6 +65,11 @@ export default { |
61 | }, | 65 | }, |
62 | methods: { | 66 | methods: { |
63 | loadData () { | 67 | loadData () { |
68 | if(this.$parent.addRepairRecord){ | ||
69 | this.columns.unshift({prop:"cz", | ||
70 | label:"操作" | ||
71 | }) | ||
72 | } | ||
64 | getDiyaqList({ | 73 | getDiyaqList({ |
65 | bdcdyid: this.propsParam.bdcdyid, | 74 | bdcdyid: this.propsParam.bdcdyid, |
66 | qllx: this.propsParam.qllx, | 75 | qllx: this.propsParam.qllx, | ... | ... |
... | @@ -20,6 +20,10 @@ | ... | @@ -20,6 +20,10 @@ |
20 | row.qszt == '0' ? 'linshi' : '', | 20 | row.qszt == '0' ? 'linshi' : '', |
21 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 21 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
22 | ]"> | 22 | ]"> |
23 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
24 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
25 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | ||
26 | </div> | ||
23 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> | 27 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> |
24 | 正在办理 | 28 | 正在办理 |
25 | </div> | 29 | </div> |
... | @@ -61,6 +65,11 @@ export default { | ... | @@ -61,6 +65,11 @@ export default { |
61 | }, | 65 | }, |
62 | methods: { | 66 | methods: { |
63 | loadData () { | 67 | loadData () { |
68 | if(this.$parent.addRepairRecord){ | ||
69 | this.columns.unshift({prop:"cz", | ||
70 | label:"操作" | ||
71 | }) | ||
72 | } | ||
64 | getDiyiqList({ | 73 | getDiyiqList({ |
65 | bdcdyid: this.propsParam.bdcdyid, | 74 | bdcdyid: this.propsParam.bdcdyid, |
66 | qllx: this.propsParam.qllx, | 75 | qllx: this.propsParam.qllx, | ... | ... |
... | @@ -22,6 +22,10 @@ | ... | @@ -22,6 +22,10 @@ |
22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', | 23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', |
24 | ]"> | 24 | ]"> |
25 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
26 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
27 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | ||
28 | </div> | ||
25 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> | 29 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> |
26 | 正在办理 | 30 | 正在办理 |
27 | </div> | 31 | </div> |
... | @@ -66,6 +70,11 @@ | ... | @@ -66,6 +70,11 @@ |
66 | }, | 70 | }, |
67 | methods: { | 71 | methods: { |
68 | loadData () { | 72 | loadData () { |
73 | if(this.$parent.addRepairRecord){ | ||
74 | this.columns.unshift({prop:"cz", | ||
75 | label:"操作" | ||
76 | }) | ||
77 | } | ||
69 | getJsydsyqList({ | 78 | getJsydsyqList({ |
70 | bdcdyid: this.propsParam.bdcdyid, | 79 | bdcdyid: this.propsParam.bdcdyid, |
71 | qllx: this.propsParam.qllx, | 80 | qllx: this.propsParam.qllx, | ... | ... |
... | @@ -20,6 +20,10 @@ | ... | @@ -20,6 +20,10 @@ |
20 | row.qszt == '0' ? 'linshi' : '', | 20 | row.qszt == '0' ? 'linshi' : '', |
21 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 21 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
22 | ]"> | 22 | ]"> |
23 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
24 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
25 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | ||
26 | </div> | ||
23 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> | 27 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> |
24 | 正在办理 | 28 | 正在办理 |
25 | </div> | 29 | </div> |
... | @@ -61,6 +65,11 @@ export default { | ... | @@ -61,6 +65,11 @@ export default { |
61 | }, | 65 | }, |
62 | methods: { | 66 | methods: { |
63 | loadData () { | 67 | loadData () { |
68 | if(this.$parent.addRepairRecord){ | ||
69 | this.columns.unshift({prop:"cz", | ||
70 | label:"操作" | ||
71 | }) | ||
72 | } | ||
64 | getFdcq2List({ | 73 | getFdcq2List({ |
65 | bdcdyid: this.propsParam.bdcdyid, | 74 | bdcdyid: this.propsParam.bdcdyid, |
66 | qllx: this.propsParam.qllx, | 75 | qllx: this.propsParam.qllx, |
... | @@ -95,6 +104,62 @@ export default { | ... | @@ -95,6 +104,62 @@ export default { |
95 | } | 104 | } |
96 | return name; | 105 | return name; |
97 | }, | 106 | }, |
107 | // 编辑 | ||
108 | editDialog(row){ | ||
109 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | ||
110 | confirmButtonText: '确定', | ||
111 | cancelButtonText: '取消', | ||
112 | type: 'warning' | ||
113 | }).then(() => { | ||
114 | this.$parent.addRepairRecord(row) | ||
115 | |||
116 | this.$message({ | ||
117 | type: 'success', | ||
118 | message: '补录成功!' | ||
119 | }); | ||
120 | }).catch(() => { | ||
121 | this.$message({ | ||
122 | type: 'info', | ||
123 | message: '取消编辑' | ||
124 | }); | ||
125 | }); | ||
126 | |||
127 | // this.$popupDialog("编辑", "djbworkflow/djbBook/components/djbeditDialog", { | ||
128 | // datalist:this.columns, | ||
129 | // data: row, | ||
130 | |||
131 | // }) | ||
132 | |||
133 | }, | ||
134 | // 删除 | ||
135 | deleteDialog(row){ | ||
136 | this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | ||
137 | confirmButtonText: '确定', | ||
138 | cancelButtonText: '取消', | ||
139 | type: 'warning' | ||
140 | }).then(() => { | ||
141 | // let bsmClmx = this.previewImg.imgList[this.previewImg.index].bsmClmx | ||
142 | // deleteClmx(bsmClmx).then(res => { | ||
143 | // if (res.code == 200) { | ||
144 | // that.$emit('updateList', res.result) | ||
145 | // that.$message({ | ||
146 | // message: '删除成功!', | ||
147 | // type: 'success' | ||
148 | // }) | ||
149 | // } | ||
150 | // }) | ||
151 | this.$message({ | ||
152 | type: 'success', | ||
153 | message: '删除成功!' | ||
154 | }); | ||
155 | }).catch(() => { | ||
156 | this.$message({ | ||
157 | type: 'info', | ||
158 | message: '已取消删除' | ||
159 | }); | ||
160 | }); | ||
161 | |||
162 | } | ||
98 | }, | 163 | }, |
99 | }; | 164 | }; |
100 | </script> | 165 | </script> | ... | ... |
... | @@ -22,6 +22,10 @@ | ... | @@ -22,6 +22,10 @@ |
22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', | 23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', |
24 | ]"> | 24 | ]"> |
25 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
26 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
27 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | ||
28 | </div> | ||
25 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> | 29 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> |
26 | 正在办理 | 30 | 正在办理 |
27 | </div> | 31 | </div> |
... | @@ -66,6 +70,11 @@ | ... | @@ -66,6 +70,11 @@ |
66 | }, | 70 | }, |
67 | methods: { | 71 | methods: { |
68 | loadData () { | 72 | loadData () { |
73 | if(this.$parent.addRepairRecord){ | ||
74 | this.columns.unshift({prop:"cz", | ||
75 | label:"操作" | ||
76 | }) | ||
77 | } | ||
69 | getJsydsyqList({ | 78 | getJsydsyqList({ |
70 | bdcdyid: this.propsParam.bdcdyid, | 79 | bdcdyid: this.propsParam.bdcdyid, |
71 | qllx: this.propsParam.qllx, | 80 | qllx: this.propsParam.qllx, | ... | ... |
... | @@ -22,6 +22,10 @@ | ... | @@ -22,6 +22,10 @@ |
22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 22 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', | 23 | item.prop == 'qszt' && row.qszt == '1' ? 'xianshiIcon' : '', |
24 | ]"> | 24 | ]"> |
25 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
26 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
27 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | ||
28 | </div> | ||
25 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> | 29 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> |
26 | 正在办理 | 30 | 正在办理 |
27 | </div> | 31 | </div> |
... | @@ -95,6 +99,11 @@ | ... | @@ -95,6 +99,11 @@ |
95 | }, | 99 | }, |
96 | methods: { | 100 | methods: { |
97 | loadData () { | 101 | loadData () { |
102 | if(this.$parent.addRepairRecord){ | ||
103 | this.columns.unshift({prop:"cz", | ||
104 | label:"操作" | ||
105 | }) | ||
106 | } | ||
98 | getNydsyqList({ | 107 | getNydsyqList({ |
99 | bdcdyid: this.propsParam.bdcdyid, | 108 | bdcdyid: this.propsParam.bdcdyid, |
100 | qllx: this.propsParam.qllx, | 109 | qllx: this.propsParam.qllx, | ... | ... |
... | @@ -20,6 +20,10 @@ | ... | @@ -20,6 +20,10 @@ |
20 | row.qszt == '0' ? 'linshi' : '', | 20 | row.qszt == '0' ? 'linshi' : '', |
21 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', | 21 | item.prop == 'qszt' && row.qszt == '0' ? 'linshiIcon' : '', |
22 | ]"> | 22 | ]"> |
23 | <div class="setbut" v-if="item.prop == 'cz'"> | ||
24 | <el-button type="text" icon="el-icon-edit-outline" @click="editDialog(row)">编辑</el-button> | ||
25 | <el-button type="text" icon="el-icon-edit-outline" @click="deleteDialog(row)">删除</el-button> | ||
26 | </div> | ||
23 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> | 27 | <div class="icon" v-if="item.prop == 'qszt' && row.qszt == '0'"> |
24 | 正在办理 | 28 | 正在办理 |
25 | </div> | 29 | </div> |
... | @@ -61,6 +65,12 @@ export default { | ... | @@ -61,6 +65,12 @@ export default { |
61 | }, | 65 | }, |
62 | methods: { | 66 | methods: { |
63 | loadData () { | 67 | loadData () { |
68 | // 判断是否在登记簿补录调的子页面 | ||
69 | if(this.$parent.addRepairRecord){ | ||
70 | this.columns.unshift({prop:"cz", | ||
71 | label:"操作" | ||
72 | }) | ||
73 | } | ||
64 | getYgdjList({ | 74 | getYgdjList({ |
65 | bdcdyid: this.propsParam.bdcdyid, | 75 | bdcdyid: this.propsParam.bdcdyid, |
66 | qllx: this.propsParam.qllx, | 76 | qllx: this.propsParam.qllx, | ... | ... |
... | @@ -61,6 +61,11 @@ export default { | ... | @@ -61,6 +61,11 @@ export default { |
61 | }, | 61 | }, |
62 | methods: { | 62 | methods: { |
63 | loadData () { | 63 | loadData () { |
64 | if(this.$parent.addRepairRecord){ | ||
65 | this.columns.unshift({prop:"cz", | ||
66 | label:"操作" | ||
67 | }) | ||
68 | } | ||
64 | getYydjList({ | 69 | getYydjList({ |
65 | bdcdyid: this.propsParam.bdcdyid, | 70 | bdcdyid: this.propsParam.bdcdyid, |
66 | qllx: this.propsParam.qllx, | 71 | qllx: this.propsParam.qllx, |
... | @@ -95,6 +100,62 @@ export default { | ... | @@ -95,6 +100,62 @@ export default { |
95 | } | 100 | } |
96 | return name; | 101 | return name; |
97 | }, | 102 | }, |
103 | // 编辑 | ||
104 | editDialog(row){ | ||
105 | this.$confirm('此操作将新增一条补录信息, 是否继续?', '提示', { | ||
106 | confirmButtonText: '确定', | ||
107 | cancelButtonText: '取消', | ||
108 | type: 'warning' | ||
109 | }).then(() => { | ||
110 | this.$parent.addRepairRecord(row) | ||
111 | |||
112 | this.$message({ | ||
113 | type: 'success', | ||
114 | message: '补录成功!' | ||
115 | }); | ||
116 | }).catch(() => { | ||
117 | this.$message({ | ||
118 | type: 'info', | ||
119 | message: '取消编辑' | ||
120 | }); | ||
121 | }); | ||
122 | |||
123 | // this.$popupDialog("编辑", "djbworkflow/djbBook/components/djbeditDialog", { | ||
124 | // datalist:this.columns, | ||
125 | // data: row, | ||
126 | |||
127 | // }) | ||
128 | |||
129 | }, | ||
130 | // 删除 | ||
131 | deleteDialog(row){ | ||
132 | this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', { | ||
133 | confirmButtonText: '确定', | ||
134 | cancelButtonText: '取消', | ||
135 | type: 'warning' | ||
136 | }).then(() => { | ||
137 | // let bsmClmx = this.previewImg.imgList[this.previewImg.index].bsmClmx | ||
138 | // deleteClmx(bsmClmx).then(res => { | ||
139 | // if (res.code == 200) { | ||
140 | // that.$emit('updateList', res.result) | ||
141 | // that.$message({ | ||
142 | // message: '删除成功!', | ||
143 | // type: 'success' | ||
144 | // }) | ||
145 | // } | ||
146 | // }) | ||
147 | this.$message({ | ||
148 | type: 'success', | ||
149 | message: '删除成功!' | ||
150 | }); | ||
151 | }).catch(() => { | ||
152 | this.$message({ | ||
153 | type: 'info', | ||
154 | message: '已取消删除' | ||
155 | }); | ||
156 | }); | ||
157 | |||
158 | } | ||
98 | }, | 159 | }, |
99 | }; | 160 | }; |
100 | </script> | 161 | </script> | ... | ... |
-
Please register or sign in to post a comment