Merge branch 'master' of http://yun.pashanhoo.com:9090/renchao/CadastralSystem
Showing
4 changed files
with
59 additions
and
12 deletions
... | @@ -84,13 +84,14 @@ export function getLpbTj (data) { | ... | @@ -84,13 +84,14 @@ export function getLpbTj (data) { |
84 | * zrzbsm 自然幢标识码 , | 84 | * zrzbsm 自然幢标识码 , |
85 | * dpdm 自然幢号 , | 85 | * dpdm 自然幢号 , |
86 | */ | 86 | */ |
87 | export function batchGeneratorBdcdyh (dpdm,zrzbsm) { | 87 | export function batchGeneratorBdcdyh (dpdm,zrzbsm,override) { |
88 | return request({ | 88 | return request({ |
89 | url: 'system/generator/batchGeneratorBdcdyh', | 89 | url: 'system/generator/batchGeneratorBdcdyh', |
90 | method: 'get', | 90 | method: 'get', |
91 | params: { | 91 | params: { |
92 | zrzbsm:zrzbsm, | 92 | zrzbsm:zrzbsm, |
93 | dpdm:dpdm, | 93 | dpdm:dpdm, |
94 | override:override | ||
94 | }, | 95 | }, |
95 | }) | 96 | }) |
96 | } | 97 | } | ... | ... |
... | @@ -235,6 +235,7 @@ | ... | @@ -235,6 +235,7 @@ |
235 | </template> | 235 | </template> |
236 | <template v-if="!hasSyqx"> | 236 | <template v-if="!hasSyqx"> |
237 | <el-col | 237 | <el-col |
238 | class="pr10" | ||
238 | :span="5" | 239 | :span="5" |
239 | :key="childIndex + '7'" | 240 | :key="childIndex + '7'" |
240 | :class="childIndex > 0 ? 'childYT' : ''" | 241 | :class="childIndex > 0 ? 'childYT' : ''" |
... | @@ -295,6 +296,7 @@ | ... | @@ -295,6 +296,7 @@ |
295 | </ul> | 296 | </ul> |
296 | </el-col> | 297 | </el-col> |
297 | <el-col | 298 | <el-col |
299 | class="pr10" | ||
298 | :span="5" | 300 | :span="5" |
299 | :key="childIndex + '5'" | 301 | :key="childIndex + '5'" |
300 | :class="childIndex > 0 ? 'childYT' : ''" | 302 | :class="childIndex > 0 ? 'childYT' : ''" | ... | ... |
... | @@ -633,16 +633,60 @@ export default { | ... | @@ -633,16 +633,60 @@ export default { |
633 | //批量添加不动产单元号 | 633 | //批量添加不动产单元号 |
634 | addBdcdyh() { | 634 | addBdcdyh() { |
635 | // this.pd[0].bsm //自然幢标识码 | 635 | // this.pd[0].bsm //自然幢标识码 |
636 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm).then( | 636 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm,0).then( |
637 | (res) => { | 637 | (res) => { |
638 | if (res.code === 200) { | 638 | if (res.code === 200) { |
639 | this.$message.success("生成完成!"); | 639 | this.$message.success("生成完成!"); |
640 | } else { | 640 | } else if(res.code === 206){ |
641 | this.$message.warning(res.message); | 641 | let hasGenerateCount = res.result.hasGenerateCount; |
642 | let unGenerateCount = res.result.unGenerateCount; | ||
643 | this.open(hasGenerateCount,unGenerateCount); | ||
642 | } | 644 | } |
643 | } | 645 | } |
644 | ); | 646 | ); |
645 | }, | 647 | }, |
648 | |||
649 | open(hasGenerateCount,unGenerateCount) { | ||
650 | const h = this.$createElement; | ||
651 | this.$msgbox({ | ||
652 | title: '消息', | ||
653 | message: h('p', null, [ | ||
654 | h('span', null, '未生成单元号有 '+unGenerateCount+'户,'), | ||
655 | h('span', null, '已经生成单元号有 '+hasGenerateCount+'户,'), | ||
656 | h('span', null, '是否覆盖全部重新生成?'), | ||
657 | ]), | ||
658 | showCancelButton: true, | ||
659 | confirmButtonText: '覆盖全部生成', | ||
660 | cancelButtonText: '跳过已生成单元号户', | ||
661 | beforeClose: (action, instance, done) => { | ||
662 | if (action === 'confirm') { | ||
663 | instance.confirmButtonLoading = true; | ||
664 | instance.confirmButtonText = '执行中...'; | ||
665 | setTimeout(() => { | ||
666 | done(); | ||
667 | setTimeout(() => { | ||
668 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm,2).then( | ||
669 | (res) => { | ||
670 | if (res.code === 200) { | ||
671 | this.$message.success("生成完成!"); | ||
672 | } | ||
673 | }); | ||
674 | instance.confirmButtonLoading = false; | ||
675 | }, 300); | ||
676 | }, 3000); | ||
677 | } else { | ||
678 | batchGeneratorBdcdyh(this.$store.state.zrzh, this.pd[0].bsm,1).then( | ||
679 | (res) => { | ||
680 | if (res.code === 200) { | ||
681 | this.$message.success("生成完成!"); | ||
682 | } | ||
683 | }); | ||
684 | done(); | ||
685 | } | ||
686 | } | ||
687 | }) | ||
688 | }, | ||
689 | |||
646 | //获取各项单元状态统计数据 | 690 | //获取各项单元状态统计数据 |
647 | getDyztBsmList() { | 691 | getDyztBsmList() { |
648 | let data = { | 692 | let data = { | ... | ... |
... | @@ -146,12 +146,12 @@ | ... | @@ -146,12 +146,12 @@ |
146 | </tr> | 146 | </tr> |
147 | 147 | ||
148 | <tr v-for="(item1,index) in form.fwytList" :key="index"> | 148 | <tr v-for="(item1,index) in form.fwytList" :key="index"> |
149 | <td colspan="2" v-if="index===0" :rowspan="ytTitleRowspan" id="ytTitle"> | 149 | <td colspan="2" v-if="index===0" :rowspan="ytTitleRowspan" class="tdright" id="ytTitle"> |
150 | <el-button type="primary" class="outAdd addMinus" size="mini" style="margin-right: 10px" @click="addYtInfo">+</el-button> | 150 | <el-button type="primary" class="inAdd addMinus" size="mini" style="margin-right: 8px" @click="addYtInfo">+</el-button> |
151 | <span> 用途<i class="requisite">*</i></span> | 151 | <span> 用途<i class="requisite">*</i></span> |
152 | </td> | 152 | </td> |
153 | 153 | ||
154 | <td colspan="1" style="min-width:120px"> | 154 | <td colspan="1" style="min-width:120px" class="tdright"> |
155 | <el-button type="info" class="inMinus addMinus" size="mini" style="" @click="deleteYtInfo(index)" circle>-</el-button> | 155 | <el-button type="info" class="inMinus addMinus" size="mini" style="" @click="deleteYtInfo(index)" circle>-</el-button> |
156 | 规划用途 | 156 | 规划用途 |
157 | </td> | 157 | </td> |
... | @@ -171,7 +171,7 @@ | ... | @@ -171,7 +171,7 @@ |
171 | v-model="item1.fwytzdbsm" | 171 | v-model="item1.fwytzdbsm" |
172 | ></el-select-tree> | 172 | ></el-select-tree> |
173 | </td> | 173 | </td> |
174 | <td colspan="2" >用途</td> | 174 | <td colspan="2" class="tdright">用途</td> |
175 | <td colspan="4" > | 175 | <td colspan="4" > |
176 | <el-select-tree style="width:100%" | 176 | <el-select-tree style="width:100%" |
177 | ref="yt" | 177 | ref="yt" |
... | @@ -190,12 +190,12 @@ | ... | @@ -190,12 +190,12 @@ |
190 | </tr> | 190 | </tr> |
191 | 191 | ||
192 | <tr v-for="(item1,index) in form.fwjgList" :key="'jg'+index"> | 192 | <tr v-for="(item1,index) in form.fwjgList" :key="'jg'+index"> |
193 | <td colspan="2" v-if="index===0" :rowspan="fwjgTitleRowspan" > | 193 | <td colspan="2" v-if="index===0" :rowspan="fwjgTitleRowspan" class="tdright"> |
194 | <el-button type="primary" class="outAdd addMinus" size="mini" style="margin-right: 10px" @click="addFwjgInfo">+</el-button> | 194 | <el-button type="primary" class="inAdd addMinus" size="mini" style="margin-right: 10px" @click="addFwjgInfo">+</el-button> |
195 | <span>房屋结构<i class="requisite">*</i></span> | 195 | <span>房屋结构<i class="requisite">*</i></span> |
196 | </td> | 196 | </td> |
197 | <td colspan="1" > | 197 | <td colspan="1" class="tdright"> |
198 | <el-button type="primary" class="inMinus addMinus" size="mini" style="margin-right: 10px" @click="deleteFwjgInfo(index)">-</el-button> | 198 | <el-button type="primary" class="inMinus addMinus" size="mini" style="margin-right: 8px" @click="deleteFwjgInfo(index)">-</el-button> |
199 | <span> 删除</span> | 199 | <span> 删除</span> |
200 | </td> | 200 | </td> |
201 | <td colspan="9" > | 201 | <td colspan="9" > | ... | ... |
-
Please register or sign in to post a comment