瀏覽代碼

禅道bug修改

liuzhen 5 年之前
父節點
當前提交
f38396cf69

+ 5 - 0
fuwaiCallCenterWeb.UI/src/views/order/orderCreate/index.vue

139
           required: true,
139
           required: true,
140
           trigger: 'blur',
140
           trigger: 'blur',
141
           validator: validateTelRule
141
           validator: validateTelRule
142
+        }],
143
+        content: [{
144
+          required: true,
145
+          message: '请输入工单内容',
146
+          trigger: 'blur'
142
         }]
147
         }]
143
       },
148
       },
144
       loading: false
149
       loading: false

+ 59 - 3
fuwaiCallCenterWeb.UI/src/views/outbound/allot/index.vue

20
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
20
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
21
     </div>
21
     </div>
22
 
22
 
23
-    <el-tabs v-model="activeName" @tab-click="handleClick">
23
+    <el-tabs v-model="activeName" @tab-click="handleClick" v-if="flag">
24
       <el-tab-pane v-for="item in tabMapOptions" :key="item.key" :name="item.key">
24
       <el-tab-pane v-for="item in tabMapOptions" :key="item.key" :name="item.key">
25
         <span slot="label">{{ item.label }}<span :class="item.listclass">({{ item.num }})</span></span>
25
         <span slot="label">{{ item.label }}<span :class="item.listclass">({{ item.num }})</span></span>
26
         <tabAllot v-if="activeName===item.key" ref="tabtask" :search-datas="searchDatas" @getTotalNums="getTotalNum"/>
26
         <tabAllot v-if="activeName===item.key" ref="tabtask" :search-datas="searchDatas" @getTotalNums="getTotalNum"/>
35
   pickerOptions
35
   pickerOptions
36
 } from '@/utils'
36
 } from '@/utils'
37
 import tabAllot from './components/tabAllot'
37
 import tabAllot from './components/tabAllot'
38
-
38
+import {
39
+  getPlanLists
40
+} from '@/api/outbound/plan'
39
 export default {
41
 export default {
40
   name: 'Allot',
42
   name: 'Allot',
41
   components: {
43
   components: {
75
         keyword: '', // 计划名称
77
         keyword: '', // 计划名称
76
         isallot: ''
78
         isallot: ''
77
       },
79
       },
80
+      pageParams: {
81
+        pageindex: 1, // 当前第几页
82
+        pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
83
+        total: 0 // 总共多少数据
84
+      },
85
+      flag:false,//表头数据展示
78
       activeName: 'first',
86
       activeName: 'first',
79
       tabMapOptions: [{
87
       tabMapOptions: [{
80
         label: '全部',
88
         label: '全部',
97
       ]
105
       ]
98
     }
106
     }
99
   },
107
   },
