修改对应的逻辑内容
Showing
5 changed files
with
57 additions
and
110 deletions
... | @@ -383,7 +383,16 @@ export default { | ... | @@ -383,7 +383,16 @@ export default { |
383 | type: "warning", //提示类型 success/info/warning/error | 383 | type: "warning", //提示类型 success/info/warning/error |
384 | }).then(function () { | 384 | }).then(function () { |
385 | record(formdata).then((res) => { | 385 | record(formdata).then((res) => { |
386 | if (res.code === 200 || res.code === 2002) { | 386 | if (res.code === 200) { |
387 | if(res.result.length===1){ | ||
388 | res.result[0].state? that.$alert("登簿成功!"): that.$alert(res.result[0].msg);; | ||
389 | } | ||
390 | else{ | ||
391 | that.$alert('<div>'+res.result[0].ywh+','+res.result[0].msg+'</div>', '登簿明细', { | ||
392 | dangerouslyUseHTMLString: true | ||
393 | }); | ||
394 | } | ||
395 | }else{ | ||
387 | that.$alert(res.message); | 396 | that.$alert(res.message); |
388 | } | 397 | } |
389 | }); | 398 | }); | ... | ... |
... | @@ -219,7 +219,7 @@ export default { | ... | @@ -219,7 +219,7 @@ export default { |
219 | methods: { | 219 | methods: { |
220 | // 更新权利人信息 | 220 | // 更新权利人信息 |
221 | upDateQlrxxList (val) { | 221 | upDateQlrxxList (val) { |
222 | this.ruleForm.qlrxx = _.cloneDeep(val) | 222 | this.ruleForm.qlrList = _.cloneDeep(val) |
223 | // this.$store.dispatch('slxx/setQlrxxNew', { | 223 | // this.$store.dispatch('slxx/setQlrxxNew', { |
224 | // qlrxx: this.ruleForm.qlrxx, | 224 | // qlrxx: this.ruleForm.qlrxx, |
225 | // fj: this.ruleForm.fj, | 225 | // fj: this.ruleForm.fj, |
... | @@ -227,24 +227,20 @@ export default { | ... | @@ -227,24 +227,20 @@ export default { |
227 | // djyy: this.ruleForm.djyy | 227 | // djyy: this.ruleForm.djyy |
228 | // }) | 228 | // }) |
229 | }, | 229 | }, |
230 | list (bsmSldy) { | ||
231 | var formdata = new FormData(); | ||
232 | formdata.append("bsmSldy", bsmSldy); | ||
233 | Init(formdata).then((res) => { | ||
234 | if (res.code === 200 && res.result) { | ||
235 | this.ruleForm = { | ||
236 | ...res.result, | ||
237 | ...res.result.zdjbxxdatas, | ||
238 | ...res.result.qlxxdatas, | ||
239 | ...res.result.jsydsyqdatas, | ||
240 | }; | ||
241 | } | ||
242 | }); | ||
243 | }, | ||
244 | onSubmit () { | 230 | onSubmit () { |
245 | saveData(this.ruleForm).then((res) => { | 231 | saveData(this.ruleForm).then((res) => { |
246 | if (res.code === 200 && res.result) { | 232 | if (res.code === 200) { |
247 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | 233 | this.$message({ |
234 | showClose: true, | ||
235 | message: "保存成功!", | ||
236 | type: "success", | ||
237 | }); | ||
238 | } else { | ||
239 | this.$message({ | ||
240 | showClose: true, | ||
241 | message: res.message, | ||
242 | type: "error", | ||
243 | }); | ||
248 | } | 244 | } |
249 | }); | 245 | }); |
250 | }, | 246 | }, | ... | ... |
... | @@ -184,7 +184,7 @@ export default { | ... | @@ -184,7 +184,7 @@ export default { |
184 | formdata.append("djlx", this.propsParam.djlx); | 184 | formdata.append("djlx", this.propsParam.djlx); |
185 | Init(formdata).then((res) => { | 185 | Init(formdata).then((res) => { |
186 | if (res.code === 200 && res.result) { | 186 | if (res.code === 200 && res.result) { |
187 | this.ruleForm = res.result; | 187 | this.ruleForm = res.result; |
188 | } | 188 | } |
189 | }); | 189 | }); |
190 | }, | 190 | }, |
... | @@ -196,32 +196,7 @@ export default { | ... | @@ -196,32 +196,7 @@ export default { |
196 | return { | 196 | return { |
197 | disabled: true, | 197 | disabled: true, |
198 | czrOptions: [], | 198 | czrOptions: [], |
199 | ruleForm: { | 199 | ruleForm: {}, |
200 | ywh: "", | ||
201 | slry: "", | ||
202 | slsj: "", | ||
203 | qllx: "", | ||
204 | djlx: "", | ||
205 | djqx: "", | ||
206 | zddm: "", | ||
207 | bdcdyh: "", | ||
208 | qlxzmc: "", | ||
209 | qlrxx: [], | ||
210 | zdmj: "", | ||
211 | zl: "", | ||
212 | tdyt: "", | ||
213 | qlsdfs: "", | ||
214 | qdjg: "", | ||
215 | tdsyqx: "", | ||
216 | syqqzsj: "", | ||
217 | fj: "", | ||
218 | djyy: "", | ||
219 | gyfs: "1", | ||
220 | // 是否分别持证 | ||
221 | sffbcz: "", | ||
222 | // 持证人 | ||
223 | czr: "", | ||
224 | }, | ||
225 | //传递参数 | 200 | //传递参数 |
226 | propsParam: {}, | 201 | propsParam: {}, |
227 | rules: {}, | 202 | rules: {}, |
... | @@ -231,29 +206,25 @@ export default { | ... | @@ -231,29 +206,25 @@ export default { |
231 | // 更新权利人信息 | 206 | // 更新权利人信息 |
232 | upDateQlrxxList (val) { | 207 | upDateQlrxxList (val) { |
233 | this.ruleForm.qlrList = _.cloneDeep(val); | 208 | this.ruleForm.qlrList = _.cloneDeep(val); |
234 | }, // 更新权利人信息 | 209 | }, |
210 | // 更新义务人信息 | ||
235 | upDateYwrxxList (val) { | 211 | upDateYwrxxList (val) { |
236 | this.ruleForm.ywrList = _.cloneDeep(val); | 212 | this.ruleForm.ywrList = _.cloneDeep(val); |
237 | }, | 213 | }, |
238 | list(bsmSldy) { | ||
239 | var formdata = new FormData(); | ||
240 | formdata.append("bsmSldy", bsmSldy); | ||
241 | Init(formdata).then((res) => { | ||
242 | if (res.code === 200 && res.result) { | ||
243 | this.ruleForm = { | ||
244 | ...res.result, | ||
245 | ...res.result.zdjbxxdatas, | ||
246 | ...res.result.qlxxdatas, | ||
247 | ...res.result.jsydsyqdatas, | ||
248 | }; | ||
249 | } | ||
250 | }); | ||
251 | }, | ||
252 | onSubmit() { | 214 | onSubmit() { |
253 | saveData(this.ruleForm).then((res) => { | 215 | saveData(this.ruleForm).then((res) => { |
254 | if (res.code === 200 && res.result) { | 216 | if (res.code === 200) { |
255 | console.log(res); | 217 | this.$message({ |
256 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | 218 | showClose: true, |
219 | message: "保存成功!", | ||
220 | type: "success", | ||
221 | }); | ||
222 | } else { | ||
223 | this.$message({ | ||
224 | showClose: true, | ||
225 | message: res.message, | ||
226 | type: "error", | ||
227 | }); | ||
257 | } | 228 | } |
258 | }); | 229 | }); |
259 | }, | 230 | }, | ... | ... |
... | @@ -183,12 +183,7 @@ export default { | ... | @@ -183,12 +183,7 @@ export default { |
183 | formdata.append("bsmSldy", this.propsParam.bsmSldy); | 183 | formdata.append("bsmSldy", this.propsParam.bsmSldy); |
184 | Init(formdata).then((res) => { | 184 | Init(formdata).then((res) => { |
185 | if (res.code === 200 && res.result) { | 185 | if (res.code === 200 && res.result) { |
186 | this.ruleForm = { | 186 | this.ruleForm = res.result; |
187 | ...res.result, | ||
188 | ...res.result.zdjbxxdatas, | ||
189 | ...res.result.qlxxdatas, | ||
190 | ...res.result.jsydsyqdatas, | ||
191 | }; | ||
192 | } | 187 | } |
193 | }); | 188 | }); |
194 | }, | 189 | }, |
... | @@ -200,55 +195,31 @@ export default { | ... | @@ -200,55 +195,31 @@ export default { |
200 | return { | 195 | return { |
201 | disabled: true, | 196 | disabled: true, |
202 | czrOptions: [], | 197 | czrOptions: [], |
203 | ruleForm: { | 198 | ruleForm: {}, |
204 | // ywh: "", | ||
205 | // slry: "", | ||
206 | // slsj: "", | ||
207 | // qllx: "", | ||
208 | // djlx: "", | ||
209 | // djqx: "", | ||
210 | // zddm: "", | ||
211 | // bdcdyh: "", | ||
212 | // qlxzmc: "", | ||
213 | // qlrxx: [], | ||
214 | // zdmj: "", | ||
215 | // zl: "", | ||
216 | // tdyt: "", | ||
217 | // qlsdfs: "", | ||
218 | // qdjg: "", | ||
219 | // tdsyqx: "", | ||
220 | // syqqzsj: "", | ||
221 | // fj: "", | ||
222 | // djyy: "", | ||
223 | // gyfs: "1", | ||
224 | // sffbcz: "", | ||
225 | // czr: "", | ||
226 | }, | ||
227 | //传递参数 | 199 | //传递参数 |
228 | propsParam: {}, | 200 | propsParam: {}, |
229 | rules: {}, | 201 | rules: {}, |
230 | }; | 202 | }; |
231 | }, | 203 | }, |
232 | methods: { | 204 | methods: { |
233 | list (bsmSldy) { | 205 | // 更新权利人信息 |
234 | var formdata = new FormData(); | 206 | upDateQlrxxList (val) { |
235 | formdata.append("bsmSldy", bsmSldy); | 207 | this.ruleForm.qlrList = _.cloneDeep(val); |
236 | Init(formdata).then((res) => { | 208 | }, |
237 | if (res.code === 200 && res.result) { | ||
238 | this.ruleForm = { | ||
239 | ...res.result, | ||
240 | ...res.result.zdjbxxdatas, | ||
241 | ...res.result.qlxxdatas, | ||
242 | ...res.result.jsydsyqdatas, | ||
243 | }; | ||
244 | } | ||
245 | }); | ||
246 | }, | ||
247 | onSubmit () { | 209 | onSubmit () { |
248 | fristReg(this.ruleForm).then((res) => { | 210 | fristReg(this.ruleForm).then((res) => { |
249 | if (res.code === 200 && res.result) { | 211 | if (res.code === 200 && res.result) { |
250 | console.log(res); | 212 | this.$message({ |
251 | //this.ruleForm = { ...res.result, ...res.result.zdjbxxdatas, ...res.result.qlxxdatas, ...res.result.jsydsyqdatas } | 213 | showClose: true, |
214 | message: "保存成功!", | ||
215 | type: "success", | ||
216 | }); | ||
217 | } else { | ||
218 | this.$message({ | ||
219 | showClose: true, | ||
220 | message: res.message, | ||
221 | type: "error", | ||
222 | }); | ||
252 | } | 223 | } |
253 | }); | 224 | }); |
254 | }, | 225 | }, | ... | ... |
... | @@ -46,7 +46,7 @@ | ... | @@ -46,7 +46,7 @@ |
46 | </div> | 46 | </div> |
47 | <!-- 表格 --> | 47 | <!-- 表格 --> |
48 | <div class="from-clues-content"> | 48 | <div class="from-clues-content"> |
49 | <lb-table :page-size="pageData.pageSize" @sort-change="handleSort" :current-page.sync="pageData.currentPage" | 49 | <lb-table border :page-size="pageData.pageSize" @sort-change="handleSort" :current-page.sync="pageData.currentPage" |
50 | :total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" | 50 | :total="pageData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange" |
51 | :column="tableData.columns" :data="tableData.data"> | 51 | :column="tableData.columns" :data="tableData.data"> |
52 | </lb-table> | 52 | </lb-table> | ... | ... |
-
Please register or sign in to post a comment