liuyifan 5 年 前
コミット
371f510a23

+ 0 - 14
CallCenterWeb.UI/src/views/commodityManagement/commodityList/components/addOrEdit.vue

@@ -212,13 +212,6 @@ export default {
212 212
             message: "请输入商品名称",
213 213
           },
214 214
         ],
215
-        ProductShortName: [
216
-          {
217
-            required: true,
218
-            trigger: "blur",
219
-            message: "请输入商品副标题",
220
-          },
221
-        ],
222 215
         ProductNumber: [
223 216
           {
224 217
             required: true,
@@ -260,13 +253,6 @@ export default {
260 253
         //   type: 'number',
261 254
         //   message: '特惠价格必须为数字'
262 255
         // }],
263
-        PinyinShort: [
264
-          {
265
-            required: true,
266
-            trigger: "blur",
267
-            message: "请输入拼音简写",
268
-          },
269
-        ],
270 256
       },
271 257
       updateForm: {
272 258
         categoriesPlaceholder: "请选择商品分类",

+ 3 - 3
CallCenterWeb.UI/src/views/commodityManagement/commodityList/components/searchFilter.vue

@@ -5,7 +5,7 @@
5 5
     <el-input v-model="searchDatas.productName" placeholder="商品名称" class="filter-item"></el-input>
6 6
     <el-input v-model="searchDatas.pinyinShort" placeholder="拼音简写" class="filter-item"></el-input>
7 7
     <el-input v-model="searchDatas.productNumber" placeholder="商品款号" class="filter-item"></el-input>
8
-    <el-input v-model="searchDatas.productShortName" placeholder="商品副标题" class="filter-item"></el-input>
8
+    <!-- <el-input v-model="searchDatas.productShortName" placeholder="商品简码" class="filter-item"></el-input> -->
9 9
     <el-select v-model="searchDatas.tag" placeholder="请选择商品标签" class="filter-item form_select" clearable>
10 10
       <el-option v-for="item in commodityLabelLists" :key="item.F_ID" :label="item.F_TagName" :value="item.F_TagName" />
11 11
     </el-select>
@@ -49,7 +49,7 @@ export default {
49 49
           productName: "", //商品名称
50 50
           pinyinShort: "", //拼音缩写
51 51
           productNumber: "", //商品编码
52
-          productShortName: "", //商品副标题
52
+          productShortName: "", //商品简码
53 53
           tag: "", //商品标签
54 54
         }
55 55
       },
@@ -179,7 +179,7 @@ export default {
179 179
           parent: this, // 当前的vue对象
180 180
           data: { rowid: "" }, // props//该方法会自动添加一个key为layerid的值, 该值为创建层的id, 可以直接使用
181 181
         },
182
-        area: ["30%", "30%"],
182
+        area: ["40%", "40%"],
183 183
         shadeClose: false,
184 184
         title: "导入商品",
185 185
       })

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

@@ -4,61 +4,32 @@
4 4
       <el-form-item label="政策名称" prop="policyName">
5 5
         <el-input v-model="ruleForm.policyName" placeholder="请输入政策名称"></el-input>
6 6
       </el-form-item>
7
-      <el-form-item label="促销规则" prop="promotionSpecifications">
7
+      <!-- <el-form-item label="促销规则" prop="promotionSpecifications">
8 8
         <el-select v-model="ruleForm.promotionSpecifications" clearable placeholder="请选择促销方式">
9 9
           <el-option label="按总件数" value="按总件数"></el-option>
10 10
           <el-option label="按总金额" value="按总金额"></el-option>
11 11
         </el-select>
12
-        <!-- <el-input v-model="ruleForm.promotionSpecifications" placeholder="请输入促销规则"></el-input> -->
13 12
       </el-form-item>
14 13
       <el-form-item label="绑定赠品" prop="bundledGifts">
15 14
         <el-select v-model="ruleForm.bundledGifts" multiple placeholder="请选择绑定赠品" label-width="90px">
16
-          <el-option
17
-            v-for="item in giftsList"
18
-            :key="item.F_ProductId"
19
-            :label="item.F_ProductName"
20
-            :value="item.F_ProductId">
21
-          </el-option>
15
+          <el-option v-for="item in giftsList" :key="item.F_ProductId" :label="item.F_ProductName" :value="item.F_ProductId"> </el-option>
22 16
         </el-select>
23
-        <!-- <el-input v-model="ruleForm.bundledGifts" placeholder="请输入绑定赠品"></el-input> -->
24
-      </el-form-item>
17
+      </el-form-item> -->
25 18
       <el-form-item label="政策描述" prop="policyDescription">
26 19
         <el-input v-model="ruleForm.policyDescription" placeholder="请输入政策描述"></el-input>
27 20
       </el-form-item>
28 21
       <el-form-item label="政策有效期" prop="lateValidity">
29
-        <el-date-picker
30
-        v-model="ruleForm.lateValidity"
31
-        :picker-options="pickerOptions"
32
-        class="filter-item"
33
-        type="daterange"
34
-        format="yyyy年MM月dd日"
35
-        value-format="yyyy-MM-dd"
36
-        align="left"
37
-        unlink-panels
38
-        range-separator="至"
39
-        start-placeholder="开始日期"
40
-        end-placeholder="结束日期"
41
-      />
22
+        <el-date-picker v-model="ruleForm.lateValidity" :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="结束日期" />
42 23
         <!-- <el-date-picker v-model="ruleForm.lateValidity" type="date" placeholder="请选择延迟有效期" class="form_date"></el-date-picker> -->
43 24
       </el-form-item>
44 25
       <el-form-item label="适用会员" prop="applicableMember">
45 26
         <el-select v-model="ruleForm.applicableMember" clearable placeholder="请选择会员标签">
46
-          <el-option
47
-            v-for="item in memeberList"
48
-            :key="item.F_ID"
49
-            :label="item.F_Name"
50
-            :value="item.F_ID">
51
-          </el-option>
27
+          <el-option v-for="item in memeberList" :key="item.F_ID" :label="item.F_Name" :value="item.F_ID"> </el-option>
52 28
         </el-select>
53 29
       </el-form-item>
54 30
       <el-form-item label="绑定商品标签" prop="boundGoods">
55 31
         <el-select v-model="ruleForm.boundGoods" clearable placeholder="请选择绑定商品标签">
56
-          <el-option
57
-            v-for="item in shopList"
58
-            :key="item.F_TagName"
59
-            :label="item.F_TagName"
60
-            :value="item.F_TagName">
61
-          </el-option>
32
+          <el-option v-for="item in shopList" :key="item.F_TagName" :label="item.F_TagName" :value="item.F_TagName"> </el-option>
62 33
         </el-select>
63 34
         <!-- <el-input v-model="ruleForm.boundGoods" placeholder="请输入绑定商品"></el-input> -->
64 35
       </el-form-item>
@@ -74,201 +45,214 @@
74 45
 </template>
75 46
 
76 47
 <script>
