39b475c2 by 杨威

林权相关修改

1 parent 2eaddfbd
1 import request from '@/plugin/axios'
2 /**
3 * 根据bsm查询林权基本信息
4 */
5 export function getQjLqDetailById(data) {
6 return request({
7 url: '/system/qjLq/getQjLqDetailById',
8 method: 'get',
9 params: {
10 id: data
11 }
12 })
13 }
...\ No newline at end of file ...\ No newline at end of file
...@@ -335,6 +335,10 @@ ...@@ -335,6 +335,10 @@
335 type: String, 335 type: String,
336 default: "", 336 default: "",
337 }, 337 },
338 lq:{
339 type: String,
340 default: "",
341 }
338 }, 342 },
339 data() { 343 data() {
340 return { 344 return {
...@@ -386,9 +390,9 @@ ...@@ -386,9 +390,9 @@
386 yb: "", 390 yb: "",
387 zjh: "", 391 zjh: "",
388 zjzlbsm: "", 392 zjzlbsm: "",
393 lqqlrtype:""
389 }, 394 },
390 glbsm:'', 395 glbsm:'',
391
392 rules:[], 396 rules:[],
393 }; 397 };
394 }, 398 },
...@@ -502,6 +506,8 @@ ...@@ -502,6 +506,8 @@
502 this.formData.dlrList[k].type=1; 506 this.formData.dlrList[k].type=1;
503 this.formData.addQjDlrFrRequest.push(this.formData.dlrList[k]); 507 this.formData.addQjDlrFrRequest.push(this.formData.dlrList[k]);
504 } 508 }
509 //林权权利人类型判断
510 this.formData.lqqlrtype = this.lq;
505 //如果是从更新按钮点击确定的则进行更新操作,如果不是,则进行添加操作 511 //如果是从更新按钮点击确定的则进行更新操作,如果不是,则进行添加操作
506 if(this.update){ 512 if(this.update){
507 console.log(this.formData) 513 console.log(this.formData)
...@@ -511,7 +517,6 @@ ...@@ -511,7 +517,6 @@
511 this.$message.success("修改完成!"); 517 this.$message.success("修改完成!");
512 this.getQlrInfo(this.bsm); 518 this.getQlrInfo(this.bsm);
513 this.update=false; 519 this.update=false;
514
515 } 520 }
516 }) 521 })
517 }else { 522 }else {
...@@ -671,12 +676,6 @@ ...@@ -671,12 +676,6 @@
671 } , 676 } ,
672 deep:true 677 deep:true
673 }, 678 },
674 /* gyfsList:{
675 handler:function(v){
676 //console.log(v,"共有方式")
677 },
678 deep:true
679 },*/
680 dialogVisible(n){ 679 dialogVisible(n){
681 if(n === false){ 680 if(n === false){
682 this.formData = { 681 this.formData = {
...@@ -723,15 +722,6 @@ ...@@ -723,15 +722,6 @@
723 } 722 }
724 } 723 }
725 }, 724 },
726 /* tableData(){
727 this.gyfsList = this.$store.state.gyfsList;
728 if(this.tableData.length>1){
729 for(let i = 0;i<this.gyfsList.length;i++){
730 let item = this.gyfsList[i];
731 this.gyfsList[i].disabled = item.mc === "单独所有";
732 }
733 }
734 },*/
735 725
736 "formData.qlrlxbsm":function (val) { 726 "formData.qlrlxbsm":function (val) {
737 //console.log(this.$refs.qlrlxbsm.$el.style.border+":console.log(this.$refs.qlrlxbsm.$el.style.border)") 727 //console.log(this.$refs.qlrlxbsm.$el.style.border+":console.log(this.$refs.qlrlxbsm.$el.style.border)")
...@@ -740,32 +730,6 @@ ...@@ -740,32 +730,6 @@
740 this.$refs.qlrlxbsm.$el.style.border = ''; 730 this.$refs.qlrlxbsm.$el.style.border = '';
741 } 731 }
742 }, 732 },
743
744 /* "formData.zjzlbsm":function (val) {
745 if (val != '') {
746 this.$refs.zjzlbsm.$el.style.border = '';
747 }
748 },
749 "formData.gyfsbsm":function (val) {
750 let ddsy = '';
751 for(let i = 0;i<this.gyfsList.length;i++){
752 if(this.gyfsList[i].mc === "单独所有"){
753 ddsy = this.gyfsList[i].bsm
754 }
755 }
756 if(ddsy === val){
757 if(this.update){
758 if(this.tableData.length > 1){
759 this.$message.warning("权利人人数大于1,不能选择单独所有")
760 }
761 }else{
762 if(this.tableData.length > 0){
763 this.$message.warning("权利人人数大于1,不能选择单独所有")
764 }
765 }
766
767 }
768 }*/
769 } 733 }
770 }; 734 };
771 </script> 735 </script>
...@@ -822,7 +786,7 @@ ...@@ -822,7 +786,7 @@
822 .el-table--border::after, 786 .el-table--border::after,
823 .el-table--group::after, 787 .el-table--group::after,
824 .el-table::before { 788 .el-table::before {
825 background-color: #E6E6E6; 789 background-color: rgba(0, 0, 0, 0);
826 } 790 }
827 .el-table--border td, 791 .el-table--border td,
828 .el-table--border th, 792 .el-table--border th,
...@@ -844,6 +808,8 @@ ...@@ -844,6 +808,8 @@
844 } 808 }
845 .qlrTable { 809 .qlrTable {
846 border-color: #E6E6E6 !important; 810 border-color: #E6E6E6 !important;
811 border-bottom: 0;
812 border-right: 0;
847 position: relative; 813 position: relative;
848 top: -1px; 814 top: -1px;
849 .el-input__inner { 815 .el-input__inner {
......
...@@ -405,6 +405,7 @@ export default { ...@@ -405,6 +405,7 @@ export default {
405 bsm: "", //权利性质标识码 405 bsm: "", //权利性质标识码
406 glbsm: "", //宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM 406 glbsm: "", //宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM
407 qlxzdm: "", 407 qlxzdm: "",
408 qlxzmc:"",
408 zhqlxzlx: "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质 409 zhqlxzlx: "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质
409 list: [ 410 list: [
410 { 411 {
...@@ -492,6 +493,7 @@ export default { ...@@ -492,6 +493,7 @@ export default {
492 bsm: "", //权利性质标识码 493 bsm: "", //权利性质标识码
493 glbsm: "", //宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM 494 glbsm: "", //宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM
494 qlxzdm: "", 495 qlxzdm: "",
496 qlxzmc:"",
495 zhqlxzlx: "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质 497 zhqlxzlx: "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质
496 list: [ 498 list: [
497 { 499 {
...@@ -536,6 +538,7 @@ export default { ...@@ -536,6 +538,7 @@ export default {
536 bsm: "", //权利性质标识码 538 bsm: "", //权利性质标识码
537 glbsm: "", //宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM 539 glbsm: "", //宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM
538 qlxzdm: "", 540 qlxzdm: "",
541 qlxzmc:"",
539 zhqlxzlx: "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质 542 zhqlxzlx: "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质
540 list: [ 543 list: [
541 { 544 {
...@@ -718,6 +721,8 @@ export default { ...@@ -718,6 +721,8 @@ export default {
718 handler : function (newVal, oldVal) { 721 handler : function (newVal, oldVal) {
719 newVal.forEach((i,ind)=>{ 722 newVal.forEach((i,ind)=>{
720 if(i.qlxzdm != '' &&i.qlxzdm != null){ 723 if(i.qlxzdm != '' &&i.qlxzdm != null){
724 console.log(this.$refs.qlxzdm,'this.$refs.qlxzdm[ind]');
725 i.qlxzmc = this.$refs.qlxzdm[ind].name;
721 this.$refs.qlxzdm[ind].$el.style.border="" 726 this.$refs.qlxzdm[ind].$el.style.border=""
722 } 727 }
723 i.list.forEach((item,index)=>{ 728 i.list.forEach((item,index)=>{
......
...@@ -26,6 +26,10 @@ let bdcLxArray = [ ...@@ -26,6 +26,10 @@ let bdcLxArray = [
26 value: "zd", 26 value: "zd",
27 }, 27 },
28 { 28 {
29 label: "林权",
30 value: "lq",
31 },
32 {
29 label: "自然幢", 33 label: "自然幢",
30 value: "zrz", 34 value: "zrz",
31 }, 35 },
......
...@@ -112,10 +112,10 @@ const constantRoutes = [ ...@@ -112,10 +112,10 @@ const constantRoutes = [
112 component: () => import("@/views/ybx/index"), 112 component: () => import("@/views/ybx/index"),
113 }, 113 },
114 { 114 {
115 path: "/lh", 115 path: "/lq",
116 name: "林", 116 name: "林",
117 code: "1-3", 117 code: "1-3",
118 component: () => import("@/views/lh/index"), 118 component: () => import("@/views/lq/index"),
119 }, 119 },
120 ], 120 ],
121 }, 121 },
......
...@@ -315,7 +315,6 @@ export default { ...@@ -315,7 +315,6 @@ export default {
315 s.hxjgList = s.hxjgList.length == 0 ?await this.getDicData("户型结构") : s.hxjgList; 315 s.hxjgList = s.hxjgList.length == 0 ?await this.getDicData("户型结构") : s.hxjgList;
316 s.fwjgList = s.fwjgList.length == 0 ?await this.getDicData("户型结构") : s.fwjgList; 316 s.fwjgList = s.fwjgList.length == 0 ?await this.getDicData("户型结构") : s.fwjgList;
317 s.gzwlxList = s.gzwlxList.length == 0 ?await this.getDicData("构(建)筑物类型") : s.gzwlxList; 317 s.gzwlxList = s.gzwlxList.length == 0 ?await this.getDicData("构(建)筑物类型") : s.gzwlxList;
318
319 s.fwxzOptions = s.fwxzOptions.length == 0 ?await this.getDicData("房屋性质") : s.fwxzOptions; 318 s.fwxzOptions = s.fwxzOptions.length == 0 ?await this.getDicData("房屋性质") : s.fwxzOptions;
320 s.cbOptions = s.cbOptions.length == 0 ?await this.getDicData("房屋产别") : s.cbOptions; 319 s.cbOptions = s.cbOptions.length == 0 ?await this.getDicData("房屋产别") : s.cbOptions;
321 s.cqlyOptions = s.cqlyOptions.length == 0 ?await this.getDicData("产权来源") : s.cqlyOptions; 320 s.cqlyOptions = s.cqlyOptions.length == 0 ?await this.getDicData("产权来源") : s.cqlyOptions;
......
1 <template>
2 <div class="main">
3 林海调查表
4 </div>
5 </template>
6
7 <script>
8 export default {
9 name:"",
10 components:{},
11 props:{},
12 data(){
13 return {
14 }
15 },
16 created(){},
17 mounted(){},
18 methods:{},
19 computed: {},
20 watch: {},
21 }
22 </script>
23 <style scoped lang="less">
24 </style>
...\ No newline at end of file ...\ No newline at end of file
1 <template> 1 <template>
2 <el-tabs v-model="activeName" class="tabs"> 2 <el-tabs v-model="activeName" class="tabs">
3 <el-tab-pane label="林权调查表" name="lhdcb"><Lhdcb></Lhdcb></el-tab-pane> 3 <el-tab-pane label="林权调查表" name="lqdcb"><Lqdcb></Lqdcb></el-tab-pane>
4 </el-tabs> 4 </el-tabs>
5 </template> 5 </template>
6 6
7 <script> 7 <script>
8 import { getQjZdjbxxDetailById } from "@api/zd"; 8 import Lqdcb from "./lqdcb"
9 import Lhdcb from "./lhdcb"
10 export default { 9 export default {
11 name: "", 10 name: "",
12 components: { 11 components: {
13 Lhdcb 12 Lqdcb
14 }, 13 },
15 props: {}, 14 props: {},
16 data() { 15 data() {
17 return { 16 return {
18 activeName:'lhdcb' 17 activeName:'lqdcb'
19 }; 18 };
20 }, 19 },
21 methods: { 20 methods: {
22 getZdData(bsm) { 21 // getZdData(bsm) {
23 getQjZdjbxxDetailById(bsm).then((res) => { 22 // getQjLqjbxxDetailById(bsm).then((res) => {
24 if (res.success) { 23 // if (res.success) {
25 console.log(res, "宗地信息"); 24 // console.log(res, "宗地信息");
26 this.isFldc = res.result.zdtzmbsm === "PSHGSBDCQJDC000000000000DC440010"; 25 // this.isFldc = res.result.zdtzmbsm === "PSHGSBDCQJDC000000000000DC440010";
27 this.isTdcb = res.result.zdtzmbsm === ("PSHGSBDCQJDC000000000000DC440060" || "PSHGSBDCQJDC000000000000DC440070" ||"PSHGSBDCQJDC000000000000DC440080"); 26 // this.isTdcb = res.result.zdtzmbsm === ("PSHGSBDCQJDC000000000000DC440060" || "PSHGSBDCQJDC000000000000DC440070" ||"PSHGSBDCQJDC000000000000DC440080");
28 27
29 } 28 // }
30 }); 29 // });
31 }, 30 // },
32 }, 31 },
33 created() {}, 32 created() {},
34 mounted() { 33 mounted() {
35 this.getZdData(this.$route.query.bsm); 34 // this.getZdData(this.$route.query.bsm);
36 }, 35 },
37 computed: { 36 computed: {
38 lhbsm() { 37 lhbsm() {
......
1 <template>
2 <div class="main" ref="mainBox">
3 <table class="lqjbxxTable" cellspacing="0" cellpadding="0" border="1">
4 <tr>
5 <td colspan="12">
6 <div class="dw">
7 单位 :
8 <el-radio-group v-model="formData.mjdw">
9 <el-radio :label="3">平方米</el-radio>
10 <el-radio :label="6">公顷</el-radio>
11 <el-radio :label="9"></el-radio>
12 </el-radio-group>
13 </div>
14 </td>
15 </tr>
16 <tr>
17 <td colspan="2" class="tdright">森林、林木所有权人</td>
18 <td colspan="10">
19 <Qlr
20 ref="qlrxxModule"
21 :bsm="$route.query.bsm"
22 :qszt="formData.qszt"
23 type="lq"
24 lq="1"
25 ></Qlr>
26 </td>
27 </tr>
28 <tr>
29 <td colspan="2" class="tdright">森林、林木使用权人</td>
30 <td colspan="10">
31 <Qlr
32 ref="qlrxxModule"
33 :bsm="$route.query.bsm"
34 :qszt="formData.qszt"
35 type="lx"
36 lq="2"
37 ></Qlr>
38 </td>
39 </tr>
40 <tr>
41 <td colspan="2" class="tdright">定着物类型</td>
42 <td colspan="4">
43 <el-select
44 name="qlsdfs"
45 class="formSelect"
46 :disabled="disabled"
47 v-model="formData.dzwlx"
48 >
49 <el-option
50 v-for="item in dzwlxList"
51 :key="item.bsm"
52 :label="item.mc"
53 :value="item.bsm"
54 >
55 </el-option>
56 </el-select>
57 </td>
58 <td colspan="2" class="tdright"><i class="requisite">*</i>宗地代码</td>
59 <td colspan="4" class="psr">
60 <input
61 name="zddm"
62 :disabled="disabled"
63 @blur="inputBlur($event)"
64 ref="zddm"
65 on
66 maxlength="19"
67 type="text"
68 class="formInput percent80"
69 v-model="formData.zddm"
70 />
71 <el-button
72 type="warning"
73 :disabled="disabled"
74 class="createBtn"
75 @click="generatorCode"
76 >生成
77 </el-button>
78 </td>
79 </tr>
80 <tr>
81 <td colspan="2" class="tdright">造林年度</td>
82 <td colspan="4">
83 <input
84 name="djh"
85 type="text"
86 :disabled="disabled"
87 class="formInput"
88 v-model="formData.djh"
89 />
90 </td>
91
92 <td colspan="2" class="tdright">
93 <i class="requisite">*</i>不动产单元号
94 </td>
95 <td colspan="4" class="psr">
96 <input
97 name="bdcdyh"
98 type="text"
99 :disabled="disabled"
100 @blur="inputBlur($event)"
101 ref="bdcdyh"
102 maxlength="28"
103 class="formInput"
104 v-model="formData.bdcdyh"
105 />
106 </td>
107 </tr>
108 <tr>
109 <td colspan="2" class="tdright"><i class="requisite">*</i>坐落</td>
110 <td colspan="10">
111 <input
112 type="text"
113 :disabled="disabled"
114 class="formInput"
115 v-model="formData.zl"
116 />
117 </td>
118 </tr>
119 <tr>
120 <td colspan="2" class="tdright">小地名</td>
121 <td colspan="10">
122 <input
123 type="text"
124 :disabled="disabled"
125 class="formInput"
126 v-model="formData.xdm"
127 />
128 </td>
129 </tr>
130 <tr>
131 <td colspan="2" class="tdright">林班</td>
132 <td colspan="4">
133 <input
134 type="text"
135 :disabled="disabled"
136 class="formInput"
137 v-model="formData.lb"
138 />
139 </td>
140 <td colspan="2" class="tdright">小班</td>
141 <td colspan="4">
142 <input
143 type="text"
144 :disabled="disabled"
145 class="formInput"
146 v-model="formData.xb"
147 />
148 </td>
149 </tr>
150 <tr>
151 <td colspan="2" class="tdright">面积</td>
152 <td colspan="4">
153 <input
154 type="text"
155 :disabled="disabled"
156 class="formInput"
157 v-model="formData.mj"
158 />
159 </td>
160 <td colspan="2" class="tdright">起源</td>
161 <td colspan="4">
162 <input
163 type="text"
164 :disabled="disabled"
165 class="formInput"
166 v-model="formData.qy"
167 />
168 </td>
169 </tr>
170 <tr>
171 <td colspan="2" class="tdright">株数</td>
172 <td colspan="4">
173 <input
174 type="text"
175 :disabled="disabled"
176 class="formInput"
177 v-model="formData.zs"
178 />
179 </td>
180 <td colspan="2" class="tdright">主要树种</td>
181 <td colspan="4">
182 <input
183 type="text"
184 :disabled="disabled"
185 class="formInput"
186 v-model="formData.zysz"
187 />
188 </td>
189 </tr>
190 <tr>
191 <td colspan="2" class="tdright">林种</td>
192 <td colspan="10">
193 <el-radio-group class="fl" v-model="formData.lz">
194 <el-radio :label="1">防护林</el-radio>
195 <el-radio :label="2">用材林</el-radio>
196 <el-radio :label="3">经济林</el-radio>
197 <el-radio :label="4">薪炭林</el-radio>
198 <el-radio :label="5">特种用途体</el-radio>
199 </el-radio-group>
200 </td>
201 </tr>
202 <tr>
203 <td colspan="2" class="tdright">林地使用起始时间</td>
204 <td colspan="2">
205 <el-date-picker
206 v-model="formData.ldsyqssj"
207 ref="tdsyqssj"
208 type="date"
209 value-format="yyyy-MM-dd"
210 placeholder="选择日期"
211 @blur="inputBlur($event, true)"
212 >
213 </el-date-picker>
214 </td>
215 <td colspan="2" class="tdright">林地使用期限</td>
216 <td colspan="2">
217 <input
218 type="text"
219 ref="syqx"
220 @blur="inputBlur($event, false)"
221 maxlength="3"
222 onkeyup="value=value.replace(/[^\d]/g,'')"
223 v-model="formData.syqx"
224 class="formInput"
225 />
226 </td>
227 <td colspan="2" class="tdright">林地使用起始时间</td>
228 <td colspan="2">
229 <el-date-picker
230 v-model="formData.ldsyjssj"
231 ref="tdsyjssj"
232 type="date"
233 value-format="yyyy-MM-dd"
234 placeholder="选择日期"
235 @blur="inputBlur($event, true)"
236 >
237 </el-date-picker>
238 </td>
239 </tr>
240 <tr >
241 <td colspan="2" rowspan="2" class="tdright">共有情况</td>
242 <td colspan="10" rowspan="2">
243 <input
244 class="formInput"
245 type="textarea"
246 :autosize="{ minRows: 2, maxRows: 4 }"
247 v-model="formData.gyqk"
248 />
249 </td>
250 </tr>
251 <tr></tr>
252 <tr rowspan="2">
253 <td colspan="2" class="tdright">审核意见</td>
254 <td colspan="10">
255 <input
256 class="formInput"
257 type="textarea"
258 :autosize="{ minRows: 2, maxRows: 4 }"
259 v-model="formData.shyj"
260 />
261 </td>
262 </tr>
263 <tr rowspan="2">
264 <td colspan="2" class="tdright">备注</td>
265 <td colspan="10">
266 <input
267 class="formInput"
268 type="textarea"
269 :autosize="{ minRows: 2, maxRows: 4 }"
270 v-model="formData.bz"
271 />
272 </td>
273 </tr>
274 </table>
275
276 <div class="header-button" :style="{ width: mainBoxWidth + 'px' }">
277 <el-button type="primary">保存</el-button>
278 </div>
279 </div>
280 </template>
281
282 <script>
283 import Qlr from "@components/formMenu/qlr";
284 import { getQjLqDetailById } from "@api/lq"
285 export default {
286 name: "",
287 components: {
288 Qlr,
289 },
290 props: {},
291 data() {
292 return {
293 disabled: false,
294 formData: {
295 mjdw: "",
296 zddm: "",
297 bdcdyh: "",
298 zl: "",
299 xdm: "",
300 lb: "",
301 xb: "",
302 mj: "",
303 qy: "",
304 zs: "",
305 zysz: "",
306 lz: "",
307 ldsyqssj: "",
308 syqx: "",
309 ldsyjssj: "",
310 gyqk: "",
311 shyj: "",
312 shrmc: "",
313 shsj: "",
314 bz: "",
315 },
316 dzwlxList: [
317 {
318 bsm: "1",
319 mc: "森林、林木",
320 },
321 {
322 bsm: "2",
323 mc: "其他",
324 },
325 ],
326 mainBoxWidth: 0,
327 };
328 },
329 created() {},
330 mounted() {
331 this.getLqData(this.$route.query.bsm);
332 this.$nextTick(() => {
333 this.mainBoxWidth = this.$refs.mainBox.clientWidth;
334 })
335 },
336 methods: {
337 inputBlur() {},
338 //查询林权基本信息
339 getLqData(bsm) {
340 getQjLqDetailById(bsm).then((res) => {
341 if (res.success) {
342 console.log(res, "林权信息");
343 }
344 });
345 },
346 },
347 computed: {},
348 watch: {},
349 };
350 </script>
351 <style scoped lang="less">
352 .main {
353 .lqjbxxTable {
354 margin: 0 0 50px 0;
355 background-color: #fff;
356 font-size: 14px;
357 width: 100%;
358 table-layout: fixed;
359 .dw {
360 float: right;
361 margin-right: 10px;
362 }
363 th {
364 height: 36px;
365 line-height: 36px;
366 font-size: 16px;
367 }
368 td {
369 text-align: center;
370 height: 36px;
371 border-color: #e6e6e6;
372 }
373
374 /deep/ .el-input__inner {
375 margin: 0;
376 height: 36px;
377 outline: none;
378 border: none;
379 color: #606764;
380 overflow: visible;
381 text-align: center;
382 }
383 .percent68 {
384 width: 68% !important;
385 float: left;
386 position: relative;
387 top: 7px;
388 }
389 .el-radio-group {
390 margin-left: 10px;
391 }
392 .el-radio {
393 margin-right: 20px !important;
394 }
395 .el-input__icon {
396 line-height: 37px;
397 }
398 .el-select {
399 width: 100%;
400 }
401 }
402 .header-button {
403 z-index: 3;
404 height: 50px;
405 position: fixed;
406 bottom: 0;
407 right: 6px;
408 text-align: center;
409 background-color: #ffffff;
410 .el-button {
411 padding: 10px 30px;
412 margin-top: 8px;
413 }
414 .saveBtn {
415 background-color: #00cacd;
416 border-color: #00cacd;
417 /deep/.iconfont {
418 font-size: 14px;
419 }
420 }
421 .saveBtn:hover {
422 background-color: rgba(0, 202, 205, 0.8);
423 border-color: rgba(0, 202, 205, 0.8);
424 }
425 }
426 }
427 </style>
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
137 </el-form> 137 </el-form>
138 <div class="handleBtn"> 138 <div class="handleBtn">
139 <!-- <el-button type="primary" class="w98 import">导入图形</el-button> --> 139 <!-- <el-button type="primary" class="w98 import">导入图形</el-button> -->
140 <el-button type="primary" class="w98 creat" @click="todo">创建</el-button> 140 <el-button type="primary" class="w98 creat" @click="newLq">创建</el-button>
141 <el-button type="primary" class="w98 cancel" @click="close">取消</el-button> 141 <el-button type="primary" class="w98 cancel" @click="close">取消</el-button>
142 </div> 142 </div>
143 </el-tab-pane> 143 </el-tab-pane>
...@@ -315,6 +315,9 @@ export default { ...@@ -315,6 +315,9 @@ export default {
315 if (this.$refs["ruleForm2"]) { 315 if (this.$refs["ruleForm2"]) {
316 this.$refs["ruleForm2"].resetFields(); 316 this.$refs["ruleForm2"].resetFields();
317 } 317 }
318 if (this.$refs["ruleForm3"]) {
319 this.$refs["ruleForm3"].resetFields();
320 }
318 }, 321 },
319 handleClick(tab, event) { 322 handleClick(tab, event) {
320 console.log(tab, event); 323 console.log(tab, event);
...@@ -323,29 +326,6 @@ export default { ...@@ -323,29 +326,6 @@ export default {
323 newZd() { 326 newZd() {
324 this.$refs['ruleForm'].validate((valid) => { 327 this.$refs['ruleForm'].validate((valid) => {
325 if (valid) { 328 if (valid) {
326 // insertQjZdjbxx(this.ruleForm)
327 // .then((res) => {
328 // console.log(res.result);
329 // if (res.code == "200") {
330 // this.getRightTree(res.result,'0,1,2');
331 // this.$message({
332 // message: "创建成功!",
333 // type: "success",
334 // });
335 // this.$store.state.zdbsm = res.result;
336 // //todo 跳转到宗地基本信息内容表页面 (预留)
337 // this.close();
338 // this.$router.push({
339 // path: '/zd', query:{
340 // source: 2,
341 // bsm:res.result
342 // }
343 // });
344 // } else {
345 // this.$message.error(res.message);
346 // }
347 // })
348 // .catch((error) => {});
349 let data = { 329 let data = {
350 params:this.ruleForm, 330 params:this.ruleForm,
351 workflowName:'新建宗地' 331 workflowName:'新建宗地'
...@@ -390,34 +370,6 @@ export default { ...@@ -390,34 +370,6 @@ export default {
390 if (valid) { 370 if (valid) {
391 this.ruleForm1.zdbsm = this.auth ? this.$store.state.zdbsm : ''; 371 this.ruleForm1.zdbsm = this.auth ? this.$store.state.zdbsm : '';
392 this.ruleForm1.dzbsm = this.auth ? this.$store.state.dzbsm : ''; 372 this.ruleForm1.dzbsm = this.auth ? this.$store.state.dzbsm : '';
393 // insertZrzjbxx(this.ruleForm1)
394 // .then((res) => {
395 // if (res.code == "200") {
396 // //获取左侧树数据
397 // this.$store.state.oldZdbsm = '';
398 // this.getTreeByBsm(res.result.bsm,'zrz','0,1,2');
399 // this.$message({
400 // message: "创建成功!",
401 // type: "success",
402 // });
403 // //todo 跳转到自然幢基本信息内容表页面 (预留)
404 // this.$store.state.zdbsm=res.result.zdbsm;
405 // this.$store.state.zrzbsm=res.result.bsm;
406 // this.$store.state.xmmc=res.result.xmmc;
407 // this.$store.state.newZdbsm = res.result.zdbsm;
408 // this.close();
409 // this.$router.push({
410 // path: '/zrz', query:{
411 // source: 1,
412 // bsm:res.result.bsm,
413 // auth: '0,1,2'
414 // }
415 // });
416 // } else {
417 // this.$message.error("创建失败!");
418 // }
419 // })
420 // .catch((error) => {});
421 let data = { 373 let data = {
422 params:this.ruleForm1, 374 params:this.ruleForm1,
423 workflowName:'新建自然幢' 375 workflowName:'新建自然幢'
...@@ -431,13 +383,10 @@ export default { ...@@ -431,13 +383,10 @@ export default {
431 message: "创建成功!", 383 message: "创建成功!",
432 type: "success", 384 type: "success",
433 }); 385 });
434 this.close();
435
436 this.$store.state.zrzbsm = res.processInstance.title; 386 this.$store.state.zrzbsm = res.processInstance.title;
437 this.$nextTick(()=>{ 387 this.$nextTick(()=>{
438 this.loadCache(res.processInstance.title,'zrz'); 388 this.loadCache(res.processInstance.title,'zrz');
439 }) 389 })
440 // todo 跳转到宗地基本信息内容表页面 (预留)
441 this.close(); 390 this.close();
442 this.$router.push({ 391 this.$router.push({
443 path: '/zrz', query:{ 392 path: '/zrz', query:{
...@@ -522,31 +471,6 @@ export default { ...@@ -522,31 +471,6 @@ export default {
522 this.$refs['ruleForm2'].validate((valid) => { 471 this.$refs['ruleForm2'].validate((valid) => {
523 if (valid) { 472 if (valid) {
524 this.ruleForm2.zdbsm = this.$store.state.zdbsm != '' ? this.$store.state.zdbsm : ''; 473 this.ruleForm2.zdbsm = this.$store.state.zdbsm != '' ? this.$store.state.zdbsm : '';
525 // insertDzjbxx(this.ruleForm2)
526 // .then((res) => {
527 // if (res.code == "200") {
528 // this.getTreeByBsm(res.result.bsm,'dz','0,1,2');
529 // this.$message({
530 // message: "创建成功!",
531 // type: "success",
532 // });
533 // this.$store.state.zdbsm=res.result.zdbsm;
534 // this.$store.state.dzbsm=res.result.bsm;
535 // this.$store.state.xmmc=res.result.xmmc;
536 // this.$store.state.newZdbsm = res.result.zdbsm;
537 // this.close();
538 // this.$router.push({
539 // path: '/dz', query:{
540 // source: 1,
541 // bsm:res.result.bsm,
542 // auth: '0,1,2'
543 // }
544 // });
545 // } else {
546 // this.$message.error("创建失败!");
547 // }
548 // })
549 // .catch((error) => {});
550 let data = { 474 let data = {
551 params:this.ruleForm2, 475 params:this.ruleForm2,
552 workflowName:'新建多幢' 476 workflowName:'新建多幢'
...@@ -561,7 +485,6 @@ export default { ...@@ -561,7 +485,6 @@ export default {
561 type: "success", 485 type: "success",
562 }); 486 });
563 this.close(); 487 this.close();
564
565 this.$store.state.dzbsm = res.processInstance.title; 488 this.$store.state.dzbsm = res.processInstance.title;
566 this.$nextTick(()=>{ 489 this.$nextTick(()=>{
567 this.loadCache(res.processInstance.title,'dz'); 490 this.loadCache(res.processInstance.title,'dz');
...@@ -589,6 +512,50 @@ export default { ...@@ -589,6 +512,50 @@ export default {
589 }); 512 });
590 513
591 }, 514 },
515 newLq(){
516 this.$refs['ruleForm3'].validate((valid) => {
517 if (valid) {
518 this.ruleForm3.zdbsm = this.$store.state.zdbsm != '' ? this.$store.state.zdbsm : '';
519 let data = {
520 params:this.ruleForm3,
521 workflowName:'新建林权'
522 };
523 createProcessInstance(data)
524 .then((res) => {
525 console.log(res);
526 if (res.needShow) {
527 this.getTreeByBsm(res.processInstance.title,"lq",'0,1,2');
528 this.$message({
529 message: "创建成功!",
530 type: "success",
531 });
532 this.close();
533 this.$store.state.dzbsm = res.processInstance.title;
534 this.$nextTick(()=>{
535 this.loadCache(res.processInstance.title,'lq');
536 })
537 // todo 跳转到宗地基本信息内容表页面 (预留)
538 this.close();
539 this.$router.push({
540 path: '/lq', query:{
541 source: 1,
542 bsm:res.processInstance.title,
543 ywbsm:res.processInstance.businessId,
544 workitemInstanceId:res.workitemInstance.id,
545 auth: '0,1,2'
546 }
547 });
548 } else {
549 this.$message.error("创建失败");
550 }
551 })
552 .catch((error) => {});
553 } else {
554 console.log('error submit!!');
555 return false;
556 }
557 });
558 },
592 todo(){ 559 todo(){
593 this.$message({ 560 this.$message({
594 message: "待开发", 561 message: "待开发",
......