Kaynağa Gözat

Merge branch 'master' of http://192.168.1.222:3000/zhengbingbing/ZLJ_UI_V6.0

miaofuhao 5 yıl önce
ebeveyn
işleme
5515cf9824

+ 220 - 172
CallCenterWeb.UI/src/views/marketingManagement/fullDecrement/components/addOrEdit.vue

@@ -6,33 +6,54 @@
6 6
       </el-form-item>
7 7
       <el-form-item label="活动时间" prop="activityTime">
8 8
         <el-date-picker
9
-        v-model="ruleForm.activityTime"
10
-        :picker-options="pickerOptions"
11
-        class="filter-item"
12
-        type="daterange"
13
-        format="yyyy年MM月dd日"
14
-        value-format="yyyy-MM-dd"
15
-        align="left"
16
-        unlink-panels
17
-        range-separator="至"
18
-        start-placeholder="开始日期"
19
-        end-placeholder="结束日期"
20
-      />
9
+          v-model="ruleForm.activityTime"
10
+          :picker-options="pickerOptions"
11
+          class="filter-item"
12
+          type="daterange"
13
+          format="yyyy年MM月dd日"
14
+          value-format="yyyy-MM-dd"
15
+          align="left"
16
+          unlink-panels
17
+          range-separator="至"
18
+          start-placeholder="开始日期"
19
+          end-placeholder="结束日期"
20
+        />
21 21
       </el-form-item>
22 22
       <el-form-item label="促销方式" prop="promotionMethod">
23
-         <el-select v-model="ruleForm.promotionMethod" clearable placeholder="请选择促销方式">
23
+        <el-select v-model="ruleForm.promotionMethod" clearable placeholder="请选择促销方式">
24 24
           <el-option label="按总件数" value="按总件数"></el-option>
25 25
           <el-option label="按总金额" value="按总金额"></el-option>
26 26
         </el-select>
27 27
       </el-form-item>
28 28
       <el-form-item label="满减活动" prop="amountRange">
29
-        <el-button type="primary" @click="addActivity">添加活动</el-button><span class="info">请点击添加活动</span>
29
+        <el-button type="primary" @click="addActivity">添加活动</el-button>
30
+        <span class="info">请点击添加活动</span>
30 31
       </el-form-item>
31 32
       <el-form-item>
32
-        <span class="money">*</span>消费满<el-input style="width:90px;" onkeyup="value=value.replace(/[^\d.]/g,'')" v-model="ruleForm.amountRange"></el-input>元,减<el-input v-model="ruleForm.reductionAmount" onkeyup="value=value.replace(/[^\d.]/g,'')" style="width:90px;"></el-input>元
33
+        <span class="money">*</span>消费满
34
+        <el-input
35
+          style="width:90px;"
36
+          onkeyup="value=value.replace(/[^\d.]/g,'')"
37
+          v-model="ruleForm.amountRange"
38
+        ></el-input>元,减
39
+        <el-input
40
+          v-model="ruleForm.reductionAmount"
41
+          onkeyup="value=value.replace(/[^\d.]/g,'')"
42
+          style="width:90px;"
43
+        ></el-input>元
33 44
       </el-form-item>
34
-      <el-form-item  v-for="(item,index) in addActivityData" :key="index">
35
-        <span class="money">*</span>消费满<el-input style="width:90px;" onkeyup="value=value.replace(/[^\d.]/g,'')" v-model="item.amountRange"></el-input>元,减<el-input style="width:90px;" onkeyup="value=value.replace(/[^\d.]/g,'')" v-model="item.reductionAmount"></el-input>元
45
+      <el-form-item v-for="(item,index) in addActivityData" :key="index">
46
+        <span class="money">*</span>消费满
47
+        <el-input
48
+          style="width:90px;"
49
+          onkeyup="value=value.replace(/[^\d.]/g,'')"
50
+          v-model="item.amountRange"
51
+        ></el-input>元,减
52
+        <el-input
53
+          style="width:90px;"
54
+          onkeyup="value=value.replace(/[^\d.]/g,'')"
55
+          v-model="item.reductionAmount"
56
+        ></el-input>元
36 57
         <el-button type="text" @click="removeActivity(item.key)">删除</el-button>
37 58
       </el-form-item>
38 59
       <el-form-item label="活动方式" prop="activityMode">
@@ -44,8 +65,8 @@
44 65
             v-for="item in shopList"
45 66
             :key="item.F_TagName"
46 67
             :label="item.F_TagName"
