树,以及部分权限控制问题
Showing
5 changed files
with
30 additions
and
21 deletions
... | @@ -10,22 +10,22 @@ | ... | @@ -10,22 +10,22 @@ |
10 | <tr height="30"> | 10 | <tr height="30"> |
11 | <td colspan="2" align="center" >宗地代码</td> | 11 | <td colspan="2" align="center" >宗地代码</td> |
12 | <td colspan="4" > | 12 | <td colspan="4" > |
13 | <input class="formInput" maxlength="19" v-model="form.zddm"> | 13 | <input class="formInput" :disabled="disabled" maxlength="19" v-model="form.zddm"> |
14 | </td> | 14 | </td> |
15 | <td colspan="2" align="center" >不动产单元号</td> | 15 | <td colspan="2" align="center" >不动产单元号</td> |
16 | <td colspan="4" class="psr"> | 16 | <td colspan="4" class="psr"> |
17 | <input class="formInput percent80" maxlength="28" v-model="form.bdcdyh"> | 17 | <input class="formInput percent80" :disabled="disabled" maxlength="28" v-model="form.bdcdyh"> |
18 | <el-button @click.prevent="generatorCode" size="mini" class="createBtn" type="warning">生成</el-button> | 18 | <el-button @click.prevent="generatorCode" :disabled="disabled" size="mini" class="createBtn" type="warning">生成</el-button> |
19 | </td> | 19 | </td> |
20 | </tr> | 20 | </tr> |
21 | <tr height="30"> | 21 | <tr height="30"> |
22 | <td colspan="2" align="center" >项目名称</td> | 22 | <td colspan="2" align="center" >项目名称</td> |
23 | <td colspan="4" > | 23 | <td colspan="4" > |
24 | <input class="formInput" v-model="form.xmmc"> | 24 | <input class="formInput" :disabled="disabled" v-model="form.xmmc"> |
25 | </td> | 25 | </td> |
26 | <td colspan="2" align="center" >房屋性质</td> | 26 | <td colspan="2" align="center" >房屋性质</td> |
27 | <td colspan="4" > | 27 | <td colspan="4" > |
28 | <el-select class="formSelect" v-model="form.fwxzbsm" placeholder="请选择" > | 28 | <el-select class="formSelect" :disabled="disabled" v-model="form.fwxzbsm" placeholder="请选择" > |
29 | <el-option | 29 | <el-option |
30 | v-for="item in $store.state.fwxzOptions" | 30 | v-for="item in $store.state.fwxzOptions" |
31 | :key="item.bsm" | 31 | :key="item.bsm" |
... | @@ -39,13 +39,14 @@ | ... | @@ -39,13 +39,14 @@ |
39 | <tr height="30"> | 39 | <tr height="30"> |
40 | <td colspan="2" align="center" >共有土地面积(㎡)</td> | 40 | <td colspan="2" align="center" >共有土地面积(㎡)</td> |
41 | <td colspan="4" > | 41 | <td colspan="4" > |
42 | <input class="formInput" type="number" v-model="form.zdmj"> | 42 | <input class="formInput" :disabled="disabled" type="number" v-model="form.zdmj"> |
43 | </td> | 43 | </td> |
44 | <td colspan="2" align="center" >竣工日期</td> | 44 | <td colspan="2" align="center" >竣工日期</td> |
45 | <td colspan="4" > | 45 | <td colspan="4" > |
46 | <el-date-picker | 46 | <el-date-picker |
47 | style="width:100%" | 47 | style="width:100%" |
48 | v-model="form.jgrq" | 48 | v-model="form.jgrq" |
49 | :disabled="disabled" | ||
49 | type="date" | 50 | type="date" |
50 | placeholder="选择日期"> | 51 | placeholder="选择日期"> |
51 | </el-date-picker> | 52 | </el-date-picker> |
... | @@ -55,11 +56,11 @@ | ... | @@ -55,11 +56,11 @@ |
55 | <tr height="30"> | 56 | <tr height="30"> |
56 | <td colspan="2" align="center" >分摊土地面积(㎡)</td> | 57 | <td colspan="2" align="center" >分摊土地面积(㎡)</td> |
57 | <td colspan="4" > | 58 | <td colspan="4" > |
58 | <input class="formInput" type="number" v-model="form.fttdsymj"> | 59 | <input class="formInput" type="number" :disabled="disabled" v-model="form.fttdsymj"> |
59 | </td> | 60 | </td> |
60 | <td colspan="2" align="center" >产别</td> | 61 | <td colspan="2" align="center" >产别</td> |
61 | <td colspan="4" > | 62 | <td colspan="4" > |
62 | <el-select class="formSelect" v-model="form.fwcbbsm" placeholder="请选择" > | 63 | <el-select class="formSelect" :disabled="disabled" v-model="form.fwcbbsm" placeholder="请选择" > |
63 | <el-option | 64 | <el-option |
64 | v-for="item in $store.state.cbOptions" | 65 | v-for="item in $store.state.cbOptions" |
65 | :key="item.bsm" | 66 | :key="item.bsm" |
... | @@ -73,11 +74,11 @@ | ... | @@ -73,11 +74,11 @@ |
73 | <tr height="30"> | 74 | <tr height="30"> |
74 | <td colspan="2" align="center" >多幢独用土地面积(㎡)</td> | 75 | <td colspan="2" align="center" >多幢独用土地面积(㎡)</td> |
75 | <td colspan="4" > | 76 | <td colspan="4" > |
76 | <input class="formInput" type="number" v-model="form.dlsytdmj"> | 77 | <input class="formInput" :disabled="disabled" type="number" v-model="form.dlsytdmj"> |
77 | </td> | 78 | </td> |
78 | <td colspan="2" align="center" >产权来源</td> | 79 | <td colspan="2" align="center" >产权来源</td> |
79 | <td colspan="4" > | 80 | <td colspan="4" > |
80 | <el-select class="formSelect" v-model="form.fwcqlybsm" placeholder="请选择" > | 81 | <el-select class="formSelect" :disabled="disabled" v-model="form.fwcqlybsm" placeholder="请选择" > |
81 | <el-option | 82 | <el-option |
82 | v-for="item in $store.state.cqlyOptions" | 83 | v-for="item in $store.state.cqlyOptions" |
83 | :key="item.bsm" | 84 | :key="item.bsm" |
... | @@ -106,7 +107,7 @@ | ... | @@ -106,7 +107,7 @@ |
106 | :default-expand-all="defaultExpandAll" | 107 | :default-expand-all="defaultExpandAll" |
107 | :multiple="multiple" | 108 | :multiple="multiple" |
108 | :placeholder="placeholder" | 109 | :placeholder="placeholder" |
109 | :disabled="form.qszt!='0'" | 110 | :disabled="disabled" |
110 | :data="$store.state.fwytList" | 111 | :data="$store.state.fwytList" |
111 | :props="treeProps" | 112 | :props="treeProps" |
112 | :check-strictly="checkStrictly" | 113 | :check-strictly="checkStrictly" |
... | @@ -122,7 +123,7 @@ | ... | @@ -122,7 +123,7 @@ |
122 | :default-expand-all="defaultExpandAll" | 123 | :default-expand-all="defaultExpandAll" |
123 | :multiple="multiple" | 124 | :multiple="multiple" |
124 | :placeholder="placeholder" | 125 | :placeholder="placeholder" |
125 | :disabled="form.qszt!='0'" | 126 | :disabled="disabled" |
126 | :data="$store.state.fwytList" | 127 | :data="$store.state.fwytList" |
127 | :props="treeProps" | 128 | :props="treeProps" |
128 | :check-strictly="checkStrictly" | 129 | :check-strictly="checkStrictly" |
... | @@ -144,7 +145,7 @@ | ... | @@ -144,7 +145,7 @@ |
144 | <span>坐落</span> | 145 | <span>坐落</span> |
145 | </td> | 146 | </td> |
146 | <td colspan="10" > | 147 | <td colspan="10" > |
147 | <input class="formInput" v-model="form.zl"> | 148 | <input class="formInput" v-model="form.zl" :disabled="disabled"> |
148 | </td> | 149 | </td> |
149 | </tr> | 150 | </tr> |
150 | 151 | ||
... | @@ -153,7 +154,7 @@ | ... | @@ -153,7 +154,7 @@ |
153 | <span>附加说明</span> | 154 | <span>附加说明</span> |
154 | </td> | 155 | </td> |
155 | <td colspan="10" rowspan="2" > | 156 | <td colspan="10" rowspan="2" > |
156 | <input class="formInput" v-model="form.bz" type="textarea"> | 157 | <input class="formInput" v-model="form.bz" :disabled="disabled" type="textarea"> |
157 | </td> | 158 | </td> |
158 | </tr> | 159 | </tr> |
159 | <tr height="30"> | 160 | <tr height="30"> |
... | @@ -164,7 +165,7 @@ | ... | @@ -164,7 +165,7 @@ |
164 | <span>调查意见</span> | 165 | <span>调查意见</span> |
165 | </td> | 166 | </td> |
166 | <td colspan="10" > | 167 | <td colspan="10" > |
167 | <input class="formInput" v-model="form.name"> | 168 | <input class="formInput" v-model="form.name" :disabled="disabled"> |
168 | </td> | 169 | </td> |
169 | </tr> | 170 | </tr> |
170 | 171 | ||
... | @@ -173,7 +174,7 @@ | ... | @@ -173,7 +174,7 @@ |
173 | <span>审查员</span> | 174 | <span>审查员</span> |
174 | </td> | 175 | </td> |
175 | <td colspan="2" > | 176 | <td colspan="2" > |
176 | <input class="formInput" v-model="form.name"> | 177 | <input class="formInput" v-model="form.name" :disabled="disabled"> |
177 | </td> | 178 | </td> |
178 | <td colspan="2" rowspan="2" align="right" style="width:8.33%;padding-right:10px"> | 179 | <td colspan="2" rowspan="2" align="right" style="width:8.33%;padding-right:10px"> |
179 | <span>审查日期</span> | 180 | <span>审查日期</span> |
... | @@ -182,6 +183,7 @@ | ... | @@ -182,6 +183,7 @@ |
182 | <el-date-picker style="width:100%" | 183 | <el-date-picker style="width:100%" |
183 | v-model="form.date" | 184 | v-model="form.date" |
184 | type="date" | 185 | type="date" |
186 | :disabled="disabled" | ||
185 | placeholder="选择日期"> | 187 | placeholder="选择日期"> |
186 | </el-date-picker> | 188 | </el-date-picker> |
187 | </td> | 189 | </td> |
... | @@ -387,6 +389,11 @@ | ... | @@ -387,6 +389,11 @@ |
387 | getDzDetailByBsm(data).then((res)=>{ | 389 | getDzDetailByBsm(data).then((res)=>{ |
388 | if(res.code===200) { | 390 | if(res.code===200) { |
389 | this.form = res.result; | 391 | this.form = res.result; |
392 | if(this.form.bblx === 0 && this.form.qszt === 0 && this.form.bhqkbsm == null){ | ||
393 | this.disabled = false | ||
394 | }else { | ||
395 | this.disabled = true | ||
396 | } | ||
390 | console.log(this.form+"fwytList") | 397 | console.log(this.form+"fwytList") |
391 | console.log(this.form) | 398 | console.log(this.form) |
392 | if(this.form.fwytList.length===0){ | 399 | if(this.form.fwytList.length===0){ | ... | ... |
... | @@ -377,17 +377,17 @@ export default { | ... | @@ -377,17 +377,17 @@ export default { |
377 | switch (row.dylx) { | 377 | switch (row.dylx) { |
378 | case "zrz": | 378 | case "zrz": |
379 | this.$store.state.zrzbsm = res.result; | 379 | this.$store.state.zrzbsm = res.result; |
380 | this.getTreeByBsm(row.glbsm,row.dylx,'2'); | 380 | this.getTreeByBsm(res.result,row.dylx,'2'); |
381 | path = "/zrz"; | 381 | path = "/zrz"; |
382 | break; | 382 | break; |
383 | case "zd": | 383 | case "zd": |
384 | this.$store.state.zdbsm = res.result; | 384 | this.$store.state.zdbsm = res.result; |
385 | this.getRightTree(row.glbsm,'2'); | 385 | this.getRightTree(res.result,'2'); |
386 | path = "/zd"; | 386 | path = "/zd"; |
387 | break; | 387 | break; |
388 | case "dz": | 388 | case "dz": |
389 | this.$store.state.dzbsm = res.result; | 389 | this.$store.state.dzbsm = res.result; |
390 | this.getTreeByBsm(row.glbsm,row.dylx,'2'); | 390 | this.getTreeByBsm(res.result,row.dylx,'2'); |
391 | path = "/dz"; | 391 | path = "/dz"; |
392 | break; | 392 | break; |
393 | default: | 393 | default: | ... | ... |
This diff is collapsed.
Click to expand it.
... | @@ -600,8 +600,10 @@ | ... | @@ -600,8 +600,10 @@ |
600 | if(res.code===200){ | 600 | if(res.code===200){ |
601 | this.form = res.result; | 601 | this.form = res.result; |
602 | this.hbsm = res.result.bsm; | 602 | this.hbsm = res.result.bsm; |
603 | if(res.result.qszt !== '0'){ | 603 | if(this.form.bblx === 0 && this.form.qszt === 0 && this.form.bhqkbsm == null){ |
604 | this.disableFlag = true; | 604 | this.disableFlag = false |
605 | }else { | ||
606 | this.disableFlag = true | ||
605 | } | 607 | } |
606 | if(this.form.scyclx==='0'){ | 608 | if(this.form.scyclx==='0'){ |
607 | this.$set(this.form,"ycjzmj", this.form.jzmj) | 609 | this.$set(this.form,"ycjzmj", this.form.jzmj) | ... | ... |
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment