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

fix:钱包管理及小订单参数更改

刘恒 2 лет назад
Родитель
Сommit
54eaceaaf2

+ 2 - 2
src/components/menu/SideMenu.vue

@@ -89,7 +89,7 @@ export default {
     ...mapGetters("setting", ["firstMenu", "subMenu", "menuData"]),
   },
   created() {
-    console.log(this.menuData);
+    // console.log(this.menuData);
   },
   methods: {
     handleClick(e) {
@@ -100,7 +100,7 @@ export default {
       this.$emit("menuSelect", obj);
     },
     routerChange(val, parent) {
-      console.log(val, parent);
+      // console.log(val, parent);
       // console.log(this.$router);
       this.$router.replace({
         path: "/" + parent.url + "/" + val.url,

+ 1 - 1
src/pages/quote/quote.vue

@@ -3,7 +3,7 @@
     <div class="quote-tree" style="border-radius: 8px">
       <div><h2>部门所属</h2></div>
       <div>
-        <!-- <a-tree :load-data="onLoadData" :tree-data="treeData" /> -->
+        <!-- <a-tree  :tree-data="treeData" /> -->
         <tree @getList="getVerification"></tree>
       </div>
     </div>

+ 12 - 12
src/pages/quote/smallorders/agent.vue

@@ -3,7 +3,7 @@
     <div class="quote-tree">
       <div><h2>部门所属</h2></div>
       <div>
-        <!-- <a-tree :load-data="onLoadData" :tree-data="treeData" /> -->
+        <!-- <a-tree  :tree-data="treeData" /> -->
         <tree @getList="getAgentTree"></tree>
       </div>
     </div>
@@ -34,9 +34,9 @@
         </div>
       </div>
       <div style="display: flex">
-        <div style="width: 300px; height: 900px; overflow-y: auto">
+        <!-- <div style="width: 300px; height: 900px; overflow-y: auto">
           <a-tree :tree-data="treeData" :replaceFields="replaceFields"></a-tree>
-        </div>
+        </div> -->
         <standard-table
           :columns="columns"
           :dataSource="tableList"
@@ -45,13 +45,13 @@
           @change="onChange"
           :loading="loading"
           bordered
-          :scroll="{ x: 0, y: 800 }"
+          :scroll="{ x: 0, y: 0 }"
         >
           <div slot="count" slot-scope="{ text }">
-            {{ text != "-" ? text + "次" : text }}
+            {{ text ? text + "次" : 0 }}
           </div>
           <div slot="rate" slot-scope="{ text }">
-            {{ text != "-" ? (text * 100).toFixed(2) + "%" : text }}
+            {{ text ? (text * 100).toFixed(2) + "%" : 0 }}
           </div>
         </standard-table>
       </div>
@@ -81,25 +81,25 @@ const columns = [
     children: [
       {
         title: "总报价",
-        dataIndex: "bigQutationCount",
+        dataIndex: "allNumber",
         scopedSlots: { customRender: "count" },
       },
       {
         title: "报价成功",
-        dataIndex: "bigUnderwritingCount",
+        dataIndex: "orderSuccessNumber",
         scopedSlots: { customRender: "count" },
       },
       {
         title: "报价失败",
-        dataIndex: "bigCloseRate",
-        scopedSlots: { customRender: "rate" },
+        dataIndex: "areaCompanyErrNumber",
+        scopedSlots: { customRender: "count" },
       },
     ],
   },
 
   {
     title: "人工审核数",
-    dataIndex: "qutationCount",
+    dataIndex: "numberManual",
     scopedSlots: { customRender: "count" },
   },
   {
@@ -114,7 +114,7 @@ const columns = [
   },
   {
     title: "报价成功率",
-    dataIndex: "qutationInsureCount",
+    dataIndex: "orderSuccessNumberRate",
     scopedSlots: { customRender: "rate" },
   },
   {

+ 9 - 9
src/pages/quote/smallorders/channel.vue

@@ -3,7 +3,7 @@
     <div class="quote-tree">
       <div><h2>部门所属</h2></div>
       <div>
-        <!-- <a-tree :load-data="onLoadData" :tree-data="treeData" /> -->
+        <!-- <a-tree  :tree-data="treeData" /> -->
         <tree @getList="getAgentTree"></tree>
       </div>
     </div>
@@ -48,10 +48,10 @@
           :scroll="{ x: 0, y: 800 }"
         >
           <div slot="count" slot-scope="{ text }">
-            {{ text != "-" ? text + "次" : text }}
+            {{ text ? text + "次" : text }}
           </div>
           <div slot="rate" slot-scope="{ text }">
-            {{ text != "-" ? (text * 100).toFixed(2) + "%" : text }}
+            {{ text ? (text * 100).toFixed(2) + "%" : text }}
           </div>
         </standard-table>
       </div>
@@ -81,25 +81,25 @@ const columns = [
     children: [
       {
         title: "总报价",
-        dataIndex: "bigQutationCount",
+        dataIndex: "allNumber",
         scopedSlots: { customRender: "count" },
       },
       {
         title: "报价成功",
-        dataIndex: "bigUnderwritingCount",
+        dataIndex: "orderSuccessNumber",
         scopedSlots: { customRender: "count" },
       },
       {
         title: "报价失败",
-        dataIndex: "bigCloseRate",
-        scopedSlots: { customRender: "rate" },
+        dataIndex: "areaCompanyErrNumber",
+        scopedSlots: { customRender: "count" },
       },
     ],
   },
 
   {
     title: "人工审核数",
-    dataIndex: "qutationCount",
+    dataIndex: "numberManual",
     scopedSlots: { customRender: "count" },
   },
   {
@@ -114,7 +114,7 @@ const columns = [
   },
   {
     title: "报价成功率",
-    dataIndex: "qutationInsureCount",
+    dataIndex: "orderSuccessNumberRate",
     scopedSlots: { customRender: "rate" },
   },
   {

+ 7 - 7
src/pages/quote/smallorders/quote.vue

@@ -3,7 +3,7 @@
     <div class="quote-tree">
       <div><h2>部门所属</h2></div>
       <div>
-        <!-- <a-tree :load-data="onLoadData" :tree-data="treeData" /> -->
+        <!-- <a-tree  :tree-data="treeData" /> -->
         <tree @getList="getVerification"></tree>
       </div>
     </div>
@@ -75,25 +75,25 @@ const columns = [
     children: [
       {
         title: "总报价",
-        dataIndex: "bigQutationCount",
+        dataIndex: "allNumber",
         scopedSlots: { customRender: "count" },
       },
       {
         title: "报价成功",
-        dataIndex: "bigUnderwritingCount",
+        dataIndex: "orderSuccessNumber",
         scopedSlots: { customRender: "count" },
       },
       {
         title: "报价失败",
-        dataIndex: "bigCloseRate",
-        scopedSlots: { customRender: "rate" },
+        dataIndex: "areaCompanyErrNumber",
+        scopedSlots: { customRender: "count" },
       },
     ],
   },
 
   {
     title: "人工审核数",
-    dataIndex: "qutationCount",
+    dataIndex: "numberManual",
     scopedSlots: { customRender: "count" },
   },
   {
@@ -108,7 +108,7 @@ const columns = [
   },
   {
     title: "报价成功率",
-    dataIndex: "qutationInsureCount",
+    dataIndex: "orderSuccessNumberRate",
     scopedSlots: { customRender: "rate" },
   },
   {

+ 1 - 1
src/pages/sys/roleConfig.vue

@@ -2,7 +2,7 @@
   <div class="quote">
     <div class="quote-tree">
       <div>
-        <!-- <a-tree :load-data="onLoadData" :tree-data="treeData" /> -->
+        <!-- <a-tree  :tree-data="treeData" /> -->
         <tree @getList="treeChoose"></tree>
       </div>
     </div>

+ 16 - 10
src/pages/wallet/agency.vue

@@ -2,10 +2,9 @@
   <div class="quote">
     <div class="quote-tree">
       <div>
-        <!-- <a-tree :load-data="onLoadData" :tree-data="treeData" /> -->
+        <!-- <a-tree  :tree-data="treeData" /> -->
         <!-- <tree @getList="treeChoose"></tree> -->
         <a-tree
-          :load-data="onLoadData"
           :tree-data="treeData"
           :replaceFields="replaceFields"
           :title="'1'"
@@ -32,8 +31,8 @@
               v-model="formState.days"
             >
               <a-radio-button :value="1"> 近1天 </a-radio-button>
-              <a-radio-button :value="7"> 近7天 </a-radio-button>
-              <a-radio-button :value="30"> 近30天 </a-radio-button>
+              <a-radio-button :value="2"> 近7天 </a-radio-button>
+              <a-radio-button :value="3"> 近30天 </a-radio-button>
             </a-radio-group>
           </div>
         </div>
@@ -125,6 +124,11 @@ export default {
       },
     };
   },
+  watch: {
+    "formState.days"() {
+      this.getList();
+    },
+  },
   mounted() {
     this.getAgencyList();
     // setTimeout(() => {
@@ -132,6 +136,11 @@ export default {
     this.getRole();
   },
   methods: {
+    getList(id) {
+      this.pageInfo.pageNum = 1;
+      this.pageInfo.pageSize = 12;
+      this.getAgencyList(id);
+    },
     numberToChinese(num) {
       const chineseNumbers = [
         "一",
@@ -186,7 +195,7 @@ export default {
     treeChoose(id) {
       this.pageInfo.pageNum = 1;
       this.pageInfo.pageSize = 10;
-      this.getAgencyList(id);
+      this.getList(id);
     },
 
     onChangeTime(val) {
@@ -218,11 +227,8 @@ export default {
         .getAgencyLeader({
           pageNum: this.pageInfo.pageNum,
           pageSize: this.pageInfo.pageSize,
-
-          cityId: id ? id : undefined,
-          countyId: id ? id : undefined,
-          houseId: id ? id : undefined,
-          provinceId: id ? id : undefined,
+          deptId: id || "",
+          ...this.formState,
         })
         .then((res) => {
           if (res.data.code === 200) {

+ 12 - 8
src/pages/wallet/agent.vue

@@ -2,10 +2,9 @@
   <div class="quote">
     <div class="quote-tree">
       <div>
-        <!-- <a-tree :load-data="onLoadData" :tree-data="treeData" /> -->
+        <!-- <a-tree  :tree-data="treeData" /> -->
         <!-- <tree @getList="treeChoose"></tree> -->
         <a-tree
-          :load-data="onLoadData"
           :tree-data="treeData"
           :replaceFields="replaceFields"
           :title="'1'"
@@ -32,8 +31,8 @@
               v-model="formState.days"
             >
               <a-radio-button :value="1"> 近1天 </a-radio-button>
-              <a-radio-button :value="7"> 近7天 </a-radio-button>
-              <a-radio-button :value="30"> 近30天 </a-radio-button>
+              <a-radio-button :value="2"> 近7天 </a-radio-button>
+              <a-radio-button :value="3"> 近30天 </a-radio-button>
             </a-radio-group>
           </div>
         </div>
@@ -232,6 +231,11 @@ export default {
       userData: {},
     };
   },
+  watch: {
+    "formState.days"() {
+      this.getList();
+    },
+  },
   mounted() {
     this.getAgencyList();
     // setTimeout(() => {
@@ -258,10 +262,10 @@ export default {
         });
       // console.log(this.visible)
     },
-    getList() {
+    getList(id) {
       this.pageInfo.pageNum = 1;
       this.pageInfo.pageSize = 12;
-      this.getAgencyList();
+      this.getAgencyList(id);
     },
     numberToChinese(num) {
       const chineseNumbers = [
@@ -292,14 +296,14 @@ export default {
     treeChoose(id) {
       this.pageInfo.pageNum = 1;
       this.pageInfo.pageSize = 12;
-      this.getAgencyList(id);
+      this.getList(id);
     },
 
     onChangeTime(val) {
       // console.log(val);
       this.formState.beginDate = val[0];
       this.formState.endDate = val[1];
-      this.getAgencyList();
+      this.getList();
     },
     handleFinish() {
       //

+ 13 - 8
src/pages/wallet/channel.vue

@@ -2,10 +2,9 @@
   <div class="quote">
     <div class="quote-tree">
       <div>
-        <!-- <a-tree :load-data="onLoadData" :tree-data="treeData" /> -->
+        <!-- <a-tree  :tree-data="treeData" /> -->
         <!-- <tree @getList="treeChoose"></tree> -->
         <a-tree
-          :load-data="onLoadData"
           :tree-data="treeData"
           :replaceFields="replaceFields"
           :title="'1'"
@@ -32,8 +31,8 @@
               v-model="formState.days"
             >
               <a-radio-button :value="1"> 近1天 </a-radio-button>
-              <a-radio-button :value="7"> 近7天 </a-radio-button>
-              <a-radio-button :value="30"> 近30天 </a-radio-button>
+              <a-radio-button :value="2"> 近7天 </a-radio-button>
+              <a-radio-button :value="3"> 近30天 </a-radio-button>
             </a-radio-group>
           </div>
         </div>
@@ -172,6 +171,11 @@ export default {
       },
     };
   },
+  watch: {
+    "formState.days"() {
+      this.getList();
+    },
+  },
   mounted() {
     this.getAgencyList();
     // setTimeout(() => {
@@ -179,10 +183,10 @@ export default {
     this.getRole();
   },
   methods: {
-    getList() {
+    getList(id) {
       this.pageInfo.pageNum = 1;
       this.pageInfo.pageSize = 12;
-      this.getAgencyList();
+      this.getAgencyList(id);
     },
     numberToChinese(num) {
       const chineseNumbers = [
@@ -213,14 +217,15 @@ export default {
     treeChoose(id) {
       this.pageInfo.pageNum = 1;
       this.pageInfo.pageSize = 12;
-      this.getAgencyList(id);
+
+      this.getList(id);
     },
 
     onChangeTime(val) {
       // console.log(val);
       this.formState.beginDate = val[0];
       this.formState.endDate = val[1];
-      this.getAgencyList();
+      this.getList();
     },
     handleFinish() {
       //

+ 8 - 4
src/pages/wallet/partner.vue

@@ -3,7 +3,6 @@
     <div class="quote-tree">
       <div>
         <a-tree
-          :load-data="onLoadData"
           :tree-data="treeData"
           :replaceFields="replaceFields"
           :title="'1'"
@@ -31,8 +30,8 @@
               v-model="formState.days"
             >
               <a-radio-button :value="1"> 近1天 </a-radio-button>
-              <a-radio-button :value="7"> 近7天 </a-radio-button>
-              <a-radio-button :value="30"> 近30天 </a-radio-button>
+              <a-radio-button :value="2"> 近7天 </a-radio-button>
+              <a-radio-button :value="3"> 近30天 </a-radio-button>
             </a-radio-group>
           </div>
         </div>
@@ -172,6 +171,11 @@ export default {
       deptId: "",
     };
   },
+  watch: {
+    "formState.days"() {
+      this.getList();
+    },
+  },
   async mounted() {
     await this.getTreeDeptUser();
 
@@ -221,7 +225,7 @@ export default {
       // console.log(val);
       this.formState.beginDate = val[0];
       this.formState.endDate = val[1];
-      this.getAgencyList();
+      this.getList();
     },
     handleFinish() {
       //