47
-            :value="item.F_TagName">
48
-          </el-option>
68
+            :value="item.F_TagName"
69
+          ></el-option>
49 70
         </el-select>
50 71
       </el-form-item>
51 72
       <el-form-item>
@@ -57,231 +78,258 @@
57 78
 </template>
58 79
 
59 80
 <script>
60
-import { getProviceCity, getDictionary } from '@/api/commonAPI'
61
-import { getFullMarketingDetail, addFullMarketing, editFullMarketing, getMerchandise, getshopping} from '@/api/marketingManagement/fullGiveMarketing'
62
-import { validateTel } from '@/utils/validate'
63
-import { filterContent,pickerOptions } from '@/utils'
81
+import { getProviceCity, getDictionary } from "@/api/commonAPI";
82
+import {
83
+  getFullMarketingDetail,
84
+  addFullMarketing,
85
+  editFullMarketing,
86
+  getMerchandise,
87
+  getshopping,
88
+} from "@/api/marketingManagement/fullGiveMarketing";
89
+import { validateTel } from "@/utils/validate";
90
+import { filterContent, pickerOptions } from "@/utils";
64 91
 export default {
65
-  name: 'AddOrEdit',
92
+  name: "AddOrEdit",
66 93
   props: {
67 94
     rowid: {
68 95
       type: String,
69
-      default: ''
96
+      default: "",
70 97
     },
71 98
     callid: {
72 99
       type: Number,
73
-      default: 0
100
+      default: 0,
74 101
     },
75 102
     layerid: {
76 103
       type: String,
77
-      default: ''
78
-    }
104
+      default: "",
105
+    },
79 106
   },
80 107
   data() {
81 108
     return {
82
-      props: { // 自定义省市下拉数据的key值
83
-        value: 'code',
84
-        label: 'name',
85
-        children: 'entityJson'
109
+      props: {
110
+        // 自定义省市下拉数据的key值
111
+        value: "code",
112
+        label: "name",
113
+        children: "entityJson",
86 114
       },
87
-      pickerOptions,//日期数据
115
+      pickerOptions, //日期数据
88 116
       sourceOptions: [], // 工单来源下拉数据
89
-      shopList:[],//绑定商品数据
90
-      addActivityData:[],//添加活动的数据
117
+      shopList: [], //绑定商品数据
118
+      addActivityData: [], //添加活动的数据
91 119
       ruleForm: {
92
-        unique_id: '', //		否	string	callid
93
-        ordercode: '',
94
-        activityName: '', //活动名称
95
-        activityTime: '', //活动时间
96
-        promotionMethod: '', //促销方式
97
-        reductionAmount: '', //满减金额
98
-        amountRange: '', //金额区间
99
-        activityMode: '', //活动方式
100
-        boundGoods: '', //绑定商品
120
+        unique_id: "", //		否	string	callid
121
+        ordercode: "",
122
+        activityName: "", //活动名称
123
+        activityTime: "", //活动时间
124
+        promotionMethod: "", //促销方式
125
+        reductionAmount: "", //满减金额
126
+        amountRange: "", //金额区间
127
+        activityMode: "", //活动方式
128
+        boundGoods: "", //绑定商品
101 129
       },
102
-      reductionAmount:[],//满减金额
103
-      amountRange:[],//金额区间
130
+      reductionAmount: [], //满减金额
131
+      amountRange: [], //金额区间
104 132
       rules: {
105
-        activityName: [{
106
-          required: true,
107
-          trigger: 'blur',
108
-          message: '请输入活动名称',
109
-        }],
110
-        activityTime: [{
111
-          required: true,
112
-          trigger: 'blur',
113
-          message: '请选择活动时间',
114
-        }],
115
-        promotionMethod: [{
116
-          required: true,
117
-          trigger: 'blur',
118
-          message: '请选择促销方式',
119
-        }],
120
-        boundGoods: [{
121
-          required: true,
122
-          trigger: 'blur',
123
-          message: '请选择商品标签',
124
-        }],
133
+        activityName: [
134
+          {
135
+            required: true,
136
+            trigger: "blur",
137
+            message: "请输入活动名称",
138
+          },
139
+        ],
140
+        activityTime: [
141
+          {
142
+            required: true,
143
+            trigger: "blur",
144
+            message: "请选择活动时间",
145
+          },
146
+        ],
147
+        promotionMethod: [
148
+          {
149
+            required: true,
150
+            trigger: "blur",
151
+            message: "请选择促销方式",
152
+          },
153
+        ],
154
+        boundGoods: [
155
+          {
156
+            required: true,
157
+            trigger: "blur",
158
+            message: "请选择商品标签",
159
+          },
160
+        ],
125 161
       },
126
-      loading: false
127
-    }
162
+      loading: false,
163
+    };
128 164
   },
