Browse Source

个贷报告生成修改

wucl 4 months ago
parent
commit
16667b69a8
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/components/personalForms/landCertificate.vue

+ 5 - 1
src/components/personalForms/landCertificate.vue

@@ -176,7 +176,11 @@ export default {
       if (this.certificate.id) {
         this.$refs.landCertificateForm.validate(valid => {
           if (valid) {
-            this.certificate.landLimitDate = moment(this.certificate.limitDateD).format('YYYY年MM月DD日');
+            if (this.certificate.limitDateD){
+              this.certificate.landLimitDate = moment(this.certificate.limitDateD).format('YYYY年MM月DD日');
+            }else{
+              this.certificate.landLimitDate = null
+            }
             this.$api.personalTarget.updateLandCer(this.certificate).then(res => {
               if (res.code === 200 && res.data) {
                 this.$notify({