@dongkboy 1 год назад
Родитель
Сommit
47169f45cb

+ 11 - 1
src/views/Task/daikeComponents/KtLetter1.vue

@@ -2454,7 +2454,7 @@
               <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
                 scope.row.orderstatus == '2' ||
                 scope.row.orderstatus == '4') &&
-                ['紫金财险', '诚泰财险'].includes(scope.row.inscompany)
+                ['紫金财险', '诚泰财险','阳光财险'].includes(scope.row.inscompany)
                 " @click="cancelorder(scope.row)">撤单</el-button>
               <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' && scope.row.inscompany!=='平安财险'"
                 @click="revokeCode(scope.row.id)">撤销二维码</el-button>
@@ -10691,6 +10691,16 @@ export default {
             this.findPage();
           }
         });
+      } else if(item.inscompany == '阳光财险') {
+        this.$api.letter.yangGuangautoWriteOff({ companyId: item.id }).then((res) => {
+          if (res.code == 200) {
+            this.$message({
+              message: res.msg,
+              type: "success",
+            });
+            this.findPage();
+          }
+        });
       }
     },
 

+ 12 - 2
src/views/Task/daikeComponents/KtOrder.vue

@@ -158,7 +158,7 @@
               <el-button size="mini" type="text" v-if="(item.orderstatus == '1' ||
                 item.orderstatus == '2' ||
                 item.orderstatus == '4') &&
-                ['紫金财险', '诚泰财险'].includes(item.inscompany)
+                ['紫金财险', '诚泰财险','阳光财险'].includes(item.inscompany)
                 " @click="cancelorder(item)" class="red_color">撤单</el-button>
               <el-button size="mini" type="text" v-if="item.orderstatus == '2'" @click="carcode(item)"
                 class="red_color">二维码</el-button>
@@ -469,7 +469,7 @@
               <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
                 scope.row.orderstatus == '2' ||
                 scope.row.orderstatus == '4') &&
-                ['紫金财险', '诚泰财险'].includes(scope.row.inscompany)
+                ['紫金财险', '诚泰财险','阳光财险'].includes(scope.row.inscompany)
                 " @click="cancelorder(scope.row)">撤单</el-button>
               <el-button type="text" size="mini" style="color: #2d4d89"
                 v-if="scope.row.orderstatus == '2' && scope.row.inscompany !== '平安财险'"
@@ -1814,6 +1814,16 @@ export default {
             this.findPage();
           }
         });
+      }else if (item.inscompany == '阳光财险') {
+        this.$api.letter.yangGuangautoWriteOff({ companyId: item.id }).then((res) => {
+          if (res.code == 200) {
+            this.$message({
+              message: res.msg,
+              type: "success",
+            });
+            this.findPage();
+          }
+        });
       }
 
     },