129 165
   created() {
130
-    this.getShopList();//获取绑定商品
166
+    this.getShopList(); //获取绑定商品
131 167
     if (this.callid) {
132
-      this.ruleForm.unique_id = this.callid
168
+      this.ruleForm.unique_id = this.callid;
133 169
     }
134
-    Promise.all([])
135
-      .then(() => {
136
-        if (this.rowid) {
137
-          this.ruleForm.ordercode = this.rowid
138
-          this.getDetail(this.rowid)
139
-        }
140
-      })
170
+    Promise.all([]).then(() => {
171
+      if (this.rowid) {
172
+        this.ruleForm.ordercode = this.rowid;
173
+        this.getDetail(this.rowid);
174
+      }
175
+    });
141 176
   },
142 177
   methods: {
143 178
     submitForm() {
144
-      if(this.addActivityData&&this.addActivityData.length>0){
145
-          this.addActivityData.map(item=>{
146
-          this.reductionAmount.push(item.reductionAmount);
147
-          this.amountRange.push(item.amountRange);
148
-        })
149
-      }else{
150
-        this.$message.error('请输入有效的必填项信息')
151
-        this.reductionAmount=[];
152
-        this.amountRange=[];
153
-        return 
154
-      }
155
-      
156 179
       this.$refs.ruleForm.validate((valid) => {
157 180
         if (valid) {
158
-          this.ruleForm.content = filterContent.delHtmlTag(this.ruleForm.content)// 保存内容时去掉 html 标签
159
-          this.loading = true
160
-          return new Promise(response=>{
161
-            const params={
162
-              F_Type:3,
163
-              F_ID:this.rowid ? this.rowid : '',
164
-              F_Name:this.ruleForm.activityName,//活动名称
165
-              F_Describe:this.ruleForm.promotionMethod,//促销方式
166
-              F_Money:this.reductionAmount.toString(),//满减金额
167
-              F_AmountRange:this.amountRange.toString(),//金额区间
168
-              F_StartTime:this.ruleForm.activityTime && this.ruleForm.activityTime[0],//开始时间
169
-              F_EndTime:this.ruleForm.activityTime && this.ruleForm.activityTime[1],//结束时间
170
-              F_Commodity:this.ruleForm.boundGoods,//商品ID
171
-              F_ActivityMode:this.ruleForm.activityMode,//活动金额
172
-            }
173
-             // 添加
181
+          if (this.addActivityData && this.addActivityData.length > 0) {
182
+            this.addActivityData.map((item) => {
183
+              this.reductionAmount.push(item.reductionAmount);
184
+              this.amountRange.push(item.amountRange);
185
+            });
186
+          } else {
187
+            this.$message.error("请输入满减金额!");
188
+            this.reductionAmount = [];
189
+            this.amountRange = [];
190
+            return;
191
+          }
192
+          this.ruleForm.content = filterContent.delHtmlTag(
193
+            this.ruleForm.content
194
+          ); // 保存内容时去掉 html 标签
195
+          this.loading = true;
196
+          return new Promise((response) => {
197
+            const params = {
198
+              F_Type: 3,
199
+              F_ID: this.rowid ? this.rowid : "",
200
+              F_Name: this.ruleForm.activityName, //活动名称
201
+              F_Describe: this.ruleForm.promotionMethod, //促销方式
202
+              F_Money: this.reductionAmount.toString(), //满减金额
203
+              F_AmountRange: this.amountRange.toString(), //金额区间
204
+              F_StartTime:
205
+                this.ruleForm.activityTime && this.ruleForm.activityTime[0], //开始时间
206
+              F_EndTime:
207
+                this.ruleForm.activityTime && this.ruleForm.activityTime[1], //结束时间
208
+              F_Commodity: this.ruleForm.boundGoods, //商品ID
209
+              F_ActivityMode: this.ruleForm.activityMode, //活动金额
210
+            };
211
+            // 添加
174 212
             if (!this.rowid) {
175
-              addFullMarketing(params).then(response => {
176
-                this.loading = false
177
-                if (response.state.toLowerCase() === 'success') {
178
-                  this.$parent.$layer.close(this.layerid)
179
-                  if (this.callid) {
180
-                    this.$parent.getOrderRecord() // 重新加载来电弹屏工单记录
181
-                  } else {
182
-                    this.$parent.btn_search() // 重新加载父级数据
213
+              addFullMarketing(params)
214
+                .then((response) => {
215
+                  this.loading = false;
216
+                  if (response.state.toLowerCase() === "success") {
217
+                    this.$parent.$layer.close(this.layerid);
218
+                    if (this.callid) {
219
+                      this.$parent.getOrderRecord(); // 重新加载来电弹屏工单记录
220
+                    } else {
221
+                      this.$parent.btn_search(); // 重新加载父级数据
222
+                    }
223
+                    this.$message.success("恭喜你,添加成功!");
183 224
                   }
184
-                  this.$message.success('恭喜你,添加成功!')
185
-                }
186
-              }).catch(() => {
187
-                this.loading = false
188
-              })
189
-              return
225
+                })
226
+                .catch(() => {
227
+                  this.loading = false;
228
+                });
229
+              return;
190 230
             }
191 231
             // 编辑
192
-            editFullMarketing(params).then(response => {
193
-              this.loading = false
194
-              if (response.state.toLowerCase() === 'success') {
195
-                this.$parent.$layer.close(this.layerid)
196
-                this.$parent.getList() // 重新加载父级数据
197
-                this.$message.success('恭喜你,编辑成功!')
198
-              }
199
-            }).catch(() => {
200
-              this.loading = false
201
-            })
202
-          })
203
-         
232
+            editFullMarketing(params)
233
+              .then((response) => {
234
+                this.loading = false;
235
+                if (response.state.toLowerCase() === "success") {
236
+                  this.$parent.$layer.close(this.layerid);
237
+                  this.$parent.getList(); // 重新加载父级数据
238
+                  this.$message.success("恭喜你,编辑成功!");
239
+                }
240
+              })
241
+              .catch(() => {
242
+                this.loading = false;
243
+              });
244
+          });
204 245
         } else {
205
-          this.$message.error('请输入有效的必填项信息!')
206
-          this.reductionAmount=[];
207
-          this.amountRange=[];
208
-          return false
246
+          this.$message.error("请输入有效的必填项信息!");
247
+          this.reductionAmount = [];
248
+          this.amountRange = [];
249
+          return false;
209 250
         }
210
-      })
251
+      });
211 252
     },
