1
Showing
2 changed files
with
127 additions
and
30 deletions
... | @@ -34,9 +34,9 @@ export function Init (data) { | ... | @@ -34,9 +34,9 @@ export function Init (data) { |
34 | }) | 34 | }) |
35 | } | 35 | } |
36 | // 受理信息保存 | 36 | // 受理信息保存 |
37 | export function saveData (data) { | 37 | export function saveData (data) { |
38 | return request({ | 38 | return request({ |
39 | url: SERVER.SERVERAPI + '/rest/ywbl/jsydsyqlr/saveData', | 39 | url: SERVER.SERVERAPI + '/rest/ywbl/dyaq/saveData', |
40 | method: 'post', | 40 | method: 'post', |
41 | data | 41 | data |
42 | }) | 42 | }) | ... | ... |
... | @@ -67,11 +67,7 @@ | ... | @@ -67,11 +67,7 @@ |
67 | 67 | ||
68 | <el-row :gutter="10"> | 68 | <el-row :gutter="10"> |
69 | <el-col :span="8"> | 69 | <el-col :span="8"> |
70 | <el-form-item | 70 | <el-form-item :class="flag ? 'marginBot0' : ''" label="权利人:"> |
71 | :class="flag ? 'marginBot0' : ''" | ||
72 | label="权利人:" | ||
73 | prop="qlxx.qlrmc" | ||
74 | > | ||
75 | <el-input disabled v-model="ruleForm.qlxxold.qlrmc"></el-input> | 71 | <el-input disabled v-model="ruleForm.qlxxold.qlrmc"></el-input> |
76 | </el-form-item> | 72 | </el-form-item> |
77 | </el-col> | 73 | </el-col> |
... | @@ -91,7 +87,6 @@ | ... | @@ -91,7 +87,6 @@ |
91 | <el-form-item | 87 | <el-form-item |
92 | :class="flag ? 'marginBot0' : ''" | 88 | :class="flag ? 'marginBot0' : ''" |
93 | label="不动产权证号:" | 89 | label="不动产权证号:" |
94 | prop="qlxx.bdcqzh" | ||
95 | > | 90 | > |
96 | <el-input disabled v-model="ruleForm.slywxx.ybdcqzsh"></el-input> | 91 | <el-input disabled v-model="ruleForm.slywxx.ybdcqzsh"></el-input> |
97 | </el-form-item> | 92 | </el-form-item> |
... | @@ -112,7 +107,6 @@ | ... | @@ -112,7 +107,6 @@ |
112 | <el-form-item | 107 | <el-form-item |
113 | :class="flag ? 'marginBot0' : ''" | 108 | :class="flag ? 'marginBot0' : ''" |
114 | label="不动产单元号:" | 109 | label="不动产单元号:" |
115 | prop="qlxx.bdcdyh" | ||
116 | > | 110 | > |
117 | <el-input disabled v-model="ruleForm.qlxxold.bdcdyh"></el-input> | 111 | <el-input disabled v-model="ruleForm.qlxxold.bdcdyh"></el-input> |
118 | </el-form-item> | 112 | </el-form-item> |
... | @@ -123,10 +117,92 @@ | ... | @@ -123,10 +117,92 @@ |
123 | </el-form-item> | 117 | </el-form-item> |
124 | </el-col> | 118 | </el-col> |
125 | </el-row> | 119 | </el-row> |
120 | |||
121 | <div class="slxx_title title-block"> | ||
122 | 抵押信息 | ||
123 | <div class="triangle"></div> | ||
124 | </div> | ||
125 | |||
126 | <el-row :gutter="10"> | ||
127 | <el-col :span="8"> | ||
128 | <el-form-item :class="flag ? 'marginBot0' : ''" label="抵押方式:"> | ||
129 | <el-input disabled v-model="ruleForm.slywxx.djqxmc"></el-input> | ||
130 | </el-form-item> | ||
131 | </el-col> | ||
132 | <el-col :span="16"> | ||
133 | <el-form-item | ||
134 | :class="flag ? 'marginBot0' : ''" | ||
135 | label="是否存在禁止或者限制转让抵押不动产的约定:" | ||
136 | label-width="300px" | ||
137 | > | ||
138 | <el-radio-group v-model="ruleForm.diyaq.sfczjzhxz"> | ||
139 | <el-radio label="1">启用</el-radio> | ||
140 | <el-radio label="0">禁用</el-radio> | ||
141 | </el-radio-group> | ||
142 | </el-form-item> | ||
143 | </el-col> | ||
144 | </el-row> | ||
145 | <div class="slxx_title title-block"> | ||
146 | 抵押权人信息 | ||
147 | <div class="triangle"></div> | ||
148 | </div> | ||
149 | <el-row :gutter="10"> | ||
150 | <el-col :span="14"> | ||
151 | <el-form-item :class="flag ? 'marginBot0' : ''" label="共有方式:"> | ||
152 | <el-radio-group | ||
153 | :disabled="$route.query.viewtype == 1" | ||
154 | v-model="ruleForm.slywxx.gyfs" | ||
155 | > | ||
156 | <el-radio label="1">单独所有</el-radio> | ||
157 | <el-radio label="2">共同共有</el-radio> | ||
158 | <el-radio label="3">按份所有</el-radio> | ||
159 | </el-radio-group> | ||
160 | </el-form-item> | ||
161 | </el-col> | ||
162 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> | ||
163 | <el-form-item | ||
164 | :class="flag ? 'marginBot0' : ''" | ||
165 | label="是否分别持证:" | ||
166 | > | ||
167 | <el-radio-group v-model="ruleForm.slywxx.sffbcz"> | ||
168 | <el-radio label="1">是</el-radio> | ||
169 | <el-radio label="0">否</el-radio> | ||
170 | </el-radio-group> | ||
171 | </el-form-item> | ||
172 | </el-col> | ||
173 | <el-col :span="5" v-show="ruleForm.gyfs == '2'"> | ||
174 | <el-form-item :class="flag ? 'marginBot0' : ''" label="持证人:"> | ||
175 | <el-select v-model="ruleForm.czr" placeholder="持证人"> | ||
176 | <el-option | ||
177 | v-for="item in czrOptions" | ||
178 | :key="item.value" | ||
179 | :label="item.label" | ||
180 | :value="item.value" | ||
181 | > | ||
182 | </el-option> | ||
183 | </el-select> | ||
184 | </el-form-item> | ||
185 | </el-col> | ||
186 | </el-row> | ||
187 | <InformationTable | ||
188 | :tableData="ruleForm.qlrList" | ||
189 | @upDateQlrxxList="upDateQlrxxList" | ||
190 | :viewtype="$route.query.viewtype" | ||
191 | :gyfs="ruleForm.slywxx.gyfs" | ||
192 | /> | ||
193 | <div class="slxx_title title-block"> | ||
194 | 抵押人信息 | ||
195 | <div class="triangle"></div> | ||
196 | </div> | ||
197 | <InformationTable | ||
198 | :tableData="ruleForm.ywrList" | ||
199 | @upDateQlrxxList="upDateYwrxxList" | ||
200 | :viewtype="$route.query.viewtype" | ||
201 | /> | ||
126 | </div> | 202 | </div> |
127 | <el-row class="btn" v-if="!$route.query.viewtype"> | 203 | <el-row class="btn" v-if="!$route.query.viewtype"> |
128 | <el-form-item :class="flag ? 'marginBot0' : ''"> | 204 | <el-form-item :class="flag ? 'marginBot0' : ''"> |
129 | <el-button type="primary" @click="onSubmit">保存</el-button> | 205 | <el-button type="primary" @click="onSubmitClick()">保存</el-button> |
130 | </el-form-item> | 206 | </el-form-item> |
131 | </el-row> | 207 | </el-row> |
132 | </el-form> | 208 | </el-form> |
... | @@ -134,7 +210,7 @@ | ... | @@ -134,7 +210,7 @@ |
134 | </template> | 210 | </template> |
135 | <script> | 211 | <script> |
136 | import InformationTable from "@/views/workflow/components/InformationTable"; | 212 | import InformationTable from "@/views/workflow/components/InformationTable"; |
137 | import { Init } from "@/api/diyaqFlow.js"; | 213 | import { Init,saveData } from "@/api/diyaqFlow.js"; |
138 | import { mapGetters } from "vuex"; | 214 | import { mapGetters } from "vuex"; |
139 | export default { | 215 | export default { |
140 | async created() { | 216 | async created() { |
... | @@ -156,9 +232,12 @@ export default { | ... | @@ -156,9 +232,12 @@ export default { |
156 | data() { | 232 | data() { |
157 | return { | 233 | return { |
158 | disabled: true, | 234 | disabled: true, |
235 | czrOptions: [], | ||
159 | ruleForm: { | 236 | ruleForm: { |
160 | slywxx: {}, | 237 | slywxx: {}, |
161 | qlxxold:{}, | 238 | qlxxold: {}, |
239 | diyaq: {}, | ||
240 | gyfs: "", | ||
162 | }, | 241 | }, |
163 | //传递参数 | 242 | //传递参数 |
164 | propsParam: {}, | 243 | propsParam: {}, |
... | @@ -166,27 +245,45 @@ export default { | ... | @@ -166,27 +245,45 @@ export default { |
166 | }; | 245 | }; |
167 | }, | 246 | }, |
168 | methods: { | 247 | methods: { |
169 | list(bsmSldy) { | 248 | // list(bsmSldy) { |
170 | Init({ | 249 | // Init({ |
171 | bsmSldy: bsmSldy.split(","), | 250 | // bsmSldy: bsmSldy.split(","), |
172 | }).then((res) => { | 251 | // }).then((res) => { |
173 | if (res.code === 200 && res.result) { | 252 | // if (res.code === 200 && res.result) { |
174 | this.ruleForm = { | 253 | // this.ruleForm = { |
175 | ...res.result, | 254 | // ...res.result, |
176 | ...res.result.zdjbxxdatas, | 255 | // ...res.result.zdjbxxdatas, |
177 | ...res.result.qlxxdatas, | 256 | // ...res.result.qlxxdatas, |
178 | ...res.result.jsydsyqdatas, | 257 | // ...res.result.jsydsyqdatas, |
179 | }; | 258 | // }; |
259 | // } | ||
260 | // }); | ||
261 | // }, | ||
262 | onSubmitClick() { | ||
263 | saveData(this.ruleForm).then((res) => { | ||
264 | if (res.code === 200) { | ||
265 | this.$message({ | ||
266 | showClose: true, | ||
267 | message: "保存成功!", | ||
268 | type: "success", | ||
269 | }); | ||
270 | } else { | ||
271 | this.$message({ | ||
272 | showClose: true, | ||
273 | message: res.message, | ||
274 | type: "error", | ||
275 | }); | ||
180 | } | 276 | } |
181 | }); | 277 | }); |
182 | }, | 278 | }, |
183 | onSubmit() { | 279 | |
184 | fristReg(this.ruleForm).then((res) => { | 280 | // 更新权利人信息 |
185 | if (res.code === 200 && res.result) { | 281 | upDateQlrxxList(val) { |
186 | console.log(res); | 282 | this.ruleForm.qlrList = _.cloneDeep(val); |
187 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | 283 | }, |
188 | } | 284 | // 更新义务人信息 |
189 | }); | 285 | upDateYwrxxList(val) { |
286 | this.ruleForm.ywrList = _.cloneDeep(val); | ||
190 | }, | 287 | }, |
191 | }, | 288 | }, |
192 | }; | 289 | }; | ... | ... |
-
Please register or sign in to post a comment