44bae715 by 杨威
2 parents 87856703 a60277d2
1 import request from '@/plugin/axios'
2
3 /**
4 * 查询逻辑幢基本信息
5 */
6 export function getQjLjzDetailById(data) {
7 return request({
8 url: '/system/qjLjz/getQjLjzDetailById',
9 method: 'get',
10 params: {
11 id: data,
12 }
13 })
14 }
15
16 /**
17 * 更新保存逻辑幢基本信息
18 */
19 export function updateQjLjz(data) {
20 return request({
21 url: '/system/qjLjz/updateQjLjz',
22 method: 'put',
23 data: data,
24 })
25 }
26
...@@ -44,3 +44,17 @@ export function zrzList(data) { ...@@ -44,3 +44,17 @@ export function zrzList(data) {
44 data:data 44 data:data
45 }) 45 })
46 } 46 }
47
48 /**
49 * 查询宗地、自然幢等权属状态
50 * @param bsm
51 */
52 export function queryStatus(bsm) {
53 return request({
54 url:"/system/basiccommon/query-status",
55 method:'get',
56 params:{
57 bsm
58 }
59 })
60 }
......
...@@ -417,7 +417,6 @@ ...@@ -417,7 +417,6 @@
417 //todo 权利人页面调整 417 //todo 权利人页面调整
418 this.formData.addQjDlrFrRequest=[]; 418 this.formData.addQjDlrFrRequest=[];
419 this.formData.glbsm=this.bsm; 419 this.formData.glbsm=this.bsm;
420 this.formData.gyfsbsm=this.gyfs;
421 //将代理人,法人数据合在一起,名称为addQjDlrFrRequest; 420 //将代理人,法人数据合在一起,名称为addQjDlrFrRequest;
422 //法人的type字段类型为0, 421 //法人的type字段类型为0,
423 this.formData.fr.type=0; 422 this.formData.fr.type=0;
...@@ -427,7 +426,6 @@ ...@@ -427,7 +426,6 @@
427 this.formData.dlrList[k].type=1; 426 this.formData.dlrList[k].type=1;
428 this.formData.addQjDlrFrRequest.push(this.formData.dlrList[k]); 427 this.formData.addQjDlrFrRequest.push(this.formData.dlrList[k]);
429 } 428 }
430 this.formData.gyfsbsm=this.gyfs;
431 //如果是从更新按钮点击确定的则进行更新操作,如果不是,则进行添加操作 429 //如果是从更新按钮点击确定的则进行更新操作,如果不是,则进行添加操作
432 if(this.update){ 430 if(this.update){
433 console.log(this.formData) 431 console.log(this.formData)
...@@ -563,19 +561,12 @@ ...@@ -563,19 +561,12 @@
563 }, 561 },
564 created(){ 562 created(){
565 this.gyfsList = this.$store.state.gyfsList; 563 this.gyfsList = this.$store.state.gyfsList;
566 if(this.tableData.length>1){
567 for(let i = 0;i<this.gyfsList.length;i++){
568 let item = this.gyfsList[i];
569 this.gyfsList.disabled = item.mc === "单独所有" && item.bsm === this.gyfs;
570 }
571 }
572 }, 564 },
573 mounted() { 565 mounted() {
574 this.getQlrInfo(); 566 this.getQlrInfo();
575 if(this.$store.state.gyfsList.length>0){ 567 if(this.$store.state.gyfsList.length>0){
576 this.gyfs=this.$store.state.gyfsList[0].bsm; 568 this.gyfs=this.$store.state.gyfsList[0].bsm;
577 } 569 }
578
579 }, 570 },
580 watch:{ 571 watch:{
581 dialogVisible(n){ 572 dialogVisible(n){
...@@ -632,6 +623,11 @@ ...@@ -632,6 +623,11 @@
632 this.gyfsList[i].disabled = item.mc === "单独所有"; 623 this.gyfsList[i].disabled = item.mc === "单独所有";
633 } 624 }
634 } 625 }
626 console.log(this.tableData.length+":this.tableData[0].length");
627 if(this.tableData.length>1){
628 console.log(JSON.stringify(this.tableData[0])+":this.tableData[0].length");
629 this.gyfs = this.tableData[0].gyfsbsm
630 }
635 }, 631 },
636 } 632 }
637 }; 633 };
......
...@@ -253,7 +253,7 @@ export default { ...@@ -253,7 +253,7 @@ export default {
253 default: 253 default:
254 break; 254 break;
255 } 255 }
256 if(item.type == 'zd' ||item.type == 'dz' ||item.type == 'zrz'){ 256 if(item.type == 'zd' ||item.type == 'dz' ||item.type == 'zrz'||item.type == 'gzw'){
257 this.$router.push({ 257 this.$router.push({
258 path: '/'+item.type, 258 path: '/'+item.type,
259 query:{ 259 query:{
......
1 <template> 1 <template>
2 <div> 2 <div>
3 <el-dialog v-dialogDrag :close-on-click-modal="false" 3 <el-dialog v-dialogDrag :close-on-click-modal="false"
4 title="批量坐落" 4 title="批量坐落"
5 :visible.sync="isVisible" 5 :visible.sync="isVisible"
6 width="60%" 6 width="60%"
7 @close="close" 7 @close="close"
8 :modal-append-to-body="false" 8 :modal-append-to-body="false"
9 > 9 >
10 <div> 10 <div>
11 <table border="1"> 11 <table border="1">
12 <tr> 12 <tr>
13 <td>前缀</td> 13 <th>前缀</th>
14 <td>宗地</td> 14 <th>宗地</th>
15 <td>自然幢</td> 15 <th>自然幢</th>
16 <td>逻辑幢</td> 16 <th>逻辑幢</th>
17 <td>幢单元</td> 17 <th>幢单元</th>
18 <td></td> 18 <th></th>
19 <td></td> 19 <th></th>
20 <td>后缀</td> 20 <th>后缀</th>
21 </tr> 21 </tr>
22 <tr> 22 <tr>
23 <td> 23 <td>
24 <input type="text" class="inputtitle" v-model="plzlData.qz"/> 24 <el-input v-model="plzlData.qz"></el-input>
25 </td> 25 </td>
26 <td> 26 <td>
27 <el-select v-model="plzlData.zd"> 27 <el-select v-model="plzlData.zd">
28 <el-option v-for="i in zdgz" 28 <el-option v-for="i in zdgz"
29 :key="i.label" 29 :key="i.label"
30 :label="i.label" 30 :label="i.label"
31 :value="i.value"> 31 :value="i.value"
32 32 :disabled="i.disabled">
33 </el-option> 33 </el-option>
34 </el-select> 34 </el-select>
35 </td> 35 </td>
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
38 <el-option v-for="i in zrzgz" 38 <el-option v-for="i in zrzgz"
39 :key="i.label" 39 :key="i.label"
40 :label="i.label" 40 :label="i.label"
41 :value="i.value"> 41 :value="i.value"
42 42 :disabled="i.disabled">
43 </el-option> 43 </el-option>
44 </el-select> 44 </el-select>
45 </td> 45 </td>
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
84 </el-select> 84 </el-select>
85 </td> 85 </td>
86 <td> 86 <td>
87 <input type="text" class="inputtitle" v-model="plzlData.hz"/> 87 <el-input v-model="plzlData.hz"></el-input>
88 </td> 88 </td>
89 </tr> 89 </tr>
90 </table> 90 </table>
...@@ -132,22 +132,27 @@ ...@@ -132,22 +132,27 @@
132 zdgz: [ 132 zdgz: [
133 { 133 {
134 label: '宗地坐落', 134 label: '宗地坐落',
135 value: '1' 135 value: '1',
136 disabled: false
136 }, { 137 }, {
137 label: "宗地名称", 138 label: "宗地名称",
138 value: '2' 139 value: '2',
140 disabled: false
139 }, { 141 }, {
140 label: "空", 142 label: "空",
141 value: '3' 143 value: '3',
144 disabled: false
142 } 145 }
143 ], 146 ],
144 zrzgz: [ 147 zrzgz: [
145 { 148 {
146 label: '自然幢坐落', 149 label: '自然幢坐落',
147 value: '1' 150 value: '1',
151 disabled: false
148 }, { 152 }, {
149 label: "自然幢名称", 153 label: "自然幢名称",
150 value: '2' 154 value: '2',
155 disabled: false
151 }, { 156 }, {
152 label: "空", 157 label: "空",
153 value: '3' 158 value: '3'
...@@ -229,7 +234,7 @@ ...@@ -229,7 +234,7 @@
229 test: function () { 234 test: function () {
230 for (let key in this.plzlData) { 235 for (let key in this.plzlData) {
231 if (this.plzlData[key] !== '' && this.plzlData[key] !== '3') { 236 if (this.plzlData[key] !== '' && this.plzlData[key] !== '3') {
232 return true; 237 return true;
233 } 238 }
234 } 239 }
235 return false; 240 return false;
...@@ -305,6 +310,13 @@ ...@@ -305,6 +310,13 @@
305 watch: { 310 watch: {
306 plZlVisible: function (val) { 311 plZlVisible: function (val) {
307 this.isVisible = val 312 this.isVisible = val
313 },
314 plzlData: {
315 handler(val) {
316 this.zrzgz[0].disabled = +val.zd === 1;
317 this.zdgz[0].disabled = +val.zrz === 1;
318 },
319 deep: true
308 } 320 }
309 } 321 }
310 } 322 }
...@@ -321,6 +333,10 @@ ...@@ -321,6 +333,10 @@
321 } 333 }
322 } 334 }
323 335
336 th {
337 height: 36px;
338 }
339
324 td { 340 td {
325 text-align: center; 341 text-align: center;
326 height: 36px; 342 height: 36px;
......
...@@ -444,7 +444,7 @@ export default { ...@@ -444,7 +444,7 @@ export default {
444 cursor: pointer; 444 cursor: pointer;
445 height: 72px; 445 height: 72px;
446 padding: 0 30px; 446 padding: 0 30px;
447 font-size: 20px; 447 font-size: 18px;
448 line-height: 72px; 448 line-height: 72px;
449 float: left; 449 float: left;
450 position: relative; 450 position: relative;
...@@ -453,7 +453,7 @@ export default { ...@@ -453,7 +453,7 @@ export default {
453 /*border-right: 1px solid #EAEAEA;*/ 453 /*border-right: 1px solid #EAEAEA;*/
454 i { 454 i {
455 margin-right: 6px; 455 margin-right: 6px;
456 font-size: 22px; 456 font-size: 18px;
457 position: relative; 457 position: relative;
458 top: 1px; 458 top: 1px;
459 } 459 }
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
2 <div class="content_box"> 2 <div class="content_box">
3 <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" type="border-card" > 3 <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" type="border-card" >
4 <el-tab-pane label="多幢基本信息" name="dzxx"><dzxx v-if="dzJbxxVisble"></dzxx></el-tab-pane> 4 <el-tab-pane label="多幢基本信息" name="dzxx"><dzxx v-if="dzJbxxVisble"></dzxx></el-tab-pane>
5 <el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible"></fjcl></el-tab-pane> 5 <el-tab-pane label="附件材料" name="fjcl">
6 <fjcl v-if="fjclVisible" ref="fjcl"></fjcl></el-tab-pane>
6 </el-tabs> 7 </el-tabs>
7 </div> 8 </div>
8 </template> 9 </template>
...@@ -10,6 +11,7 @@ ...@@ -10,6 +11,7 @@
10 <script> 11 <script>
11 import dzxx from "./dzxx"; 12 import dzxx from "./dzxx";
12 import fjcl from "./../zd/fjcl/fjcl" 13 import fjcl from "./../zd/fjcl/fjcl"
14 import {queryStatus} from "@api/search"
13 export default { 15 export default {
14 name: "", 16 name: "",
15 components: { 17 components: {
...@@ -18,13 +20,25 @@ ...@@ -18,13 +20,25 @@
18 props: {}, 20 props: {},
19 data() { 21 data() {
20 return { 22 return {
23 isDisabled:false,
21 activeName: "dzxx", 24 activeName: "dzxx",
22 dzJbxxVisble:true, 25 dzJbxxVisble:true,
23 fjclVisible:false 26 fjclVisible:false
24 }; 27 };
25 }, 28 },
26 methods: { 29 methods: {
30 loadingStatus() {
31 debugger
32 let bsm=this.$store.state.dzbsm;
33 queryStatus(bsm).then(res => {
34 if (res.success) {
35 let qszt = res.result.qszt;
36 this.isDisabled = +qszt !== 0;
37 }
38 })
39 },
27 handleClick(tab, event) { 40 handleClick(tab, event) {
41 this.loadingStatus();
28 switch (tab.name) { 42 switch (tab.name) {
29 case 'dzxx': 43 case 'dzxx':
30 this.dzJbxxVisble = true; 44 this.dzJbxxVisble = true;
......
...@@ -13,17 +13,17 @@ ...@@ -13,17 +13,17 @@
13 </td> 13 </td>
14 <td colspan="2" align="center" >项目名称</td> 14 <td colspan="2" align="center" >项目名称</td>
15 <td colspan="4" > 15 <td colspan="4" >
16 <input class="formInput" v-model="form.xmmc" :disabled="form.qszt!=='0'"> 16 <input class="formInput" v-model="form.xmmc" :disabled="form.qszt!=='0'" @blur="inputBlur($event)" ref="xmmc">
17 </td> 17 </td>
18 </tr> 18 </tr>
19 <tr height="30"> 19 <tr height="30">
20 <td colspan="2" align="center" >坐落</td> 20 <td colspan="2" align="center" >坐落</td>
21 <td colspan="4" > 21 <td colspan="4" >
22 <input class="formInput" v-model="form.zl" :disabled="form.qszt!=='0'"> 22 <input class="formInput" v-model="form.zl" :disabled="form.qszt!=='0'" @blur="inputBlur($event)" ref="zl">
23 </td> 23 </td>
24 <td colspan="2" align="center" >不动产单元号</td> 24 <td colspan="2" align="center" >不动产单元号</td>
25 <td colspan="4" class="psr"> 25 <td colspan="4" class="psr">
26 <input class="formInput percent80" maxlength="28" v-model="form.bdcdyh" :disabled="form.qszt!=='0'"> 26 <input class="formInput percent80" maxlength="28" v-model="form.bdcdyh" :disabled="form.qszt!=='0'" @blur="inputBlur($event)" ref="bdcdyh">
27 <el-button @click.prevent="generatorCode" size="mini" class="createBtn" type="warning" :disabled="form.qszt!=='0'">生成</el-button> 27 <el-button @click.prevent="generatorCode" size="mini" class="createBtn" type="warning" :disabled="form.qszt!=='0'">生成</el-button>
28 </td> 28 </td>
29 </tr> 29 </tr>
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
129 bsm:'', 129 bsm:'',
130 }, 130 },
131 zdbsm:'', 131 zdbsm:'',
132 rules:[],
132 } 133 }
133 }, 134 },
134 methods:{ 135 methods:{
...@@ -140,6 +141,16 @@ ...@@ -140,6 +141,16 @@
140 } 141 }
141 }) 142 })
142 }, 143 },
144
145 inputBlur(e) {
146 if (e.target.value != '') {
147 e.target.style.border = ""
148 } else {
149 e.target.style.border = "1px solid red";
150 e.target.style.boxSizing = 'border-box';
151 }
152 },
153
143 generatorCode(){ 154 generatorCode(){
144 if(this.form.bdcdyh!=null&&this.form.bdcdyh!==''){ 155 if(this.form.bdcdyh!=null&&this.form.bdcdyh!==''){
145 this.open(); 156 this.open();
...@@ -182,15 +193,58 @@ ...@@ -182,15 +193,58 @@
182 }); 193 });
183 }, 194 },
184 onSave(){ 195 onSave(){
185 console.log(this.form,'this.form'); 196
186 this.bsm=this.$route.query.bsm; 197 this.rules=[
187 this.form.bsm=this.bsm; 198 {
188 this.form.jgsj=this.form.jgrq; 199 data:this.form.bdcdyh,
189 updateGzwjbxx(this.form).then((res)=>{ 200 name:'不动产单元号',
190 if(res.code === 200){ 201 dom:this.$refs.bdcdyh,
191 this.$message.success("保存完成!"); 202 rule: /^\s*$/g, //非空
203 },
204 {
205 data:this.form.xmmc,
206 name:'项目名称',
207 dom:this.$refs.xmmc,
208 rule: /^\s*$/g, //非空
209 },
210 {
211 data:this.form.zl,
212 name:'坐落',
213 dom:this.$refs.zl,
214 rule: /^\s*$/g, //非空
215 },
216 ]
217
218 let flag = true;
219 this.rules.forEach(item=>{
220 if(item.rule.test(item.data) || item.data == null){
221 if(item.dom.$el){
222 item.dom.$el.style.border = '1px solid red';
223 item.dom.$el.style.boxSizing = 'border-box';
224 }else{
225 item.dom.style.border = '1px solid red';
226 item.dom.style.boxSizing = 'border-box';
227 }
228 flag = false;
229 return false
230 }
231 })
232
233 this.$nextTick(()=> {
234 if (flag) {
235 console.log(this.form,'this.form');
236 this.bsm=this.$route.query.bsm;
237 this.form.bsm=this.bsm;
238 this.form.jgsj=this.form.jgrq;
239 updateGzwjbxx(this.form).then((res)=>{
240 if(res.code === 200){
241 this.$message.success("保存完成!");
242 }
243 })
192 } 244 }
193 }) 245 })
246
247
194 }, 248 },
195 getGzwDetailInfo(data){ 249 getGzwDetailInfo(data){
196 getQjGzwDetailInfo(data).then((res)=>{ 250 getQjGzwDetailInfo(data).then((res)=>{
...@@ -219,6 +273,7 @@ ...@@ -219,6 +273,7 @@
219 if(res.code===200){ 273 if(res.code===200){
220 this.$message.success("提交完成!"); 274 this.$message.success("提交完成!");
221 this.getGzwDetailInfo(this.bsm) 275 this.getGzwDetailInfo(this.bsm)
276 this.getTreeByBsm(this.bsm,'gzw','0,1,2')
222 } 277 }
223 }) 278 })
224 }, 279 },
...@@ -252,6 +307,12 @@ ...@@ -252,6 +307,12 @@
252 this.getGzwDetailInfo(val) 307 this.getGzwDetailInfo(val)
253 this.reload() 308 this.reload()
254 }, 309 },
310
311 "form.bdcdyh":function (val) {
312 if (val != '') {
313 this.$refs.bdcdyh.style.border = '';
314 }
315 },
255 } 316 }
256 } 317 }
257 </script> 318 </script>
......
...@@ -315,7 +315,7 @@ ...@@ -315,7 +315,7 @@
315 315
316 export default { 316 export default {
317 name: "", 317 name: "",
318 inject: ['getTreeByS'], 318 inject: ['getTreeByS','getRightTree'],
319 components: {zdQueryData,dzQueryData,hfghb}, 319 components: {zdQueryData,dzQueryData,hfghb},
320 props: {}, 320 props: {},
321 data() { 321 data() {
...@@ -634,6 +634,7 @@ ...@@ -634,6 +634,7 @@
634 } 634 }
635 saveDzFg(this.dzFghData).then(res => { 635 saveDzFg(this.dzFghData).then(res => {
636 if (res.success) { 636 if (res.success) {
637 this.getRightTree(res.result,'0,1,2');
637 Message.success("保存成功") 638 Message.success("保存成功")
638 //TO DO 多幢分割完成后的操作 639 //TO DO 多幢分割完成后的操作
639 } else { 640 } else {
......
...@@ -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:
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
8 <djb v-if="djbVisible"></djb> 8 <djb v-if="djbVisible"></djb>
9 </el-tab-pane> 9 </el-tab-pane>
10 <el-tab-pane label="附件材料" name="fjcl"> 10 <el-tab-pane label="附件材料" name="fjcl">
11 <fjcl v-if="fjclVisible"></fjcl> 11 <fjcl v-if="fjclVisible" ref="fjcl" :is-disabled="isDisabled"></fjcl>
12 </el-tab-pane> 12 </el-tab-pane>
13 </el-tabs> 13 </el-tabs>
14 </div> 14 </div>
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
26 }, 26 },
27 data() { 27 data() {
28 return { 28 return {
29 isDisabled:false,
29 hbsm:this.$store.state.hbsm, 30 hbsm:this.$store.state.hbsm,
30 activeName: "hjbxx", 31 activeName: "hjbxx",
31 djbVisible: false, 32 djbVisible: false,
...@@ -36,7 +37,19 @@ ...@@ -36,7 +37,19 @@
36 37
37 }, 38 },
38 methods: { 39 methods: {
40 loadingStatus() {
41 debugger
42 console.log("是否禁用")
43 let bsm=this.$store.state.hbsm;
44 queryStatus(bsm).then(res => {
45 if (res.success) {
46 let qszt = res.result.qszt;
47 this.isDisabled = +qszt !== 0;
48 }
49 })
50 },
39 handleClick(tab, event) { 51 handleClick(tab, event) {
52 this.loadingStatus()
40 // console.log(tab, event); 53 // console.log(tab, event);
41 switch (tab.name) { 54 switch (tab.name) {
42 case 'djb': 55 case 'djb':
......
...@@ -12,8 +12,9 @@ ...@@ -12,8 +12,9 @@
12 :show-file-list="false" 12 :show-file-list="false"
13 multiple 13 multiple
14 :on-exceed="handleExceed" 14 :on-exceed="handleExceed"
15 :disabled="isDisabled"
15 > 16 >
16 <el-button size="small" type="primary">上传</el-button> 17 <el-button size="small" type="primary" :disabled="isDisabled" >上传</el-button>
17 </el-upload> 18 </el-upload>
18 <table border="2"> 19 <table border="2">
19 <tr> 20 <tr>
...@@ -22,12 +23,12 @@ ...@@ -22,12 +23,12 @@
22 <th class="lx">文件类型</th> 23 <th class="lx">文件类型</th>
23 <th class="cz">操作</th> 24 <th class="cz">操作</th>
24 </tr> 25 </tr>
25 <tr v-if="list.length==0"> 26 <tr v-if="list.length===0">
26 <td colspan="4" class="noData" > 27 <td colspan="4" class="noData">
27 <span>暂无数据</span> 28 <span>暂无数据</span>
28 </td> 29 </td>
29 </tr> 30 </tr>
30 <tr v-else v-for="(item,index) in list" :key="index" > 31 <tr v-else v-for="(item,index) in list" :key="index">
31 <td class="xh">{{index+1}}</td> 32 <td class="xh">{{index+1}}</td>
32 <td class="mc">{{item.filename}}</td> 33 <td class="mc">{{item.filename}}</td>
33 <td class="lx">{{item.filepostfix}}</td> 34 <td class="lx">{{item.filepostfix}}</td>
...@@ -44,47 +45,43 @@ ...@@ -44,47 +45,43 @@
44 </template> 45 </template>
45 46
46 <script> 47 <script>
47 import {insertFile, getFileLis, downloadFile,loadFile,deleteFile} from "@api/common" 48 import {insertFile, getFileLis, downloadFile, loadFile, deleteFile} from "@api/common"
48 import {Message} from "element-ui" 49 import {queryStatus} from "@api/search"
49 50
50 export default { 51 export default {
51 name: "fjcl", 52 name: "fjcl",
52 data() { 53 data() {
53 return { 54 return {
54 fileData:{ 55 fileData: {
55 glbsm:'', 56 glbsm: '',
56 dylx:'' 57 dylx: ''
57 }, 58 },
58 list: [ 59 list: []
59 ],
60 /* filesData: {
61 dylx: "",
62 glbsm: "",
63 list: [
64 {
65 filename: "",
66 filepostfix: "",
67 fileurl: "",
68 preViewUrl:""
69 }
70 ]
71 },*/
72 } 60 }
73 }, 61 },
74 mounted() { 62 mounted() {
75 this.getFileList() 63 this.getFileList()
76 }, 64 },
65 created(){
66
67 },
68 props: {
69 isDisabled:{
70 type:Boolean,
71 default:false
72 }
73 },
77 methods: { 74 methods: {
78 deleteFile(bsm){ 75 deleteFile(bsm) {
79 this.$confirm('将删除该文件, 是否继续?', '提示', { 76 this.$confirm('将删除该文件, 是否继续?', '提示', {
80 confirmButtonText: '确定', 77 confirmButtonText: '确定',
81 cancelButtonText: '取消', 78 cancelButtonText: '取消',
82 type: 'warning' 79 type: 'warning'
83 }).then(() => { 80 }).then(() => {
84 deleteFile(bsm).then(res=>{ 81 deleteFile(bsm).then(res => {
85 if (res.success) { 82 if (res.success) {
86 this.getFileList(); 83 this.getFileList();
87 }else { 84 } else {
88 this.$message.error("删除失败") 85 this.$message.error("删除失败")
89 } 86 }
90 }) 87 })
...@@ -95,38 +92,38 @@ ...@@ -95,38 +92,38 @@
95 }); 92 });
96 }); 93 });
97 }, 94 },
98 loadFile(bsm){ 95 loadFile(bsm) {
99 loadFile(bsm).then(res=>{ 96 loadFile(bsm).then(res => {
100 if (res.success) { 97 if (res.success) {
101 window.open(res.message) 98 window.open(res.message)
102 } 99 }
103 }) 100 })
104 }, 101 },
105 downloadFile(url) { 102 downloadFile(url) {
106 window.open(`/api/file/download?url=`+url); 103 window.open(`/api/file/download?url=` + url);
107 }, 104 },
108 getFileList() { 105 getFileList() {
109 switch (this.$route.name) { 106 switch (this.$route.name) {
110 case "宗地": 107 case "宗地":
111 this.fileData.dylx = 'zd'; 108 this.fileData.dylx = 'zd';
112 this.fileData.glbsm = this.$store.state.zdbsm 109 this.fileData.glbsm = this.$store.state.zdbsm;
113 break; 110 break;
114 case "自然幢": 111 case "自然幢":
115 this.fileData.dylx = 'zrz'; 112 this.fileData.dylx = 'zrz';
116 this.fileData.glbsm = this.$store.state.zrzbsm 113 this.fileData.glbsm = this.$store.state.zrzbsm;
117 break 114 break;
118 case "多幢": 115 case "多幢":
119 this.fileData.dylx = 'dz'; 116 this.fileData.dylx = 'dz';
120 this.fileData.glbsm = this.$store.state.dzbsm 117 this.fileData.glbsm = this.$store.state.dzbsm;
121 break 118 break;
122 case "户": 119 case "户":
123 this.fileData.dylx = 'h'; 120 this.fileData.dylx = 'h';
124 this.fileData.glbsm = this.$store.state.hbsm 121 this.fileData.glbsm = this.$store.state.hbsm;
125 break; 122 break;
126 default: 123 default:
127 break 124 break
128 } 125 }
129 getFileLis(this.fileData.glbsm ).then(res => { 126 getFileLis(this.fileData.glbsm).then(res => {
130 if (res.success) { 127 if (res.success) {
131 this.list = res.result; 128 this.list = res.result;
132 } else { 129 } else {
...@@ -148,7 +145,7 @@ ...@@ -148,7 +145,7 @@
148 }, 145 },
149 handleExceed(files, fileList) { 146 handleExceed(files, fileList) {
150 console.log(fileList) 147 console.log(fileList)
151 // this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`); 148 // this.$message.warning(`当前限制选择 3 个文件,本次选择了 ${files.length} 个文件,共选择了 ${files.length + fileList.length} 个文件`);
152 this.$message.warning("上传失败") 149 this.$message.warning("上传失败")
153 }, 150 },
154 beforeRemove(file, fileList) { 151 beforeRemove(file, fileList) {
...@@ -185,19 +182,19 @@ ...@@ -185,19 +182,19 @@
185 color: blue; 182 color: blue;
186 text-decoration: underline; 183 text-decoration: underline;
187 } 184 }
188 .xh{ 185 .xh {
189 width: 100px; 186 width: 100px;
190 } 187 }
191 .mc{ 188 .mc {
192 width: 300px; 189 width: 300px;
193 } 190 }
194 .lx{ 191 .lx {
195 width: 120px; 192 width: 120px;
196 } 193 }
197 .cz{ 194 .cz {
198 width: 150px; 195 width: 150px;
199 } 196 }
200 .noData span{ 197 .noData span {
201 color: #BBB; 198 color: #BBB;
202 } 199 }
203 } 200 }
......
...@@ -2,12 +2,17 @@ ...@@ -2,12 +2,17 @@
2 <!-- <div class="content_box"> --> 2 <!-- <div class="content_box"> -->
3 <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" type="border-card" > 3 <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick" type="border-card" >
4 <el-tab-pane label="地籍调查表" name="djdcb"><zddcb></zddcb></el-tab-pane> 4 <el-tab-pane label="地籍调查表" name="djdcb"><zddcb></zddcb></el-tab-pane>
5 <el-tab-pane label="面积分摊表" name="mjftb"><mjftb v-if="mjftbVisible"></mjftb></el-tab-pane> 5 <el-tab-pane label="面积分摊表" name="mjftb"><mjftb v-if="mjftbVisible" :is-disabled="isDisabled"></mjftb></el-tab-pane>
6 <el-tab-pane label="界址点" name="jzd"><jzd v-if="jzdVisible"></jzd></el-tab-pane> 6 <el-tab-pane label="界址点" name="jzd">
7 <el-tab-pane label="界址线" name="jzx"><jzx v-if="jzxVisible"></jzx></el-tab-pane> 7 <jzd v-if="jzdVisible" :is-disabled="isDisabled"></jzd>
8 </el-tab-pane>
9 <el-tab-pane label="界址线" name="jzx" >
10 <jzx v-if="jzxVisible" :is-disabled="isDisabled"></jzx>
11 </el-tab-pane>
8 <el-tab-pane label="登记簿" name="djb"><djb v-if="djbVisible"></djb></el-tab-pane> 12 <el-tab-pane label="登记簿" name="djb"><djb v-if="djbVisible"></djb></el-tab-pane>
9 <el-tab-pane label="历史回溯" name="lshs"><lshs v-if="lshsVisible"></lshs></el-tab-pane> 13 <el-tab-pane label="历史回溯" name="lshs"><lshs v-if="lshsVisible"></lshs></el-tab-pane>
10 <el-tab-pane label="附件材料" name="fjcl"><fjcl v-if="fjclVisible"></fjcl></el-tab-pane> 14 <el-tab-pane label="附件材料" name="fjcl">
15 <fjcl v-if="fjclVisible" ref="fjcl" :is-disabled="isDisabled"></fjcl></el-tab-pane>
11 </el-tabs> 16 </el-tabs>
12 <!-- </div> --> 17 <!-- </div> -->
13 </template> 18 </template>
...@@ -20,6 +25,7 @@ import jzx from "./jzx"; ...@@ -20,6 +25,7 @@ import jzx from "./jzx";
20 import djb from "./djb"; 25 import djb from "./djb";
21 import lshs from "./lshs"; 26 import lshs from "./lshs";
22 import fjcl from "./fjcl/fjcl" 27 import fjcl from "./fjcl/fjcl"
28 import {queryStatus} from "@api/search"
23 export default { 29 export default {
24 name: "", 30 name: "",
25 components: { 31 components: {
...@@ -28,6 +34,7 @@ export default { ...@@ -28,6 +34,7 @@ export default {
28 props: {}, 34 props: {},
29 data() { 35 data() {
30 return { 36 return {
37 isDisabled:false,
31 activeName: "djdcb", 38 activeName: "djdcb",
32 mjftbVisible:false, 39 mjftbVisible:false,
33 jzdVisible:false, 40 jzdVisible:false,
...@@ -38,8 +45,24 @@ export default { ...@@ -38,8 +45,24 @@ export default {
38 }; 45 };
39 }, 46 },
40 methods: { 47 methods: {
48 loadingStatus() {
49 debugger
50 console.log("是否禁用")
51 let bsm=this.$store.state.zdbsm;
52 queryStatus(bsm).then(res => {
53 if (res.success) {
54 let qszt = res.result.qszt;
55 this.isDisabled = +qszt !== 0;
56 }
57 })
58 },
59 /* loading(){
60 console.log("附件材料是否禁用")
61 this.$refs.fjcl.isUpload(this.$store.state.zdbsm)
62 },*/
41 handleClick(tab, event) { 63 handleClick(tab, event) {
42 // console.log(tab, event); 64 // console.log(tab, event);
65 this.loadingStatus();
43 switch (tab.name) { 66 switch (tab.name) {
44 case 'mjftb': 67 case 'mjftb':
45 this.mjftbVisible = true; 68 this.mjftbVisible = true;
...@@ -59,7 +82,7 @@ export default { ...@@ -59,7 +82,7 @@ export default {
59 case 'fjcl': 82 case 'fjcl':
60 this.fjclVisible = true; 83 this.fjclVisible = true;
61 break; 84 break;
62 85
63 default: 86 default:
64 break; 87 break;
65 } 88 }
......
1 <template> 1 <template>
2 <div class="main"> 2 <div class="main">
3 <div class="button"> 3 <div class="button">
4 <el-button type="primary" @click="oneExit">编辑</el-button> 4 <el-button type="primary" @click="oneExit" :disabled="isDisabled">编辑</el-button>
5 <el-button type="primary" @click="save">保存</el-button> 5 <el-button type="primary" @click="save" :disabled="isDisabled">保存</el-button>
6 <el-button type="primary" @click="batchExit">批量修改</el-button> 6 <el-button type="primary" @click="batchExit" :disabled="isDisabled">批量修改</el-button>
7 </div> 7 </div>
8 <div class="table"> 8 <div class="table">
9 <table border="1"> 9 <table border="1">
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
18 <th class="">界标类型</th> 18 <th class="">界标类型</th>
19 <th class="">界址点类型</th> 19 <th class="">界址点类型</th>
20 </tr> 20 </tr>
21 <tr v-if="jzdlist.length==0"> 21 <tr v-if="jzdlist.length===0">
22 <td colspan="7"><span class="nodata">暂无数据</span></td> 22 <td colspan="7"><span class="nodata">暂无数据</span></td>
23 </tr> 23 </tr>
24 <tr v-for="(item,index) in jzdlist" :key="index" v-else> 24 <tr v-for="(item,index) in jzdlist" :key="index" v-else>
...@@ -109,12 +109,18 @@ ...@@ -109,12 +109,18 @@
109 109
110 <script> 110 <script>
111 import {queryjzd, jzdsingleModify, jzdbatchModify} from '@api/zd' 111 import {queryjzd, jzdsingleModify, jzdbatchModify} from '@api/zd'
112 import {queryStatus} from "@api/search"
112 import {Message} from 'element-ui' 113 import {Message} from 'element-ui'
113 114
114 export default { 115 export default {
115 name: "jzd", 116 name: "jzd",
116 components: {}, 117 components: {},
117 props: {}, 118 props: {
119 isDisabled:{
120 type:Boolean,
121 default:false
122 }
123 },
118 data() { 124 data() {
119 return { 125 return {
120 bsm: '', 126 bsm: '',
......
1 <template> 1 <template>
2 <div class="main"> 2 <div class="main">
3 <div class="button"> 3 <div class="button">
4 <el-button type="primary" @click="oneExit">编辑</el-button> 4 <el-button type="primary" @click="oneExit" :disabled="isDisabled">编辑</el-button>
5 <el-button type="primary" @click="save">保存</el-button> 5 <el-button type="primary" @click="save" :disabled="isDisabled">保存</el-button>
6 <el-button type="primary" @click="batchExit">批量修改</el-button> 6 <el-button type="primary" @click="batchExit" :disabled="isDisabled">批量修改</el-button>
7 </div> 7 </div>
8 <div class="table"> 8 <div class="table">
9 <table border="1"> 9 <table border="1">
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
19 <th class="">界限性质</th> 19 <th class="">界限性质</th>
20 <th class="">说明</th> 20 <th class="">说明</th>
21 </tr> 21 </tr>
22 <tr v-if="jzxlist.length==0"> 22 <tr v-if="jzxlist.length===0">
23 <td colspan="8"><span class="nodata">暂无数据</span></td> 23 <td colspan="8"><span class="nodata">暂无数据</span></td>
24 </tr> 24 </tr>
25 <tr v-for="(item,index) in jzxlist" :key="index" v-else> 25 <tr v-for="(item,index) in jzxlist" :key="index" v-else>
...@@ -137,7 +137,12 @@ ...@@ -137,7 +137,12 @@
137 export default { 137 export default {
138 name: "jzx", 138 name: "jzx",
139 components: {}, 139 components: {},
140 props: {}, 140 props: {
141 isDisabled:{
142 type:Boolean,
143 default:false
144 }
145 },
141 data() { 146 data() {
142 return { 147 return {
143 bsm: '', 148 bsm: '',
...@@ -246,13 +251,13 @@ ...@@ -246,13 +251,13 @@
246 } 251 }
247 }, 252 },
248 created() { 253 created() {
249 254 let bsm = this.$store.state.zdbsm;
250 },
251 mounted() {
252 let bsm = this.$store.state.zdbsm
253 this.bsm = bsm; 255 this.bsm = bsm;
254 this.getData(bsm) 256 this.getData(bsm)
255 }, 257 },
258 mounted() {
259
260 },
256 methods: { 261 methods: {
257 result() { 262 result() {
258 this.batchJzx.jzxlx = ''; 263 this.batchJzx.jzxlx = '';
......
...@@ -2,22 +2,23 @@ ...@@ -2,22 +2,23 @@
2 <div class="main" ref="mainBox"> 2 <div class="main" ref="mainBox">
3 <table border="1"> 3 <table border="1">
4 <tr> 4 <tr>
5 <td colspan="2">土地坐落</td> 5 <th colspan="2">土地坐落</th>
6 <td colspan="3"><input type="text" class="formInput" v-model="tdzl" disabled/></td> 6 <th colspan="3"><el-input v-model="tdzl" disabled></el-input></th>
7 </tr> 7 </tr>
8 <tr> 8 <tr>
9 <td colspan="2">宗地代码</td> 9 <th colspan="2">宗地代码</th>
10 <td colspan="3"><input type="text" class="formInput" v-model="zddm " disabled/></td> 10 <td colspan="3"><el-input v-model="zddm " disabled></el-input></td>
11 </tr> 11 </tr>
12 <tr> 12 <tr>
13 <td colspan="2">宗地面积(㎡)</td> 13 <th colspan="2">宗地面积(㎡)</th>
14 <td><input type="number" class="formInput" v-model.number="zdmj" disabled/></td> 14 <th>
15 <td>定着物数量</td> 15 <el-input v-model="zdmj" disabled/></th>
16 <th>定着物数量</th>
16 <td class="dzwsl">{{dzwdsl}}</td> 17 <td class="dzwsl">{{dzwdsl}}</td>
17 </tr> 18 </tr>
18 <tr> 19 <tr>
19 <td colspan="2">备注</td> 20 <th colspan="2">备注</th>
20 <td colspan="3"><input type="text" class="formInput" v-model="mjftData.bz"/></td> 21 <td colspan="3"><el-input v-model="mjftData.bz" :disabled="isDisabled"></el-input></td>
21 </tr> 22 </tr>
22 </table> 23 </table>
23 <table border="1"> 24 <table border="1">
...@@ -26,12 +27,13 @@ ...@@ -26,12 +27,13 @@
26 type="primary" 27 type="primary"
27 class="changeBtn inAdd addMinus" 28 class="changeBtn inAdd addMinus"
28 @click="addRow" 29 @click="addRow"
30 :disabled="isDisabled"
29 >+</el-button 31 >+</el-button
30 ></td> 32 ></td>
31 <td class="dzwdm">定着物代码</td> 33 <th class="dzwdm">定着物代码</th>
32 <td class="syqmj">土地所有权/使用权面积(㎡)</td> 34 <th class="syqmj">土地所有权/使用权面积(㎡)</th>
33 <td class="dytdmj">独有独用土地面积(㎡)</td> 35 <th class="dytdmj">独有独用土地面积(㎡)</th>
34 <td class="fttjmj">分摊土地面积(㎡)</td> 36 <th class="fttjmj">分摊土地面积(㎡)</th>
35 </tr> 37 </tr>
36 <tr v-for="(item,i) in mjftData.list" :key="i"> 38 <tr v-for="(item,i) in mjftData.list" :key="i">
37 <td class="cz"> 39 <td class="cz">
...@@ -39,42 +41,40 @@ ...@@ -39,42 +41,40 @@
39 type="primary" 41 type="primary"
40 class="changeBtn inMinus addMinus" 42 class="changeBtn inMinus addMinus"
41 @click="delRow(i)" 43 @click="delRow(i)"
44 :disabled="isDisabled"
42 >-</el-button 45 >-</el-button
43 > 46 >
44 </td> 47 </td>
45 <td class="dzwdm"> 48 <td class="dzwdm">
46 <el-input v-model="item.dzwdm" 49 <el-input v-model="item.dzwdm"
47 maxlength="9" 50 maxlength="9"
51 :disabled="isDisabled"
48 > 52 >
49 </el-input> 53 </el-input>
50 </td> 54 </td>
51 <td class="syqmj"> 55 <td class="syqmj">
52 <el-input style="ime-mode:inactive" 56 <el-input style="ime-mode:inactive"
53 oninput="value = (value.match(/^\d*(\.?\d{0,3})/g)[0]) || null" 57 oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null"
54 v-model="item.tdsyqsyqmj" 58 v-model="item.tdsyqsyqmj" :disabled="isDisabled"
55 ></el-input> 59 ></el-input>
56 </td> 60 </td>
57 <td class="dytdmj"> 61 <td class="dytdmj">
58 <el-input v-model="item.dydytdmj" style="ime-mode:inactive" oninput="value = (value.match(/^\d*(\.?\d{0,3})/g)[0]) || null"></el-input> 62 <el-input v-model="item.dydytdmj" style="ime-mode:inactive" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null" :disabled="isDisabled"></el-input>
59 </td> 63 </td>
60 <td class="fttjmj"> 64 <td class="fttjmj">
61 <el-input v-model="item.fttdmj" style="ime-mode:inactive" oninput="value = (value.match(/^\d*(\.?\d{0,3})/g)[0]) || null"></el-input> 65 <el-input v-model="item.fttdmj" style="ime-mode:inactive" oninput="value = (value.match(/^\d{0,8}(\.?\d{0,3})/g)[0]) || null" :disabled="isDisabled"></el-input>
62 </td> 66 </td>
63 </tr> 67 </tr>
64 <tr> 68 <tr>
65 <td class="cz"></td> 69 <td class="cz"></td>
66 <td class="dzwdm">统计</td> 70 <th class="dzwdm">统计</th>
67 <td class="syqmj">{{sumTdsyqsyqmj}}</td> 71 <td class="syqmj">{{sumTdsyqsyqmj}}</td>
68 <td class="dytdmj">{{sumDydytdmj}}</td> 72 <td class="dytdmj">{{sumDydytdmj}}</td>
69 <td class="fttjmj">{{sumFttdmj}}</td> 73 <td class="fttjmj">{{sumFttdmj}}</td>
70 </tr> 74 </tr>
71 </table> 75 </table>
72 <!-- <div class="pers">
73 <el-button @click="save" type="primary">保存</el-button>
74 </div> -->
75
76 <div class="header-button" :style="{width:mainBoxWidth+'px'}"> 76 <div class="header-button" :style="{width:mainBoxWidth+'px'}">
77 <el-button type="primary" class="saveBtn" @click="save">保存</el-button> 77 <el-button type="primary" class="saveBtn" @click="save" :disabled="isDisabled">保存</el-button>
78 </div> 78 </div>
79 </div> 79 </div>
80 </template> 80 </template>
...@@ -85,6 +85,12 @@ ...@@ -85,6 +85,12 @@
85 85
86 export default { 86 export default {
87 name: "index", 87 name: "index",
88 props: {
89 isDisabled:{
90 type:Boolean,
91 default:false
92 }
93 },
88 data() { 94 data() {
89 return { 95 return {
90 tdzl: '', // 土地坐落 继承获取 96 tdzl: '', // 土地坐落 继承获取
...@@ -250,16 +256,6 @@ ...@@ -250,16 +256,6 @@
250 font-size: 14px; 256 font-size: 14px;
251 width: 100%; 257 width: 100%;
252 cursor: pointer; 258 cursor: pointer;
253 .formInput {
254 margin: 0;
255 height: 36px;
256 outline: none;
257 border: none;
258 color: #606764;
259 overflow: visible;
260 text-align: center;
261 cursor: text;
262 }
263 td { 259 td {
264 text-align: center; 260 text-align: center;
265 height: 36px; 261 height: 36px;
...@@ -303,11 +299,11 @@ ...@@ -303,11 +299,11 @@
303 width: 50px; 299 width: 50px;
304 } 300 }
305 301
306 .dzwdm { 302 .dzwdm ,.syqmj,.dytdmj,.fttjmj{
307 width: 150px; 303 width: 150px;
308 } 304 }
309 305
310 .syqmj { 306 /* .syqmj {
311 width: 150px; 307 width: 150px;
312 } 308 }
313 309
...@@ -317,6 +313,6 @@ ...@@ -317,6 +313,6 @@
317 313
318 .fttjmj { 314 .fttjmj {
319 width: 150px; 315 width: 150px;
320 } 316 }*/
321 317
322 </style> 318 </style>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
6 <el-tab-pane label="登记簿" name="djb"><djb></djb></el-tab-pane> 6 <el-tab-pane label="登记簿" name="djb"><djb></djb></el-tab-pane>
7 <el-tab-pane label="楼盘表" name="lpb"><lpb v-if="lpbLoad"></lpb></el-tab-pane> 7 <el-tab-pane label="楼盘表" name="lpb"><lpb v-if="lpbLoad"></lpb></el-tab-pane>
8 <el-tab-pane label="历史回溯" name="lshs"><lshs></lshs></el-tab-pane> 8 <el-tab-pane label="历史回溯" name="lshs"><lshs></lshs></el-tab-pane>
9 <el-tab-pane label="附件材料" name="fjcl"><fjcl></fjcl></el-tab-pane> 9 <el-tab-pane label="附件材料" name="fjcl"><fjcl ref="fjcl" :is-disabled="isDisabled"></fjcl></el-tab-pane>
10 </el-tabs> 10 </el-tabs>
11 </div> 11 </div>
12 </template> 12 </template>
...@@ -18,6 +18,7 @@ import djb from "./djb"; ...@@ -18,6 +18,7 @@ import djb from "./djb";
18 import lpb from "./lpb"; 18 import lpb from "./lpb";
19 import lshs from "./lshs"; 19 import lshs from "./lshs";
20 import fjcl from "./../zd/fjcl/fjcl"; 20 import fjcl from "./../zd/fjcl/fjcl";
21 import {queryStatus} from "@api/search"
21 export default { 22 export default {
22 name: "", 23 name: "",
23 components: { 24 components: {
...@@ -26,13 +27,26 @@ export default { ...@@ -26,13 +27,26 @@ export default {
26 props: {}, 27 props: {},
27 data() { 28 data() {
28 return { 29 return {
30 isDisabled:false,
29 activeName: "zrzxx", 31 activeName: "zrzxx",
30 lpbLoad:false, //默认不加载楼盘表组件 32 lpbLoad:false, //默认不加载楼盘表组件
31 yzgyLoad:false, 33 yzgyLoad:false,
32 }; 34 };
33 }, 35 },
34 methods: { 36 methods: {
37 loadingStatus() {
38 debugger
39 console.log("是否禁用")
40 let bsm=this.$store.state.zrzbsm;
41 queryStatus(bsm).then(res => {
42 if (res.success) {
43 let qszt = res.result.qszt;
44 this.isDisabled = +qszt !== 0;
45 }
46 })
47 },
35 handleClick(tab, event) { 48 handleClick(tab, event) {
49 this.loadingStatus()
36 if(!this.lpbLoad){ 50 if(!this.lpbLoad){
37 this.lpbLoad = tab.name == 'lpb' ? true : false 51 this.lpbLoad = tab.name == 'lpb' ? true : false
38 } 52 }
......
...@@ -9,33 +9,24 @@ ...@@ -9,33 +9,24 @@
9 </template> 9 </template>
10 </el-table-column> 10 </el-table-column>
11 <el-table-column prop="zrzmc" label="自然幢" align="center"> 11 <el-table-column prop="zrzmc" label="自然幢" align="center">
12 <!-- <template slot-scope="scope">
13 <el-input size="small" v-model="scope.row.ljzbsm"></el-input>
14 </template> -->
15 </el-table-column> 12 </el-table-column>
16 <el-table-column prop="ljzmc" label="逻辑幢" align="center"> 13 <el-table-column prop="ljzmc" label="逻辑幢" align="center">
17 <!-- <template slot-scope="scope">
18 <el-input size="small" v-model="scope.row.ljzbsm"></el-input>
19 </template> -->
20 </el-table-column> 14 </el-table-column>
21 <el-table-column prop="zdymc" label="幢单元" align="center"> 15 <el-table-column prop="zdymc" label="幢单元" align="center">
22 <!-- <template slot-scope="scope">
23 <el-input size="small" v-model="scope.row.zdybsm"></el-input>
24 </template> -->
25 </el-table-column> 16 </el-table-column>
26 <el-table-column prop="qsc" label="起始层" align="center"> 17 <el-table-column prop="qsc" label="起始层" align="center">
27 <template slot-scope="scope"> 18 <template slot-scope="scope">
28 <el-input size="small" v-model="scope.row.qsc"></el-input> 19 <el-input v-model="scope.row.qsc" type="number"></el-input>
29 </template> 20 </template>
30 </el-table-column> 21 </el-table-column>
31 <el-table-column prop="jsc" label="结束层" align="center"> 22 <el-table-column prop="jsc" label="结束层" align="center">
32 <template slot-scope="scope"> 23 <template slot-scope="scope">
33 <el-input size="small" v-model="scope.row.jsc"></el-input> 24 <el-input v-model="scope.row.jsc" type="number"></el-input>
34 </template> 25 </template>
35 </el-table-column> 26 </el-table-column>
36 <el-table-column prop="hs" label="每层户数" align="center"> 27 <el-table-column prop="hs" label="每层户数" align="center">
37 <template slot-scope="scope"> 28 <template slot-scope="scope">
38 <el-input size="small" v-model="scope.row.hs"></el-input> 29 <el-input v-model="scope.row.hs" type="number"></el-input>
39 </template> 30 </template>
40 </el-table-column> 31 </el-table-column>
41 </el-table> 32 </el-table>
...@@ -87,6 +78,9 @@ export default { ...@@ -87,6 +78,9 @@ export default {
87 handleRowClick(row, index) { 78 handleRowClick(row, index) {
88 if (row.cz == "+") { 79 if (row.cz == "+") {
89 let temp = JSON.parse(JSON.stringify(this.formData)); 80 let temp = JSON.parse(JSON.stringify(this.formData));
81 temp.qsc = '';
82 temp.jsc = '';
83 temp.hs = '';
90 temp.cz = "-"; 84 temp.cz = "-";
91 this.tableData.push(temp); 85 this.tableData.push(temp);
92 } else { 86 } else {
...@@ -94,6 +88,23 @@ export default { ...@@ -94,6 +88,23 @@ export default {
94 } 88 }
95 }, 89 },
96 onSave(bsm) { 90 onSave(bsm) {
91 console.log(this.tableData)
92 let totalHs = 0;
93 for(let k =0;k<this.tableData.length;k++){
94 if(this.tableData[k].qsc === ""||this.tableData[k].jsc === ""||this.tableData[k].hs === ""){
95 this.$message.warning("表单不完整,请填写完整")
96 return false
97 }
98 if(this.tableData[k].qsc - this.tableData[k].jsc > 0){
99 this.$message.warning("存在结束层大于起始层,请重写填写")
100 return false
101 }
102 totalHs = totalHs + (this.tableData[k].jsc-this.tableData[k].qsc+1)*this.tableData[k].hs;
103 }
104 if(totalHs >= 5000){
105 this.$message.warning("单次添加户数累积超过5000户,请分次添加!")
106 return false
107 }
97 insertChInfo(this.tableData).then((res) => { 108 insertChInfo(this.tableData).then((res) => {
98 if (res.code === 200) { 109 if (res.code === 200) {
99 this.$message.success("保存成功"); 110 this.$message.success("保存成功");
......
...@@ -393,8 +393,8 @@ ...@@ -393,8 +393,8 @@
393 </table> 393 </table>
394 </el-form> 394 </el-form>
395 <div class="header-button" :style="{width:mainBoxWidth+'px'}"> 395 <div class="header-button" :style="{width:mainBoxWidth+'px'}">
396 <el-button type="primary" class="saveBtn" @click="onSave">保存</el-button> 396 <el-button type="primary" class="saveBtn" @click="onSave" :disabled="disableFlag">保存</el-button>
397 <el-button type="primary" @click="onSubmit">提交</el-button> 397 <el-button type="primary" @click="onSubmit" :disabled="disableFlag">提交</el-button>
398 <el-button type="primary" @click="registerCall">登记调用</el-button> 398 <el-button type="primary" @click="registerCall">登记调用</el-button>
399 <!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> --> 399 <!-- <el-button type="primary" class="saveBtn" @click="save">保存</el-button> -->
400 </div> 400 </div>
...@@ -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)
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
21 </td> 21 </td>
22 <td colspan="2" align="center">自然幢号</td> 22 <td colspan="2" align="center">自然幢号</td>
23 <td colspan="4"> 23 <td colspan="4">
24 <el-input v-model="form.zrzh" maxlength="24"></el-input> 24 <el-input v-model="form.zrzh" maxlength="24" disabled></el-input>
25 </td> 25 </td>
26 </tr> 26 </tr>
27 <tr height="30"> 27 <tr height="30">
...@@ -96,28 +96,25 @@ ...@@ -96,28 +96,25 @@
96 :rowspan="ytTitleRowspan" 96 :rowspan="ytTitleRowspan"
97 align="center" 97 align="center"
98 > 98 >
99 <el-button 99 <i class="iconfont iconicon-test1" style="margin-right: 8px;color:#66b1ff;font-size:30px" @click="addYtInfo"></i>
100 type="primary"
101 size="mini"
102 style="margin-right: 10px"
103 @click="addYtInfo"
104 >添加</el-button
105 >
106 <span>用途</span> 100 <span>用途</span>
107 </td> 101 </td>
108 <td colspan="1" align="center"> 102 <td colspan="1" align="center">
109 <span @click="deleteYtInfo(index)">删除</span> 103 <i class="iconfont iconicon-test" style="color:#FA6400;font-size:30px" @click="deleteYtInfo(index)"></i>
110 </td> 104 </td>
111 <td colspan="9"> 105 <td colspan="9">
112 <el-select v-model="item1.fwytzdbsm" placeholder="请选择"> 106 <el-select-tree style="width:100%"
113 <el-option 107 ref="yt"
114 v-for="item in $store.state.tdytList" 108 v-if="show"
115 :key="item.bsm" 109 :default-expand-all="defaultExpandAll"
116 :label="item.mc" 110 :multiple="multiple"
117 :value="item.bsm" 111 :placeholder="placeholder"
118 > 112 :data="$store.state.fwytList"
119 </el-option> 113 :props="treeProps"
120 </el-select> 114 :check-strictly="checkStrictly"
115 :clearable="clearable"
116 v-model="item1.fwytzdbsm"
117 ></el-select-tree>
121 </td> 118 </td>
122 </tr> 119 </tr>
123 120
...@@ -132,28 +129,25 @@ ...@@ -132,28 +129,25 @@
132 :rowspan="fwjgTitleRowspan" 129 :rowspan="fwjgTitleRowspan"
133 align="center" 130 align="center"
134 > 131 >
135 <el-button 132 <i class="iconfont iconicon-test1" style="margin-right: 8px;color:#66b1ff;font-size:30px" @click="addFwjgInfo"></i>
136 type="primary"
137 size="mini"
138 style="margin-right: 10px"
139 @click="addFwjgInfo"
140 >添加</el-button
141 >
142 <span>房屋结构</span> 133 <span>房屋结构</span>
143 </td> 134 </td>
144 <td colspan="1" align="center"> 135 <td colspan="1" align="center">
145 <span @click="deleteFwjgInfo(index)">删除</span> 136 <i class="iconfont iconicon-test" style="color:#FA6400;font-size:30px" @click="deleteFwjgInfo(index)"></i>
146 </td> 137 </td>
147 <td colspan="9"> 138 <td colspan="9">
148 <el-select v-model="item1.fwjgzdbsm" placeholder="请选择"> 139 <el-select-tree style="width:100%"
149 <el-option 140 ref="yt"
150 v-for="item in $store.state.jgOptions" 141 v-if="show"
151 :key="item.bsm" 142 :default-expand-all="defaultExpandAll"
152 :label="item.mc" 143 :multiple="multiple"
153 :value="item.bsm" 144 :placeholder="placeholder"
154 > 145 :data="$store.state.jgOptions"
155 </el-option> 146 :props="treeProps"
156 </el-select> 147 :check-strictly="checkStrictly"
148 :clearable="clearable"
149 v-model="item1.fwjgzdbsm"
150 ></el-select-tree>
157 </td> 151 </td>
158 </tr> 152 </tr>
159 153
...@@ -192,6 +186,7 @@ ...@@ -192,6 +186,7 @@
192 186
193 <script> 187 <script>
194 import { insertLjzInfo } from "@api/lpb"; 188 import { insertLjzInfo } from "@api/lpb";
189 import { getQjLjzDetailById,updateQjLjz } from "@api/ljz";
195 import { formdate } from "@libs/function"; 190 import { formdate } from "@libs/function";
196 export default { 191 export default {
197 name: "ljz", 192 name: "ljz",
...@@ -204,6 +199,21 @@ export default { ...@@ -204,6 +199,21 @@ export default {
204 }, 199 },
205 data() { 200 data() {
206 return { 201 return {
202
203 //树型结构
204 show:true,
205 clearable: true,
206 defaultExpandAll: true,
207 multiple: false,
208 placeholder: '请选择',
209 disabled: false,
210 checkStrictly: true,
211 treeProps: {
212 value: 'bsm',
213 children: 'children',
214 label: 'mc'
215 },
216
207 form: { 217 form: {
208 zrzbsm: "", 218 zrzbsm: "",
209 ljzh: "", //逻辑幢号 219 ljzh: "", //逻辑幢号
...@@ -275,7 +285,7 @@ export default { ...@@ -275,7 +285,7 @@ export default {
275 this.form = { 285 this.form = {
276 // zrzbsm: "", 286 // zrzbsm: "",
277 ljzh: "", //逻辑幢号 287 ljzh: "", //逻辑幢号
278 // zrzh: "", //自然幢号 288 zrzh: this.$store.state.zrzh, //自然幢号
279 ljzmc: "", //逻辑幢顺序号 289 ljzmc: "", //逻辑幢顺序号
280 bdcdyh: "", //不动产单元号 290 bdcdyh: "", //不动产单元号
281 mph: "", //门牌号 291 mph: "", //门牌号
...@@ -336,6 +346,11 @@ export default { ...@@ -336,6 +346,11 @@ export default {
336 }else{ 346 }else{
337 //逻辑幢更新接口调用 TODO 347 //逻辑幢更新接口调用 TODO
338 console.log('保存'); 348 console.log('保存');
349 updateQjLjz(this.form).then((res)=>{
350 if(res.code === 200){
351 this.$message.success("修改成功")
352 }
353 })
339 } 354 }
340 }, 355 },
341 onSubmit() { 356 onSubmit() {
...@@ -343,8 +358,48 @@ export default { ...@@ -343,8 +358,48 @@ export default {
343 }, 358 },
344 //根据逻辑幢bsm查询逻辑幢信息 359 //根据逻辑幢bsm查询逻辑幢信息
345 getLjzInfo(bsm){ 360 getLjzInfo(bsm){
346 //逻辑幢信息查询接口调用 bsm为逻辑幢bsm TODO 361 //逻辑幢信息查询接口调用 bsm为逻辑幢bsm
347 this.form = {zrzh:'11111111'}; 362 getQjLjzDetailById(bsm).then((res)=>{
363 if(res.code === 200){
364 this.form = res.result;
365 this.form.zrzh = this.$store.state.zrzh;
366 this.form.fwjgList= [
367 {
368 fwjgzdbsm: "", //房屋结构字典标识码
369 glbsm: "", //关联标识码
370 sx: "", //顺序
371 },
372 ];
373 this.form.ytList= [
374 {
375 glbsm: "", //关联标识码
376 fwytzdbsm: "", //房屋用途字典标识码
377 sx: "", //顺序
378 },
379 ];
380 if(this.form.qjfwjg.length>0){
381 this.form.fwjgList= [];
382 for(let i =0;i<this.form.qjfwjg.length;i++){
383 this.form.fwjgList.push({
384 fwjgzdbsm: this.form.qjfwjg[i].fwjgzdbsm, //房屋结构字典标识码
385 glbsm: this.form.qjfwjg[i].glbsm, //关联标识码
386 sx: this.form.qjfwjg[i].sx, //顺序
387 })
388 }
389 }
390 if(this.form.qjfwyt.length>0){
391 this.form.ytList= [];
392 for(let i =0;i<this.form.qjfwyt.length;i++){
393 this.form.ytList.push({
394 fwytzdbsm: this.form.qjfwyt[i].fwytzdbsm, //房屋结构字典标识码
395 glbsm: this.form.qjfwyt[i].glbsm, //关联标识码
396 sx: this.form.qjfwyt[i].sx, //顺序
397 })
398 }
399 }
400 console.log(JSON.stringify(this.form)+":this.form")
401 }
402 })
348 this.$forceUpdate(); 403 this.$forceUpdate();
349 } 404 }
350 }, 405 },
......