瀏覽代碼

fix:协议数据增加筛选

刘恒 2 年之前
父節點
當前提交
0e655f27e7

+ 1 - 0
src/components/form/FormRow.vue

@@ -154,6 +154,7 @@
 
 <script>
 import mixin from "../../minins/mixin";
+
 export default {
   name: "FormRow",
   mixins: [mixin],

+ 14 - 1
src/layouts/header/AdminHeader.vue

@@ -20,14 +20,17 @@
             <!-- {{ item.path }} -->
 
             <!-- <div style="display: flex; flex-wrap: wrap"> -->
+            <!-- {{ item.path }} -->
+            <!-- {{ countCharacter(item.path, "/") }} -->
             <router-link
               v-if="item.path == '/channel'"
               :to="'/personnelManage' + item.path"
               >{{ item.name }}</router-link
             >
+
             <router-link
               v-else
-              :to="countCharacter(item.path, '/') > 2 ? item.path : ''"
+              :to="countCharacter(item.path, '/') >= 2 ? item.path : ''"
               >{{ item.name }}</router-link
             >
           </a-breadcrumb-item>
@@ -200,6 +203,16 @@ export default {
                 break;
             }
           }
+          if (route.name == "电销详情") {
+            switch (path.split("/message")[0]) {
+              case "/sales":
+                breadcrumb.push({
+                  path: path.split("/message")[0] + "/sales",
+                  name: "电销呼出",
+                });
+                break;
+            }
+          }
 
           breadcrumb.push({ path: path, name: route.name });
         });

+ 65 - 46
src/pages/agreement/index.vue

@@ -28,59 +28,62 @@
       <a-button shape="circle" icon="right" class="right btn" @click="next">
       </a-button>
     </a-row>