77
-import { getProviceCity, getDictionary } from '@/api/commonAPI'
78
-import { getFullMarketingDetail, addFullMarketing, editFullMarketing,getGifts,getshopping } from '@/api/marketingManagement/fullGiveMarketing'
79
-import { getLabelLists} from '@/api/memberManagement/memberList'
80
-import { validateTel } from '@/utils/validate'
81
-import { filterContent,pickerOptions } from '@/utils'
48
+import { getProviceCity, getDictionary } from "@/api/commonAPI"
49
+import { getFullMarketingDetail, addFullMarketing, editFullMarketing, getGifts, getshopping } from "@/api/marketingManagement/fullGiveMarketing"
50
+import { getLabelLists } from "@/api/memberManagement/memberList"
51
+import { validateTel } from "@/utils/validate"
52
+import { filterContent, pickerOptions } from "@/utils"
82 53
 
83 54
 export default {
84
-  name: 'AddOrEdit',
55
+  name: "AddOrEdit",
85 56
   props: {
86 57
     rowid: {
87 58
       type: String,
88
-      default: ''
59
+      default: "",
89 60
     },
90 61
     callid: {
91 62
       type: Number,
92
-      default: 0
63
+      default: 0,
93 64
     },
94 65
     layerid: {
95 66
       type: String,
96
-      default: ''
97
-    }
67
+      default: "",
68
+    },
98 69
   },
