Browse Source

大中型已办添加详情跳转和个贷提交bug fixed

wucl 11 months ago
parent
commit
bdee778fcb

+ 39 - 23
src/views/major/detail.vue

@@ -16,6 +16,9 @@
         <WorkflowBoard ref='board' :nodeBusinessInfo="nodeBusinessInfo" />
       </el-collapse-item>
     </el-collapse>
+    <div class="button-area">
+      <el-button class="y-save" round type="info" @click="goBack">返回</el-button>
+    </div>
      <el-tabs v-model="activeTagName" @tab-click="handleClick" type="border-card">
       <el-tab-pane name="order" class="pane-class" :lazy=true>
         <span slot="label"><i class="el-icon-document"></i> 市场订单</span>
@@ -2853,6 +2856,7 @@
               obj.statementNo =this.statementNo;
             }
             if (this.reportNo ){
+              console.log(this.feedback.production)
               if (this.feedback.production.includes("REPORT")){
               obj.reportNo = this.reportNo;
               }else{
@@ -3312,29 +3316,35 @@
         this.officeFileView(file.name, file.url);
       },
           // 文档预览
-    officeFileView(name, url) {
-      if (name || url) {
-        const route = this.$router.resolve({
-          path: "/office/view/window",
-          query: {
-            // 文档标题
-            title: name,
-            // 文档url地址
-            url: url,
-            mode: 'view'
-          }
-        });
-        // 在新窗口打开页面
-        window.open(route.href, "_blank");
-      } else {
-        this.$notify({
-          title: '失败',
-          message: 'url为空,无法打开,如未保存请保存后再试!',
-          type: 'error',
-          duration: 2000
-        });
-      }
-    },
+      officeFileView(name, url) {
+        if (name || url) {
+          const route = this.$router.resolve({
+            path: "/office/view/window",
+            query: {
+              // 文档标题
+              title: name,
+              // 文档url地址
+              url: url,
+              mode: 'view'
+            }
+          });
+          // 在新窗口打开页面
+          window.open(route.href, "_blank");
+        } else {
+          this.$notify({
+            title: '失败',
+            message: 'url为空,无法打开,如未保存请保存后再试!',
+            type: 'error',
+            duration: 2000
+          });
+        }
+      },
+      goBack() {
+        const back = this.$route.query.back
+        if (back) {
+          this.$router.push(back)
+        }
+      },
     },
 
   }
@@ -3418,4 +3428,10 @@ a:hover{
   cursor: pointer;
   color: #5a9cf8
 }
+
+.button-area {
+  position: absolute;
+  top: 20px;
+  right: 50px;
+}
 </style>

+ 12 - 3
src/views/major/doneList.vue

@@ -47,9 +47,9 @@
             <span>大中型</span>
           </template>
         </el-table-column> -->
-        <el-table-column label="项目名称" align="center" width="300" >
+        <el-table-column label="项目名称" align="center" width="300" show-overflow-tooltip>
           <template slot-scope="{row}">
-            <span>{{ row.productionName==null?row.orderName: row.productionName }}</span>
+            <span>{{ row.productionName==null?row.majorName: row.productionName }}</span>
           </template>
         </el-table-column>
         <el-table-column label="订单号" align="center"  width='150'>
@@ -95,6 +95,7 @@
         <el-table-column label="操作" align="center"  width='100'>
           <template slot-scope="{row}">
             <el-button v-if="row.instanceState==='CLOSED'" type="text" size="small" @click="activate(row)">激活</el-button>
+            <el-button type="text" @click="toDetail(row)">详情</el-button>
           </template>
         </el-table-column>
       </parentTable>
@@ -234,7 +235,15 @@ export default {
             }
           })
       })
-    }
+    },
+    toDetail(row){
+      let productionType = row.productionType;
+      if (productionType==='STATEMENT'){
+        this.$router.push(`/major/detail?id=${row.majorId}&couldEdit=${false}&statementNo=${row.reportNo}&back=${'/major/my/done'}`)
+      }else{
+        this.$router.push(`/major/detail?id=${row.majorId}&couldEdit=${false}&statementNo=${row.statementNo}&reportNo=${row.reportNo}&back=${'/major/my/done'}`)
+      }
+    },
   },
   
 }

+ 1 - 1
src/views/major/saveFileDoneList.vue

@@ -177,7 +177,7 @@ export default {
     },
    
     toDetail(row){
-      this.$router.push(`/major/detail?id=${row.majorId}&couldEdit=${false}&reportNo=${row.reportNo}&pt=${row.production}&back=${'/major/saveFileDone'}`)
+      this.$router.push(`/major/detail?id=${row.majorId}&couldEdit=${false}&reportNo=${row.reportNo}&back=${'/major/saveFileDone'}`)
     },
     aliasProductionType(code){
         if (code === 'STATEMENT'){

+ 1 - 1
src/views/personal/pendingList.vue

@@ -79,7 +79,7 @@
         </el-table-column>
         <el-table-column label="委托人电话" align="center" width="130" v-if="!hiddenLabels.includes('bailoraTel')" prop="bailoraTel">
           <template slot-scope="{row}">
-            <span>{{ row.bailorATel?row.bailorATel:(row.bailorBTel?row.bailorBTel:'-')}}</span>
+            <span>{{ row.bailoraTel?row.bailoraTel:(row.bailorbTel?row.bailorbTel:'-')}}</span>
           </template>
         </el-table-column>
         <el-table-column label="客户经理" align="center" v-if="!hiddenLabels.includes('clientManager')" prop="clientManager">

+ 6 - 4
src/views/personal/todoDetail.vue

@@ -1653,7 +1653,7 @@ export default {
       verify.state = true;
       verify.productionType = this.feedback;
       if (commit.state === 'PASS') {
-        let nodeCode = this.nodeBusinessInfo.currentNodeInstanceCode
+        let nodeCode = this.nodeBusinessInfo.currentNodeInstanceCode;
         switch (nodeCode) {
           case 'DEPARTMENT_ALLOCATION':
             if (!this.personal.outwardStaff) {
@@ -1715,6 +1715,7 @@ export default {
                   type: 'error',
                   duration: 2000
                 });
+                verify.state = false;
               }
               if (ok && nodeCode === 'WRITE_REPORT' && (this.technicReportProd == null || this.technicReportProd.files.length === 0)) {
                 this.$notify({
@@ -1723,6 +1724,7 @@ export default {
                   type: 'error',
                   duration: 2000
                 });
+                verify.state = false;
               }
               if (ok && nodeCode === 'WRITE_LETTER' && (this.letterReprotProd == null || this.letterReprotProd.files.length === 0)) {
                 this.$notify({
@@ -1731,8 +1733,9 @@ export default {
                   type: 'error',
                   duration: 2000
                 });
+                verify.state = false;
               }
-              verify.state = false;
+              
             }
             callback(verify);
             return;
@@ -1746,6 +1749,7 @@ export default {
               return;
             }
             callback(verify);
+            return;
 
           case "CHECK_REPORT":
             if (this.technicReportProd.checkState == null || this.finalReprotProd.checkState == null ||
@@ -2459,7 +2463,6 @@ export default {
     },
     printQR() {
       const path = this.qrCodeUrl;
-      console.log(path)
       if (!path) {
         this.$message("二维码还未生成,无法打印。")
         return;
@@ -2471,7 +2474,6 @@ export default {
 
     },
     showQrCode(url){
-      console.log(url)
       this.qrCodeUrl = url;
     }
   }