lihongxiao 2 лет назад
Родитель
Сommit
e8055c682e
4 измененных файлов с 57 добавлено и 3 удалено
  1. 2 2
      config/dev.env.js
  2. 1 1
      package-lock.json
  3. 7 0
      src/http/moudules/letter.js
  4. 47 0
      src/views/Task/daikeComponents/KtOrder.vue

+ 2 - 2
config/dev.env.js

@@ -18,8 +18,8 @@ module.exports = merge(prodEnv, {
   // BASE_URL: '"http:///192.168.0.42:8080/"',//武鸿鹏
   // BASE_URL: '"http://192.168.1.101:8080/"',
   // BASE_URL: '"http://192.168.0.250:8080/"',//
-  // BASE_URL: '"http:///192.168.0.103:8080/"',//霍续亮
-  BASE_URL: '"http://192.168.0.52:8080/"',//贺礼霄
+  BASE_URL: '"http:///192.168.0.103:8080/"',//霍续亮
+  // BASE_URL: '"http://192.168.0.52:8080/"',//贺礼霄
   // BASE_URL: '"http:///192.168.0.55:8080/"',//蔡雅茹
   // CONSOLE_BASE_URL: '"http://localhost:8080/"' //控制台测试服务器
   // CONSOLE_BASE_URL: '"https://sxzgkj.baoxianzhanggui.com/console-api"' //控制台正式服务器

+ 1 - 1
package-lock.json

@@ -2688,7 +2688,7 @@
     },
     "crypto-js": {
       "version": "4.2.0",
-      "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-4.2.0.tgz",
+      "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-4.2.0.tgz",
       "integrity": "sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
     },
     "css-color-names": {

+ 7 - 0
src/http/moudules/letter.js

@@ -1219,3 +1219,10 @@ export const productDetailsQuery = (data) => {
     data
   })
 }
+export const pingangetPolicyPrint = (data) => {
+  return axios({
+    url: '/order/pingAnApi/getPolicyPrint',
+    method: 'post',
+    data
+  })
+}

+ 47 - 0
src/views/Task/daikeComponents/KtOrder.vue

@@ -2027,6 +2027,53 @@ export default {
                       });
                   }
                   break;
+                case "平安财险":
+                  if (this.orderInfo.jqpolicyno) {
+                    this.$api.letter
+                      .pingangetPolicyPrint({
+                        companyId: item.id,
+                      })
+                      .then((res) => {
+                        if (res.code == 200 && res.data) {
+                          if (res.data.jqxPolicyUrl) {
+                            this.oldfileList.push({
+                              fileTitle: "交强电子保单",
+                              filename: this.orderInfo.jqpolicyno,
+                              fileurl: process.env.BASE_URL+res.data.jqxPolicyUrl,
+                            });
+                          }
+                          if (res.data.jqxFlagUrl) {
+                            this.oldfileList.push({
+                              fileTitle: "交强电子标志",
+                              filename: this.orderInfo.jqpolicyno,
+                              fileurl: process.env.BASE_URL+res.data.jqxFlagUrl,
+                            });
+                          }
+                          if (res.data.syxPolicyUrl) {
+                            businessList.push({
+                              fileTitle: "商业电子保单",
+                              filename: this.orderInfo.sypolicyno,
+                              fileurl: process.env.BASE_URL + res.data.syxPolicyUrl,
+                            });
+                          }
+                          if (
+                            res.data.jyxInfoList &&
+                            res.data.jyxInfoList.length > 0                                                                                                                                                                                                                        
+                          ) {
+                            res.data.jyxInfoList.forEach((val) => {
+                              accidentList.push({
+                                fileTitle: "驾意险保单",
+                                filename: "驾意险保单",
+                                fileurl: process.env.BASE_URL+val.jyx_policy_url,
+                              });
+                            });
+                          }
+                        } else {
+                          this.$message.error(res.msg);
+                        }
+                      });
+                  }
+                  break;
                 case "恒邦财险":
                 case "安盛天平":
                 case "中国人寿":