Преглед на файлове

任务管理公共文件处理

@dongkboy преди 2 години
родител
ревизия
b14737313d

+ 31 - 28
src/views/Task/AgentPoolChannel/AgentPoolChannel.vue

@@ -3,9 +3,9 @@
     <retrievalForm :fields="retrievalFields" @submit="handleFormSubmit" @toggleCollapse="toggleCollapse"
       @areaSelectChange="areaSelectChange"></retrievalForm>
     <kt-common-table :data="pageResult" :columns="columns" element-loading-text="加载中..." v-loading="loading"
-      :showBatchDelete="false" @findPage="findPage" button3Name="转发" button3Type="text"
-      @handleButton3="transmit" button2Name="报价轨迹" button2Type="text"
-      @handleButton2="trajectory" button5Name="详情" button5Type="text" @handleButton5="detailFun"></kt-common-table>
+      :showBatchDelete="false" @findPage="findPage" button3Name="转发" button3Type="text" @handleButton3="transmit"
+      button2Name="报价轨迹" button2Type="text" @handleButton2="trajectory" button5Name="详情" button5Type="text"
+      @handleButton5="detailFun"></kt-common-table>
     <el-dialog title="转发" :visible.sync="dialogVisible" width="30%">
       转发人:
       <el-select v-model="transmitValue" placeholder="请选择">
@@ -22,11 +22,8 @@
         <span>订单轨迹</span>
       </div>
       <div style="height: 300px; overflow-y: auto">
-        <el-steps direction="vertical" :active="trajectoryTable.length - 1" >
-          <el-step v-for="item in trajectoryTable"
-            :key="item.id"
-            :title="getStatusText(item.orderStatus)"
-          >
+        <el-steps direction="vertical" :active="trajectoryTable.length - 1">
+          <el-step v-for="item in trajectoryTable" :key="item.id" :title="getStatusText(item.orderStatus)">
             <template slot="description">
               <span>保险公司:{{ item.insCompany }}</span>
               <span>提交人:{{ item.operator }}</span>
@@ -62,9 +59,9 @@ export default {
         userId: "",
       },
 
-      ddgjdialogVisible:false,
-      trajectoryTable:[],
-      optionsStatus:[],
+      ddgjdialogVisible: false,
+      trajectoryTable: [],
+      optionsStatus: [],
     }
   },
   mixins: [mixin],
@@ -77,7 +74,7 @@ export default {
 
   methods: {
     getStatusText(code) {
-      return this.optionsStatus.find(val=>val.dictValue==code).dictTag;;
+      return this.optionsStatus.find(val => val.dictValue == code).dictTag;;
     },
 
     handleFormSubmit(data) {
@@ -113,7 +110,7 @@ export default {
           }
         });
     },
