业务办理
Showing
10 changed files
with
58 additions
and
19 deletions
| ... | @@ -210,6 +210,18 @@ export function selectZrz (data) { | ... | @@ -210,6 +210,18 @@ export function selectZrz (data) { |
| 210 | } | 210 | } |
| 211 | 211 | ||
| 212 | /* | 212 | /* |
| 213 | 业务办理-选择单元-查询自然幢信息 | ||
| 214 | */ | ||
| 215 | export function selectDz (data) { | ||
| 216 | return request({ | ||
| 217 | url: SERVER.SERVERAPI + '/rest/ywbl/ywsq/selectDz', | ||
| 218 | method: 'post', | ||
| 219 | data | ||
| 220 | }) | ||
| 221 | } | ||
| 222 | |||
| 223 | |||
| 224 | /* | ||
| 213 | 业务办理-选择单元-查询户信息 | 225 | 业务办理-选择单元-查询户信息 |
| 214 | */ | 226 | */ |
| 215 | export function selectH (data) { | 227 | export function selectH (data) { | ... | ... |
| ... | @@ -153,7 +153,7 @@ | ... | @@ -153,7 +153,7 @@ |
| 153 | 153 | ||
| 154 | <el-col :span="5" v-show="ruleForm.qlxx && ruleForm.qlxx.gyfs == '2'"> | 154 | <el-col :span="5" v-show="ruleForm.qlxx && ruleForm.qlxx.gyfs == '2'"> |
| 155 | <el-form-item label="是否分别持证:"> | 155 | <el-form-item label="是否分别持证:"> |
| 156 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> | 156 | <el-radio-group v-model="ruleForm.slywxx.sqfbcz"> |
| 157 | <el-radio label="1">是</el-radio> | 157 | <el-radio label="1">是</el-radio> |
| 158 | <el-radio label="0">否</el-radio> | 158 | <el-radio label="0">否</el-radio> |
| 159 | </el-radio-group> | 159 | </el-radio-group> | ... | ... |
| ... | @@ -189,7 +189,7 @@ | ... | @@ -189,7 +189,7 @@ |
| 189 | </el-col> | 189 | </el-col> |
| 190 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> | 190 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> |
| 191 | <el-form-item label="是否分别持证:"> | 191 | <el-form-item label="是否分别持证:"> |
| 192 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> | 192 | <el-radio-group v-model="ruleForm.slywxx.sqfbcz"> |
| 193 | <el-radio label="1">是</el-radio> | 193 | <el-radio label="1">是</el-radio> |
| 194 | <el-radio label="0">否</el-radio> | 194 | <el-radio label="0">否</el-radio> |
| 195 | </el-radio-group> | 195 | </el-radio-group> | ... | ... |
| ... | @@ -186,7 +186,7 @@ | ... | @@ -186,7 +186,7 @@ |
| 186 | </el-col> | 186 | </el-col> |
| 187 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> | 187 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> |
| 188 | <el-form-item label="是否分别持证:"> | 188 | <el-form-item label="是否分别持证:"> |
| 189 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> | 189 | <el-radio-group v-model="ruleForm.slywxx.sqfbcz"> |
| 190 | <el-radio label="1">是</el-radio> | 190 | <el-radio label="1">是</el-radio> |
| 191 | <el-radio label="0">否</el-radio> | 191 | <el-radio label="0">否</el-radio> |
| 192 | </el-radio-group> | 192 | </el-radio-group> | ... | ... |
| ... | @@ -125,7 +125,7 @@ | ... | @@ -125,7 +125,7 @@ |
| 125 | <div class="triangle"></div> | 125 | <div class="triangle"></div> |
| 126 | </div> | 126 | </div> |
| 127 | <el-row :gutter="10"> | 127 | <el-row :gutter="10"> |
| 128 | <el-col :span="14"> | 128 | <el-col :span="12"> |
| 129 | <el-form-item label="共有方式:"> | 129 | <el-form-item label="共有方式:"> |
| 130 | <el-radio-group :disabled="$route.query.viewtype == 0" v-model="ruleForm.slywxx.gyfs"> | 130 | <el-radio-group :disabled="$route.query.viewtype == 0" v-model="ruleForm.slywxx.gyfs"> |
| 131 | <el-radio label="0">单独所有</el-radio> | 131 | <el-radio label="0">单独所有</el-radio> |
| ... | @@ -135,18 +135,18 @@ | ... | @@ -135,18 +135,18 @@ |
| 135 | </el-radio-group> | 135 | </el-radio-group> |
| 136 | </el-form-item> | 136 | </el-form-item> |
| 137 | </el-col> | 137 | </el-col> |
| 138 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> | 138 | <el-col :span="6" v-show="ruleForm.slywxx.gyfs == '1'"> |
| 139 | <el-form-item label="是否分别持证:"> | 139 | <el-form-item label="是否分别持证:"> |
| 140 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> | 140 | <el-radio-group v-model="ruleForm.slywxx.sqfbcz"> |
| 141 | <el-radio label="1">是</el-radio> | 141 | <el-radio :label = 1>是</el-radio> |
| 142 | <el-radio label="0">否</el-radio> | 142 | <el-radio :label = 0>否</el-radio> |
| 143 | </el-radio-group> | 143 | </el-radio-group> |
| 144 | </el-form-item> | 144 | </el-form-item> |
| 145 | </el-col> | 145 | </el-col> |
| 146 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> | 146 | <el-col :span="6" v-show="ruleForm.slywxx.sqfbcz == '0'&&ruleForm.slywxx.gyfs == '1'"> |
| 147 | <el-form-item label="持证人:"> | 147 | <el-form-item label="持证人:"> |
| 148 | <el-select v-model="ruleForm.czr" placeholder="持证人"> | 148 | <el-select v-model="ruleForm.czr" placeholder="持证人"> |
| 149 | <el-option v-for="item in czrOptions" :key="item.value" :label="item.label" :value="item.value"> | 149 | <el-option v-for="item in czrOptions" :key="item.zjh" :label="item.sqrmc" :value="item.zjh"> |
| 150 | </el-option> | 150 | </el-option> |
| 151 | </el-select> | 151 | </el-select> |
| 152 | </el-form-item> | 152 | </el-form-item> |
| ... | @@ -203,7 +203,8 @@ export default { | ... | @@ -203,7 +203,8 @@ export default { |
| 203 | this.$nextTick(() => { | 203 | this.$nextTick(() => { |
| 204 | that.ruleForm = res.result; | 204 | that.ruleForm = res.result; |
| 205 | that.$endLoading(); | 205 | that.$endLoading(); |
| 206 | that.isShow = true | 206 | that.isShow = true; |
| 207 | this.czrOptions=this.ruleForm.qlrList; | ||
| 207 | }) | 208 | }) |
| 208 | }) | 209 | }) |
| 209 | }, | 210 | }, |
| ... | @@ -226,12 +227,22 @@ export default { | ... | @@ -226,12 +227,22 @@ export default { |
| 226 | // 更新权利人信息 | 227 | // 更新权利人信息 |
| 227 | upDateQlrxxList (val) { | 228 | upDateQlrxxList (val) { |
| 228 | this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val)) | 229 | this.ruleForm.qlrList && (this.ruleForm.qlrList = _.cloneDeep(val)) |
| 230 | this.czrOptions=this.ruleForm.qlrList; | ||
| 229 | }, | 231 | }, |
| 230 | // 更新义务人信息 | 232 | // 更新义务人信息 |
| 231 | upDateYwrxxList (val) { | 233 | upDateYwrxxList (val) { |
| 232 | this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val)) | 234 | this.ruleForm.ywrList && (this.ruleForm.ywrList = _.cloneDeep(val)) |
| 233 | }, | 235 | }, |
| 234 | onSubmit () { | 236 | onSubmit () { |
| 237 | if (this.ruleForm.qlrList.length == 0) { | ||
| 238 | this.$message({ | ||
| 239 | showClose: true, | ||
| 240 | message: "请确认权利人信息", | ||
| 241 | type: "error", | ||
| 242 | }); | ||
| 243 | return false; | ||
| 244 | } | ||
| 245 | |||
| 235 | if (this.ruleForm.slywxx.gyfs == "0") { | 246 | if (this.ruleForm.slywxx.gyfs == "0") { |
| 236 | if (this.ruleForm.qlrList.length > 1) { | 247 | if (this.ruleForm.qlrList.length > 1) { |
| 237 | this.$message({ | 248 | this.$message({ |
| ... | @@ -241,7 +252,23 @@ export default { | ... | @@ -241,7 +252,23 @@ export default { |
| 241 | }); | 252 | }); |
| 242 | return false; | 253 | return false; |
| 243 | } | 254 | } |
| 255 | this.ruleForm.qlrList[0].sfczr="1"; | ||
| 244 | } | 256 | } |
| 257 | if (this.ruleForm.slywxx.gyfs == "1") { | ||
| 258 | //是否分别持证 | ||
| 259 | if(this.ruleForm.slywxx.sqfbcz == '1'){ //是 | ||
| 260 | this.ruleForm.qlrList.forEach((item, index) => { | ||
| 261 | item.sfczr = "1"; | ||
| 262 | }); | ||
| 263 | }else{ | ||
| 264 | this.ruleForm.qlrList.forEach((item, index) => { | ||
| 265 | if(item.zjh==this.ruleForm.czr){ | ||
| 266 | item.sfczr = "1"; | ||
| 267 | } | ||
| 268 | }); | ||
| 269 | } | ||
| 270 | } | ||
| 271 | |||
| 245 | saveData(this.ruleForm).then((res) => { | 272 | saveData(this.ruleForm).then((res) => { |
| 246 | if (res.code === 200) { | 273 | if (res.code === 200) { |
| 247 | this.$message({ | 274 | this.$message({ | ... | ... |
| ... | @@ -142,7 +142,7 @@ | ... | @@ -142,7 +142,7 @@ |
| 142 | </el-col> | 142 | </el-col> |
| 143 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> | 143 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> |
| 144 | <el-form-item label="是否分别持证:"> | 144 | <el-form-item label="是否分别持证:"> |
| 145 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> | 145 | <el-radio-group v-model="ruleForm.slywxx.sqfbcz"> |
| 146 | <el-radio label="1">是</el-radio> | 146 | <el-radio label="1">是</el-radio> |
| 147 | <el-radio label="0">否</el-radio> | 147 | <el-radio label="0">否</el-radio> |
| 148 | </el-radio-group> | 148 | </el-radio-group> | ... | ... |
| ... | @@ -186,7 +186,7 @@ | ... | @@ -186,7 +186,7 @@ |
| 186 | </el-col> | 186 | </el-col> |
| 187 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> | 187 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> |
| 188 | <el-form-item label="是否分别持证:"> | 188 | <el-form-item label="是否分别持证:"> |
| 189 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> | 189 | <el-radio-group v-model="ruleForm.slywxx.sqfbcz"> |
| 190 | <el-radio label="1">是</el-radio> | 190 | <el-radio label="1">是</el-radio> |
| 191 | <el-radio label="0">否</el-radio> | 191 | <el-radio label="0">否</el-radio> |
| 192 | </el-radio-group> | 192 | </el-radio-group> | ... | ... |
| ... | @@ -186,7 +186,7 @@ | ... | @@ -186,7 +186,7 @@ |
| 186 | </el-col> | 186 | </el-col> |
| 187 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> | 187 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> |
| 188 | <el-form-item label="是否分别持证:"> | 188 | <el-form-item label="是否分别持证:"> |
| 189 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> | 189 | <el-radio-group v-model="ruleForm.slywxx.sqfbcz"> |
| 190 | <el-radio label="1">是</el-radio> | 190 | <el-radio label="1">是</el-radio> |
| 191 | <el-radio label="0">否</el-radio> | 191 | <el-radio label="0">否</el-radio> |
| 192 | </el-radio-group> | 192 | </el-radio-group> | ... | ... |
| ... | @@ -192,7 +192,7 @@ | ... | @@ -192,7 +192,7 @@ |
| 192 | </el-col> | 192 | </el-col> |
| 193 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> | 193 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> |
| 194 | <el-form-item label="是否分别持证:"> | 194 | <el-form-item label="是否分别持证:"> |
| 195 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> | 195 | <el-radio-group v-model="ruleForm.slywxx.sqfbcz"> |
| 196 | <el-radio label="1">是</el-radio> | 196 | <el-radio label="1">是</el-radio> |
| 197 | <el-radio label="0">否</el-radio> | 197 | <el-radio label="0">否</el-radio> |
| 198 | </el-radio-group> | 198 | </el-radio-group> | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | <div class="from-clues"> | 2 | <div class="from-clues"> |
| 3 | <el-tabs type="card" v-model="activeName" @tab-click="handleTabClick" v-if="!isJump"> | 3 | <el-tabs type="card" v-model="activeName" @tab-click="handleTabClick" v-if="!isJump"> |
| 4 | <el-tab-pane label="自然幢" name="zrz"></el-tab-pane> | 4 | <el-tab-pane label="自然幢" name="zrz"></el-tab-pane> |
| 5 | <el-tab-pane label="多幢" name="h"></el-tab-pane> | 5 | <el-tab-pane label="多幢" name="dz"></el-tab-pane> |
| 6 | </el-tabs> | 6 | </el-tabs> |
| 7 | 7 | ||
| 8 | <div class="from-clues-header"> | 8 | <div class="from-clues-header"> |
| ... | @@ -73,7 +73,7 @@ | ... | @@ -73,7 +73,7 @@ |
| 73 | import { datas, sendThis } from "../javascript/fwsyq.js"; | 73 | import { datas, sendThis } from "../javascript/fwsyq.js"; |
| 74 | import table from "@/utils/mixin/table"; | 74 | import table from "@/utils/mixin/table"; |
| 75 | import jump from "@/views/ywbl/ywsq/components/mixin/jump"; | 75 | import jump from "@/views/ywbl/ywsq/components/mixin/jump"; |
| 76 | import { selectScBdcdy, startBusinessFlow, choiceBdcdy, selectOtherH, selectZrz, selectH } from "@/api/ywbl.js"; | 76 | import { selectScBdcdy, startBusinessFlow, choiceBdcdy, selectOtherH, selectZrz, selectDz } from "@/api/ywbl.js"; |
| 77 | export default { | 77 | export default { |
| 78 | mixins: [table, jump], | 78 | mixins: [table, jump], |
| 79 | props: { | 79 | props: { |
| ... | @@ -118,7 +118,7 @@ export default { | ... | @@ -118,7 +118,7 @@ export default { |
| 118 | } | 118 | } |
| 119 | }); | 119 | }); |
| 120 | } else { | 120 | } else { |
| 121 | selectH({ ...this.queryForm, ...this.pageData }).then((res) => { | 121 | selectDz({ ...this.queryForm, ...this.pageData }).then((res) => { |
| 122 | if (res.code === 200) { | 122 | if (res.code === 200) { |
| 123 | this.tableData.total = res.result.total; | 123 | this.tableData.total = res.result.total; |
| 124 | this.tableData.data = res.result.records; | 124 | this.tableData.data = res.result.records; | ... | ... |
-
Please register or sign in to post a comment