212 253
     resetForm() {
213
-      this.$refs.ruleForm.resetFields()
214
-      this.ruleForm.activityTime = ''
215
-      this.addActivityData=[]
254
+      this.$refs.ruleForm.resetFields();
255
+      this.ruleForm.activityTime = "";
256
+      this.addActivityData = [];
216 257
     },
217 258
     // 详情
218 259
     getDetail(rid) {
219
-      getFullMarketingDetail(rid).then(response => {
220
-        if (response.state.toLowerCase() === 'success') {
221
-          const res = response.data
260
+      getFullMarketingDetail(rid).then((response) => {
261
+        if (response.state.toLowerCase() === "success") {
262
+          const res = response.data;
222 263
           this.ruleForm.activityName = res.F_Name;
223 264
           this.ruleForm.promotionMethod = res.F_Describe;
224
-          this.addActivityData = res.F_Money.split(',').map((reductionAmount,i) => ({reductionAmount, amountRange: res.F_AmountRange.split(',')[i]}));
265
+          this.addActivityData = res.F_Money.split(
266
+            ","
267
+          ).map((reductionAmount, i) => ({
268
+            reductionAmount,
269
+            amountRange: res.F_AmountRange.split(",")[i],
270
+          }));
225 271
           // this.ruleForm.reductionAmount = res.F_Money;
226 272
           // this.ruleForm.amountRange = res.F_AmountRange;
227 273
           this.ruleForm.activityMode = res.F_ActivityMode;
228 274
           this.ruleForm.boundGoods = res.F_Commodity;
229
-          this.ruleForm.activityTime = [res.F_StartTime,res.F_EndTime];
275
+          this.ruleForm.activityTime = [res.F_StartTime, res.F_EndTime];
230 276
         }
231
-      })
277
+      });
232 278
     },
233 279
     //获取绑定商品
234
-    getShopList(){
235
-      getshopping({CLass:3}).then(response =>{
236
-        if(response.state.toLowerCase() == 'success'){
237
-          this.shopList=response.data
238
-        }
239
-      }).catch(result=>{
240
-        console.log(result)
241
-      })
280
+    getShopList() {
281
+      getshopping({ CLass: 3 })
282
+        .then((response) => {
283
+          if (response.state.toLowerCase() == "success") {
284
+            this.shopList = response.data;
285
+          }
286
+        })
287
+        .catch((result) => {
288
+          console.log(result);
289
+        });
242 290
     },
243 291
     //添加活动方法
244 292
     addActivity() {
245
-      if(!this.ruleForm.amountRange||!this.ruleForm.reductionAmount){
246
-        this.$message.error('请填写金额数据')
247
-        return
293
+      if (!this.ruleForm.amountRange || !this.ruleForm.reductionAmount) {
294
+        this.$message.error("请填写金额数据");
295
+        return;
248 296
       }
249 297
       this.addActivityData.push({
250
-        amountRange:this.ruleForm.amountRange,//满减区间
251
-        reductionAmount:this.ruleForm.reductionAmount,//满减金额
252
-        key: Date.now()
298
+        amountRange: this.ruleForm.amountRange, //满减区间
299
+        reductionAmount: this.ruleForm.reductionAmount, //满减金额
300
+        key: Date.now(),
253 301
       });
254
-      this.ruleForm.amountRange='';
255
-      this.ruleForm.reductionAmount='';
302
+      this.ruleForm.amountRange = "";
303
+      this.ruleForm.reductionAmount = "";
256 304
     },
257 305
     //删除活动方法
258 306
     removeActivity(itemId) {
259
-      var index = this.addActivityData.findIndex(item=>{
260
-       return item.key == itemId
261
-      })
307
+      var index = this.addActivityData.findIndex((item) => {
308
+        return item.key == itemId;
309
+      });
262 310
       if (index !== -1) {
263
-        this.addActivityData.splice(index, 1)
311
+        this.addActivityData.splice(index, 1);
264 312
       }
265 313
     },
266
-  }
267
-}
314
+  },
315
+};
268 316
 </script>
