liuyifan il y a 5 ans
Parent
commit
850b956cf3

+ 20 - 2
CallCenterWeb.UI/src/views/CustomerServiceReport/TVShoppingMarketing/index.vue

5
       <el-button type="primary" @click="btn_search">刷新</el-button>
5
       <el-button type="primary" @click="btn_search">刷新</el-button>
6
       <el-button type="primary" @click="btn_export">导出</el-button>
6
       <el-button type="primary" @click="btn_export">导出</el-button>
7
     </div>
7
     </div>
8
+    <div class="nowDate">
9
+      <span>当前时间:{{ getNowDate() }}</span>
10
+    </div>
8
     <el-table v-loading="loading" :data="dataLists" :span-method="arraySpanMethod" border stripe>
11
     <el-table v-loading="loading" :data="dataLists" :span-method="arraySpanMethod" border stripe>
9
       <el-table-column prop="project" label="项目" align="center"> </el-table-column>
12
       <el-table-column prop="project" label="项目" align="center"> </el-table-column>
10
       <el-table-column prop="center" label="中心" align="center"> </el-table-column>
13
       <el-table-column prop="center" label="中心" align="center"> </el-table-column>
245
       }
248
       }
246
     },
249
     },
247
     btn_search() {
250
     btn_search() {
251
+      this.dataLists = []
248
       this.getList()
252
       this.getList()
249
     },
253
     },
250
     btn_export() {
254
     btn_export() {
251
       window.location.href = this.$store.getters.serverConfig.BASE_API + "api/KFReport/TVDelivery?isdc=1"
255
       window.location.href = this.$store.getters.serverConfig.BASE_API + "api/KFReport/TVDelivery?isdc=1"
252
     },
256
     },
257
+    getNowDate() {
258
+      let nowDate = new Date()
259
+      let year = nowDate.getFullYear()
260
+      let month = nowDate.getMonth() + 1
261
+      let day = nowDate.getDate()
262
+      month = month.toString().padStart(2, "0")
263
+      day = day.toString().padStart(2, "0")
264
+      let defaultDate = `${year}-${month}-${day}`
265
+      return defaultDate
266
+    }
253
   },
267
   },
254
 }
268
 }
255
 </script>
269
 </script>
256
 
270
 
257
 <style rel="stylesheet/scss" lang="scss" scoped>
271
 <style rel="stylesheet/scss" lang="scss" scoped>
258
-span {
259
-  font-size: 14px;
272
+.nowDate {
273
+  width: 100%;
274
+  text-align: center;
275
+  span {
276
+    font-size: 16px;
277
+  }
260
 }
278
 }
261
 </style>
279
 </style>

+ 3 - 0
CallCenterWeb.UI/src/views/memberManagement/memberList/components/detail.vue

54
             <el-col :md="6" class="order_detail_item">修改人:{{ F_LastModifyBy }}</el-col>
54
             <el-col :md="6" class="order_detail_item">修改人:{{ F_LastModifyBy }}</el-col>
55
             <el-col :md="6" class="order_detail_item">修改时间:{{ F_LastModifyOn }}</el-col>
55
             <el-col :md="6" class="order_detail_item">修改时间:{{ F_LastModifyOn }}</el-col>
56
             <el-col :md="6" class="order_detail_item">购买次数:{{ F_Count }}</el-col>
56
             <el-col :md="6" class="order_detail_item">购买次数:{{ F_Count }}</el-col>
57
+            <el-col :md="6" class="order_detail_item">媒体:{{ F_Media }}</el-col>
57
 
58
 
58
             <!-- <el-col :md="18" :offset="6">
59
             <!-- <el-col :md="18" :offset="6">
59
               <el-button type="primary" size="mini" plain>打标签</el-button>
60
               <el-button type="primary" size="mini" plain>打标签</el-button>
425
       lastholetime: "", // 末联通话记录
426
       lastholetime: "", // 末联通话记录
426
       F_LastModifyOn: "", // 修改时间
427
       F_LastModifyOn: "", // 修改时间
427
       F_Count: "", //购买次数
428
       F_Count: "", //购买次数
429
+      F_Media: "", //媒体
428
       F_LastModifyBy: "", // 修改人
430
       F_LastModifyBy: "", // 修改人
429
       orderLists: [], // 订单列表数据