-    trajectory(row){
+    trajectory(row) {
       this.$api.letter.queryBySuborder(row.row.subOrderId).then((res) => {
         if (res.code == 200 && res.data.length > 0) {
           this.ddgjdialogVisible = true;
@@ -190,14 +187,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":
@@ -230,26 +228,31 @@ export default {
 </script>
 
 <style scoped lang="scss">
-/deep/{
-  .el-step__title,.el-step__icon-inner{
-    color:var(--themeColor)
+/deep/ {
+  .el-step__title,
+  .el-step__icon-inner {
+    color: var(--themeColor)
+  }
+
+  .el-step__line-inner {
+    height: 0;
+    display: none
   }
-  .el-step__line-inner{
-      height:0;
-      display:none
-    }
-  .is-flex{
 
-    .el-step__icon{
+  .is-flex {
+
+    .el-step__icon {
       background: var(--themeColor)
     }
-    .el-step__icon-inner{
+
+    .el-step__icon-inner {
       color: #fff;
     }
   }
-  .el-step__icon.is-text{
-    border:none;
-    box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.1);
+
+  .el-step__icon.is-text {
+    border: none;
+    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
   }
 }
 </style>

+ 5 - 2
src/views/Task/AgentPoolChannel/AgentPoolChannel1.vue

@@ -188,14 +188,17 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
+
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
+
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 4 - 3
src/views/Task/AgentPoolChannel/AgentPoolChannel2.vue

@@ -188,15 +188,16 @@ export default {
         this.queryFrom.endDate = e[1];
       }
     },
-    detailFun(row) {
-      this.orderInfo=row.row;
+    detailFun(row) {;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 3 - 2
src/views/Task/AgentPoolChannel/AgentPoolChannel3.vue

@@ -189,14 +189,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 3 - 2
src/views/Task/AgentPoolChannel/AgentPoolChannel4.vue

@@ -187,14 +187,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 3 - 2
src/views/Task/CompanyPoolChannel/CompanyPoolChannel.vue

@@ -189,14 +189,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 3 - 2
src/views/Task/CompanyPoolChannel/CompanyPoolChannel1.vue

@@ -193,14 +193,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 3 - 2
src/views/Task/CompanyPoolChannel/CompanyPoolChannel2.vue

@@ -188,14 +188,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 5 - 2
src/views/Task/CompanyPoolChannel/CompanyPoolChannel3.vue

@@ -189,14 +189,17 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
+
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
+
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 3 - 2
src/views/Task/CompanyPoolChannel/CompanyPoolChannel4.vue

@@ -188,14 +188,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 3 - 2
src/views/Task/TaskPoolChannel/TaskPoolChannel.vue

@@ -189,14 +189,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 5 - 2
src/views/Task/TaskPoolChannel/TaskPoolChannel1.vue

@@ -190,14 +190,17 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
+
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
+
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 3 - 2
src/views/Task/TaskPoolChannel/TaskPoolChannel2.vue

@@ -189,14 +189,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 31 - 28
src/views/Task/TaskPoolChannel/TaskPoolChannel3.vue

@@ -3,9 +3,9 @@
     <retrievalForm :fields="retrievalFields" @submit="handleFormSubmit" @toggleCollapse="toggleCollapse"
       @areaSelectChange="areaSelectChange"></retrievalForm>
     <kt-common-table :data="pageResult" :columns="columns" element-loading-text="加载中..." v-loading="loading"
-      :showBatchDelete="false" @findPage="findPage" button3Name="转发" button3Type="text"
-      @handleButton3="transmit" button2Name="报价轨迹" button2Type="text"
-      @handleButton2="trajectory" button5Name="详情" button5Type="text" @handleButton5="detailFun"></kt-common-table>
+      :showBatchDelete="false" @findPage="findPage" button3Name="转发" button3Type="text" @handleButton3="transmit"
+      button2Name="报价轨迹" button2Type="text" @handleButton2="trajectory" button5Name="详情" button5Type="text"
+      @handleButton5="detailFun"></kt-common-table>
     <el-dialog title="转发" :visible.sync="dialogVisible" width="30%">
       转发人:
       <el-select v-model="transmitValue" placeholder="请选择">
@@ -22,11 +22,8 @@
         <span>订单轨迹</span>
       </div>
       <div style="height: 300px; overflow-y: auto">
-        <el-steps direction="vertical" :active="trajectoryTable.length - 1" >
-          <el-step v-for="item in trajectoryTable"
-            :key="item.id"
-            :title="getStatusText(item.orderStatus)"
-          >
+        <el-steps direction="vertical" :active="trajectoryTable.length - 1">
+          <el-step v-for="item in trajectoryTable" :key="item.id" :title="getStatusText(item.orderStatus)">
             <template slot="description">
               <span>保险公司:{{ item.insCompany }}</span>
               <span>提交人:{{ item.operator }}</span>
@@ -61,9 +58,9 @@ export default {
         userId: "",
       },
 
-      ddgjdialogVisible:false,
-      trajectoryTable:[],
-      optionsStatus:[],
+      ddgjdialogVisible: false,
+      trajectoryTable: [],
+      optionsStatus: [],
     }
   },
   mixins: [mixin],
@@ -76,7 +73,7 @@ export default {
 
   methods: {
     getStatusText(code) {
-      return this.optionsStatus.find(val=>val.dictValue==code).dictTag;;
+      return this.optionsStatus.find(val => val.dictValue == code).dictTag;;
     },
     handleFormSubmit(data) {
       let obj = Object.assign(this.pageRequest, data)
@@ -111,7 +108,7 @@ export default {
           }
         });
     },
-    trajectory(row){
+    trajectory(row) {
       this.$api.letter.queryBySuborder(row.row.subOrderId).then((res) => {
         if (res.code == 200 && res.data.length > 0) {
           this.ddgjdialogVisible = true;
@@ -188,14 +185,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":
@@ -228,26 +226,31 @@ export default {
 </script>
 
 <style scoped lang="scss">
-/deep/{
-  .el-step__title,.el-step__icon-inner{
-    color:var(--themeColor)
+/deep/ {
+  .el-step__title,
+  .el-step__icon-inner {
+    color: var(--themeColor)
+  }
+
+  .el-step__line-inner {
+    height: 0;
+    display: none
   }
-  .el-step__line-inner{
-      height:0;
-      display:none
-    }
-  .is-flex{
 
-    .el-step__icon{
+  .is-flex {
+
+    .el-step__icon {
       background: var(--themeColor)
     }
-    .el-step__icon-inner{
+
+    .el-step__icon-inner {
       color: #fff;
     }
   }
-  .el-step__icon.is-text{
-    border:none;
-    box-shadow: 0px 2px 2px 0px rgba(0,0,0,0.1);
+
+  .el-step__icon.is-text {
+    border: none;
+    box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
   }
 }
 </style>

+ 3 - 2
src/views/Task/TaskPoolChannel/TaskPoolChannel4.vue

@@ -187,14 +187,15 @@ export default {
       }
     },
     detailFun(row) {
-      this.orderInfo=row.row;
       let params = {
         companyId: row.row.subOrderId
       };
-      this.cpolicy();
       this.$api.letter.getByCompanyId(params).then(res => {
         if (res.code == "200") {
           var data = res.data;
+          this.orderInfo = res.data;
+          this.cpolicy();
+          this.ImageList();
           data.kindinfo.map((ele, index) => {
             switch (ele.kindCode) {
               case "A":

+ 33 - 32
src/views/Task/mixin.js

@@ -35,7 +35,7 @@ export const mixin = { // 导出混入对象
 
         },
         {
-          name: 'subOrderId',
+          name: 'id',
           label: '订单号',
           type: 'input',
 
@@ -130,6 +130,7 @@ export const mixin = { // 导出混入对象
         { prop: "subOrderId", label: "订单号", minWidth: 180 },
         { prop: "userid", label: "业务员", minWidth: 160, formatter: this.useridFormatter },
         { prop: "insCompany", label: "保险公司", minWidth: 120 },
+        { prop: "partnerCompaniesName", label: "合作公司", minWidth: 120 },
         { prop: "agreementName", label: "协议", minWidth: 160 },
         { prop: "licenseno", label: "车牌号", minWidth: 160 },
         { prop: "insuredname", label: "投保人姓名", minWidth: 120 },
@@ -143,7 +144,7 @@ export const mixin = { // 导出混入对象
       options: [],//转发人列表
       transmitValue: "", //选中的转发人
       orderNo: '', //主订单号
-      subOrderId: '', //子订单号
+      id: '', //子订单号
       queryOrders: {},
       carImageList: [], //车辆影像
       ownerImageList: [], //车主影像
@@ -162,7 +163,6 @@ export const mixin = { // 导出混入对象
     this.$api.dept.findAllTree().then(res => {
       this.institutionOptions = res.data;
     });
-    this.ImageList();
     this.areaqueryList(1, 99, "provinceId");
     this.CompanyList();
     this.agrmentlist();
@@ -215,16 +215,17 @@ export const mixin = { // 导出混入对象
       });
     },
     cpolicy(){
-      this.oldfileList = [];
-      let businessList = []
-      let accidentList = []
+
       if (this.orderInfo.orderstatus == "3") {
+        this.oldfileList = [];
+        let businessList = []
+        let accidentList = []
         switch (this.orderInfo.inscompany) {
           case "永安财险":
             if (this.orderInfo.jqpolicyno) {
               this.$api.letter
                 .getPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   policytype: "jq",
                 })
                 .then((res) => {
@@ -245,7 +246,7 @@ export const mixin = { // 导出混入对象
                 });
               this.$api.letter
                 .getPolicyPrint2({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   policytype: "jq",
                 })
                 .then((res) => {
@@ -268,7 +269,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.sypolicyno) {
               this.$api.letter
                 .getPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   policytype: "sy",
                 })
                 .then((res) => {
@@ -293,7 +294,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.jqpolicyno) {
               this.$api.letter
                 .HuataigetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0507",
                   type: "2", //2:保单
                 })
@@ -321,7 +322,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.sypolicyno) {
               this.$api.letter
                 .HuataigetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0510",
                   type: "2", //2:保单
                 })
@@ -342,7 +343,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.jqpolicyno) {
               this.$api.letter
                 .ZhongmeigetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0507",
                   type: "2", //2:保单
                 })
@@ -359,7 +360,7 @@ export const mixin = { // 导出混入对象
                 });
               this.$api.letter
                 .ZhongmeigetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0507",
                   type: "1", // 1:标志
                 })
@@ -378,7 +379,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.sypolicyno) {
               this.$api.letter
                 .ZhongmeigetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0510",
                   type: "2", //2:保单
                 })
@@ -399,7 +400,7 @@ export const mixin = { // 导出混入对象
                 this.$api.letter
                   .ZhongmeigetPolicyPrint({
                     ridePolicyNo: ele.ridePolicyNo,
-                    companyId: this.orderInfo.subOrderId,
+                    companyId: this.orderInfo.id,
                     riskCode: "0513",
                     type: "2", //2:保单
                   })
@@ -421,7 +422,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.jqpolicyno) {
               this.$api.letter
                 .yongchenggetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0507",
                   type: "2", //2:保单
                 })
@@ -449,7 +450,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.sypolicyno) {
               this.$api.letter
                 .yongchenggetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0510",
                   type: "2", //2:保单
                 })
@@ -469,7 +470,7 @@ export const mixin = { // 导出混入对象
               this.orderInfo.crossInsurance.map((ele) => {
                 this.$api.letter
                   .yongchenggetPolicyPrint({
-                    companyId: this.orderInfo.subOrderId,
+                    companyId: this.orderInfo.id,
                     policyNumber: ele.policyNumber,
                     riskCode: "0513",
                     type: "2", //2:保单
@@ -492,7 +493,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.jqpolicyno) {
               this.$api.letter
                 .guoRengetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0507",
                   type: "2", //2:保单
                 })
@@ -509,7 +510,7 @@ export const mixin = { // 导出混入对象
                 });
               this.$api.letter
                 .guoRengetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0507",
                   type: "1", //1:标志
                 })
@@ -528,7 +529,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.sypolicyno) {
               this.$api.letter
                 .guoRengetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0510",
                   type: "2", //2:保单
                 })
@@ -548,7 +549,7 @@ export const mixin = { // 导出混入对象
               this.orderInfo.crossInsurance.map((ele) => {
                 this.$api.letter
                   .guoRengetPolicyPrint({
-                    companyId: this.orderInfo.subOrderId,
+                    companyId: this.orderInfo.id,
                     policyNumber: ele.policyNumber,
 
                     riskCode: "0513",
@@ -573,7 +574,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.jqpolicyno) {
               this.$api.letter
                 .zijingetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0507",
                   type: "2", //2:保单
                 })
@@ -590,7 +591,7 @@ export const mixin = { // 导出混入对象
                 });
               this.$api.letter
                 .zijingetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0507",
                   type: "1", //1:标志
                 })
@@ -609,7 +610,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.sypolicyno) {
               this.$api.letter
                 .zijingetPolicyPrint({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0510",
                   type: "2", //2:保单
                 })
@@ -629,7 +630,7 @@ export const mixin = { // 导出混入对象
               this.orderInfo.crossInsurance.map((ele) => {
                 this.$api.letter
                   .zijingetPolicyPrint({
-                    companyId: this.orderInfo.subOrderId,
+                    companyId: this.orderInfo.id,
                     policyNumber: ele.policyNumber,
                     riskCode: "0513",
                     type: "2", //2:保单
@@ -652,7 +653,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.jqpolicyno) {
               this.$api.letter
                 .getPolicyPrintboHai({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                 })
                 .then((res) => {
                   if (res.code == 200 && res.data) {
@@ -704,7 +705,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
               this.$api.letter
                 .pythongetPolicyPrint({
-                  subOrderNo: this.orderInfo.subOrderId,
+                  subOrderNo: this.orderInfo.id,
                 })
                 .then((res) => {
                   if (res.code == 200 && res.data) {
@@ -751,7 +752,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.jqpolicyno) {
               this.$api.letter
                 .obtainWarranty({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0507",
                   type: "2", //2:保单
                 })
@@ -768,7 +769,7 @@ export const mixin = { // 导出混入对象
                 });
               this.$api.letter
                 .obtainWarranty({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0507",
                   type: "1", //1:标志
                 })
@@ -787,7 +788,7 @@ export const mixin = { // 导出混入对象
             if (this.orderInfo.sypolicyno) {
               this.$api.letter
                 .obtainWarranty({
-                  companyId: this.orderInfo.subOrderId,
+                  companyId: this.orderInfo.id,
                   riskCode: "0510",
                   type: "2", //2:保单
                 })
@@ -805,7 +806,7 @@ export const mixin = { // 导出混入对象
               this.orderInfo.crossInsurance.map((ele) => {
                 this.$api.letter
                   .zijingetPolicyPrint({
-                    companyId: this.orderInfo.subOrderId,
+                    companyId: this.orderInfo.id,
                     policyNumber: ele.policyNumber,
                     riskCode: "0513",
                     type: "2", //2:保单