Просмотр исходного кода

1.右上角金额
2、华泰增加爬虫接口

@dongkboy 2 лет назад
Родитель
Сommit
5a1a17d2cf

+ 1 - 1
src/http/moudules/letter.js

@@ -726,7 +726,7 @@ export const orderStatushuatai = (data) => {
   })
 }
 
-//华泰见费出单结果查询
+//华泰缴费状态查询
 export const updateOrderInfoHuatai = (data) => {
   return axios({
     url: "/order/huaTaiApi/paymentEnquiry",

+ 6 - 3
src/views/Core/PersonalPanel.vue

@@ -39,15 +39,18 @@
     </div>
     <div class="textItem logout">
       <li>
-        <p>{{ MoneyData.handlingFee.toFixed(2) }}</p>
+        <p v-if="MoneyData.handlingFee">{{ MoneyData.handlingFee.toFixed(2) }}</p>
+        <p v-else>0.00</p>
         <p>手续金额(元)</p>
       </li>
       <li>
-        <p>{{ MoneyData.documentary.toFixed(2) }}</p>
+        <p v-if="MoneyData.documentary">{{ MoneyData.documentary.toFixed(2) }}</p>
+        <p v-else>0.00</p>
         <p>跟单金额(元)</p>
       </li>
       <li>
-        <p>{{ MoneyData.promotion.toFixed(2) }}</p>
+        <p v-if="MoneyData.promotion">{{ MoneyData.promotion.toFixed(2) }}</p>
+        <p v-else>0.00</p>
         <p>推广金额(元)</p>
       </li>
       <!-- <el-button @click="logout" size="small" type="primary" plain>退出登录</el-button> -->

+ 16 - 9
src/views/Task/daikeComponents/KtLetter.vue

@@ -4216,7 +4216,7 @@ export default {
         // appnum:Number(list.appnum)
       };
       this.guoRenInsuranceDataTable = list.son;
-      this.guoRenaccidentalDrivingVo=Object.assign({...list,...this.guoRenaccidentalDrivingVo}) 
+      this.guoRenaccidentalDrivingVo=Object.assign({...list,...this.guoRenaccidentalDrivingVo})
 
     },
     // 选择意外险类型
@@ -4442,7 +4442,8 @@ export default {
       let selectRow = row.find(item => {
         return item.id == val;
       });
-      this.totalCompanyList[index].apiType = obj.apiType;
+      let info=row.find(ele=>ele.id==val);
+      this.totalCompanyList[index].apiType = info.apiType;
       this.totalCompanyList[index].underwritingDescription = val
         ? selectRow.underwritingDescription
         : ""; //重新赋值修改选中协议承保描述
@@ -4648,7 +4649,7 @@ export default {
     //安盛驾意险选择
     ASDrivingRadio(row) {
       this.anshengInsurancetype = row.projectCode;
-      this.anshengaccidentalDrivingVo=Object.assign({...row,...this.anshengaccidentalDrivingVo}) 
+      this.anshengaccidentalDrivingVo=Object.assign({...row,...this.anshengaccidentalDrivingVo})
       // this.anshengaccidentalDrivingVo.projectCode = row.projectCode;
       // this.anshengaccidentalDrivingVo.projectName = row.projectName;
     },
@@ -5687,15 +5688,16 @@ export default {
     },
     //华泰报价
     huatai(num, id) {
+      let type=this.totalCompanyList[num].apiType;
+      let api = type == 2 ? "pythonquote" : "huataiquote";
       let isTaxSource = this.totalCompanyList[num].isTaxSource;
       let params = {
         orderNo: this.orderno,
         companyId: id,
         agreementId: this.totalCompanyList[num].agreementId,
         isTaxSource: isTaxSource == 1 ? isTaxSource : null,
-
       };
-      this.$api.letter.huataiquote(params).then(res => {
+      this.$api.letter[api](params).then(res => {
         this.totalCompanyList[num].msg = res.msg;
         if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
           this.totalCompanyList[num].quoteCode = "4";
@@ -6654,13 +6656,19 @@ export default {
                   });
                 break;
               case "华泰财险":
-                await this.$api.letter
-                  .insHuataisubmitImage({
+              let HtApiImage = "";
+              HtApiImage =
+                  this.apiType == 2
+                    ? "pythonsubmitImage"
+                    : "insHuataisubmitImage";
+                await this.$api.letter[HtApiImage]({
                     companyId: this.companyId
                   })
                   .then(res => {
                     if (res.code == "200") {
                       var _this = this;
+                      let HtApiaudit = "";
+                      HtApiaudit = this.apiType == 2 ? "pythonaudit" : "yonganaudit";
                       let engageList = [];
                       this.zijinengageList.forEach(val => {
                         engageList.push({
@@ -6670,8 +6678,7 @@ export default {
                           riskCode: val.riskCode
                         });
                       });
-                      _this.$api.letter
-                        .huataiaudit({
+                      _this.$api.letter[HtApiaudit]({
                           companyId: this.companyId,
                           engageList
                         })

Разница между файлами не показана из-за своего большого размера
+ 272 - 399
src/views/Task/daikeComponents/KtOrder.vue


Некоторые файлы не были показаны из-за большого количества измененных файлов