108
+  created() {
109
+    this.getCurrentList()
110
+  },
100
   mounted() {
111
   mounted() {
101
     document.onkeyup = (e) => {
112
     document.onkeyup = (e) => {
102
       if (e.keyCode === 13) {
113
       if (e.keyCode === 13) {
131
       this.tabMapOptions[0].num = value.totalcount // 全部
142
       this.tabMapOptions[0].num = value.totalcount // 全部
132
       this.tabMapOptions[1].num = value.wfpcount // 待分配
143
       this.tabMapOptions[1].num = value.wfpcount // 待分配
133
       this.tabMapOptions[2].num = value.fpcount // 已分配
144
       this.tabMapOptions[2].num = value.fpcount // 已分配
134
-    }
145
+    },
146
+    getCurrentList() {
147
+      return new Promise(resolve => {
148
+        const params = {
149
+          pageindex: this.pageParams.pageindex, // 第几页
150
+          pagesize: this.pageParams.pagesize, // 每页几条信息
151
+          key: this.searchDatas.keyword.replace(/\s+/g, ""), //	否	string	任务名称,可模糊查询
152
+          taskstate: this.searchDatas.sc_state, //	否	int	任务状态 (不传值时查询所有状态)
153
+          stime: this.searchDatas.searchDate && this.searchDatas.searchDate[0], //	否	string	开始时间
154
+          etime: this.searchDatas.searchDate && this.searchDatas.searchDate[1], //	否	string	结束时间
155
+          isallot: this.searchDatas.isallot //	否	int	分配状态 (不传值时查询所有状态)
156
+        }
157
+        getPlanLists(params).then(response => {
158
+          if (response.state.toLowerCase() === 'success') {
159
+            switch (this.searchDatas.isallot) {
160
+              case '':
161
+                this.pageParams.total = response.totalcount
162
+                break
163
+              case 0:
164
+                this.pageParams.total = response.wfpcount
165
+                break
166
+              case 1:
167
+                this.pageParams.total = response.fpcount
168
+                break
169
+              default:
170
+                break
171
+            }
172
+            console.log(this.dataLists)
173
+            if (response.total >= 100) {
174
+              response.total = '99+'
175
+            }
176
+            if (response.wfpcount >= 100) {
177
+              response.wfpcount = '99+'
178
+            }
179
+            if (response.fpcount >= 100) {
180
+              response.fpcount = '99+'
181
+            }
182
+            this.tabMapOptions[0].num = response.totalcount // 全部
183
+            this.tabMapOptions[1].num = response.wfpcount // 待分配
184
+            this.tabMapOptions[2].num = response.fpcount // 已分配
185
+            this.flag = true
186
+          }
187
+        })
188
+        resolve()
189
+      })
190
+    },
135
   }
191
   }
136
 }
192
 }
137
 </script>
193
 </script>

+ 57 - 2
fuwaiCallCenterWeb.UI/src/views/outbound/myTask/index.vue

19
       <el-input v-model="searchDatas.keyword" placeholder="请输入计划名称" class="filter-item"/>
19
       <el-input v-model="searchDatas.keyword" placeholder="请输入计划名称" class="filter-item"/>
20
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
20
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
21
     </div>
21
     </div>
22
-    <el-tabs v-model="activeName" @tab-click="handleClick">
22
+    <el-tabs v-model="activeName" @tab-click="handleClick" v-if="flag">
23
       <el-tab-pane v-for="item in tabMapOptions" :key="item.key" :name="item.key">
23
       <el-tab-pane v-for="item in tabMapOptions" :key="item.key" :name="item.key">
24
         <span slot="label">{{ item.label }}<span :class="item.listclass">({{ item.num }})</span></span>
24
         <span slot="label">{{ item.label }}<span :class="item.listclass">({{ item.num }})</span></span>
25
         <tabMyTask v-if="activeName===item.key" ref="tabtask" :search-datas="searchDatas" @getTotalNums="getTotalNum"/>
25
         <tabMyTask v-if="activeName===item.key" ref="tabtask" :search-datas="searchDatas" @getTotalNums="getTotalNum"/>
38
   getSeatLists
38
   getSeatLists
39
 } from '@/api/telCall/seatMonitor'
39
 } from '@/api/telCall/seatMonitor'
40
 import tabMyTask from './components/tabMyTask'
40
 import tabMyTask from './components/tabMyTask'
41
+import {getTaskLists} from '@/api/outbound/tasks'
41
 
42
 
42
 export default {
43
 export default {
43
   name: 'MyTask',
44
   name: 'MyTask',
78
         keyword: '', // 计划名称
79
         keyword: '', // 计划名称
79
         ishistory: 0
80
         ishistory: 0
80
       },
81
       },
82
+      pageParams: {
83
+        pageindex: 1, // 当前第几页
84
+        pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
85
+        total: 0 // 总共多少数据
86
+      },
87
+      flag:false,//表头数据展示
81
       activeName: 'first',
88
       activeName: 'first',
82
       tabMapOptions: [{
89
       tabMapOptions: [{
83
         label: '全部',
90
         label: '全部',
100
       ]
107
       ]
101
     }
108
     }
