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

紫金财险待核保增加更新订单功能

lihongxiao 2 лет назад
Родитель
Сommit
a06d72aa87
4 измененных файлов с 17 добавлено и 7 удалено
  1. 2 2
      config/dev.env.js
  2. 9 0
      src/http/moudules/letter.js
  3. 1 1
      src/views/Letter/Letter.vue
  4. 5 4
      src/views/Letter/Orderlist.vue

+ 2 - 2
config/dev.env.js

@@ -5,8 +5,8 @@ const prodEnv = require('./prod.env')
 module.exports = merge(prodEnv, {
   NODE_ENV: '"development"',
   ENV_CONFIG:'"dev"',
-  BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
-  // BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
+  // BASE_URL: '"https://test.baoxianzhanggui.com/web-api"',//测试服务器
+  BASE_URL:'"https://sxzgkj.baoxianzhanggui.com/web-api"'//正式服务器
   // BASE_URL: '"http://192.168.0.115:8080/"' //凯森
   // BASE_URL: '"http:///192.168.0.253:8082/"',//田智
   // BASE_URL: '"http:///192.168.0.253:8082/"',//田智

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

@@ -791,4 +791,13 @@ export const auditStatusQuery = (data) => {
         method: "post",
         data
     })
+}
+
+// 紫金保险,更新订单接口
+export const auditStatusQueryZijin = (data) => {
+    return axios({
+        url: "/order/zijin/auditStatusQuery",
+        method: "post",
+        data
+    })
 }

+ 1 - 1
src/views/Letter/Letter.vue

@@ -2052,7 +2052,7 @@
               <el-button
                 size="mini"
                 type="text"
-                v-if="scope.row.orderstatus == '2' && ['紫金财险'].includes(scope.row.inscompany)"
+                v-if=" ( scope.row.orderstatus == '1'||  scope.row.orderstatus == '2' || scope.row.orderstatus == '4') && ['紫金财险'].includes(scope.row.inscompany)"
                 @click="cancelorder(scope.row)"
                 style="color:#f56c6c"
               >撤单</el-button>

+ 5 - 4
src/views/Letter/Orderlist.vue

@@ -199,8 +199,8 @@
                     '众安财险',
                     '中国人寿',
                     '安盛天平',
-                  ].includes(item.inscompany)
-                "
+                    '紫金财险',
+                  ].includes(item.inscompany) "
                 @click="refreshStatus(item)"
                 style="color: #f56c6c"
                 >更新订单</el-button
@@ -217,7 +217,7 @@
                 size="mini"
                 type="text"
                 v-if="
-                  item.orderstatus == '2' &&
+                ( item.orderstatus == '1'||  item.orderstatus == '2' || item.orderstatus == '4') &&
                   ['紫金财险'].includes(item.inscompany)
                 "
                 @click="cancelorder(item)"
@@ -1404,7 +1404,7 @@
                   size="mini"
                   type="text"
                   v-if="
-                    scope.row.orderstatus == '2' &&
+                 ( scope.row.orderstatus == '1'||  scope.row.orderstatus == '2' || scope.row.orderstatus == '4') &&
                     ['紫金财险'].includes(scope.row.inscompany)
                   "
                   @click="cancelorder(scope.row)"
@@ -1835,6 +1835,7 @@ export default {
         众安财险: "auditStatusQuery",
         中国人寿: "auditStatusQuery",
         安盛天平: "auditStatusQuery",
+        紫金财险: "auditStatusQueryZijin",
       };
       Object.keys(inscompany).forEach((val) => {
         if (val == item.inscompany) {