Ver Fonte

个贷产品报告

wucl há 1 ano atrás
pai
commit
71a034a32a

BIN
src/assets/images/empty.png


BIN
src/assets/images/exist.png


BIN
src/assets/images/final.png


BIN
src/assets/images/statement.png


BIN
src/assets/images/technic.png


+ 18 - 28
src/views/personal/todoDetail.vue

@@ -917,7 +917,7 @@
                       <el-upload class="myupload"
                               :action="'/api/personalProduction/upload/'+target.id+'/1'" :file-list="statementProd.files" 
                               :limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
-                              :on-remove="handleRemoveFile"	>
+                              :before-remove="handleRemoveFile"	>
                           <el-button type="text" >手动上传</el-button>
                           </el-upload>
                     </div>
@@ -928,11 +928,11 @@
                   <div style="padding: 14px;">
                     <span>技术报告</span><time class="time">{{ technicReportProd.created }}</time>
                     <div class="control">
-                      <el-button type="text" class="button">系统生成</el-button>
+                      <el-button type="text" class="button"  @click="genProductionFile(2)">系统生成</el-button>
                       <el-upload class="myupload"
                       :action="'/api/personalProduction/upload/'+target.id+'/2'" :file-list="technicReportProd.files"
                               :limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
-                              :on-remove="handleRemoveFile">
+                              :before-remove="handleRemoveFile">
                           <el-button  type="text">手动上传</el-button>
                           </el-upload>
                       
@@ -948,7 +948,7 @@
                       <el-upload class="myupload"
                       :action="'/api/personalProduction/upload/'+target.id+'/3'" :file-list="finalReprotProd.files" 
                               :limit="1" :on-exceed="handleExceed" :on-preview="handleAttachmentPreview" :on-success="getProductions"
-                              :on-remove="handleRemoveFile">
+                              :before-remove="handleRemoveFile">
                           <el-button type="text">手动上传</el-button>
                           </el-upload>
                           
@@ -1060,9 +1060,7 @@
     import EntityInfo from '@/components/personalForms/entityInfo'
     import BackgroundInfo from '@/components/personalForms/backgroundInfo'
     import SellingAbilityInfo from '@/components/personalForms/sellingAbilityInfo'
-    import statementPNG from '@/assets/images/statement.png'
-    import technicPNG from '@/assets/images/technic.png'
-    import finalPNG from '@/assets/images/final.png'
+    import existPNG from '@/assets/images/exist.png'
     import emptyPNG from '@/assets/images/empty.png'
 
 
@@ -1110,12 +1108,6 @@
           },
           deep:true
         },
-        // finalCardPNG:{
-        //   handler(nv,ov){
-        //     console.log(nv,ov)
-        //   },
-        //   deep:true
-        // }
 
       },
       computed: {
@@ -1128,15 +1120,6 @@
           }
 
         },
-        // statementCardPNG(){
-        //   return this.statementProd.filePath?statementPNG:emptyPNG;
-        // },
-        // technicCardPNG(){
-        //   return this.technicReportProd.filePath?technicPNG:emptyPNG;
-        // },
-        // finalCardPNG(){
-        //   return this.finalReprotProd.filePath?finalPNG:emptyPNG;
-        // }
       },
       
       data() {
@@ -1749,7 +1732,13 @@
             this.showCred.showIdCer = !this.showCred.showIdCer;
         },
         genProductionFile(tag){
-          if (this.personal.id && this.target.id){
+          this.$confirm('系统生成将会覆盖原有文档,请确认是否继续?','提示',{
+            confirmButtonText: '确认',
+            cancelButtonText: '取消',
+            type: 'warning',
+            center: true
+          }).then(()=>{
+            if (this.personal.id && this.target.id){
               this.$api.personalProduction.genFile(this.personal.id,tag).then(res=>{
                 if (res.code === 200 && res.data){
                   this.$notify({
@@ -1768,7 +1757,8 @@
                     });
                 }
               })
-          }
+            }
+          })
         },
         getProductions(){
           if (this.target.id){
@@ -1780,7 +1770,7 @@
                       this.statementProd = word;
                       const fs = [];
                       if (word.filePath){
-                        this.statementCardPNG = statementPNG;
+                        this.statementCardPNG = existPNG;
                         const sta = JSON.parse(word.filePath)
                         sta.id= word.id;
                         fs.push(sta);
@@ -1795,7 +1785,7 @@
                       if (word.filePath){
                         const tec = JSON.parse(word.filePath)
                         tec.id= word.id;
-                        this.technicCardPNG = technicPNG;
+                        this.technicCardPNG = existPNG;
                         fs.push(tec);
                       }else{
                         this.technicCardPNG =emptyPNG;
@@ -1808,7 +1798,7 @@
                       if (word.filePath){
                         const final = JSON.parse(word.filePath)
                         final.id= word.id;
-                        this.finalCardPNG = finalPNG;
+                        this.finalCardPNG = existPNG;
                         fs.push(final);
                       }else{
                         this.finalCardPNG =emptyPNG;
@@ -1852,7 +1842,7 @@
       }
     }
   </script>
-  <style  scoped>
+  <style lang="scss" scoped>
   
     .row-style{
       margin-left:40px;