修改批量抵押效验
Showing
1 changed file
with
32 additions
and
30 deletions
... | @@ -3,6 +3,7 @@ | ... | @@ -3,6 +3,7 @@ |
3 | <div class="slxx"> | 3 | <div class="slxx"> |
4 | <el-form | 4 | <el-form |
5 | :model="ruleForm" | 5 | :model="ruleForm" |
6 | :rules="rules" | ||
6 | v-Loading="loading" | 7 | v-Loading="loading" |
7 | :label-position="flag ? 'top' : ''" | 8 | :label-position="flag ? 'top' : ''" |
8 | :inline="flag" | 9 | :inline="flag" |
... | @@ -75,7 +76,7 @@ | ... | @@ -75,7 +76,7 @@ |
75 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0 && !ruleForm.slsq.djywbm.includes('400')"> | 76 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0 && !ruleForm.slsq.djywbm.includes('400')"> |
76 | <el-col :span="8"> | 77 | <el-col :span="8"> |
77 | <el-form-item label="抵押方式:"> | 78 | <el-form-item label="抵押方式:"> |
78 | <el-radio-group disabled v-model="ruleForm.diyaqList[0].dyfs"> | 79 | <el-radio-group disabled v-model="ruleForm.diyaq.dyfs"> |
79 | <el-radio label="1">一般抵押</el-radio> | 80 | <el-radio label="1">一般抵押</el-radio> |
80 | <el-radio label="2">最高额抵押</el-radio> | 81 | <el-radio label="2">最高额抵押</el-radio> |
81 | </el-radio-group> | 82 | </el-radio-group> |
... | @@ -84,7 +85,7 @@ | ... | @@ -84,7 +85,7 @@ |
84 | <el-col :span="8"> | 85 | <el-col :span="8"> |
85 | <el-form-item label="抵押金额类型:"> | 86 | <el-form-item label="抵押金额类型:"> |
86 | <el-radio-group | 87 | <el-radio-group |
87 | v-model="ruleForm.diyaqList[0].dyjelx" | 88 | v-model="ruleForm.diyaq.dyjelx" |
88 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> | 89 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> |
89 | <el-radio label="0">独立抵押</el-radio> | 90 | <el-radio label="0">独立抵押</el-radio> |
90 | <el-radio label="1">整体抵押</el-radio> | 91 | <el-radio label="1">整体抵押</el-radio> |
... | @@ -93,10 +94,10 @@ | ... | @@ -93,10 +94,10 @@ |
93 | </el-col> | 94 | </el-col> |
94 | <el-col :span="8"> | 95 | <el-col :span="8"> |
95 | <el-form-item | 96 | <el-form-item |
96 | label="是否存在禁止或者限制转让抵押不动产的约定:" | 97 | label="是否禁止或者限制转让的约定:" |
97 | label-width="300px"> | 98 | label-width="200px"> |
98 | <el-radio-group | 99 | <el-radio-group |
99 | v-model="ruleForm.diyaqList[0].sfczjzhxz" | 100 | v-model="ruleForm.diyaq.sfczjzhxz" |
100 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> | 101 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> |
101 | <el-radio label="1">启用</el-radio> | 102 | <el-radio label="1">启用</el-radio> |
102 | <el-radio label="0">禁用</el-radio> | 103 | <el-radio label="0">禁用</el-radio> |
... | @@ -107,15 +108,15 @@ | ... | @@ -107,15 +108,15 @@ |
107 | <el-row | 108 | <el-row |
108 | :gutter="10" | 109 | :gutter="10" |
109 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0 && !ruleForm.slsq.djywbm.includes('400')"> | 110 | v-if="ruleForm.diyaqList && ruleForm.diyaqList.length > 0 && !ruleForm.slsq.djywbm.includes('400')"> |
110 | <el-col :span="8" v-show="ruleForm.diyaqList[0].dyfs == 1"> | 111 | <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 1"> |
111 | <el-form-item label="被担保主债权数额:"> | 112 | <el-form-item label="被担保主债权数额:" prop="diyaq.bdbzzqse"> |
112 | <div style="display: flex"> | 113 | <div style="display: flex"> |
113 | <el-input | 114 | <el-input |
114 | v-model="ruleForm.diyaqList[0].bdbzzqse" | 115 | v-model="ruleForm.diyaq.bdbzzqse" |
115 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> | 116 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> |
116 | <el-select | 117 | <el-select |
117 | style="width: 68px" | 118 | style="width: 68px" |
118 | v-model="ruleForm.diyaqList[0].jedw" | 119 | v-model="ruleForm.diyaq.jedw" |
119 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> | 120 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> |
120 | <el-option | 121 | <el-option |
121 | v-for="item in dictData['A57']" | 122 | v-for="item in dictData['A57']" |
... | @@ -128,13 +129,13 @@ | ... | @@ -128,13 +129,13 @@ |
128 | </el-form-item> | 129 | </el-form-item> |
129 | </el-col> | 130 | </el-col> |
130 | 131 | ||
131 | <el-col :span="8" v-show="ruleForm.diyaqList[0].dyfs == 2"> | 132 | <el-col :span="8" v-show="ruleForm.diyaq.dyfs == 2"> |
132 | <el-form-item label="最高债权额:"> | 133 | <el-form-item label="最高债权额:" prop="diyaq.zgzqse"> |
133 | <el-input | 134 | <el-input |
134 | v-model="ruleForm.diyaqList[0].zgzqse" | 135 | v-model="ruleForm.diyaq.zgzqse" |
135 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> | 136 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> |
136 | <el-select | 137 | <el-select |
137 | v-model="ruleForm.diyaqList[0].jedw" | 138 | v-model="ruleForm.diyaq.jedw" |
138 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> | 139 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"> |
139 | <el-option | 140 | <el-option |
140 | v-for="item in dictData['A57']" | 141 | v-for="item in dictData['A57']" |
... | @@ -147,18 +148,18 @@ | ... | @@ -147,18 +148,18 @@ |
147 | </el-col> | 148 | </el-col> |
148 | 149 | ||
149 | <el-col :span="8"> | 150 | <el-col :span="8"> |
150 | <el-form-item label="债务履行起始时间:"> | 151 | <el-form-item label="债务履行起始时间:" prop="diyaq.zwlxqssj"> |
151 | <el-date-picker | 152 | <el-date-picker |
152 | v-model="ruleForm.diyaqList[0].zwlxqssj" | 153 | v-model="ruleForm.diyaq.zwlxqssj" |
153 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 154 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" |
154 | type="date"> | 155 | type="date"> |
155 | </el-date-picker> | 156 | </el-date-picker> |
156 | </el-form-item> | 157 | </el-form-item> |
157 | </el-col> | 158 | </el-col> |
158 | <el-col :span="8"> | 159 | <el-col :span="8"> |
159 | <el-form-item label="债务履行结束时间:"> | 160 | <el-form-item label="债务履行结束时间:" prop="diyaq.zwlxjssj"> |
160 | <el-date-picker | 161 | <el-date-picker |
161 | v-model="ruleForm.diyaqList[0].zwlxjssj" | 162 | v-model="ruleForm.diyaq.zwlxjssj" |
162 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" | 163 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')" |
163 | type="date"> | 164 | type="date"> |
164 | </el-date-picker> | 165 | </el-date-picker> |
... | @@ -169,7 +170,7 @@ | ... | @@ -169,7 +170,7 @@ |
169 | <el-col :span="24"> | 170 | <el-col :span="24"> |
170 | <el-form-item label="担保范围:"> | 171 | <el-form-item label="担保范围:"> |
171 | <el-input | 172 | <el-input |
172 | v-model="ruleForm.diyaqList[0].dbfw" | 173 | v-model="ruleForm.diyaq.dbfw" |
173 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> | 174 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> |
174 | </el-form-item> | 175 | </el-form-item> |
175 | </el-col> | 176 | </el-col> |
... | @@ -178,7 +179,7 @@ | ... | @@ -178,7 +179,7 @@ |
178 | <el-col :span="24"> | 179 | <el-col :span="24"> |
179 | <el-form-item label="最高债权确定事实和数额:"> | 180 | <el-form-item label="最高债权确定事实和数额:"> |
180 | <el-input | 181 | <el-input |
181 | v-model="ruleForm.diyaqList[0].zgzqqdss" | 182 | v-model="ruleForm.diyaq.zgzqqdss" |
182 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> | 183 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> |
183 | </el-form-item> | 184 | </el-form-item> |
184 | </el-col> | 185 | </el-col> |
... | @@ -190,7 +191,7 @@ | ... | @@ -190,7 +191,7 @@ |
190 | type="textarea" | 191 | type="textarea" |
191 | maxlength="500" | 192 | maxlength="500" |
192 | show-word-limit | 193 | show-word-limit |
193 | v-model="ruleForm.diyaqList[0].fj" | 194 | v-model="ruleForm.diyaq.fj" |
194 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> | 195 | :disabled="!viewEdit || ruleForm.slsq.djywbm.includes('400')"></el-input> |
195 | </el-form-item> | 196 | </el-form-item> |
196 | </el-col> | 197 | </el-col> |
... | @@ -278,17 +279,17 @@ | ... | @@ -278,17 +279,17 @@ |
278 | class="textArea" | 279 | class="textArea" |
279 | type="textarea" | 280 | type="textarea" |
280 | :disabled="!viewEdit" | 281 | :disabled="!viewEdit" |
281 | v-model="ruleForm.diyaqList[0].zxdyyy"> | 282 | v-model="ruleForm.diyaq.zxdyyy"> |
282 | </el-input> | 283 | </el-input> |
283 | </el-form-item> | 284 | </el-form-item> |
284 | <el-form-item v-else label="登记原因:" prop="diyaqList[0].djyy"> | 285 | <el-form-item v-else label="登记原因:" prop="diyaq.djyy"> |
285 | <el-input | 286 | <el-input |
286 | class="textArea" | 287 | class="textArea" |
287 | type="textarea" | 288 | type="textarea" |
288 | maxlength="500" | 289 | maxlength="500" |
289 | show-word-limit | 290 | show-word-limit |
290 | :disabled="!viewEdit" | 291 | :disabled="!viewEdit" |
291 | v-model="ruleForm.diyaqList[0].djyy"> | 292 | v-model="ruleForm.diyaq.djyy"> |
292 | </el-input> | 293 | </el-input> |
293 | </el-form-item> | 294 | </el-form-item> |
294 | </el-col> | 295 | </el-col> |
... | @@ -307,6 +308,7 @@ | ... | @@ -307,6 +308,7 @@ |
307 | import dyaqTable from "../commonTable/dyaqTable"; | 308 | import dyaqTable from "../commonTable/dyaqTable"; |
308 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; | 309 | import qlrCommonTable from "@/views/workflow/components/qlrCommonTable"; |
309 | import { batchInit, saveBatchData } from "@/api/workflow/diyaqFlow.js"; | 310 | import { batchInit, saveBatchData } from "@/api/workflow/diyaqFlow.js"; |
311 | import { formValidate } from "./slxxValidate"; | ||
310 | import { mapGetters } from "vuex"; | 312 | import { mapGetters } from "vuex"; |
311 | export default { | 313 | export default { |
312 | mounted () { | 314 | mounted () { |
... | @@ -332,7 +334,11 @@ | ... | @@ -332,7 +334,11 @@ |
332 | } | 334 | } |
333 | }) | 335 | }) |
334 | that.czrOptions = that.ruleForm.qlrList; | 336 | that.czrOptions = that.ruleForm.qlrList; |
335 | that.isSave = that.viewEdit | 337 | that.isSave = that.viewEdit; |
338 | that.rules = formValidate( | ||
339 | that.ruleForm.sldyList[0].djlx, | ||
340 | that.ruleForm.diyaq.dyfs | ||
341 | ); | ||
336 | } else { | 342 | } else { |
337 | that.isSave = false | 343 | that.isSave = false |
338 | that.$confirm(res.message, '提示', { | 344 | that.$confirm(res.message, '提示', { |
... | @@ -361,11 +367,7 @@ | ... | @@ -361,11 +367,7 @@ |
361 | ruleForm: {}, | 367 | ruleForm: {}, |
362 | //传递参数 | 368 | //传递参数 |
363 | propsParam: {}, | 369 | propsParam: {}, |
364 | rules: { | 370 | rules: {}, |
365 | 'diyaqList[0].djyy': [ | ||
366 | { required: true, message: '请输入登记原因', trigger: 'blur' } | ||
367 | ] | ||
368 | }, | ||
369 | tableData: [], | 371 | tableData: [], |
370 | }; | 372 | }; |
371 | }, | 373 | }, |
... | @@ -450,7 +452,7 @@ | ... | @@ -450,7 +452,7 @@ |
450 | } else { | 452 | } else { |
451 | that.$message({ | 453 | that.$message({ |
452 | showClose: true, | 454 | showClose: true, |
453 | message: "请输入登记原因", | 455 | message: "请输入红框内的相关信息!", |
454 | type: "error" | 456 | type: "error" |
455 | }) | 457 | }) |
456 | return false | 458 | return false | ... | ... |
-
Please register or sign in to post a comment