431
       orderLists: [], // 订单列表数据
430
       dataLists: [], // 列表数据
432
       dataLists: [], // 列表数据
547
         this.lastholetime = res.F_Lastholetime // 末联通话记录
549
         this.lastholetime = res.F_Lastholetime // 末联通话记录
548
         this.F_LastModifyOn = res.F_LastModifyOn // 修改时间
550
         this.F_LastModifyOn = res.F_LastModifyOn // 修改时间
549
         this.F_Count = res.F_Count // 购买次数
551
         this.F_Count = res.F_Count // 购买次数
552
+        this.F_Media = res.F_Media // 购买次数
550
         this.F_LastModifyBy = res.F_LastModifyBy // 修改人
553
         this.F_LastModifyBy = res.F_LastModifyBy // 修改人
551
       })
554
       })
552
     },
555
     },

+ 62 - 1
CallCenterWeb.UI/src/views/telCall/hotlineReturnVisit/index.vue

1
 <template>
1
 <template>
2
   <div class="app-container">
2
   <div class="app-container">
3
     <div class="filter-container">
3
     <div class="filter-container">
4
-      <!-- <el-date-picker v-model="searchDate" :picker-options="pickerOptions" class="filter-item" type="daterange" format="yyyy年MM月dd日" value-format="yyyy-MM-dd" align="left" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" /> -->
4
+      <el-date-picker v-model="searchData.date" :picker-options="pickerOptions" class="filter-item" type="daterange" format="yyyy年MM月dd日" value-format="yyyy-MM-dd" align="left" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" />
5
       <el-input v-model="searchData.name" placeholder="请输入会员姓名" class="filter-item" />
5
       <el-input v-model="searchData.name" placeholder="请输入会员姓名" class="filter-item" />
6
       <el-input v-model="searchData.phone" placeholder="请输入会员电话" class="filter-item" />
6
       <el-input v-model="searchData.phone" placeholder="请输入会员电话" class="filter-item" />
7
       <el-select v-model="searchData.IsReturnvisit" class="filter-item" filterable clearable placeholder="请选择是否回访">
7
       <el-select v-model="searchData.IsReturnvisit" class="filter-item" filterable clearable placeholder="请选择是否回访">
31
           <i class="el-icon-edit phoneIcon" @click="btn_isReturnvisit(scope.row.F_ID)" />
31
           <i class="el-icon-edit phoneIcon" @click="btn_isReturnvisit(scope.row.F_ID)" />
32
         </template>
32
         </template>
33
       </el-table-column>
33
       </el-table-column>
34
+      <el-table-column label="操作" width="180" align="center" class-name="oparate_btn" fixed="right">
35
+        <template slot-scope="scope">
36
+          <el-button v-permission="'HY_add_order'" type="text" v-if="authority_edit(scope.row.F_Saleperson)" @click="btn_add_order(scope.row.F_ID)">添加订单</el-button>
37
+          <el-button v-permission="'HY_detail'" type="text" @click="btn_detail(scope.row.F_ID.toString())">详情</el-button>
38
+          <el-button v-permission="'HY_edit'" type="text" v-if="authority_edit(scope.row.F_Saleperson)" @click="btn_edit(scope.row.F_ID)">编辑</el-button>
39
+        </template>
40
+      </el-table-column>
34
     </el-table>
41
     </el-table>
35
     <pagination v-show="pageParams.total > 0" :total="pageParams.total" :pageindex.sync="pageParams.pageindex" :pagesize.sync="pageParams.pagesize" class="pagination" @pagination="getList" />
42
     <pagination v-show="pageParams.total > 0" :total="pageParams.total" :pageindex.sync="pageParams.pageindex" :pagesize.sync="pageParams.pagesize" class="pagination" @pagination="getList" />
36
   </div>
43
   </div>
46
 import { mapGetters } from "vuex"
53
 import { mapGetters } from "vuex"
47
 import returnvisit from "./returnvisit"
54
 import returnvisit from "./returnvisit"
48
 import { encryptphone } from "@/api/memberManagement/memberList"
55
 import { encryptphone } from "@/api/memberManagement/memberList"
56
+import addOrEdit from "@/views/memberManagement/memberList/components/addOrEdit"
57
+import detail from "@/views/memberManagement/memberList/components/detail"
58
+import addOrder from "@/views/memberManagement/memberList/components/addOrder"
49
 