269 317
 
270 318
 <style rel="stylesheet/scss" lang="scss">
271 319
 .order_form {
272 320
   .form_select {
273
-  	width: 100%;
321
+    width: 100%;
274 322
   }
275 323
   .form_date {
276 324
     width: 100%;
277 325
   }
278 326
 }
279
-.money{
280
-  color: #F56C6C;
327
+.money {
328
+  color: #f56c6c;
281 329
   margin-left: 4px;
282 330
 }
283
-.info{
284
-  color: #C0C4CC;
331
+.info {
332
+  color: #c0c4cc;
285 333
   font-size: 12px;
286 334
   margin-left: 5px;
287 335
 }

+ 1 - 1
CallCenterWeb.UI/src/views/marketingManagement/fullGiveMarketing/components/addOrEdit.vue

@@ -218,7 +218,7 @@ export default {
218 218
           const res = response.data
219 219
           this.ruleForm.policyName = res.F_Name;
220 220
           this.ruleForm.promotionSpecifications = res.F_PromotionRules;
221
-          this.ruleForm.bundledGifts = res.F_Gift?res.F_Gift.split(',').map(Number):[];
221
+          this.ruleForm.bundledGifts = res.F_Gift?res.F_Gift.split(','):[];
222 222
           this.ruleForm.policyDescription = res.F_Describe;
223 223
           this.ruleForm.boundGoods = res.F_Commodity;
224 224
           this.ruleForm.applicableMember = res.F_Member?(res.F_Member-0):'';

+ 1 - 1
CallCenterWeb.UI/src/views/memberManagement/fileTranser/handle.vue

@@ -2,7 +2,7 @@
2 2
   <div v-loading="loading">
3 3
     <el-form ref="ruleForm" :model="ruleForm"  label-width="150px" class="order_form">
4 4
       <el-form-item label="是否同意转移" prop="F_Name">
5
-           <el-select v-model="ruleForm.value" clearable placeholder="请选择" @change="handle">
5
+           <el-select v-model="ruleForm.value" placeholder="请选择(默认为同意)" @change="handle">
6 6
                 <el-option label="同意" value="0"></el-option>
7 7
                 <el-option label="拒绝" value="1"></el-option>
8 8
             </el-select>

+ 2 - 2
CallCenterWeb.UI/src/views/memberManagement/memberList/components/addOrEdit.vue

@@ -164,14 +164,14 @@ export default {
164 164
           {
165 165
             required: true,
166 166
             trigger: "blur",
167
-            message: "请输入客户名"
167
+            message: "请输入客户名"
168 168
           }
169 169
         ],
170 170
         F_Phone: [
171 171
           {
172 172
             required: true,
173 173
             trigger: "blur",
174
-            message: "请输入固定电话"
174
+            message: "请输入联系方式"
175 175
           }
176 176
         ]
177 177
       },

+ 2 - 2
CallCenterWeb.UI/src/views/noteManagement/SMStemplate/index.vue

@@ -11,8 +11,8 @@
11 11
     <el-table v-loading="loading" :data="dataLists" border stripe @selection-change="changeSelects">
12 12
       <el-table-column type="selection" width="40" fixed></el-table-column>
13 13
       <el-table-column type="index" label="编号" align="center" fixed width="80"/>
14
-      <el-table-column prop="F_ModelName" label="名称" align="center" min-width=""/>
15
-      <el-table-column prop="F_Content" label="内容" align="center" min-width=""/>
14
+      <el-table-column prop="F_ModelName" label="模板名称" align="center" min-width=""/>
15
+      <el-table-column prop="F_Content" label="模板内容" align="center" min-width=""/>
16 16
       <el-table-column prop="F_Tel" label="400电话" align="center" min-width=""/>
17 17
       <el-table-column prop="F_AddUserName" label="添加人" align="center" min-width=""/>
18 18
       <el-table-column prop="F_AddTime" label="添加时间" align="center" min-width=""/>

+ 28 - 29
CallCenterWeb.UI/src/views/reportFormManagement/teamPerformance/add.vue

@@ -2,15 +2,22 @@
2 2
   <div v-loading="loading">
3 3
     <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="100px">
4 4
       <el-form-item label="时间" prop="date">
5
-        <el-date-picker v-model="ruleForm.date" value-format="yyyy-MM" type="month" placeholder="请选择时间"></el-date-picker>
5
+        <el-date-picker
6
+          v-model="ruleForm.date"
7
+          value-format="yyyy-MM"
8
+          type="month"
9
+          placeholder="请选择时间"
10
+        ></el-date-picker>
6 11
       </el-form-item>
7 12
       <el-form-item label="部门" prop="department">
8 13
         <el-cascader
9
-    v-model="ruleForm.department"
10
-    placeholder="请选择部门"
11
-    clearable
12
-    :props="prop"
13
-    :options="departmentData"></el-cascader>
14
+          v-model="ruleForm.department"
15
+          placeholder="请选择部门"
16
+          clearable
17
+          change-on-select
18
+          :props="prop"
19
+          :options="departmentData"
20
+        ></el-cascader>
14 21
       </el-form-item>
15 22
       <el-form-item label="团队" prop="team">
16 23
         <el-select v-model="ruleForm.team" clearable placeholder="请选择团队">
@@ -37,8 +44,10 @@
37 44
 </template>
38 45
 
39 46
 <script>
40
-import { addTodo, editTodo, getTodo } from "@/api/todoManagement/todoList";
41
-import { addTeamPerformance,getTeamPerformanceDetail } from "@/api/reportFormManagement/teamPerformance/teamPerformance";
47
+import {
48
+  addTeamPerformance,
49
+  getTeamPerformanceDetail,
50
+} from "@/api/reportFormManagement/teamPerformance/teamPerformance";
42 51
 import { getDepartmentList } from "@/api/systemSetup/roleSetting/department";
43 52
 import { getTeamLists } from "@/api/systemSetup/sysSetting/teamManagement";
44 53
 import { filterContent } from "@/utils";
@@ -88,10 +97,10 @@ export default {
88 97
           },
89 98
         ],
90 99
       },