102
   },
109
   },
110
+  created() {
111
+    this.getCurrentList()
112
+  },
103
   mounted() {
113
   mounted() {
104
     document.onkeyup = (e) => {
114
     document.onkeyup = (e) => {
105
       if (e.keyCode === 13) {
115
       if (e.keyCode === 13) {
134
       this.tabMapOptions[0].num = value.totalcount // 全部
144
       this.tabMapOptions[0].num = value.totalcount // 全部
135
       this.tabMapOptions[1].num = value.wfpcount // 当前任务
145
       this.tabMapOptions[1].num = value.wfpcount // 当前任务
136
       this.tabMapOptions[2].num = value.fpcount // 历史任务
146
       this.tabMapOptions[2].num = value.fpcount // 历史任务
137
-    }
147
+    },
148
+    getCurrentList() {
149
+      return new Promise(resolve => {
150
+        const params = {
151
+          pageindex: this.pageParams.pageindex, // 第几页
152
+          pagesize: this.pageParams.pagesize, // 每页几条信息
153
+          infokind: this.searchDatas.ishistory, // 否	int	查询类型(为0或不传时获取全部,为1时获取当前任务,为2时获取历史任务)
154
+          isstart: this.searchDatas.sc_state, //	否	int	任务状态 (不传值时查询所有状态)
155
+          stime: this.searchDatas.searchDate && this.searchDatas.searchDate[0], //	否	string	开始时间
156
+          etime: this.searchDatas.searchDate && this.searchDatas.searchDate[1], //	否	string	结束时间
157
+          agentid: this.usercode, // 否	string	坐席工号(不传值查询全部坐席)
158
+          taskname: this.searchDatas.keyword //	否	string	计划名称,可模糊查询
159
+        }
160
+        getTaskLists(params).then(response => {
161
+          if (response.state.toLowerCase() === 'success') {
162
+            switch (this.searchDatas.ishistory) {
163
+              case 0:
164
+                this.pageParams.total = response.total
165
+                break
166
+              case 1:
167
+                this.pageParams.total = response.dqnum
168
+                break
169
+              case 2:
170
+                this.pageParams.total = response.lsnum
171
+                break
172
+              default:
173
+                break
174
+            }
175
+            if (response.total >= 100) {
176
+              response.total = '99+'
177
+            }
178
+            if (response.dqnum >= 100) {
179
+              response.dqnum = '99+'
180
+            }
181
+            if (response.lsnum >= 100) {
182
+              response.lsnum = '99+'
183
+            }
184
+            this.tabMapOptions[0].num = response.total // 全部
185
+            this.tabMapOptions[1].num = response.dqnum // 当前任务
186
+            this.tabMapOptions[2].num = response.lsnum // 历史任务
187
+            this.flag = true
188
+          }
189
+        })
190
+        resolve()
191
+      })
192
+    },
138
   }
193
   }
139
 }
194
 }
140
 </script>
195
 </script>

+ 2 - 1
fuwaiCallCenterWeb.UI/src/views/telCall/blackList/addOrEditBlackList.vue

126
       })
126
       })
127
     },
127
     },
128
     resetForm() {
128
     resetForm() {
129
-      this.$refs.ruleForm.resetFields()
129
+      this.$refs.ruleForm.resetFields();
130
+      this.ruleForm.rangTimes='';
130
     },
131
     },
131
     // 获取详情
132
     // 获取详情
132
     getDetail(rid) {
133
     getDetail(rid) {

+ 1 - 0
fuwaiCallCenterWeb.UI/src/views/telCall/restDay/addOrEdit.vue

152
     },
152
     },
153
     resetForm() {
153
     resetForm() {
154
       this.$refs.ruleForm.resetFields()
154
       this.$refs.ruleForm.resetFields()
155
+      this.ruleForm.rangeTime='';
155
     },
156
     },
156
     // 获取详情
157
     // 获取详情
157
     getDetail() {
158
     getDetail() {