-    <standard-table
-      bordered
-      :columns="columns"
-      :dataSource="tableList"
-      :pagination="pagination"
-      @clear="onClear"
-      @change="onChange"
-      :loading="loading"
-    >
-      <div slot="validStatus" slot-scope="{ record }">
-        <!-- {{text}} -->
-        <a-tag
-          v-if="record.isEenabled == 1"
-          style="
-            background: rgba(120, 148, 242, 0.2);
-            border-radius: 2px 2px 2px 2px;
-            border: 1px solid #7894f2;
-            color: #2a55e5;
-          "
-          >有效</a-tag
-        >
-        <a-tag v-else>无效</a-tag>
-      </div>
-      <div slot="isEenabled" slot-scope="{ record }">
-        <a-tag
-          v-if="record.isEenabled == 1"
-          type="primary"
-          style="
-            background: linear-gradient(180deg, #66cdbb 0%, #33a08d 100%);
-            border-radius: 4px 4px 4px 4px;
-            color: #fff;
-          "
-          >启用</a-tag
-        >
-        <a-tag v-else style="background: #f5f5f5; border: 0">禁用</a-tag>
-      </div>
+    <div class="main">
+      <fromRow :formState="formState" @getList="search"></fromRow>
+      <standard-table
+        bordered
+        :columns="columns"
+        :dataSource="tableList"
+        :pagination="pagination"
+        @clear="onClear"
+        @change="onChange"
+        :loading="loading"
+      >
+        <div slot="validStatus" slot-scope="{ record }">
+          <!-- {{text}} -->
+          <a-tag
+            v-if="record.isEenabled == 1"
+            style="
+              background: rgba(120, 148, 242, 0.2);
+              border-radius: 2px 2px 2px 2px;
+              border: 1px solid #7894f2;
+              color: #2a55e5;
+            "
+            >有效</a-tag
+          >
+          <a-tag v-else>无效</a-tag>
+        </div>
+        <div slot="isEenabled" slot-scope="{ record }">
+          <a-tag
+            v-if="record.isEenabled == 1"
+            type="primary"
+            style="
+              background: linear-gradient(180deg, #66cdbb 0%, #33a08d 100%);
+              border-radius: 4px 4px 4px 4px;
+              color: #fff;
+            "
+            >启用</a-tag
+          >
+          <a-tag v-else style="background: #f5f5f5; border: 0">禁用</a-tag>
+        </div>
 
-      <!-- {{text }} -->
-      <!-- <a-button v-show="text" size="small">查看</a-button>-->
+        <!-- {{text }} -->
+        <!-- <a-button v-show="text" size="small">查看</a-button>-->
 
-      <!-- <router-link :class="text" >查看</router-link> -->
+        <!-- <router-link :class="text" >查看</router-link> -->
 
-      <!-- <template slot="status">
+        <!-- <template slot="status">
           <a-icon @click.native="onStatusTitleClick" type="info-circle" />
         </template> -->
-    </standard-table>
+      </standard-table>
+    </div>
   </div>
 </template>
 
 
 <script>
 import StandardTable from "@/components/table/StandardTable";
-
+import fromRow from "@/components/form/FormRow";
 const columns = [
   {
     title: "协议代码",
@@ -152,9 +155,17 @@ const columns = [
 export default {
   components: {
     StandardTable,
+    fromRow,
   },
   data() {
     return {
+      formState: {
+        whole: undefined,
+        cityId: undefined,
+        countyId: undefined,
+        houseId: undefined,
+        provinceId: undefined,
+      },
       insurerId: "",
       advanced: true,
       columns: columns,
@@ -191,6 +202,10 @@ export default {
     });
   },
   methods: {
+    search() {
+      this.pagination.current = 1;
+      this.getList();
+    },
     getnewurl() {
       let url = document.location.href;
       let reg = /[^\w](token|uid)=?([^&|^#]*)/g;
@@ -244,13 +259,10 @@ export default {
       this.loading = true;
       this.$API.agreement
         .getAgreementList({
-          areaId: "",
-          deptId: "",
           pageNum: this.pagination.current,
           pageSize: this.pagination.defaultPageSize,
           insuranceCompanyId: this.insurerId,
-          warningDay: "",
-          warningStatus: "",
+          ...this.formState,
         })
         .then((res) => {
           if (res.data.code === 200) {
@@ -304,6 +316,13 @@ export default {
 .standard-table {
   flex: 1;
 }
+.main {
+  background: #fff;
+  .ant-form {
+    padding: 15px;
+    box-sizing: border-box;
+  }
+}
 .insurer-list {
   // display:flex;
   // flex-wrap: wrap;

+ 0 - 0
src/pages/sales/index.vue → src/pages/sales/sales.vue


+ 14 - 4
src/pages/task/channel.vue

@@ -66,7 +66,7 @@
         @clear="onClear"
         @change="onChange"
         :loading="loading"
-        :scroll="{ x: 1800 }"
+        :scroll="{ x: 2000 }"
       >
         <div slot="qutationCount" slot-scope="{ text }">
           {{ text + "条" }}
@@ -104,6 +104,7 @@
             <a-icon type="question-circle" />
           </a-tooltip>
         </span>
+        <div></div>
       </standard-table>
     </div>
   </div>
@@ -143,8 +144,13 @@ const columns = [
     dataIndex: "userId",
   },
   {
-    title: "报价中",
-    dataIndex: "qutationCount",
+    title: "报价中(PC)",
+    dataIndex: "pcOrderSource",
+    scopedSlots: { customRender: "qutationCount" },
+  },
+  {
+    title: "报价中(APP)",
+    dataIndex: "appOrderSource",
     scopedSlots: { customRender: "qutationCount" },
   },
   {
@@ -182,10 +188,14 @@ const columns = [
     scopedSlots: { title: "title_slot2", customRender: "quotationRate" },
   },
   {
-    // title: "核保通过率",
     dataIndex: "contributionRate",
     scopedSlots: { title: "title_slot3", customRender: "quotationRate" },
   },
+  {
+    title: "操作",
+    dataIndex: "operation",
+    scopedSlots: { customRender: "operation" },
+  },
 ];
 import moment from "moment";
 export default {

+ 13 - 12
src/router/config.js

@@ -74,20 +74,21 @@ const router = new Router({
           ]
         },
         {
-          path: '/sales',
-          name: '电销呼出',
-          component: PageView,
-          children: [
-            {
-              path: '/sales/message',
-              name: '电销详情',
-              hidden: true,
-              component: () => import('@/pages/sales/message'),
-
-            },
+          path: '/sales/message',
+          name: '电销详情',
+          hidden: true,
+          component: () => import('@/pages/sales/message'),
 
-          ]
         },
+        // {
+        //   path: '/sales',
+        //   name: '电销呼出',
+        //   component: PageView,
+        //   children: [
+
+
+        //   ]
+        // },
 
         {
           path: '/channel',