99 70
   data() {
100 71
     return {
101
-      props: { // 自定义省市下拉数据的key值
102
-        value: 'code',
103
-        label: 'name',
104
-        children: 'entityJson'
72
+      props: {
73
+        // 自定义省市下拉数据的key值
74
+        value: "code",
75
+        label: "name",
76
+        children: "entityJson",
105 77
       },
106
-      pickerOptions ,// 日期数据
78
+      pickerOptions, // 日期数据
107 79
       ruleForm: {
108
-        unique_id: '', //		否	string	callid
109
-        ordercode: '',
110
-        policyName: '', //政策名称
111
-        promotionSpecifications: '', //促销规则
80
+        unique_id: "", //		否	string	callid
81
+        ordercode: "",
82
+        policyName: "", //政策名称
83
+        promotionSpecifications: "", //促销规则
112 84
         bundledGifts: [], //绑定赠品
113
-        policyDescription: '', //政策描述
114
-        lateValidity: '', //延迟有效期
115
-        applicableMember: '', //适用会员
116
-        applicableMemberId: '', //适用会员id
117
-        boundGoods: '', //绑定商品
118
-        money: '', //活动金额
85
+        policyDescription: "", //政策描述
86
+        lateValidity: "", //延迟有效期
87
+        applicableMember: "", //适用会员
88
+        applicableMemberId: "", //适用会员id
89
+        boundGoods: "", //绑定商品
90
+        money: "", //活动金额
119 91
       },
120
-      memeberList:[],//会员标签
121
-      giftsList:[],//绑定赠品数据
122
-      shopList:[],//绑定商品数据
92
+      memeberList: [], //会员标签
93
+      giftsList: [], //绑定赠品数据
94
+      shopList: [], //绑定商品数据
123 95
       rules: {
124
-        policyName: [{
125
-          required: true,
126
-          trigger: 'blur',
127
-          message: '请输入政策名称',
128
-        }],
129
-        lateValidity: [{
130
-          required: true,
131
-          trigger: 'blur',
132
-          message: '请输入政策有效期',
133
-        }],
96
+        policyName: [
97
+          {
98
+            required: true,
99
+            trigger: "blur",
100
+            message: "请输入政策名称",
101
+          },
102
+        ],
103
+        lateValidity: [
104
+          {
105
+            required: true,
106
+            trigger: "blur",
107
+            message: "请输入政策有效期",
108
+          },
109
+        ],
134 110
       },
135
-      loading: false
111
+      loading: false,
136 112
     }
137 113
   },
138 114
   created() {
139
-    this.getLable();//获取会员标签
140
-    this.getGiftsList();//获取绑定赠品
141
-    this.getShopList();//获取绑定商品
115
+    this.getLable() //获取会员标签
116
+    this.getGiftsList() //获取绑定赠品
117
+    this.getShopList() //获取绑定商品
142 118
     if (this.callid) {
143 119
       this.ruleForm.unique_id = this.callid
144 120
     }
145
-    Promise.all([])
146
-      .then(() => {
147
-        if (this.rowid) {
148
-          this.ruleForm.ordercode = this.rowid
149
-          this.getDetail(this.rowid)
150
-        }
151
-      })
121
+    Promise.all([]).then(() => {
122
+      if (this.rowid) {
123
+        this.ruleForm.ordercode = this.rowid
124
+        this.getDetail(this.rowid)
125
+      }
126
+    })
152 127
   },
153 128
   methods: {
154 129
     submitForm() {
155 130
       this.$refs.ruleForm.validate((valid) => {
156 131
         if (valid) {
157
-          this.ruleForm.content = filterContent.delHtmlTag(this.ruleForm.content)// 保存内容时去掉 html 标签
132
+          this.ruleForm.content = filterContent.delHtmlTag(this.ruleForm.content) // 保存内容时去掉 html 标签
158 133
           this.loading = true
159
-          return new Promise(resolve =>{
134
+          return new Promise((resolve) => {
160 135
             const params = {
161
-              F_Type:1,
162
-              F_ID:this.rowid ? this.rowid : '',
163
-              F_Name:this.ruleForm.policyName,//政策名称
164
-              F_PromotionRules:this.ruleForm.promotionSpecifications,//促销规则
165
-              F_Gift:this.ruleForm.bundledGifts.toString(),//绑定赠品
166
-              F_Describe:this.ruleForm.policyDescription,//政策描述
167
-              F_StartTime:this.ruleForm.lateValidity && this.ruleForm.lateValidity[0],//政策开始时间
168
-              F_EndTime:this.ruleForm.lateValidity && this.ruleForm.lateValidity[1],//政策结束时间
169
-              F_Member:this.ruleForm.applicableMember,//会员ID
170
-              F_Commodity:this.ruleForm.boundGoods,//商品ID
171
-              F_Money:this.ruleForm.money,//活动金额
136
+              F_Type: 1,
137
+              F_ID: this.rowid ? this.rowid : "",
138
+              F_Name: this.ruleForm.policyName, //政策名称
139
+              F_PromotionRules: this.ruleForm.promotionSpecifications, //促销规则
140
+              F_Gift: this.ruleForm.bundledGifts.toString(), //绑定赠品
141
+              F_Describe: this.ruleForm.policyDescription, //政策描述
142
+              F_StartTime: this.ruleForm.lateValidity && this.ruleForm.lateValidity[0], //政策开始时间
143
+              F_EndTime: this.ruleForm.lateValidity && this.ruleForm.lateValidity[1], //政策结束时间
144
+              F_Member: this.ruleForm.applicableMember, //会员ID
145
+              F_Commodity: this.ruleForm.boundGoods, //商品ID
146
+              F_Money: this.ruleForm.money, //活动金额
172 147
             }
173 148
             // 添加
174 149
             if (!this.rowid) {
175
-              addFullMarketing(params).then(response => {
150
+              addFullMarketing(params)
151
+                .then((response) => {
152
+                  this.loading = false
153
+                  if (response.state.toLowerCase() === "success") {
154
+                    this.$parent.$layer.close(this.layerid)
155
+                    if (this.callid) {
156
+                      this.$parent.getOrderRecord() // 重新加载来电弹屏工单记录
157
+                    } else {
158
+                      this.$parent.btn_search() // 重新加载父级数据
159
+                    }
160
+                    this.$message.success("恭喜你,添加成功!")
161
+                  }
162
+                })
163
+                .catch(() => {
164
+                  this.loading = false
165
+                })
166
+              return
167
+            }
168
+            // 编辑
169
+            editFullMarketing(params)
170
+              .then((response) => {
176 171
                 this.loading = false
177
-                if (response.state.toLowerCase() === 'success') {
172
+                if (response.state.toLowerCase() === "success") {
178 173
                   this.$parent.$layer.close(this.layerid)
179
-                  if (this.callid) {
180
-                    this.$parent.getOrderRecord() // 重新加载来电弹屏工单记录
181
-                  } else {
182
-                    this.$parent.btn_search() // 重新加载父级数据
183
-                  }
184
-                  this.$message.success('恭喜你,添加成功!')
174
+                  this.$parent.getList() // 重新加载父级数据
175
+                  this.$message.success("恭喜你,编辑成功!")
185 176
                 }
186
-              }).catch(() => {
177
+              })
178
+              .catch(() => {
187 179
                 this.loading = false
188 180
               })
189
-              return
190
-            }
191
-            // 编辑
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 181
           })
203
-          
204 182
         } else {
205
-          this.$message.error('请输入有效的必填项信息!')
183
+          this.$message.error("请输入有效的必填项信息!")
206 184
           return false
207 185
         }
208 186
       })
209 187
     },
210 188
     resetForm() {
211 189
       this.$refs.ruleForm.resetFields()
212
-      this.ruleForm.lateValidity=''
190
+      this.ruleForm.lateValidity = ""
213 191
     },
214 192
     // 详情
215 193
     getDetail(rid) {
216
-      getFullMarketingDetail(rid).then(response => {
217
-        if (response.state.toLowerCase() === 'success') {
194
+      getFullMarketingDetail(rid).then((response) => {
195
+        if (response.state.toLowerCase() === "success") {
218 196
           const res = response.data
219
-          this.ruleForm.policyName = res.F_Name;
220
-          this.ruleForm.promotionSpecifications = res.F_PromotionRules;
221
-          this.ruleForm.bundledGifts = res.F_Gift?res.F_Gift.split(','):[];
222
-          this.ruleForm.policyDescription = res.F_Describe;
223
-          this.ruleForm.boundGoods = res.F_Commodity;
224
-          this.ruleForm.applicableMember = res.F_Member?(res.F_Member-0):'';
197
+          this.ruleForm.policyName = res.F_Name
198
+          this.ruleForm.promotionSpecifications = res.F_PromotionRules
199
+          this.ruleForm.bundledGifts = res.F_Gift ? res.F_Gift.split(",") : []
200
+          this.ruleForm.policyDescription = res.F_Describe
201
+          this.ruleForm.boundGoods = res.F_Commodity
202
+          this.ruleForm.applicableMember = res.F_Member ? res.F_Member - 0 : ""
225 203
           // this.ruleForm.applicableMemberId = res.F_Member?res.F_Member:'';
226
-          this.ruleForm.money = res.F_Money;
227
-          this.ruleForm.lateValidity = [res.F_StartTime,res.F_EndTime];
204
+          this.ruleForm.money = res.F_Money
205
+          this.ruleForm.lateValidity = [res.F_StartTime, res.F_EndTime]
228 206
         }
229 207
       })
230 208
     },
231 209
     //获取会员标签
232
-    getLable(){
233
-      getLabelLists().then(response =>{
234
-        if(response.state.toLowerCase() == 'success'){
235
-          this.memeberList=response.rows.Rows
236
-        }
237
-      }).catch(result=>{
238
-        console.log(result)
239
-      })
210
+    getLable() {
211
+      getLabelLists()
212
+        .then((response) => {
213
+          if (response.state.toLowerCase() == "success") {
214
+            this.memeberList = response.rows.Rows
215
+          }
216
+        })
217
+        .catch((result) => {
218
+          console.log(result)
219
+        })
240 220
     },
241 221
     //获取绑定赠品
242
-    getGiftsList(){
243
-      getGifts({IsSale:0}).then(response =>{
244
-        if(response.state.toLowerCase() == 'success'){
245
-          this.giftsList=response.data.Rows
246
-        }
247
-      }).catch(result=>{
248
-        console.log(result)
249
-      })
222
+    getGiftsList() {
223
+      getGifts({ IsSale: 0 })
224
+        .then((response) => {
225
+          if (response.state.toLowerCase() == "success") {
226
+            this.giftsList = response.data.Rows
227
+          }
228
+        })
229
+        .catch((result) => {
230
+          console.log(result)
231
+        })
250 232
     },
251 233
     //获取绑定商品
252
-    getShopList(){
253
-      getshopping({CLass:3}).then(response =>{
254
-        if(response.state.toLowerCase() == 'success'){
255
-          this.shopList=response.data
256
-        }
257
-      }).catch(result=>{
258
-        console.log(result)
259
-      })
234
+    getShopList() {
235
+      getshopping({ CLass: 3 })
236
+        .then((response) => {
237
+          if (response.state.toLowerCase() == "success") {
238
+            this.shopList = response.data
239
+          }
240
+        })
241
+        .catch((result) => {
242
+          console.log(result)
243
+        })
260 244
     },
261
-  }
245
+  },
262 246
 }
263 247
 </script>
264 248
 
265 249
 <style rel="stylesheet/scss" lang="scss">
266 250
 .order_form {
267 251
   .form_select {
268
-  	width: 100%;
252
+    width: 100%;
269 253
   }
270 254
   .form_date {
271 255
     width: 100%;
272 256
   }
273 257
 }
274
-</style>
258
+</style>

+ 63 - 69
CallCenterWeb.UI/src/views/marketingManagement/fullGiveMarketing/index.vue

@@ -6,15 +6,15 @@
6 6
         <span slot="label">{{ item.label }}</span>
7 7
         <el-table v-loading="loading" :data="dataLists" border stripe @selection-change="changeSelects">
8 8
           <!-- <el-table-column type="selection" width="40"></el-table-column> -->
9
-          <el-table-column prop="F_Name" label="政策名称" align="center"  width=""></el-table-column>
10
-          <el-table-column prop="F_PromotionRules" label="促销规则" align="center"  width=""></el-table-column>
11
-          <el-table-column prop="F_GiftName" label="绑定赠品" align="center"  width=""></el-table-column>
12
-          <el-table-column prop="F_Describe" label="政策描述" align="center"  width=""></el-table-column>
13
-          <el-table-column prop="F_StartTime" label="开始时间" align="center"  width=""></el-table-column>
14
-          <el-table-column prop="F_EndTime" label="结束时间" align="center"  width=""></el-table-column>
15
-          <el-table-column prop="F_MemberName" label="适用会员" align="center"  width=""></el-table-column>
16
-          <el-table-column prop="F_Commodity" label="绑定商品" align="center"  width=""></el-table-column>
17
-          <el-table-column prop="F_Money" label="活动金额" align="center"  width=""></el-table-column>
9
+          <el-table-column prop="F_Name" label="政策名称" align="center" width=""></el-table-column>
10
+          <el-table-column prop="F_PromotionRules" label="促销规则" align="center" width=""></el-table-column>
11
+          <el-table-column prop="F_GiftName" label="绑定赠品" align="center" width=""></el-table-column>
12
+          <el-table-column prop="F_Describe" label="政策描述" align="center" width=""></el-table-column>
13
+          <el-table-column prop="F_StartTime" label="开始时间" align="center" width=""></el-table-column>
14
+          <el-table-column prop="F_EndTime" label="结束时间" align="center" width=""></el-table-column>
15
+          <el-table-column prop="F_MemberName" label="适用会员" align="center" width=""></el-table-column>
16
+          <el-table-column prop="F_Commodity" label="绑定商品" align="center" width=""></el-table-column>
17
+          <el-table-column prop="F_Money" label="活动金额" align="center" width=""></el-table-column>
18 18
           <el-table-column label="操作" width="" align="center" class-name="oparate_btn" fixed="right">
19 19
             <template slot-scope="scope">
20 20
               <el-button type="text" @click="btn_detail(scope.row.F_ID.toString())">详情</el-button>
@@ -23,30 +23,22 @@
23 23
             </template>
24 24
           </el-table-column>
25 25
         </el-table>
26
-        <pagination
27
-          v-show="pageParams.total > 0"
28
-          :total="pageParams.total"
29
-          :pageindex.sync="pageParams.pageindex"
30
-          :pagesize.sync="pageParams.pagesize"
31
-          class="pagination"
32
-          @pagination="getList">
33
-        </pagination>
26
+        <pagination v-show="pageParams.total > 0" :total="pageParams.total" :pageindex.sync="pageParams.pageindex" :pagesize.sync="pageParams.pagesize" class="pagination" @pagination="getList"> </pagination>
34 27
       </el-tab-pane>
35 28
     </el-tabs>
36 29
   </div>
37 30
 </template>
38 31
 
39 32
 <script>
40
-
41
-import { getOrderLists, deleteFullMarketing } from '@/api/marketingManagement/fullGiveMarketing'
42
-import searchFilter from './components/searchFilter'
43
-import addOrEdit from './components/addOrEdit'
44
-import detail from './components/detail'
45
-import { formatterContent } from '@/utils'
46
-import Pagination from '@/components/Pagination' // 对el-pagination 二次封装
33
+import { getOrderLists, deleteFullMarketing } from "@/api/marketingManagement/fullGiveMarketing"
34
+import searchFilter from "./components/searchFilter"
35
+import addOrEdit from "./components/addOrEdit"
36
+import detail from "./components/detail"
37
+import { formatterContent } from "@/utils"
38
+import Pagination from "@/components/Pagination" // 对el-pagination 二次封装
47 39
 
48 40
 export default {
49
-  name: 'fullGiveMarketing',
41
+  name: "fullGiveMarketing",
50 42
   components: {
51 43
     Pagination,
52 44
     searchFilter,
@@ -54,38 +46,39 @@ export default {
54 46
   data() {
55 47
     return {
56 48
       searchDatas: {
57
-        date: '', //日期
49
+        date: "", //日期
58 50
       },
59 51
       loading: false,
60 52
       pageParams: {
61 53
         pageindex: 1, // 当前第几页
62 54
         pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
63
-        total: 0 // 总共多少数据
55
+        total: 0, // 总共多少数据
64 56
       },
65
-      dataLists: [],// 列表数据
57
+      dataLists: [], // 列表数据
66 58
       multipleSelection: [], // 选中的数据
67 59
       selectedId: [], //选中的id
68 60
       activeName: "3",
69
-      tabMapOptions: [{
70
-          label: '全部',
71
-          key: '3',
61
+      tabMapOptions: [
62
+        {
63
+          label: "全部",
64
+          key: "3",
72 65
           num: 0,
73 66
         },
74 67
         {
75
-          label: '预告中',
76
-          key: '0',
68
+          label: "预告中",
69
+          key: "0",
77 70
           num: 0,
78 71
         },
79 72
         {
80
-          label: '进行中',
81
-          key: '1',
73
+          label: "进行中",
74
+          key: "1",
82 75
           num: 0,
83 76
         },
84 77
         {
85
-          label: '已结束',
86
-          key: '2',
78
+          label: "已结束",
79
+          key: "2",
87 80
           num: 0,
88
-        }
81
+        },
89 82
       ],
90 83
     }
91 84
   },
@@ -100,18 +93,18 @@ export default {
100 93
   methods: {
101 94
     getList() {
102 95
       this.loading = true
103
-      return new Promise(resolve => {
96
+      return new Promise((resolve) => {
104 97
         const params = {
105 98
           pageindex: this.pageParams.pageindex, // int 第几页
106 99
           pagesize: this.pageParams.pagesize, // int 每页几条信息
107 100
           type: 1, //满赠营销政策
108
-          starttime:this.searchDatas.date && this.searchDatas.date[0],//开始时间
109
-          endtime:this.searchDatas.date && this.searchDatas.date[1],//结束时间
110
-          process: this.activeName==3?'':this.activeName
101
+          starttime: this.searchDatas.date && this.searchDatas.date[0], //开始时间
102
+          endtime: this.searchDatas.date && this.searchDatas.date[1], //结束时间
103
+          process: this.activeName == 3 ? "" : this.activeName,
111 104
         }
112
-        getOrderLists(params).then(response => {
105
+        getOrderLists(params).then((response) => {
113 106
           this.loading = false
114
-          if (response.state.toLowerCase() === 'success') {
107
+          if (response.state.toLowerCase() === "success") {
115 108
             this.pageParams.total = response.total
116 109
             this.dataLists = response.rows
117 110
           }
@@ -128,10 +121,10 @@ export default {
128 121
         content: {
129 122
           content: detail, // 传递的组件对象
130 123
           parent: this, // 当前的vue对象
131
-          data: { 'rowid': editId }// props
124
+          data: { rowid: editId }, // props
132 125
         },
133
-        area: ['80%', '90%'],
134
-        title: '详情'
126
+        area: ["80%", "90%"],
127
+        title: "详情",
135 128
       })
136 129
     },
137 130
     btn_edit(editId) {
@@ -139,46 +132,47 @@ export default {
139 132
         content: {
140 133
           content: addOrEdit, // 传递的组件对象
141 134
           parent: this, // 当前的vue对象
142
-          data: { 'rowid': editId }// props
135
+          data: { rowid: editId }, // props
143 136
         },
144
-        area: ['80%', '90%'],
145
-        title: '编辑满赠营销'
137
+        area: ["80%", "90%"],
138
+        title: "编辑满赠营销",
146 139
       })
147 140
     },
148 141
     btn_delete(editId) {
149
-      this.$confirm('您确定要将此活动删除吗?', '提示', {
150
-        confirmButtonText: '确定',
151
-        cancelButtonText: '取消',
152
-        type: 'warning'
153
-      }).then(() => {
154
-        deleteFullMarketing(editId).then(response => {
155
-          if (response.state.toLowerCase() === 'success') {
156
-            this.getList()
157
-            this.$message.success('删除成功!')
158
-          }
159
-        })
160
-      }).catch(() => {
161
-        this.$message.info('已取消删除')
142
+      this.$confirm("您确定要将此活动删除吗?", "提示", {
143
+        confirmButtonText: "确定",
144
+        cancelButtonText: "取消",
145
+        type: "warning",
162 146
       })
147
+        .then(() => {
148
+          deleteFullMarketing(editId).then((response) => {
149
+            if (response.state.toLowerCase() === "success") {
150
+              this.getList()
151
+              this.$message.success("删除成功!")
152
+            }
153
+          })
154
+        })
155
+        .catch(() => {
156
+          this.$message.info("已取消删除")
157
+        })
163 158
     },
164 159
     handleClick(tab, event) {
165 160
       console.log(tab, event)
166 161
       console.log("key", tab.name)
167
-      this.activeName=tab.name;
168
-      this.getList();
162
+      this.activeName = tab.name
163
+      this.getList()
169 164
     },
170 165
     changeSelects(selection) {
171 166
       const ids = []
172 167
       this.multipleSelection = selection
173
-      for (let i=0; i<this.multipleSelection.length; i++) {
168
+      for (let i = 0; i < this.multipleSelection.length; i++) {
174 169
         ids.push(this.multipleSelection[i].id)
175 170
       }
176
-      this.selectedId = ids;
171
+      this.selectedId = ids
177 172
     },
178
-  }
173
+  },
179 174
 }
180 175
 </script>
181 176
 
182 177
 <style rel="stylesheet/scss" lang="scss" scoped>
183
-
184 178
 </style>

+ 148 - 228
CallCenterWeb.UI/src/views/orderManagement/afterSaleEvent/components/detail.vue

@@ -9,9 +9,7 @@
9 9
             </div>
10 10
           </el-col>-->
11 11
           <el-col :md="21">
12
-            <h1 class="title">
13
-              <svg-icon class="title_icon" icon-class="hongqi" />会员信息
14
-            </h1>
12
+            <h1 class="title"><svg-icon class="title_icon" icon-class="hongqi" />会员信息</h1>
15 13
             <!-- <p class="title_sub"><span class="green">{{ name }}</span> {{ createtime }}</p> -->
16 14
             <p class="title_sub">
17 15
               <span class="green">{{ name }}</span> 足力健
@@ -101,69 +99,28 @@
101 99
       <el-tabs v-model="activeName" @tab-click="handleClick">
102 100
         <el-tab-pane label="被推荐人信息" name="first">
103 101
           <div class="tab_body">
104
-            <el-table
105
-              :data="workOrderCirculationList"
106
-              border
107
-              stripe
108
-            >
109
-              <el-table-column
110
-                type="index"
111
-                label="编号"
112
-                align="center"
113
-                width=""
114
-              />
115
-              <el-table-column
116
-                prop="F_Name"
117
-                label="推荐人"
118
-                align="center"
119
-                width=""
120
-              />
121
-              <el-table-column
122
-                prop="F_Phone"
123
-                label="联系方式"
124
-                align="center"
125
-                width=""
126
-              />
102
+            <el-table :data="workOrderCirculationList" border stripe>
103
+              <el-table-column type="index" label="编号" align="center" width="" />
104
+              <el-table-column prop="F_Name" label="推荐人" align="center" width="" />
105
+              <el-table-column prop="F_Phone" label="联系方式" align="center" width="" />
127 106
             </el-table>
128
-            <pagination
129
-              v-show="pageParamsSent.total > 0"
130
-              :total="pageParamsSent.total"
131
-              :pageindex.sync="pageParamsSent.pageindex"
132
-              :pagesize.sync="pageParamsSent.pagesize"
133
-              class="pagination"
134
-              @pagination="paginationFun"
135
-            />
107
+            <pagination v-show="pageParamsSent.total > 0" :total="pageParamsSent.total" :pageindex.sync="pageParamsSent.pageindex" :pagesize.sync="pageParamsSent.pagesize" class="pagination" @pagination="paginationFun" />
136 108
           </div>
137 109
         </el-tab-pane>
138 110
 
139 111
         <el-tab-pane label="订单记录" name="second">
140 112
           <div class="tab_body">
141
-            <el-table
142
-              :data="orderLists"
143
-              border
144
-              stripe
145
-            >
146
-              <el-table-column
147
-                type="index"
148
-                label="编号"
149
-                align="center"
150
-                width=""
151
-              />
113
+            <el-table :data="orderLists" border stripe>
114
+              <el-table-column type="index" label="编号" align="center" width="" />
152 115
               <el-table-column prop="F_Id" label="订单编号" align="center" min-width="180">
153 116
                 <template slot-scope="scope">
154
-                  <el-button
155
-                    type="text"
156
-                    size="small"
157
-                    @click="hadndleOrderCode(scope.row.F_Id)"
158
-                  >{{ scope.row.F_Id }}</el-button
159
-                  >
117
+                  <el-button type="text" size="small" @click="hadndleOrderCode(scope.row.F_Id)">{{ scope.row.F_Id }}</el-button>
160 118
                 </template>
161 119
               </el-table-column>
162 120
               <el-table-column prop="F_Customer" label="客户姓名" align="center" min-width />
163 121
               <el-table-column prop="F_CustomerPhone" label="手机号码" align="center" min-width="140">
164 122
                 <template slot-scope="scope">
165 123
                   {{ scope.row.F_CustomerPhone }}
166
-
167 124
                 </template>
168 125
               </el-table-column>
169 126
               <el-table-column label="订购商品" align="center" min-width>
@@ -186,19 +143,12 @@
186 143
                 </template>
187 144
               </el-table-column>
188 145
             </el-table>
189
-            <pagination
190
-              v-show="pageParams.total > 0"
191
-              :total="pageParams.total"
192
-              :pageindex.sync="pageParams.pageindex"
193
-              :pagesize.sync="pageParams.pagesize"
194
-              class="pagination"
195
-              @pagination="getList"
196
-            />
146
+            <pagination v-show="pageParams.total > 0" :total="pageParams.total" :pageindex.sync="pageParams.pageindex" :pagesize.sync="pageParams.pagesize" class="pagination" @pagination="getList" />
197 147
           </div>
198 148
         </el-tab-pane>
199 149
         <el-tab-pane label="通话记录" name="third">
200 150
           <div class="tab_body">
201
-            <el-table v-loading="loading" :data="calldataLists" border stripe >
151
+            <el-table v-loading="loading" :data="calldataLists" border stripe>
202 152
               <el-table-column type="index" label="编号" align="center" fixed width="80" />
203 153
               <el-table-column prop="Caller" label="主叫号码" align="center" min-width />
204 154
               <!-- <el-table-column prop="UserCode" label="坐席工号" align="center" min-width ></el-table-column> -->
@@ -208,11 +158,7 @@
208 158
               </el-table-column>
209 159
               <el-table-column label="呼叫状态" align="center" min-width>
210 160
                 <template slot-scope="scope">
211
-                  <el-tag
212
-                    :type="scope.row.CallState === 1 ? 'success' : 'danger'"
213
-                    size="mini"
214
-                    disable-transitions
215
-                  >{{ scope.row.CallState | statusFilter }}</el-tag>
161
+                  <el-tag :type="scope.row.CallState === 1 ? 'success' : 'danger'" size="mini" disable-transitions>{{ scope.row.CallState | statusFilter }}</el-tag>
216 162
                 </template>
217 163
               </el-table-column>
218 164
               <!-- <el-table-column label="处理方式" align="center" min-width>
@@ -223,12 +169,7 @@
223 169
       </el-table-column>-->
224 170
               <el-table-column label="录音" align="center" min-width>
225 171
                 <template slot-scope="scope">
226
-                  <svg-icon
227
-                    v-if="scope.row.FilePath"
228
-                    class="rec_file"
229
-                    icon-class="bofangluyin"
230
-                    @click.native="playSound(scope.row.FilePath, scope.row.UserCode)"
231
-                  />
172
+                  <svg-icon v-if="scope.row.FilePath" class="rec_file" icon-class="bofangluyin" @click.native="playSound(scope.row.FilePath, scope.row.UserCode)" />
232 173
                   <span v-else>-</span>
233 174
                 </template>
234 175
               </el-table-column>
@@ -258,24 +199,17 @@
258 199
         <template slot-scope="scope">{{ scope.row.callopttype | callopttypeFilter }}</template>
259 200
       </el-table-column>-->
260 201
             </el-table>
261
-            <pagination
262
-              v-show="pageParamsCall.total > 0"
263
-              :total="pageParamsCall.total"
264
-              :pageindex.sync="pageParamsCall.pageindex"
265
-              :pagesize.sync="pageParamsCall.pagesize"
266
-              class="pagination"
267
-              @pagination="getCallList"
268
-            />
202
+            <pagination v-show="pageParamsCall.total > 0" :total="pageParamsCall.total" :pageindex.sync="pageParamsCall.pageindex" :pagesize.sync="pageParamsCall.pagesize" class="pagination" @pagination="getCallList" />
269 203
           </div>
270 204
         </el-tab-pane>
271 205
         <el-tab-pane label="档案转移记录" name="fourth">
272 206
           <div class="tab_body">
273 207
             <el-table :data="workOrderCirculationList2" border stripe>
274 208
               <!-- <el-table-column type="selection" width="40"></el-table-column> -->
275
-              <el-table-column prop="F_CreateOn" label="转移时间" align="center" fixed width/>
276
-              <el-table-column prop="F_ToPerson" label="新负责人" align="center" fixed width/>
277
-              <el-table-column prop="F_NotifyPerson" label="原负责人" align="center" fixed width/>
278
-              <el-table-column prop="F_Notice" label="消息" align="center" fixed width/>
209
+              <el-table-column prop="F_CreateOn" label="转移时间" align="center" fixed width />
210
+              <el-table-column prop="F_ToPerson" label="新负责人" align="center" fixed width />
211
+              <el-table-column prop="F_NotifyPerson" label="原负责人" align="center" fixed width />
212
+              <el-table-column prop="F_Notice" label="消息" align="center" fixed width />
279 213
               <el-table-column label="状态" align="center" fixed width>
280 214
                 <template slot-scope="scope">
281 215
                   <el-tag v-if="scope.row.F_State == 0">未读</el-tag>
@@ -285,14 +219,7 @@
285 219
                 </template>
286 220
               </el-table-column>
287 221
             </el-table>
288
-            <pagination
289
-              v-show="pageParamsfiled.total > 0"
290
-              :total="pageParamsfiled.total"
291
-              :pageindex.sync="pageParamsfiled.pageindex"
292
-              :pagesize.sync="pageParamsfiled.pagesize"
293
-              class="pagination"
294
-              @pagination="paginationFun2"
295
-            />
222
+            <pagination v-show="pageParamsfiled.total > 0" :total="pageParamsfiled.total" :pageindex.sync="pageParamsfiled.pageindex" :pagesize.sync="pageParamsfiled.pagesize" class="pagination" @pagination="paginationFun2" />
296 223
           </div>
297 224
         </el-tab-pane>
298 225
         <el-tab-pane label="备注" name="fifth">
@@ -319,185 +246,181 @@
319 246
         </el-tab-pane>
320 247
       </el-tabs>
321 248
     </el-card>
322
-
323 249
   </div>
324 250
 </template>
325 251
 
326 252
 <script>
327
-import { getMemberInfo, getMemberOrderList } from '@/api/memberManagement/memberList'
328
-import { getOrderLists } from '@/api/orderManagement/orderList'
329
-import { mapGetters } from 'vuex'
330
-import Pagination from '@/components/Pagination' // 对el-pagination 二次封装
331
-import { filterContent } from '@/utils'
332
-import { getCallRecords } from '@/api/trafficData/trafficData'
333
-import audioPlayer from '@/components/audioPlayer'
334
-import { getFileTranserLists } from '@/api/memberManagement/memberList'
335
-import afterSale from '@/views/afterSaleManagement/addAfterSale/afterSale'
336
-import { getChatLogList } from '@/api/afterSaleManagement/afterSaleList'
253
+import { getMemberInfo, getMemberOrderList } from "@/api/memberManagement/memberList"
254
+import { getOrderLists } from "@/api/orderManagement/orderList"
255
+import { mapGetters } from "vuex"
256
+import Pagination from "@/components/Pagination" // 对el-pagination 二次封装
257
+import { filterContent } from "@/utils"
258
+import { getCallRecords } from "@/api/trafficData/trafficData"
259
+import audioPlayer from "@/components/audioPlayer"
260
+import { getFileTranserLists } from "@/api/memberManagement/memberList"
261
+import afterSale from "@/views/afterSaleManagement/addAfterSale/afterSale"
262
+import { getChatLogList } from "@/api/afterSaleManagement/afterSaleList"
337 263
 import detail from "@/views/orderManagement/orderList/detail"
338 264
 
339 265
 export default {
340
-  name: 'Detail',
266
+  name: "Detail",
341 267
   components: {
342
-    Pagination
268
+    Pagination,
343 269
   },
344 270
   filters: {
345 271
     phoneFilter(status) {
346
-      const mtel = status.substr(0, 3) + '****' + status.substr(7)
272
+      const mtel = status.substr(0, 3) + "****" + status.substr(7)
347 273
       return mtel
348 274
     },
349 275
     mobileFilter(status) {
350 276
       if (status) {
351
-        const arr = status.split(',')
352
-        var mtel = ''
277
+        const arr = status.split(",")
278
+        var mtel = ""
353 279
         for (let i = 0; i < arr.length; i++) {
354
-          mtel += arr[i].substr(0, 3) + '****' + arr[i].substr(7) + ','
280
+          mtel += arr[i].substr(0, 3) + "****" + arr[i].substr(7) + ","
355 281
         }
356 282
         return mtel.substr(0, mtel.length - 1)
357 283
       }
358 284
     },
359 285
     judgmentStateName(status) {
360 286
       const statusMap = {
361
-        '0': '未提交',
362
-        '1': '待分仓',
363
-        '2': '已退回',
364
-        '3': '已分仓',
365
-        '4': '无货',
366
-        '5': '仓库待审核',
367
-        '6': '已发货',
368
-        '7': '付款待审核',
369
-        '8': '待分物流',
370
-        '9': '物流未通过'
287
+        0: "未提交",
288
+        1: "待分仓",
289
+        2: "已退回",
290
+        3: "已分仓",
291
+        4: "无货",
292
+        5: "仓库待审核",
293
+        6: "已发货",
294
+        7: "付款待审核",
295
+        8: "待分物流",
296
+        9: "物流未通过",
371 297
       }
372 298
       return statusMap[status]
373 299
     },
374 300
     judgmentStatusName(status) {
375 301
       const statusMap = {
376
-        0: '未发出',
377
-        1: '未签收',
378
-        2: '签收',
379
-        3: '改代收',
380
-        4: '拒收'
302
+        0: "未发出",
303
+        1: "未签收",
304
+        2: "签收",
305
+        3: "改代收",
306
+        4: "拒收",
381 307
       }
382 308
       return statusMap[status]
383 309
     },
384 310
     judgmentOrderGoods(status) {
385
-      let orderGoodsNameQuantity = ''
311
+      let orderGoodsNameQuantity = ""
386 312
       for (let i = 0; i < status.length; i++) {
387 313
         orderGoodsNameQuantity = `${orderGoodsNameQuantity}${status[i].F_ProductName}*${status[i].F_Count},`
388 314
       }
389
-      orderGoodsNameQuantity = orderGoodsNameQuantity.substring(
390
-        0,
391
-        orderGoodsNameQuantity.length - 1
392
-      )
315
+      orderGoodsNameQuantity = orderGoodsNameQuantity.substring(0, orderGoodsNameQuantity.length - 1)
393 316
       return orderGoodsNameQuantity
394 317
     },
395 318
     // 呼叫类型
396 319
     calltypeFilter(status) {
397 320
       const statusMap = {
398
-        0: '呼入',
399
-        1: '呼出'
321
+        0: "呼入",
322
+        1: "呼出",
400 323
       }
401 324
       return statusMap[status]
402 325
     },
403 326
     // 呼叫状态
404 327
     statusFilter(status) {
405 328
       const statusMap = {
406
-        0: '未接通',
407
-        1: '已接通'
329
+        0: "未接通",
330
+        1: "已接通",
408 331
       }
409 332
       return statusMap[status]
410 333
     },
411 334
     // 外呼类型
412 335
     callopttypeFilter(status) {
413 336
       const statusMap = {
414
-        0: '拨号外呼',
415
-        1: '回访外呼'
337
+        0: "拨号外呼",
338
+        1: "回访外呼",
416 339
       }
417 340
       return statusMap[status]
418 341
     },
419 342
     // 处理方式
420 343
     dealtypeFilter(status) {
421 344
       const statusMap = {
422
-        0: 'IVR处理',
423
-        1: '骚扰电话',
424
-        2: '自助服务',
425
-        3: '转值班电话',
426
-        4: '留言',
427
-        5: '呼损',
428
-        6: '人工处理'
345
+        0: "IVR处理",
346
+        1: "骚扰电话",
347
+        2: "自助服务",
348
+        3: "转值班电话",
349
+        4: "留言",
350
+        5: "呼损",
351
+        6: "人工处理",
429 352
       }
430 353
       return statusMap[status]
431 354
     },
432 355
     // 满意度
433 356
     evaluationFilter(status) {
434 357
       const statusMap = {
435
-        0: '-',
436
-        1: '非常满意',
437
-        2: '基本满意',
438
-        3: '不满意'
358
+        0: "-",
359
+        1: "非常满意",
360
+        2: "基本满意",
361
+        3: "不满意",
439 362
       }
440 363
       return statusMap[status]
441 364
     },
442 365
     // 时间格式化
443 366
     timesFilter(tm) {
444
-      if (tm === '1970-01-01 08:00:00') {
445
-        return '-'
367
+      if (tm === "1970-01-01 08:00:00") {
368
+        return "-"
446 369
       } else {
447 370
         return tm
448 371
       }
449
-    }
372
+    },
450 373
   },
451 374
   props: {
452 375
     rowid: {
453 376
       type: String,
454
-      default: ''
377
+      default: "",
455 378
     },
456 379
     layerid: {
457 380
       type: String,
458
-      default: ''
459
-    }
381
+      default: "",
382
+    },
460 383
   },
461 384
   data() {
462 385
     return {
463
-      activeName: 'first',
464
-      name: '', // 姓名
465
-      phone: '', // 固定电话
466
-      sex: '', // 性别
467
-      age: '', // 年龄
468
-      mobile1: '', // 手机号码1
469
-      type: '', // 会员类型
470
-      F_Membership: '', // 会员等级
471
-      F_Class: '', // 会员分类
472
-      postcode: '', // 邮编
473
-      shoesize: '', // 鞋码
474
-      regtime: '', // 会员日期
475
-      birthday: '', // 会员生日
476
-      score: '', // 会员积分
477
-      recommender: '', // 推荐人
478
-      recommenderTel: '', // 推荐人手机号
479
-      money: '', // 累计消费金额
480
-      totalscore: '', // 累计积分
481
-      province: '', // 省
482
-      city: '', // 市
483
-      area: '', // 县
484
-      town: '', // 乡
485
-      address: '', // 地址
486
-      province1: '', // 省
487
-      city1: '', // 市
488
-      area1: '', // 县
489
-      town1: '', // 乡
490
-      address1: '', // 地址
491
-      province2: '', // 省
492
-      city2: '', // 市
493
-      area2: '', // 县
494
-      town2: '', // 乡
495
-      address2: '', // 地址
496
-      firstcalltime: '', // 首次通话记录
497
-      lastholetime: '', // 末联通话记录
498
-      F_LastModifyOn: '', // 修改时间
499
-      F_Count: '', //购买次数
500
-      F_LastModifyBy: '', // 修改人
386
+      activeName: "first",
387
+      name: "", // 姓名
388
+      phone: "", // 固定电话
389
+      sex: "", // 性别
390
+      age: "", // 年龄
391
+      mobile1: "", // 手机号码1
392
+      type: "", // 会员类型
393
+      F_Membership: "", // 会员等级
394
+      F_Class: "", // 会员分类
395
+      postcode: "", // 邮编
396
+      shoesize: "", // 鞋码
397
+      regtime: "", // 会员日期
398
+      birthday: "", // 会员生日
399
+      score: "", // 会员积分
400
+      recommender: "", // 推荐人
401
+      recommenderTel: "", // 推荐人手机号
402
+      money: "", // 累计消费金额
403
+      totalscore: "", // 累计积分
404
+      province: "", // 省
405
+      city: "", // 市
406
+      area: "", // 县
407
+      town: "", // 乡
408
+      address: "", // 地址
409
+      province1: "", // 省
410
+      city1: "", // 市
411
+      area1: "", // 县
412
+      town1: "", // 乡
413
+      address1: "", // 地址
414
+      province2: "", // 省
415
+      city2: "", // 市
416
+      area2: "", // 县
417
+      town2: "", // 乡
418
+      address2: "", // 地址
419
+      firstcalltime: "", // 首次通话记录
420
+      lastholetime: "", // 末联通话记录
421
+      F_LastModifyOn: "", // 修改时间
422
+      F_Count: "", //购买次数
423
+      F_LastModifyBy: "", // 修改人
501 424
       orderLists: [], // 订单列表数据
502 425
       dataLists: [], // 列表数据
503 426
       workOrderCirculationList: [],
@@ -508,29 +431,27 @@ export default {
508 431
       pageParams: {
509 432
         pageindex: 1, // 当前第几页
510 433
         pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
511
-        total: 0 // 总共多少数据
434
+        total: 0, // 总共多少数据
512 435
       },
513 436
       pageParamsCall: {
514 437
         pageindex: 1, // 当前第几页
515 438
         pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
516
-        total: 0 // 总共多少数据
439
+        total: 0, // 总共多少数据
517 440
       },
518 441
       pageParamsSent: {
519 442
         pageindex: 1, // 当前第几页
520 443
         pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
521
-        total: 0 // 总共多少数据
444
+        total: 0, // 总共多少数据
522 445
       },
523 446
       pageParamsfiled: {
524 447
         pageindex: 1, // 当前第几页
525 448
         pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
526
-        total: 0 // 总共多少数据
527
-      }
449
+        total: 0, // 总共多少数据
450
+      },
528 451
     }
529 452
   },
530 453
   computed: {
531
-    ...mapGetters([
532
-      'avatar'
533
-    ])
454
+    ...mapGetters(["avatar"]),
534 455
   },
535 456
   created() {
536 457
     this.getCallList()
@@ -570,7 +491,7 @@ export default {
570 491
     },
571 492
     // 详情
572 493
     getDetail(rid) {
573
-      getMemberInfo(rid).then(response => {
494
+      getMemberInfo(rid).then((response) => {
574 495
         const res = response.model
575 496
         this.dataLists = response.viplist
576 497
         if (this.dataLists.length > 0) {
@@ -588,8 +509,8 @@ export default {
588 509
         this.mobile1 = res.F_Mobile // 手机号码1
589 510
         this.phone = res.F_Phone // 固定电话
590 511
         this.type = res.F_Label // 会员标签
591
-        this.F_Membership = res.F_Membership// 会员等级
592
-        this.F_Class = res.F_Class// 会员分类
512
+        this.F_Membership = res.F_Membership // 会员等级
513
+        this.F_Class = res.F_Class // 会员分类
593 514
         this.postcode = res.F_Postcode // 邮编
594 515
         this.shoesize = res.F_ShoeSize // 鞋码
595 516
         this.regtime = res.F_RegTime // 会员日期
@@ -616,22 +537,21 @@ export default {
616 537
         this.address2 = res.F_Address2 // 备用地址
617 538
         this.firstcalltime = res.F_Firstcalltime // 首次通话记录
618 539
         this.lastholetime = res.F_Lastholetime // 末联通话记录
619
-        this.F_LastModifyOn = res.F_LastModifyOn// 修改时间
620
-        this.F_Count = res.F_Count// 购买次数
621
-        this.F_LastModifyBy = res.F_LastModifyBy// 修改人
540
+        this.F_LastModifyOn = res.F_LastModifyOn // 修改时间
541
+        this.F_Count = res.F_Count // 购买次数
542
+        this.F_LastModifyBy = res.F_LastModifyBy // 修改人
622 543
       })
623 544
     },
624 545
     // 订单
625 546
     getList() {
626 547
       return new Promise((resolve) => {
627 548
         const params = {
628
-
629 549
           pageindex: this.pageParams.pageindex, // int 第几页
630 550
           pagesize: this.pageParams.pagesize, // int 每页几条信息
631
-          F_VipId: this.rowid
551
+          F_VipId: this.rowid,
632 552
         }
633 553
         getOrderLists(params).then((response) => {
634
-          if (response.state.toLowerCase() === 'success') {
554
+          if (response.state.toLowerCase() === "success") {
635 555
             this.pageParams.total = response.data.Totals
636 556
             this.orderLists = response.data.Rows
637 557
           }
@@ -640,16 +560,16 @@ export default {
640 560
       })
641 561
     },
642 562
     //备注列表
643
-    getRemarkList () {
563
+    getRemarkList() {
644 564
       this.loading = true
645
-      return new Promise(resolve => {
565
+      return new Promise((resolve) => {
646 566
         const params = {
647 567
           woid: this.rowid,
648 568
           state: 1, //	否	string	模糊查询(呼叫号码)
649 569
         }
650
-        getChatLogList(params).then(response => {
570
+        getChatLogList(params).then((response) => {
651 571
           this.loading = false
652
-          if (response.state.toLowerCase() === 'success') {
572
+          if (response.state.toLowerCase() === "success") {
653 573
             this.remarkDataLists = response.rows.Rows
654 574
           }
655 575
         })
@@ -659,13 +579,13 @@ export default {
659 579
     //订单列表
660 580
     getMemberOrderDataList() {
661 581
       this.loading = true
662
-      return new Promise(resolve => {
582
+      return new Promise((resolve) => {
663 583
         const params = {
664 584
           vipid: this.rowid,
665 585
         }
666
-        getMemberOrderList(params).then(response => {
586
+        getMemberOrderList(params).then((response) => {
667 587
           this.loading = false
668
-          if (response.state.toLowerCase() === 'success') {
588
+          if (response.state.toLowerCase() === "success") {
669 589
             this.memberOrderDataLists = response.rows.Rows
670 590
           }
671 591
         })
@@ -675,15 +595,15 @@ export default {
675 595
     // 通话记录列表
676 596
     getCallList() {
677 597
       this.loading = true
678
-      return new Promise(resolve => {
598
+      return new Promise((resolve) => {
679 599
         const params = {
680 600
           pageindex: this.pageParamsCall.pageindex, // 第几页
681 601
           pagesize: this.pageParamsCall.pagesize, // 每页几条信息
682
-          CusId: this.rowid
602
+          CusId: this.rowid,
683 603
         }
684
-        getCallRecords(params).then(response => {
604
+        getCallRecords(params).then((response) => {
685 605
           this.loading = false
686
-          if (response.state.toLowerCase() === 'success') {
606
+          if (response.state.toLowerCase() === "success") {
687 607
             this.recordpath = response.data.recordpath
688 608
             this.pageParamsCall.total = response.data.Totals
689 609
             this.calldataLists = response.data.Rows
@@ -698,10 +618,10 @@ export default {
698 618
         content: {
699 619
           content: afterSale, // 传递的组件对象
700 620
           parent: this, // 当前的vue对象
701
-          data: { rowid: id.toString() } // props
621
+          data: { rowid: id.toString() }, // props
702 622
         },
703
-        area: ['70%', '80%'],
704
-        title: '添加售后'
623
+        area: ["70%", "80%"],
624
+        title: "添加售后",
705 625
       })
706 626
     },
707 627
     // 已发货订单才能添加售后
@@ -718,11 +638,11 @@ export default {
718 638
         content: {
719 639
           content: audioPlayer, // 传递的组件对象
720 640
           parent: this, // 当前的vue对象
721
-          data: { 'recFiles': rec_file, 'artists': artist.toString() }// props//该方法会自动添加一个key为layerid的值, 该值为创建层的id, 可以直接使用
641
+          data: { recFiles: rec_file, artists: artist.toString() }, // props//该方法会自动添加一个key为layerid的值, 该值为创建层的id, 可以直接使用
722 642
         },
723
-        area: ['600px', '230px'],
643
+        area: ["600px", "230px"],
724 644
         shadeClose: true,
725
-        title: '录音详情'
645
+        title: "录音详情",
726 646
       })
727 647
     },
728 648
     hadndleOrderCode(ordercode) {
@@ -730,13 +650,13 @@ export default {
730 650
         content: {
731 651
           content: detail, // 传递的组件对象
732 652
           parent: this, // 当前的vue对象
733
-          data: { rowid: ordercode } // props
653
+          data: { rowid: ordercode }, // props
734 654
         },
735
-        area: ['70%', '80%'],
736
-        title: '订单详情'
655
+        area: ["70%", "80%"],
656
+        title: "订单详情",
737 657
       })
738 658
     },
739
-  }
659
+  },
740 660
 }
741 661
 </script>
742 662