Эх сурвалжийг харах

营销-SPD-商机:联系人数据过滤;商机创建日期查询范围

001295 2 жил өмнө
parent
commit
e6410a5004

+ 33 - 26
src/views/business/spd/bo/basic/index.vue

@@ -153,7 +153,11 @@
       @cell-dblclick="enterDetails"
       @cell-dblclick="enterDetails"
     >
     >
       <el-table-column type="selection" align="center" />
       <el-table-column type="selection" align="center" />
-      <el-table-column label="编号" align="center" prop="boCode" />
+      <el-table-column
+        label="编号"
+        align="center"
+        prop="boCode"
+      />
       <el-table-column label="商机名称" align="center" prop="boName" />
       <el-table-column label="商机名称" align="center" prop="boName" />
       <el-table-column label="商机类型" align="center" prop="boType">
       <el-table-column label="商机类型" align="center" prop="boType">
         <template slot-scope="scope">
         <template slot-scope="scope">
@@ -211,6 +215,7 @@
         fixed="right"
         fixed="right"
         align="center"
         align="center"
         class-name="small-padding fixed-width"
         class-name="small-padding fixed-width"
+        width="250"
       >
       >
         <template slot-scope="scope">
         <template slot-scope="scope">
           <el-button
           <el-button
@@ -603,33 +608,35 @@ export default {
     /** 查询商机基础信息列表 */
     /** 查询商机基础信息列表 */
     getList() {
     getList() {
       this.loading = true;
       this.loading = true;
-      listBasic(this.addDateRange(this.queryParams, this.dateRange)).then((response) => {
-        this.basicList = response.rows;
-        //对商机名称进行加*
-        console.log(this.basicList);
-        for (var i = 0; i < this.basicList.length; i++) {
-          var arr = this.basicList[i].boName.split("-");
-          this.basicList[i].boName =
-            arr[0] +
-            "-" +
-            arr[1].substring(0, 2) +
-            "******" +
-            arr[1].substring(arr[1].length - 2, arr[1].length) +
-            "-" +
-            arr[2];
+      listBasic(this.addDateRange(this.queryParams, this.dateRange)).then(
+        (response) => {
+          this.basicList = response.rows;
+          //对商机名称进行加*
+          console.log(this.basicList);
+          for (var i = 0; i < this.basicList.length; i++) {
+            var arr = this.basicList[i].boName.split("-");
+            this.basicList[i].boName =
+              arr[0] +
+              "-" +
+              arr[1].substring(0, 2) +
+              "******" +
+              arr[1].substring(arr[1].length - 2, arr[1].length) +
+              "-" +
+              arr[2];
 
 
-          var customerName = this.basicList[i].customerName;
-          this.basicList[i].customerName =
-            customerName.substring(0, 2) +
-            "******" +
-            customerName.substring(
-              customerName.length - 2,
-              customerName.length
-            );
+            var customerName = this.basicList[i].customerName;
+            this.basicList[i].customerName =
+              customerName.substring(0, 2) +
+              "******" +
+              customerName.substring(
+                customerName.length - 2,
+                customerName.length
+              );
+          }
+          this.total = response.total;
+          this.loading = false;
         }
         }
-        this.total = response.total;
-        this.loading = false;
-      });
+      );
     },
     },
     // 取消按钮
     // 取消按钮
     cancel() {
     cancel() {

+ 2 - 0
src/views/business/spd/bo/contact/contactList.vue

@@ -449,6 +449,8 @@ export default {
   created() {
   created() {
     if(this.source == 'BoDetails'){
     if(this.source == 'BoDetails'){
       this.queryParams.customer = this.bo.customer;
       this.queryParams.customer = this.bo.customer;
+      let params = {"post":this.boAuthority.post};
+      this.queryParams.params = params;
     }
     }
     if(this.source == 'Contact'){
     if(this.source == 'Contact'){
       this.queryParams = this.bo;
       this.queryParams = this.bo;

+ 8 - 6
src/views/business/spd/bo/statement/proportion/index.vue

@@ -2,11 +2,12 @@
   <div class="app-container">
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
     <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="商机日期" prop="code">
       <el-form-item label="商机日期" prop="code">
-        <el-input
-          v-model="queryParams.code"
-          clearable
-          @keyup.enter.native="handleQuery"
-        />
+        <el-date-picker
+          type="month"
+          v-model="queryParams.yearMonth"
+          placeholder="选择月份"
+          >
+        </el-date-picker>
       </el-form-item>
       </el-form-item>
       <el-form-item label="商机类型" prop="boType">
       <el-form-item label="商机类型" prop="boType">
         <el-select
         <el-select
@@ -104,6 +105,7 @@ export default {
       queryParams: {
       queryParams: {
         pageNum: 1,
         pageNum: 1,
         pageSize: 10,
         pageSize: 10,
+        yearMonth: null,
         boType: null,
         boType: null,
         boSource: null,
         boSource: null,
         deptName: null,
         deptName: null,
@@ -116,7 +118,6 @@ export default {
     };
     };
   },
   },
   created() {
   created() {
-    this.queryParams.boType = 0;
     this.getList();
     this.getList();
   },
   },
   methods: {
   methods: {
@@ -159,6 +160,7 @@ export default {
     },
     },
     /** 搜索按钮操作 */
     /** 搜索按钮操作 */
     handleQuery() {
     handleQuery() {
+      console.log('this.queryParams',this.queryParams);
       this.queryParams.pageNum = 1;
       this.queryParams.pageNum = 1;
       this.getList();
       this.getList();
     },
     },