91
-      prop:{
92
-        label:'F_DeptName',
93
-        value:'F_DeptId',
94
-        children:'children'
100
+      prop: {
101
+        label: "F_DeptName",
102
+        value: "F_DeptId",
103
+        children: "children",
95 104
       },
96 105
       teamData: [], //团队数据
97 106
       loading: false,
@@ -113,7 +122,9 @@ export default {
113 122
           const datas = {
114 123
             date: this.ruleForm.date,
115 124
             teamid: this.ruleForm.team,
116
-            deptid: this.ruleForm.department[this.ruleForm.department.length-1],
125
+            deptid: this.ruleForm.department[
126
+              this.ruleForm.department.length - 1
127
+            ],
117 128
             isstrong: this.ruleForm.isUpdate,
118 129
           };
119 130
 
@@ -133,19 +144,6 @@ export default {
133 144
               });
134 145
             return;
135 146
           }
136
-          // 编辑
137
-          editTodo(datas)
138
-            .then((response) => {
139
-              this.loading = false;
140
-              if (response.state.toLowerCase() === "success") {
141
-                this.$parent.$layer.close(this.layerid);
142
-                this.$parent.getList(); // 重新加载父级数据
143
-                this.$message.success("恭喜你,待办信息编辑成功!");
144
-              }
145
-            })
146
-            .catch(() => {
147
-              this.loading = false;
148
-            });
149 147
         } else {
150 148
           this.$message.error("请输入有效的必填项信息!");
151 149
           return false;
@@ -167,9 +165,9 @@ export default {
167 165
     //获取部门信息
168 166
     getDepartment() {
169 167
       getDepartmentList().then((response) => {
170
-        response.map(item=>{
171
-          if(item.F_DeptName=="销售"){
172
-            this.departmentData.push(item)
168
+        response.map((item) => {
169
+          if (item.F_DeptId == "1") {
170
+            this.departmentData.push(item);
173 171
           }
174 172
         });
175 173
         this.departmentData.unshift(
@@ -189,6 +187,7 @@ export default {
189 187
       const params = {
190 188
         pageindex: 1,
191 189
         pagesize: 100,
190
+        deptid:'1'
192 191
       };
193 192
       getTeamLists(params).then((response) => {
194 193
         if (response.state == "success") {

+ 24 - 9
CallCenterWeb.UI/src/views/reportFormManagement/teamPerformance/index.vue

@@ -18,6 +18,8 @@
18 18
         v-model="department"
19 19
         placeholder="请选择部门"
20 20
         clearable
21
+        change-on-select
22
+        @change="handleTeam"
21 23
         :props="prop"
22 24
         :options="departmentData"
23 25
       ></el-cascader>
@@ -50,10 +52,11 @@
50 52
       <!-- <el-table-column type="selection" width="40" fixed></el-table-column> -->
51 53
       <el-table-column type="index" label="编号" align="center" fixed width="80" />
52 54
       <el-table-column prop="F_Dept" label="部门" align="center" min-width />
53
-      <el-table-column prop="F_Post" label="职务" align="center" min-width />
54
-      <el-table-column prop="F_Type" label="销售类型" align="center" min-width />
55
+      <el-table-column prop="F_Team" label="团队" align="center" min-width />
56
+      <!-- <el-table-column prop="F_Post" label="职务" align="center" min-width /> -->
57
+      <!-- <el-table-column prop="F_Type" label="销售类型" align="center" min-width /> -->
55 58
       <el-table-column prop="F_TaskRate" label="任务完成比例" align="center" min-width />
56
-      <el-table-column prop="F_CallTotleNumber" label="总单线" align="center" min-width />
59
+      <!-- <el-table-column prop="F_CallTotleNumber" label="总单线" align="center" min-width /> -->
57 60
       <el-table-column prop="F_SendTotleNumber" label="发货总单数" align="center" min-width />
58 61
       <el-table-column prop="F_TotleMoney" label="发货总金额" align="center" min-width />
59 62
       <el-table-column prop="F_SignNumber" label="签收总单数" align="center" min-width />
@@ -63,21 +66,21 @@
63 66
       <el-table-column prop="F_RefuseNumber" label="拒收单数" align="center" min-width />
64 67
       <el-table-column prop="F_RefuseMoney" label="拒收金额" align="center" min-width />
65 68
       <el-table-column prop="F_SignRate" label="签收率" align="center" min-width />
66
-      <el-table-column prop="F_ErrorNumber" label="录错单数" align="center" min-width />
69
+      <!-- <el-table-column prop="F_ErrorNumber" label="录错单数" align="center" min-width /> -->
67 70
       <el-table-column prop="F_ErrorMoney" label="录错金额" align="center" min-width />
68
-      <el-table-column prop="F_AfterNumber" label="售后单数" align="center" min-width />
71
+      <!-- <el-table-column prop="F_AfterNumber" label="售后单数" align="center" min-width /> -->
69 72
       <el-table-column prop="F_AfterMoney" label="售后金额" align="center" min-width />
70 73
       <el-table-column prop="F_AlongMoney" label="鞋垫/袜子金额" align="center" min-width />
71 74
       <!-- <el-table-column prop="F_CreateTime" label="创建时间" align="center" min-width=""/> -->
72 75
       <el-table-column label="操作" width="170" align="center" class-name="oparate_btn" fixed="right">
73 76
         <template slot-scope="scope">
74
-          <el-button
77
+          <!-- <el-button
75 78
             v-permission="'HY_edit'"
76 79
             size="mini"
77 80
             plain
78 81
             type="primary"
79 82
             @click="btn_edit(scope.row.F_Id)"
80
-          >编辑</el-button>
83
+          >编辑</el-button> -->
81 84
           <!-- <el-button
82 85
             v-permission="'HY_detail'"
83 86
             size="mini"
@@ -127,6 +130,7 @@ export default {
127 130
       searchTime: "",
128 131
       team: "",
129 132
       department: [],
133
+      valNum: [],
130 134
       departmentData: [], //部门数据
131 135
       teamData: [], //团队数据
132 136
       searchDate: "",
@@ -272,7 +276,7 @@ export default {
272 276
     getDepartment() {
273 277
       getDepartmentList().then((response) => {
274 278
         response.map((item) => {
275
-          if (item.F_DeptName == "销售") {
279
+          if (item.F_DeptId == "1") {
276 280
             this.departmentData.push(item);
277 281
           }
278 282
         });
@@ -288,16 +292,26 @@ export default {
288 292
         );
289 293
       });
290 294
     },
295
+    handleTeam(val){
296
+      if(val.toString()==0||val.toString()==-1){
297
+         this.valNum=[1]
298
+      }else{
299
+         this.valNum=val
300
+      }
301
+      this.getTeam()
302
+    },
291 303
     //获取团队信息
292 304
     getTeam() {
293 305
       const params = {
294 306
         pageindex: 1,
295 307
         pagesize: 100,
308
+        deptid:this.valNum.length>0?this.valNum[this.valNum.length-1]:'1'
296 309
       };
297 310
       getTeamLists(params).then((response) => {
298 311
         if (response.state == "success") {
299 312
           this.teamData = response.data.Rows;
300
-          this.teamData.unshift(
313
+          if(response.data.Rows.length>0){
314
+            this.teamData.unshift(
301 315
             {
302 316
               F_Id: 0,
303 317
               F_Name: "全部",
@@ -307,6 +321,7 @@ export default {
307 321
               F_Name: "不更新",
308 322
             }
309 323
           );
324
+          }
310 325
         }
311 326
       });
312 327
     },

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

@@ -36,7 +36,7 @@
36 36
       <el-table-column prop="F_Group" label="组别" align="center" min-width=""/>
37 37
       <el-table-column prop="F_Remark" label="说明" align="center" min-width=""/>
38 38
       <el-table-column prop="F_ZBTime" label="值班时间" align="center" min-width=""/>
39
-      <el-table-column prop="F_LastModifyOn" label="最后呼入时间" align="center" min-width=""/>
39
+      <el-table-column prop="F_LastModifyOn" label="最后修改时间" align="center" min-width=""/>
40 40
       <el-table-column prop="F_CreateBy" label="创建人" align="center" min-width=""/>
41 41
       <el-table-column prop="F_CreateOn" label="创建时间" align="center" min-width=""/>
42 42
       <el-table-column label="操作" width="160" align="center" class-name="oparate_btn" fixed="right">

+ 1 - 0
CallCenterWeb.UI/src/views/todoManagement/todoList/addOrEdit.vue

@@ -243,6 +243,7 @@ export default {
243 243
             this.showSchedule=false;
244 244
             this.showContacts=true;
245 245
           }
246
+          this.ruleForm.type=res.F_Type;
246 247
           this.ruleForm.state=res.F_State;
247 248
           this.ruleForm.isRemind=res.F_IsRemind.toString();
248 249
           this.ruleForm.remindDate=res.F_Remindertime;

+ 1 - 1
CallCenterWeb.UI/src/views/todoManagement/todoList/index.vue

@@ -28,7 +28,7 @@
28 28
     <el-table v-loading="loading" :data="dataLists" border stripe @selection-change="changeSelects">
29 29
       <el-table-column type="selection" width="40" fixed></el-table-column>
30 30
       <el-table-column type="index" label="编号" align="center" fixed width="80"/>
31
-      <el-table-column label="类" align="center" min-width="">
31
+      <el-table-column label="类" align="center" min-width="">
32 32
         <template slot-scope="scope">
33 33
           <el-tag v-if="scope.row.F_Type==0">日程</el-tag>
34 34
           <el-tag v-else>待联系人</el-tag>

BIN
CallCenterWeb.UI/static/xls/daibanguanli.xlsx