Merge remote-tracking branch 'origin/master'
Showing
9 changed files
with
135 additions
and
109 deletions
... | @@ -312,38 +312,11 @@ | ... | @@ -312,38 +312,11 @@ |
312 | this.isVisible = val | 312 | this.isVisible = val |
313 | }, | 313 | }, |
314 | plzlData: { | 314 | plzlData: { |
315 | handler(val){ | 315 | handler(val) { |
316 | console.log(val,'批量坐落规则'); | 316 | this.zrzgz[0].disabled = +val.zd === 1; |
317 | // 宗地坐落 | 317 | this.zdgz[0].disabled = +val.zrz === 1; |
318 | if (+val.zd === 1) { | ||
319 | this.zrzgz[0].disabled = true; | ||
320 | this.zrzgz[1].disabled = false; | ||
321 | return | ||
322 | } else if (+val.zd === 2) { | ||
323 | this.zrzgz[0].disabled = false; | ||
324 | this.zrzgz[1].disabled = true; | ||
325 | return | ||
326 | }else { | ||
327 | this.zrzgz[0].disabled = false; | ||
328 | this.zrzgz[1].disabled = false; | ||
329 | return | ||
330 | } | ||
331 | // 自然幢坐落 | ||
332 | if (+val.zrz === 1) { | ||
333 | this.zdgz[0].disabled = true; | ||
334 | this.zdgz[1].disabled = false; | ||
335 | return | ||
336 | } else if (+val.zrz === 2) { | ||
337 | this.zdgz[0].disabled = false; | ||
338 | this.zdgz[1].disabled = true; | ||
339 | return | ||
340 | }else { | ||
341 | this.zdgz[0].disabled = false; | ||
342 | this.zdgz[1].disabled = false; | ||
343 | return | ||
344 | } | ||
345 | }, | 318 | }, |
346 | deep:true | 319 | deep: true |
347 | } | 320 | } |
348 | } | 321 | } |
349 | } | 322 | } | ... | ... |
... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
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" @click="loading"> | 5 | <el-tab-pane label="附件材料" name="fjcl"> |
6 | <fjcl v-if="fjclVisible" ref="fjcl"></fjcl></el-tab-pane> | 6 | <fjcl v-if="fjclVisible" ref="fjcl"></fjcl></el-tab-pane> |
7 | </el-tabs> | 7 | </el-tabs> |
8 | </div> | 8 | </div> |
... | @@ -11,6 +11,7 @@ | ... | @@ -11,6 +11,7 @@ |
11 | <script> | 11 | <script> |
12 | import dzxx from "./dzxx"; | 12 | import dzxx from "./dzxx"; |
13 | import fjcl from "./../zd/fjcl/fjcl" | 13 | import fjcl from "./../zd/fjcl/fjcl" |
14 | import {queryStatus} from "@api/search" | ||
14 | export default { | 15 | export default { |
15 | name: "", | 16 | name: "", |
16 | components: { | 17 | components: { |
... | @@ -19,16 +20,25 @@ | ... | @@ -19,16 +20,25 @@ |
19 | props: {}, | 20 | props: {}, |
20 | data() { | 21 | data() { |
21 | return { | 22 | return { |
23 | isDisabled:false, | ||
22 | activeName: "dzxx", | 24 | activeName: "dzxx", |
23 | dzJbxxVisble:true, | 25 | dzJbxxVisble:true, |
24 | fjclVisible:false | 26 | fjclVisible:false |
25 | }; | 27 | }; |
26 | }, | 28 | }, |
27 | methods: { | 29 | methods: { |
28 | loading(){ | 30 | loadingStatus() { |
29 | this.$refs.fjcl.isUpload(this.$store.state.dzbsm) | 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 | }) | ||
30 | }, | 39 | }, |
31 | handleClick(tab, event) { | 40 | handleClick(tab, event) { |
41 | this.loadingStatus(); | ||
32 | switch (tab.name) { | 42 | switch (tab.name) { |
33 | case 'dzxx': | 43 | case 'dzxx': |
34 | this.dzJbxxVisble = true; | 44 | this.dzJbxxVisble = true; | ... | ... |
... | @@ -7,8 +7,8 @@ | ... | @@ -7,8 +7,8 @@ |
7 | <el-tab-pane label="登记簿" name="djb"> | 7 | <el-tab-pane label="登记簿" name="djb"> |
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" @click="loading"> | 10 | <el-tab-pane label="附件材料" name="fjcl"> |
11 | <fjcl v-if="fjclVisible" ref="fjcl"></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,10 +37,19 @@ | ... | @@ -36,10 +37,19 @@ |
36 | 37 | ||
37 | }, | 38 | }, |
38 | methods: { | 39 | methods: { |
39 | loading(){ | 40 | loadingStatus() { |
40 | this.$refs.fjcl.isUpload(this.$store.state.hbsm) | 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 | }) | ||
41 | }, | 50 | }, |
42 | handleClick(tab, event) { | 51 | handleClick(tab, event) { |
52 | this.loadingStatus() | ||
43 | // console.log(tab, event); | 53 | // console.log(tab, event); |
44 | switch (tab.name) { | 54 | switch (tab.name) { |
45 | case 'djb': | 55 | case 'djb': | ... | ... |
... | @@ -12,9 +12,9 @@ | ... | @@ -12,9 +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="isUpload" | 15 | :disabled="isDisabled" |
16 | > | 16 | > |
17 | <el-button size="small" type="primary" :disabled="isUpload" >上传</el-button> | 17 | <el-button size="small" type="primary" :disabled="isDisabled" >上传</el-button> |
18 | </el-upload> | 18 | </el-upload> |
19 | <table border="2"> | 19 | <table border="2"> |
20 | <tr> | 20 | <tr> |
... | @@ -52,7 +52,6 @@ | ... | @@ -52,7 +52,6 @@ |
52 | name: "fjcl", | 52 | name: "fjcl", |
53 | data() { | 53 | data() { |
54 | return { | 54 | return { |
55 | isUpload: false, //是否可以上传 | ||
56 | fileData: { | 55 | fileData: { |
57 | glbsm: '', | 56 | glbsm: '', |
58 | dylx: '' | 57 | dylx: '' |
... | @@ -66,15 +65,13 @@ | ... | @@ -66,15 +65,13 @@ |
66 | created(){ | 65 | created(){ |
67 | 66 | ||
68 | }, | 67 | }, |
69 | methods: { | 68 | props: { |
70 | isUpdate(bsm) { | 69 | isDisabled:{ |
71 | queryStatus(bsm).then(res => { | 70 | type:Boolean, |
72 | if (res.success) { | 71 | default:false |
73 | let qszt = res.result.qszt; | ||
74 | this.isUpload = +qszt !== 0; | ||
75 | } | 72 | } |
76 | }) | ||
77 | }, | 73 | }, |
74 | methods: { | ||
78 | deleteFile(bsm) { | 75 | deleteFile(bsm) { |
79 | this.$confirm('将删除该文件, 是否继续?', '提示', { | 76 | this.$confirm('将删除该文件, 是否继续?', '提示', { |
80 | confirmButtonText: '确定', | 77 | confirmButtonText: '确定', |
... | @@ -126,7 +123,6 @@ | ... | @@ -126,7 +123,6 @@ |
126 | default: | 123 | default: |
127 | break | 124 | break |
128 | } | 125 | } |
129 | this.isUpdate(this.fileData.glbsm); | ||
130 | getFileLis(this.fileData.glbsm).then(res => { | 126 | getFileLis(this.fileData.glbsm).then(res => { |
131 | if (res.success) { | 127 | if (res.success) { |
132 | this.list = res.result; | 128 | this.list = res.result; | ... | ... |
... | @@ -2,13 +2,17 @@ | ... | @@ -2,13 +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" @click="loading"> | 14 | <el-tab-pane label="附件材料" name="fjcl"> |
11 | <fjcl v-if="fjclVisible" ref="fjcl"></fjcl></el-tab-pane> | 15 | <fjcl v-if="fjclVisible" ref="fjcl" :is-disabled="isDisabled"></fjcl></el-tab-pane> |
12 | </el-tabs> | 16 | </el-tabs> |
13 | <!-- </div> --> | 17 | <!-- </div> --> |
14 | </template> | 18 | </template> |
... | @@ -21,6 +25,7 @@ import jzx from "./jzx"; | ... | @@ -21,6 +25,7 @@ import jzx from "./jzx"; |
21 | import djb from "./djb"; | 25 | import djb from "./djb"; |
22 | import lshs from "./lshs"; | 26 | import lshs from "./lshs"; |
23 | import fjcl from "./fjcl/fjcl" | 27 | import fjcl from "./fjcl/fjcl" |
28 | import {queryStatus} from "@api/search" | ||
24 | export default { | 29 | export default { |
25 | name: "", | 30 | name: "", |
26 | components: { | 31 | components: { |
... | @@ -29,6 +34,7 @@ export default { | ... | @@ -29,6 +34,7 @@ export default { |
29 | props: {}, | 34 | props: {}, |
30 | data() { | 35 | data() { |
31 | return { | 36 | return { |
37 | isDisabled:false, | ||
32 | activeName: "djdcb", | 38 | activeName: "djdcb", |
33 | mjftbVisible:false, | 39 | mjftbVisible:false, |
34 | jzdVisible:false, | 40 | jzdVisible:false, |
... | @@ -39,11 +45,24 @@ export default { | ... | @@ -39,11 +45,24 @@ export default { |
39 | }; | 45 | }; |
40 | }, | 46 | }, |
41 | methods: { | 47 | methods: { |
42 | loading(){ | 48 | loadingStatus() { |
43 | this.$refs.fjcl.isUpload(this.$store.state.zdbsm) | 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 | }) | ||
44 | }, | 58 | }, |
59 | /* loading(){ | ||
60 | console.log("附件材料是否禁用") | ||
61 | this.$refs.fjcl.isUpload(this.$store.state.zdbsm) | ||
62 | },*/ | ||
45 | handleClick(tab, event) { | 63 | handleClick(tab, event) { |
46 | // console.log(tab, event); | 64 | // console.log(tab, event); |
65 | this.loadingStatus(); | ||
47 | switch (tab.name) { | 66 | switch (tab.name) { |
48 | case 'mjftb': | 67 | case 'mjftb': |
49 | this.mjftbVisible = true; | 68 | this.mjftbVisible = true; | ... | ... |
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" @click="loading"><fjcl ref="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,16 +27,26 @@ export default { | ... | @@ -26,16 +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: { |
35 | loading(){ | 37 | loadingStatus() { |
36 | this.$refs.fjcl.isUpload(this.$store.state.zrzbsm); | 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 | }) | ||
37 | }, | 47 | }, |
38 | handleClick(tab, event) { | 48 | handleClick(tab, event) { |
49 | this.loadingStatus() | ||
39 | if(!this.lpbLoad){ | 50 | if(!this.lpbLoad){ |
40 | this.lpbLoad = tab.name == 'lpb' ? true : false | 51 | this.lpbLoad = tab.name == 'lpb' ? true : false |
41 | } | 52 | } | ... | ... |
-
Please register or sign in to post a comment