59
 
50
 export default {
60
 export default {
51
   name: "CallRecord",
61
   name: "CallRecord",
78
         name: "", //会员姓名
88
         name: "", //会员姓名
79
         phone: "", //会员电话
89
         phone: "", //会员电话
80
         IsReturnvisit: "", //是否回访
90
         IsReturnvisit: "", //是否回访
91
+        date: [], // 时间
81
       },
92
       },
82
       pageParams: {
93
       pageParams: {
83
         pageindex: 1, // 当前第几页
94
         pageindex: 1, // 当前第几页
114
           name: this.searchData.name,
125
           name: this.searchData.name,
115
           phone: this.searchData.phone,
126
           phone: this.searchData.phone,
116
           IsReturnvisit: this.searchData.IsReturnvisit,
127
           IsReturnvisit: this.searchData.IsReturnvisit,
128
+          laststartholetime: this.searchData.date && this.searchData.date[0],
129
+          lastendholetime: this.searchData.date && this.searchData.date[1],
117
         }
130
         }
118
         getHotlineReturnVisitList(params).then((response) => {
131
         getHotlineReturnVisitList(params).then((response) => {
119
           this.loading = false
132
           this.loading = false
225
       const defaultDate = `${year}-${month}-${day} ${hour}`
238
       const defaultDate = `${year}-${month}-${day} ${hour}`
226
       return defaultDate
239
       return defaultDate
227
     },
240
     },
241
+    // 添加订单
242
+    btn_add_order(id) {
243
+      this.$layer.iframe({
244
+        content: {
245
+          content: addOrder, // 传递的组件对象
246
+          parent: this, // 当前的vue对象
247
+          data: { rowid: id.toString() }, // props
248
+        },
249
+        area: ["80%", "90%"],
250
+        title: "添加订单",
251
+      })
252
+    },
253
+    // 详情
254
+    btn_detail(editId) {
255
+      this.$layer.iframe({
256
+        content: {
257
+          content: detail, // 传递的组件对象
258
+          parent: this, // 当前的vue对象
259
+          data: { rowid: editId }, // props
260
+        },
261
+        area: ["80%", "90%"],
262
+        title: "详情",
263
+      })
264
+    },
265
+    // 编辑
266
+    btn_edit(editId) {
267
+      this.$layer.iframe({
268
+        content: {
269
+          content: addOrEdit, // 传递的组件对象
270
+          parent: this, // 当前的vue对象
271
+          data: { rowid: editId.toString() }, // props
272
+        },
273
+        area: ["80%", "90%"],
274
+        title: "编辑会员信息",
275
+      })
276
+    },
277
+    authority_edit(saleperson) {
278
+      const storageGroupCode = window.localStorage.getItem("roleCode")
279
+      if (storageGroupCode === "XS") {
280
+        if (this.username == saleperson) {
281
+          return true
282
+        } else {
283
+          return false
284
+        }
285
+      } else {
286
+        return true
287
+      }
288
+    },
228
   },
289
   },
229
 }
290
 }
230
 </script>
291
 </script>

+ 1 - 1
CallCenterWeb.UI/src/views/trafficData/callRecord/index.vue

36
       <el-table-column prop="Callee" label="被叫号码" align="center" min-width>
36
       <el-table-column prop="Callee" label="被叫号码" align="center" min-width>
37
         <template slot-scope="scope">
37
         <template slot-scope="scope">
38
           {{ scope.row.Callee | phoneFilter }}
38
           {{ scope.row.Callee | phoneFilter }}
39
-          <i v-if="scope.row.CallType == '1'" class="el-icon-tickets phoneIcon" @click="clickCut(scope.row.Caller)" />
39
+          <i v-if="scope.row.CallType == '1'" class="el-icon-tickets phoneIcon" @click="clickCut(scope.row.Callee)" />
40
           <i v-if="scope.row.CallType == '1'" class="el-icon-phone phoneIcon" @click="clickCallOut(scope.row.Callee, scope.row.Id)" />
40
           <i v-if="scope.row.CallType == '1'" class="el-icon-phone phoneIcon" @click="clickCallOut(scope.row.Callee, scope.row.Id)" />
41
         </template>
41
         </template>
42
       </el-table-column>
42
       </el-table-column>