lihongxiao пре 2 година
родитељ
комит
84d37c8e3b
1 измењених фајлова са 114 додато и 36 уклоњено
  1. 114 36
      src/views/Letter/Orderlist.vue

+ 114 - 36
src/views/Letter/Orderlist.vue

@@ -752,10 +752,20 @@
     </el-dialog>
     <!-- 订单轨迹 -->
     <el-dialog :visible.sync="ddgjdialogVisible"  >
-      <div style="height: 300px;">
-        <el-steps direction="vertical" :active="trajectoryTable.length" v-for="item in trajectoryTable" :key="item.id">
-          <el-step :title="item.orderStatus | cap" :description="'保险公司:'+item.insCompany + '   ' +'提交人:'+item.operator"></el-step>
-        </el-steps>
+      <div style="height: 300px;overflow-y: auto">
+        <el-steps direction="vertical" :active="trajectoryTable.length-1">
+          <el-step
+            :title="item.orderStatus | cap"
+            :key="item.id"
+            v-for="item in trajectoryTable"
+          >
+          <template slot="description">
+            <span>保险公司:{{item.insCompany}}</span>
+            <span>提交人:{{item.operator}}</span>
+            <span>创建时间:{{item.createTime}}</span>
+          </template>
+          </el-step>
+         </el-steps>
       </div>
     </el-dialog>
 
@@ -1728,6 +1738,9 @@ export default {
                       });
                     }
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
               }
               if (this.orderInfo.sypolicyno) {
@@ -1743,6 +1756,9 @@ export default {
                       fileurl: res.data.syxPolicyUrl,
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
               }
               break;
@@ -1761,6 +1777,9 @@ export default {
                       fileurl: res.data[0],
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
                 this.$api.letter.ZhongmeigetPolicyPrint({
                   companyId: item.id,
@@ -1774,6 +1793,9 @@ export default {
                       fileurl: res.data[0],
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
               }
               if (this.orderInfo.sypolicyno) {
@@ -1789,6 +1811,9 @@ export default {
                       fileurl: res.data[0],
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
               }
               break;
@@ -1799,7 +1824,7 @@ export default {
                   riskCode: "0507",
                   type: '2',//2:保单
                 }).then(res => {
-                  if (res.data) {
+                  if (res.code==200 && res.data) {
                     if(res.data.jqUrl){
                         this.oldfileList.push({
                           fileTitle: "交强电子保单",
@@ -1815,6 +1840,9 @@ export default {
                       });
                     }
                   }
+                  else{
+                    this.$message.error(res.msg);
+                  }
                 })
               }
               if (this.orderInfo.sypolicyno) {
@@ -1830,6 +1858,9 @@ export default {
                         fileurl: res.data.syUrl,
                       });
                   }
+                  else{
+                    this.$message.error(res.msg);
+                  }
                 })
               }
               if (this.orderInfo.crossInsurance.length > 0) {
@@ -1840,13 +1871,16 @@ export default {
                     riskCode: "0513",
                     type: '2',//2:保单
                   }).then(res => {
-                    if (res.data) {
+                    if (res.code==200 && res.data) {
                       this.oldfileList.push({
                         fileTitle: "驾意险保单",
                         filename: ele.policyNumber,
                         fileurl: res.data.jyUrl,
                       });
                     }
+                    else{
+                      this.$message.error(res.msg);
+                    }
                   })
                 })
               }
@@ -1865,6 +1899,9 @@ export default {
                       fileurl: res.data,
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
                 this.$api.letter.guoRengetPolicyPrint({
                   companyId: item.id,
@@ -1878,6 +1915,9 @@ export default {
                       fileurl: res.data,
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
               }
               if (this.orderInfo.sypolicyno) {
@@ -1893,6 +1933,9 @@ export default {
                       fileurl: res.data,
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
               }
               if (this.orderInfo.crossInsurance.length > 0) {
@@ -1911,6 +1954,9 @@ export default {
                         fileurl: res.data,
                       });
                     }
+                    else{
+                      this.$message.error(res.msg);
+                    }
                   })
                 })
               }
@@ -1929,6 +1975,9 @@ export default {
                       fileurl: res.data,
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
                 this.$api.letter.zijingetPolicyPrint({
                   companyId: item.id,
@@ -1942,6 +1991,9 @@ export default {
                       fileurl: res.data,
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
               }
               if (this.orderInfo.sypolicyno) {
@@ -1957,6 +2009,9 @@ export default {
                       fileurl: res.data,
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
               }
               if (this.orderInfo.crossInsurance.length > 0) {
@@ -1974,6 +2029,9 @@ export default {
                         fileurl: res.data,
                       });
                     }
+                    else{
+                      this.$message.error(res.msg);
+                    }
                   })
                 })
               }
@@ -1987,38 +2045,42 @@ export default {
                   subOrderNo: item.id,
                 }).then(res => {
                   if (res.data) {
-                  if (res.data.jqxPolicyUrl) {
-                    this.oldfileList.push({
-                      fileTitle: "交强电子保单",
-                      filename: this.orderInfo.jqpolicyno,
-                      fileurl: res.data.jqxPolicyUrl,
-                    });
-                  }
-                  if (res.data.jqxFlagUrl) {
-                    this.oldfileList.push({
-                      fileTitle: "交强电子标志",
-                      filename: this.orderInfo.jqpolicyno,
-                      fileurl: res.data.jqxFlagUrl,
-                    });
-                  }
-                  }
-                  if (res.data.syxPolicyUrl) {
-                    this.oldfileList.push({
-                      fileTitle: "商业电子保单",
-                      filename: this.orderInfo.sypolicyno,
-                      fileurl: res.data.syxPolicyUrl,
-                    });
-                  }
-                  if (res.data.jyxInfoList && res.data.jyxInfoList.length>0) {
-                    res.data.jyxInfoList.forEach(val=>{
+                    if (res.data.jqxPolicyUrl) {
                       this.oldfileList.push({
-                      fileTitle: "驾意险保单",
-                      filename: 'xxxxxxxxxxxxxxxxxxxxxx',
-                      fileurl: val.jyx_policy_url,
-                    });
-                    })
+                        fileTitle: "交强电子保单",
+                        filename: this.orderInfo.jqpolicyno,
+                        fileurl: res.data.jqxPolicyUrl,
+                      });
+                    }
+                    if (res.data.jqxFlagUrl) {
+                      this.oldfileList.push({
+                        fileTitle: "交强电子标志",
+                        filename: this.orderInfo.jqpolicyno,
+                        fileurl: res.data.jqxFlagUrl,
+                      });
+                    }
+                    if (res.data.syxPolicyUrl) {
+                      this.oldfileList.push({
+                        fileTitle: "商业电子保单",
+                        filename: this.orderInfo.sypolicyno,
+                        fileurl: res.data.syxPolicyUrl,
+                      });
+                    }
+                    if (res.data.jyxInfoList && res.data.jyxInfoList.length>0) {
+                      res.data.jyxInfoList.forEach(val=>{
+                        this.oldfileList.push({
+                        fileTitle: "驾意险保单",
+                        filename: 'xxxxxxxxxxxxxxxxxxxxxx',
+                        fileurl: val.jyx_policy_url,
+                      });
+                      })
+
+                    }
+                    }
+                    else{
+                      this.$message.error(res.msg);
+                    }
 
-                  }
                 })
               }
               break;
@@ -2036,6 +2098,9 @@ export default {
                       fileurl: res.data,
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
                 this.$api.letter.obtainWarranty({
                   companyId: item.id,
@@ -2049,6 +2114,9 @@ export default {
                       fileurl: res.data,
                     });
                   }
+                  else{
+                      this.$message.error(res.msg);
+                    }
                 })
               }
               if (this.orderInfo.sypolicyno) {
@@ -2081,6 +2149,9 @@ export default {
                         fileurl: res.data,
                       });
                     }
+                    else{
+                      this.$message.error(res.msg);
+                    }
                   })
                 })
               }
@@ -2280,7 +2351,14 @@ export default {
   .el-dropdown {
     font-size: 12px;
   }
+  .el-step__description >span{
+    margin-right: 10px;
+  }
+ 
 /deep/ {
+  .el-step__head{
+    min-height: 90px ;
+  }
   .el-table .row-expand-cover .cell .el-table__expand-icon {
     display: none;
   }