Browse Source

改代收

yangjunfeng 5 years ago
parent
commit
27ecb37e6f

+ 160 - 82
CallCenterWeb.UI/src/views/customerServiceManagement/customerServiceChangeCollection/index.vue

@@ -18,12 +18,14 @@
18 18
         <!-- <el-option label="漏发" value="8"/> -->
19 19
       </el-select>
20 20
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
21
-      <el-button type="primary" v-permission="'HY_batch_signfor'" class="filter-item" @click="btn_batch_signfor">批量签收</el-button>
22
-      <el-button type="primary" v-permission="'HY_bulk_submit'" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
21
+      <el-button v-permission="'HY_batch_signfor'" type="primary" class="filter-item" @click="btn_batch_signfor">批量签收</el-button>
22
+      <el-button v-permission="'HY_batch_rejection'" type="primary" class="filter-item" @click="btn_batch_rejection">批量拒收</el-button>
23
+      <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
23 24
     </div>
24 25
     <el-tabs v-model="activeName" type="card" @tab-click="handleTabClick" >
25
-      <el-tab-pane label="未签收" name="0"></el-tab-pane>
26
-      <el-tab-pane label="已签收" name="1"></el-tab-pane>
26
+      <el-tab-pane label="未签收" name="0"/>
27
+      <el-tab-pane label="已签收" name="1"/>
28
+      <el-tab-pane label="已拒收" name="2"/>
27 29
     </el-tabs>
28 30
     <div>
29 31
       <span>订单数量:{{ pageParams.total }}</span>
@@ -39,7 +41,7 @@
39 41
       <el-table-column label="售后类型" align="center">
40 42
         <template slot-scope="scope">
41 43
           {{ scope.row.F_Type | judgmentStateName }}
42
-        </template> 
44
+        </template>
43 45
       </el-table-column>
44 46
       <el-table-column label="售后审核状态" align="center">
45 47
         <template slot-scope="scope">
@@ -60,14 +62,20 @@
60 62
           <el-button v-permission="'HY_after_sale_detail'" type="text" @click="btn_after_sale_detail(scope.row.F_Id)">详情</el-button>
61 63
           <el-button
62 64
             v-permission="'HY_signfor'"
63
-            type="text"
64 65
             v-if="authority_signfor(scope.row.F_IsSignfor)"
66
+            type="text"
65 67
             @click="btn_signfor(scope.row.F_Id, scope.row.F_OrderId)"
66 68
           >签收</el-button>
67 69
           <el-button
68
-            v-permission="'HY_submit'"
70
+            v-permission="'HY_signfor'"
71
+            v-if="authority_signfor(scope.row.F_IsSignfor)"
69 72
             type="text"
73
+            @click="btn_rejection(scope.row.F_Id, scope.row.F_OrderId)"
74
+          >拒收</el-button>
75
+          <el-button
76
+            v-permission="'HY_submit'"
70 77
             v-if="authority_submit(scope.row.F_IsSignfor)"
78
+            type="text"
71 79
             @click="btn_submit(scope.row.F_Id, scope.row.F_OrderId)"
72 80
           >提交</el-button>
73 81
         </template>
@@ -86,7 +94,7 @@
86 94
 
87 95
 <script>
88 96
 import { getDictionaryValueList } from '@/api/commonAPI'
89
-import { signforChangeCollectionOrderCustomerService, submitChangeCollectionOrderCustomerService } from "@/api/customerServiceManagement/orderListCustomerService";
97
+import { signforChangeCollectionOrderCustomerService, submitChangeCollectionOrderCustomerService } from '@/api/customerServiceManagement/orderListCustomerService'
90 98
 import { getAfterSaleList, deleteAfterSaleList } from '@/api/afterSaleManagement/afterSaleList'
91 99
 import { pickerOptions, formatterContent } from '@/utils'
92 100
 import Pagination from '@/components/Pagination' // 对el-pagination 二次封装
@@ -147,7 +155,7 @@ export default {
147 155
       dataLists: [], // 列表数据
148 156
       multipleSelection: [], // 选中的数据
149 157
       selectedId: [], // 选中的数据的id
150
-      selectedOrderId: [], // 选中工单id
158
+      selectedOrderId: [] // 选中工单id
151 159
     }
152 160
   },
153 161
   created() {
@@ -171,7 +179,7 @@ export default {
171 179
           pagesize: 1000000, // int 每页几条信息
172 180
           F_PayState: '-2',
173 181
           F_ReturnType: '改代收',
174
-          IsSignfor: this.activeName,
182
+          IsSignfor: this.activeName
175 183
         }
176 184
         getAfterSaleList(params).then(response => {
177 185
           this.loading = false
@@ -187,133 +195,203 @@ export default {
187 195
     btn_batch_signfor() {
188 196
       if (this.selectedId.length < 1) {
189 197
         this.$message({
190
-          message: "请选择订单!",
191
-          type: "warning",
192
-        });
193
-        return;
198
+          message: '请选择订单!',
199
+          type: 'warning'
200
+        })
201
+        return
202
+      }
203
+      if (this.selectedOrderId.length < 1) {
204
+        this.$message({
205
+          message: '请选择订单!',
206
+          type: 'warning'
207
+        })
208
+        return
209
+      }
210
+      this.$confirm('确定签收吗?', '提示', {
211
+        confirmButtonText: '确定',
212
+        cancelButtonText: '取消',
213
+        type: 'warning'
214
+      })
215
+        .then(() => {
216
+          const data = {
217
+            orderids: this.selectedOrderId.join(',').replace(/\s+/g, ''),
218
+            id: this.selectedId.join(',').replace(/\s+/g, ''),
219
+            Status: 2
220
+          }
221
+          signforChangeCollectionOrderCustomerService(data).then((response) => {
222
+            if (response.state.toLowerCase() === 'success') {
223
+              this.getList()
224
+              this.$message.success('签收成功!')
225
+            }
226
+          })
227
+        })
228
+        .catch(() => {
229
+          this.$message({
230
+            type: 'info',
231
+            message: '已取消签收'
232
+          })
233
+        })
234
+    },
235
+    // 批量拒收
236
+    btn_batch_rejection() {
237
+      if (this.selectedId.length < 1) {
238
+        this.$message({
239
+          message: '请选择订单!',
240
+          type: 'warning'
241
+        })
242
+        return
194 243
       }
195 244
       if (this.selectedOrderId.length < 1) {
196 245
         this.$message({
197
-          message: "请选择订单!",
198
-          type: "warning",
199
-        });
200
-        return;
246
+          message: '请选择订单!',
247
+          type: 'warning'
248
+        })
249
+        return
201 250
       }
202
-      this.$confirm("确定签收吗?", "提示", {
203
-        confirmButtonText: "确定",
204
-        cancelButtonText: "取消",
205
-        type: "warning",
251
+      this.$confirm('确定拒收吗?', '提示', {
252
+        confirmButtonText: '确定',
253
+        cancelButtonText: '取消',
254
+        type: 'warning'
206 255
       })
207 256
         .then(() => {
208 257
           const data = {
209 258
             orderids: this.selectedOrderId.join(',').replace(/\s+/g, ''),
210
-            id: this.selectedId.join(',').replace(/\s+/g, ''), 
211
-          };
259
+            id: this.selectedId.join(',').replace(/\s+/g, ''),
260
+            Status: 4
261
+          }
212 262
           signforChangeCollectionOrderCustomerService(data).then((response) => {
213
-            if (response.state.toLowerCase() === "success") {
214
-              this.getList();
215
-              this.$message.success("签收成功!");
263
+            if (response.state.toLowerCase() === 'success') {
264
+              this.getList()
265
+              this.$message.success('拒收成功!')
216 266
             }
217
-          });
267
+          })
218 268
         })
219 269
         .catch(() => {
220 270
           this.$message({
221
-            type: "info",
222
-            message: "已取消签收",
223
-          });
224
-        });
271
+            type: 'info',
272
+            message: '已取消拒收'
273
+          })
274
+        })
225 275
     },
226 276
     // 签收
227 277
     btn_signfor(id, orderId) {
228
-      this.$confirm("确定签收吗?", "提示", {
229
-        confirmButtonText: "确定",
230
-        cancelButtonText: "取消",
231
-        type: "warning",
278
+      this.$confirm('确定签收吗?', '提示', {
279
+        confirmButtonText: '确定',
280
+        cancelButtonText: '取消',
281
+        type: 'warning'
282
+      })
283
+        .then(() => {
284
+          const data = {
285
+            orderids: orderId,
286
+            id: id,
287
+            Status: 2
288
+          }
289
+          signforChangeCollectionOrderCustomerService(data).then((response) => {
290
+            if (response.state.toLowerCase() === 'success') {
291
+              this.getList()
292
+              this.$message.success('签收成功!')
293
+            }
294
+          })
295
+        })
296
+        .catch(() => {
297
+          this.$message({
298
+            type: 'info',
299
+            message: '已取消签收'
300
+          })
301
+        })
302
+    },
303
+    // 拒收
304
+    btn_rejection(id, orderId) {
305
+      this.$confirm('确定拒收吗?', '提示', {
306
+        confirmButtonText: '确定',
307
+        cancelButtonText: '取消',
308
+        type: 'warning'
232 309
       })
233 310
         .then(() => {
234 311
           const data = {
235 312
             orderids: orderId,
236 313
             id: id,
237
-          };
314
+            Status: 4
315
+          }
238 316
           signforChangeCollectionOrderCustomerService(data).then((response) => {
239
-            if (response.state.toLowerCase() === "success") {
240
-              this.getList();
241
-              this.$message.success("签收成功!");
317
+            if (response.state.toLowerCase() === 'success') {
318
+              this.getList()
319
+              this.$message.success('拒收成功!')
242 320
             }
243
-          });
321
+          })
244 322
         })
245 323
         .catch(() => {
246 324
           this.$message({
247
-            type: "info",
248
-            message: "已取消签收",
249
-          });
250
-        });
325
+            type: 'info',
326
+            message: '已取消拒收'
327
+          })
328
+        })
251 329
     },
252 330
     // 批量提交
253 331
     btn_bulk_submit() {
254 332
       if (this.selectedId.length < 1) {
255 333
         this.$message({
256
-          message: "请选择订单!",
257
-          type: "warning",
258
-        });
259
-        return;
334
+          message: '请选择订单!',
335
+          type: 'warning'
336
+        })
337
+        return
260 338
       }
261 339
       if (this.selectedOrderId.length < 1) {
262 340
         this.$message({
263
-          message: "请选择订单!",
264
-          type: "warning",
265
-        });
266
-        return;
341
+          message: '请选择订单!',
342
+          type: 'warning'
343
+        })
344
+        return
267 345
       }
268
-      this.$confirm("确定提交吗?", "提示", {
269
-        confirmButtonText: "确定",
270
-        cancelButtonText: "取消",
271
-        type: "warning",
346
+      this.$confirm('确定提交吗?', '提示', {
347
+        confirmButtonText: '确定',
348
+        cancelButtonText: '取消',
349
+        type: 'warning'
272 350
       })
273 351
         .then(() => {
274 352
           const data = {
275 353
             orderids: this.selectedOrderId.join(',').replace(/\s+/g, ''),
276
-            id: this.selectedId.join(',').replace(/\s+/g, ''), 
277
-          };
354
+            id: this.selectedId.join(',').replace(/\s+/g, '')
355
+          }
278 356
           submitChangeCollectionOrderCustomerService(data).then((response) => {
279
-            if (response.state.toLowerCase() === "success") {
280
-              this.getList();
281
-              this.$message.success("提交成功!");
357
+            if (response.state.toLowerCase() === 'success') {
358
+              this.getList()
359
+              this.$message.success('提交成功!')
282 360
             }
283
-          });
361
+          })
284 362
         })
285 363
         .catch(() => {
286 364
           this.$message({
287
-            type: "info",
288
-            message: "已取消提交",
289
-          });
290
-        });
365
+            type: 'info',
366
+            message: '已取消提交'
367
+          })
368
+        })
291 369
     },
292 370
     // 提交
293 371
     btn_submit(id, orderId) {
294
-      this.$confirm("确定提交吗?", "提示", {
295
-        confirmButtonText: "确定",
296
-        cancelButtonText: "取消",
297
-        type: "warning",
372
+      this.$confirm('确定提交吗?', '提示', {
373
+        confirmButtonText: '确定',
374
+        cancelButtonText: '取消',
375
+        type: 'warning'
298 376
       })
299 377
         .then(() => {
300 378
           const data = {
301 379
             orderids: orderId,
302
-            id: id,
303
-          };
380
+            id: id
381
+          }
304 382
           submitChangeCollectionOrderCustomerService(data).then((response) => {
305
-            if (response.state.toLowerCase() === "success") {
306
-              this.getList();
307
-              this.$message.success("提交成功!");
383
+            if (response.state.toLowerCase() === 'success') {
384
+              this.getList()
385
+              this.$message.success('提交成功!')
308 386
             }
309
-          });
387
+          })
310 388
         })
311 389
         .catch(() => {
312 390
           this.$message({
313
-            type: "info",
314
-            message: "已取消提交",
315
-          });
316
-        });
391
+            type: 'info',
392
+            message: '已取消提交'
393
+          })
394
+        })
317 395
     },
318 396
     // 详情
319 397
     btn_after_sale_detail(editId) {
@@ -344,7 +422,7 @@ export default {
344 422
       }
345 423
     },
346 424
     handleTabClick(tab, event) {
347
-      this.pageParams.pageindex=1
425
+      this.pageParams.pageindex = 1
348 426
       this.getList()
349 427
     },
350 428
     btn_search() {

+ 129 - 0
CallCenterWeb.UI/src/views/customerServiceManagement/orderListPending/importReceiving.vue

@@ -0,0 +1,129 @@
1
+<template>
2
+  <div class="importFile">
3
+    <el-alert title="选取的EXCEL文件需要严格按照下载的EXCEL模板进行填写!选择好文件后点击导入即可!" type="warning" class="md" show-icon/>
4
+    <el-row>
5
+      <el-col :lg="7" class="md">
6
+        <a :href="downloadUrl" download="导入模板.xlsx" class="download_btn" title="点击下载EXCEL模板" rel="nofollow">
7
+          下载EXCEL模板
8
+        </a>
9
+      </el-col>
10
+      <el-col :lg="17" class="md">
11
+        <el-upload
12
+          ref="upload"
13
+          :limit="1"
14
+          :file-list="uploadData.fileList"
15
+          :action= "uploadData.uploadUrl"
16
+          :data = "uploadData.uploaderFiles"
17
+          :on-success="uploadSuccess"
18
+          :on-error="uploadError"
19
+          :on-exceed="uploadExceed"
20
+          :auto-upload="false"
21
+          :headers = "uploadData.uploadHeader"
22
+          class="uploadFiles"
23
+          list-type="text"
24
+          name="upFile"
25
+          accept="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel">
26
+          <el-button slot="trigger" size="small" type="primary">选取EXCEL文件</el-button>
27
+          <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">导入</el-button>
28
+          <!-- <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,且不超过500kb</div> -->
29
+        </el-upload>
30
+      </el-col>
31
+    </el-row>
32
+  </div>
33
+</template>
34
+
35
+<script>
36
+import { getToken } from '@/utils/auth'
37
+
38
+export default {
39
+  name: 'ImportFile',
40
+  props: {
41
+    rowid: {
42
+      type: String,
43
+      default: ''
44
+    },
45
+    layerid: {
46
+      type: String,
47
+      default: ''
48
+    }
49
+  },
50
+  data() {
51
+    return {
52
+      downloadUrl: '/static/xls/importToBeReviewed.xlsx',
53
+      uploadData: {// 文件上传数据
54
+        uploadHeader: {
55
+          Authorization: getToken()
56
+        },
57
+        uploadUrl: this.$store.getters.serverConfig.BASE_API + 'api/Order/importcheckordermoney',
58
+        uploaderFiles: {// 上传文件的参数
59
+
60
+        },
61
+        fileList: [] // 展示文件的数据
62
+      }
63
+    }
64
+  },
65
+  created() {
66
+  },
67
+  methods: {
68
+    submitUpload() {
69
+      this.$refs.upload.submit()
70
+    },
71
+    // 文件上传
72
+    uploadSuccess(response, file, fileList) {
73
+      if (response.state.toLowerCase() === 'success') {
74
+        this.$parent.$layer.close(this.layerid)
75
+        this.$parent.getList() // 重新加载父级数据
76
+        this.$message.success('恭喜你,导入成功!')
77
+      } else {
78
+        this.$message.error(response.message)
79
+      }
80
+    },
81
+    uploadExceed(file, fileList) {
82
+      this.$message.warning('只能选择一个文件!')
83
+    },
84
+    uploadError(err, file, fileList) {
85
+      this.$message.error(err)
86
+    }
87
+  }
88
+}
89
+</script>
90
+
91
+<style rel="stylesheet/scss" lang="scss" scoped>
92
+	.importFile{
93
+		.md{
94
+			margin-bottom: 20px;
95
+		}
96
+		.download_btn{
97
+			display: inline-block;
98
+			line-height: 1;
99
+			white-space: nowrap;
100
+			cursor: pointer;
101
+			border: 1px solid #dcdfe6;
102
+			-webkit-appearance: none;
103
+			text-align: center;
104
+			-webkit-box-sizing: border-box;
105
+			box-sizing: border-box;
106
+			outline: 0;
107
+			margin: 0;
108
+			-webkit-transition: .1s;
109
+			transition: .1s;
110
+			font-weight: 500;
111
+			padding: 9px 15px;
112
+			font-size: 12px;
113
+			border-radius: 4px;
114
+			color: #fff;
115
+			background-color: #409EFF;
116
+			border-color: #409EFF;
117
+			&:hover{
118
+				background: #66b1ff;
119
+				border-color: #66b1ff;
120
+				color: #fff;
121
+			}
122
+			&:active{
123
+				background: #66b1ff;
124
+				border-color: #66b1ff;
125
+				color: #fff;
126
+			}
127
+		}
128
+	}
129
+</style>

+ 187 - 173
CallCenterWeb.UI/src/views/customerServiceManagement/orderListPending/index.vue

@@ -13,8 +13,8 @@
13 13
         start-placeholder="开始日期"
14 14
         end-placeholder="结束日期"
15 15
       />
16
-        <!-- :clearable="false" -->
17
-        <!-- align="left" -->
16
+      <!-- :clearable="false" -->
17
+      <!-- align="left" -->
18 18
       <el-cascader
19 19
         ref="myCascader"
20 20
         v-model="searchData.provinceCity"
@@ -82,14 +82,15 @@
82 82
       <el-button v-permission="'HY_bulk_warehouse'" v-if="authority_bulk_warehouse()" type="primary" class="filter-item" @click="btn_bulk_warehouse">批量分仓</el-button>
83 83
       <el-button v-permission="'HY_bulk_review'" v-if="authority_bulk_review()" type="primary" class="filter-item" @click="btn_bulk_review">批量审核</el-button>
84 84
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
85
+      <el-button v-permission="'HY_import'" v-if="activeName==7" type="primary" class="filter-item" @click="btn_import">批量导入审核</el-button>
85 86
       <el-button v-permission="'HY_export'" type="primary" class="filter-item" @click="btn_export">导出</el-button>
86 87
       <el-button v-permission="'HY_import_goback'" type="primary" class="filter-item" @click="btn_import_goback">导入附件退回</el-button>
87 88
     </div>
88 89
     <el-tabs v-model="activeName" type="card" @tab-click="handleTabClick">
89
-      <el-tab-pane label="待分仓" name="1"></el-tab-pane>
90
-      <el-tab-pane label="无货" name="4"></el-tab-pane>
91
-      <el-tab-pane label="付款待审核" name="7"></el-tab-pane>
92
-      <el-tab-pane label="0金额袜子" name="isZeroCommodity"></el-tab-pane>
90
+      <el-tab-pane label="待分仓" name="1"/>
91
+      <el-tab-pane label="无货" name="4"/>
92
+      <el-tab-pane label="付款待审核" name="7"/>
93
+      <el-tab-pane label="0金额袜子" name="isZeroCommodity"/>
93 94
     </el-tabs>
94 95
     <div>
95 96
       <span>订单数量:{{ pageParams.total }}</span>
@@ -99,10 +100,10 @@
99 100
       :data="dataLists"
100 101
       border
101 102
       stripe
102
-      @selection-change="handleSelectionChange"
103 103
       row-key="F_Id"
104
+      @selection-change="handleSelectionChange"
104 105
     >
105
-      <el-table-column type="selection" :reserve-selection="true"></el-table-column>
106
+      <el-table-column :reserve-selection="true" type="selection"/>
106 107
       <el-table-column type="index" label="编号" align="center" fixed width="80" />
107 108
       <el-table-column prop="F_Id" label="订单编号" align="center" min-width="180">
108 109
         <template slot-scope="scope">
@@ -116,7 +117,7 @@
116 117
       <el-table-column prop="F_Customer" label="客户姓名" align="center" min-width />
117 118
       <el-table-column prop="F_CustomerPhone" label="手机号码" align="center" min-width="140" />
118 119
       <el-table-column label="订购商品" align="center" min-width>
119
-        <template slot-scope="scope">{{ scope.row.OrderDetailList | judgmentOrderGoods}}</template>
120
+        <template slot-scope="scope">{{ scope.row.OrderDetailList | judgmentOrderGoods }}</template>
120 121
       </el-table-column>
121 122
       <el-table-column prop="F_AddTime" label="下单日期" align="center" />
122 123
       <el-table-column label="订单状态" align="center">
@@ -180,41 +181,42 @@
180 181
 
181 182
 <script>
182 183
 import { getDictionaryValueList, getProviceCityById } from '@/api/commonAPI'
183
-import { getOrderListCustomerService } from "@/api/customerServiceManagement/orderListCustomerService";
184
-import { pickerOptions, formatterContent } from "@/utils";
184
+import { getOrderListCustomerService } from '@/api/customerServiceManagement/orderListCustomerService'
185
+import { pickerOptions, formatterContent } from '@/utils'
185 186
 // import through from "./through";
186 187
 // import label from "./label";
187 188
 // import edit from "./edit";
188 189
 // import merge from './merge';
189
-import importGoback from './importGoback';
190
-import goback from "./goback";
191
-import warehouse from './warehouse';
192
-import review from './review';
193
-import detail from "@/views/orderManagement/orderList/detail"
194
-import Pagination from "@/components/Pagination"; // 对el-pagination 二次封装
190
+import importReceiving from './importReceiving'
191
+import importGoback from './importGoback'
192
+import goback from './goback'
193
+import warehouse from './warehouse'
194
+import review from './review'
195
+import detail from '@/views/orderManagement/orderList/detail'
196
+import Pagination from '@/components/Pagination' // 对el-pagination 二次封装
195 197
 
196 198
 export default {
197
-  name: "OrderListCustomerService",
199
+  name: 'OrderListCustomerService',
198 200
   components: {
199 201
     Pagination
200 202
   },
201 203
   filters: {
202
-    judgmentStateName (status) {
204
+    judgmentStateName(status) {
203 205
       const statusMap = {
204
-        '0': "未提交",
205
-        '1': "待分仓",
206
-        '2': "已退回",
207
-        '3': "已分仓",
208
-        '4': "无货",
209
-        '5': "仓库待审核",
210
-        '6': "已发货",
211
-        '7': "付款待审核",
212
-        '8': "待分物流",
213
-        '9': "物流未通过",
206
+        '0': '未提交',
207
+        '1': '待分仓',
208
+        '2': '已退回',
209
+        '3': '已分仓',
210
+        '4': '无货',
211
+        '5': '仓库待审核',
212
+        '6': '已发货',
213
+        '7': '付款待审核',
214
+        '8': '待分物流',
215
+        '9': '物流未通过'
214 216
       }
215 217
       return statusMap[status]
216 218
     },
217
-    judgmentOrderGoods (status) {
219
+    judgmentOrderGoods(status) {
218 220
       let orderGoodsNameQuantity = ''
219 221
       for (let i = 0; i < status.length; i++) {
220 222
         orderGoodsNameQuantity = `${orderGoodsNameQuantity}${status[i].F_ProductName}*${status[i].F_Count},`
@@ -222,36 +224,36 @@ export default {
222 224
       orderGoodsNameQuantity = orderGoodsNameQuantity.substring(0, orderGoodsNameQuantity.length - 1)
223 225
       return orderGoodsNameQuantity
224 226
     },
225
-    judgmentAddress (data) {
226
-      let addProvince = data.F_AddProvince === null ? '' : data.F_AddProvince //省
227
-      let addCity = data.F_AddCity === null ? '' : data.F_AddCity //市
228
-      let addArea = data.F_AddArea === null ? '' : data.F_AddArea //县/区
229
-      let addTown = data.F_AddTown === null ? '' : data.F_AddTown //乡/镇
230
-      let address = data.F_Address === null ? '' : data.F_Address //详细地址
231
-      let addressStr = addProvince + addCity + addArea + addTown + address // 地址
227
+    judgmentAddress(data) {
228
+      const addProvince = data.F_AddProvince === null ? '' : data.F_AddProvince // 
229
+      const addCity = data.F_AddCity === null ? '' : data.F_AddCity // 
230
+      const addArea = data.F_AddArea === null ? '' : data.F_AddArea // 县/区
231
+      const addTown = data.F_AddTown === null ? '' : data.F_AddTown // 乡/镇
232
+      const address = data.F_Address === null ? '' : data.F_Address // 详细地址
233
+      const addressStr = addProvince + addCity + addArea + addTown + address // 地址
232 234
       return addressStr
233 235
     }
234 236
   },
235
-  data () {
237
+  data() {
236 238
     return {
237 239
       loading: false,
238 240
       searchData: {
239 241
         state: '1',
240
-        adFrom: '', //消息/广告媒体来源
241
-        type: '', //订单类型
242
-        id: '', //订单号
243
-        customer: '', //客户姓名
244
-        customerPhone: '', //客户手机号
245
-        trackingNo: '', //运单号
246
-        payState: '', //交易状态
242
+        adFrom: '', // 消息/广告媒体来源
243
+        type: '', // 订单类型
244
+        id: '', // 订单号
245
+        customer: '', // 客户姓名
246
+        customerPhone: '', // 客户手机号
247
+        trackingNo: '', // 运单号
248
+        payState: '', // 交易状态
247 249
         provinceCity: [], // 省市县
248 250
         minprice: '', // 最低金额
249 251
         maxprice: '', // 最高金额
250 252
         F_AddDes: '', // 送货说明
251
-        isZeroCommodity: '',
253
+        isZeroCommodity: ''
252 254
       },
253
-      searchTime: [], //订单时间
254
-      activeName: "1", //标签切换首页
255
+      searchTime: [], // 订单时间
256
+      activeName: '1', // 标签切换首页
255 257
       provinceCityDatas: [], // 省市下拉数据
256 258
       provinceCityText: [], // 省市下拉绑定的值
257 259
       props: {
@@ -270,16 +272,16 @@ export default {
270 272
       dataLists: [], // 列表数据
271 273
       multipleSelection: [], // 选中的数据
272 274
       selectedId: [], // 选中的数据的id
273
-      orderType: [],//订单类型
274
-      selectOrderId: [], //合并订单id
275
-    };
275
+      orderType: [], // 订单类型
276
+      selectOrderId: [] // 合并订单id
277
+    }
276 278
   },
277 279
   watch: {
278 280
     searchTime(newVal, oldVal) {
279 281
       !newVal && (this.searchTime = [])
280 282
     }
281 283
   },
282
-  created () {
284
+  created() {
283 285
     if (this.$route.params.id) {
284 286
       this.activeName = this.$route.params.id
285 287
     }
@@ -290,28 +292,28 @@ export default {
290 292
     this.getAddDesList()
291 293
     document.onkeyup = e => {
292 294
       if (e.keyCode === 13) {
293
-        this.getList();
295
+        this.getList()
294 296
       }
295
-    };
297
+    }
296 298
   },
297 299
   methods: {
298
-    getList () {
299
-      this.loading = true;
300
+    getList() {
301
+      this.loading = true
300 302
       return new Promise(resolve => {
301 303
         const params = {
302
-          F_State: this.searchData.state, //订单状态
304
+          F_State: this.searchData.state, // 订单状态
303 305
           pageindex: 1, // int 第几页
304 306
           pagesize: 1000000, // int 每页几条信息
305
-          F_ADFrom: this.searchData.adFrom, //消息/广告来源
306
-          F_Type: this.searchData.type, //订单类型
307
-          F_Id: this.searchData.id, //订单号
308
-          F_Customer: this.searchData.customer, //客户姓名
309
-          F_CustomerPhone: this.searchData.customerPhone, //客户手机号
310
-          F_TrackingNo: this.searchData.trackingNo, //运单号
311
-          SearchStartTime: this.searchTime[0] == null ? '' : this.searchTime[0], //添加开始时间
312
-          SearchEndTime: this.searchTime[1] == null ? '' : this.searchTime[1], //添加结束时间
313
-          PayState: this.searchData.payState, //交易状态
314
-          F_IsExpress: -2, //-2全部 0客服未分配快递 1已分配
307
+          F_ADFrom: this.searchData.adFrom, // 消息/广告来源
308
+          F_Type: this.searchData.type, // 订单类型
309
+          F_Id: this.searchData.id, // 订单号
310
+          F_Customer: this.searchData.customer, // 客户姓名
311
+          F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
312
+          F_TrackingNo: this.searchData.trackingNo, // 运单号
313
+          SearchStartTime: this.searchTime[0] == null ? '' : this.searchTime[0], // 添加开始时间
314
+          SearchEndTime: this.searchTime[1] == null ? '' : this.searchTime[1], // 添加结束时间
315
+          PayState: this.searchData.payState, // 交易状态
316
+          F_IsExpress: -2, // -2全部 0客服未分配快递 1已分配
315 317
           state: '',
316 318
           F_AddProvince: this.provinceCityText && this.provinceCityText[0], // 省份
317 319
           F_AddCity: this.provinceCityText[1] && this.provinceCityText[1], // 市
@@ -321,31 +323,31 @@ export default {
321 323
           maxprice: this.searchData.maxprice, // 最高金额
322 324
           F_AddDes: this.searchData.F_AddDes, // 送货说明
323 325
           F_IsZeroCommodity: this.searchData.isZeroCommodity
324
-        };
326
+        }
325 327
         getOrderListCustomerService(params).then(response => {
326
-          this.loading = false;
327
-          if (response.state.toLowerCase() === "success") {
328
-            this.pageParams.total = response.data.Totals;
329
-            this.dataLists = response.data.Rows;
328
+          this.loading = false
329
+          if (response.state.toLowerCase() === 'success') {
330
+            this.pageParams.total = response.data.Totals
331
+            this.dataLists = response.data.Rows
330 332
           }
331
-        });
332
-        resolve();
333
-      });
333
+        })
334
+        resolve()
335
+      })
334 336
     },
335
-    //处理默认选中当前日期
337
+    // 处理默认选中当前日期
336 338
     getNowTime() {
337
-      let now = new Date();
338
-      let year = now.getFullYear(); //得到年份
339
-      let month = now.getMonth() + 1; //得到月份
340
-      let date = now.getDate(); //得到日期
341
-      let hour =" 00:00:00"; //默认时分秒
342
-      month = month.toString().padStart(2, "0");
343
-      date = date.toString().padStart(2, "0");
344
-      let defaultDate = `${year}-${month}-${date}`;
339
+      const now = new Date()
340
+      const year = now.getFullYear() // 得到年份
341
+      let month = now.getMonth() + 1 // 得到月份
342
+      let date = now.getDate() // 得到日期
343
+      const hour = ' 00:00:00' // 默认时分秒
344
+      month = month.toString().padStart(2, '0')
345
+      date = date.toString().padStart(2, '0')
346
+      const defaultDate = `${year}-${month}-${date}`
345 347
       this.searchTime = [defaultDate, defaultDate]
346 348
     },
347 349
     // 获取订单类型
348
-    getOrderType () {
350
+    getOrderType() {
349 351
       return new Promise(resolve => {
350 352
         const params = {
351 353
           isleaf: true,
@@ -372,9 +374,9 @@ export default {
372 374
         })
373 375
       })
374 376
     },
375
-    handleTabClick (tab, event) {
376
-      this.pageParams.pageindex=1
377
-      if (this.activeName == "isZeroCommodity") {
377
+    handleTabClick(tab, event) {
378
+      this.pageParams.pageindex = 1
379
+      if (this.activeName == 'isZeroCommodity') {
378 380
         this.searchData.isZeroCommodity = 1
379 381
         this.searchData.state = ''
380 382
       } else {
@@ -383,33 +385,45 @@ export default {
383 385
       }
384 386
       this.getList()
385 387
     },
386
-    btn_search () {
387
-      this.pageParams.pageindex = 1;
388
-      this.getList();
388
+    btn_search() {
389
+      this.pageParams.pageindex = 1
390
+      this.getList()
391
+    },
392
+    // 批量导入
393
+    btn_import() {
394
+      this.$layer.iframe({
395
+        content: {
396
+          content: importReceiving, // 传递的组件对象
397
+          parent: this, // 当前的vue对象
398
+          data: { rowid: '' } // props
399
+        },
400
+        area: ['30%', '30%'],
401
+        title: '导入'
402
+      })
389 403
     },
390
-    //导出
391
-    btn_export () {
392
-      let SearchStartTime = this.searchTime[0] == undefined ? '' : this.searchTime[0]
393
-      let SearchEndTime = this.searchTime[1] == undefined ? '' : this.searchTime[1]
394
-      let F_AddProvince = this.provinceCityText[0] == undefined ? '' : this.provinceCityText[0]
395
-      let F_AddCity = this.provinceCityText[1] == undefined ? '' : this.provinceCityText[1]
396
-      let F_AddArea = this.provinceCityText[2] == undefined ? '' : this.provinceCityText[2]
397
-      let F_AddTown = this.provinceCityText[3] == undefined ? '' : this.provinceCityText[3]
398
-      window.location.href = this.$store.getters.serverConfig.BASE_API + "api/order/getorderlistbykfpage?isdc=1" + "&F_State=" + this.activeName + "&SearchStartTime=" + SearchStartTime + "&SearchEndTime=" + SearchEndTime + "&F_AddProvince=" + F_AddProvince + "&F_AddCity=" + F_AddCity + "&F_AddArea=" + F_AddArea + "&F_AddTown=" + F_AddTown + "&minprice=" + this.searchData.minprice + "&maxprice=" + this.searchData.maxprice + "&F_AddDes=" + this.searchData.F_AddDes
404
+    // 导出
405
+    btn_export() {
406
+      const SearchStartTime = this.searchTime[0] == undefined ? '' : this.searchTime[0]
407
+      const SearchEndTime = this.searchTime[1] == undefined ? '' : this.searchTime[1]
408
+      const F_AddProvince = this.provinceCityText[0] == undefined ? '' : this.provinceCityText[0]
409
+      const F_AddCity = this.provinceCityText[1] == undefined ? '' : this.provinceCityText[1]
410
+      const F_AddArea = this.provinceCityText[2] == undefined ? '' : this.provinceCityText[2]
411
+      const F_AddTown = this.provinceCityText[3] == undefined ? '' : this.provinceCityText[3]
412
+      window.location.href = this.$store.getters.serverConfig.BASE_API + 'api/order/getorderlistbykfpage?isdc=1' + '&F_State=' + this.activeName + '&SearchStartTime=' + SearchStartTime + '&SearchEndTime=' + SearchEndTime + '&F_AddProvince=' + F_AddProvince + '&F_AddCity=' + F_AddCity + '&F_AddArea=' + F_AddArea + '&F_AddTown=' + F_AddTown + '&minprice=' + this.searchData.minprice + '&maxprice=' + this.searchData.maxprice + '&F_AddDes=' + this.searchData.F_AddDes
399 413
     },
400
-    btn_edit (editId) {
414
+    btn_edit(editId) {
401 415
       this.$layer.iframe({
402 416
         content: {
403 417
           content: edit, // 传递的组件对象
404 418
           parent: this, // 当前的vue对象
405 419
           data: { rowid: editId } // props
406 420
         },
407
-        area: ["80%", "90%"],
408
-        title: "编辑订单"
409
-      });
421
+        area: ['80%', '90%'],
422
+        title: '编辑订单'
423
+      })
410 424
     },
411
-    //导入
412
-    btn_waybill_number_import () {
425
+    // 导入
426
+    btn_waybill_number_import() {
413 427
       this.$layer.iframe({
414 428
         content: {
415 429
           content: importWaybillNumber, // 传递的组件对象
@@ -422,127 +436,127 @@ export default {
422 436
       })
423 437
     },
424 438
     // 批量分仓
425
-    btn_bulk_warehouse () {
439
+    btn_bulk_warehouse() {
426 440
       if (this.selectOrderId.length < 1) {
427 441
         this.$message({
428
-          message: "请选择订单!",
429
-          type: "warning",
430
-        });
431
-        return;
442
+          message: '请选择订单!',
443
+          type: 'warning'
444
+        })
445
+        return
432 446
       }
433
-      let orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
447
+      const orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
434 448
       this.$layer.iframe({
435 449
         content: {
436 450
           content: warehouse, // 传递的组件对象
437 451
           parent: this, // 当前的vue对象
438 452
           data: { rowid: orderids } // props
439 453
         },
440
-        area: ["30%", "30%"],
441
-        title: "分仓"
442
-      });
454
+        area: ['30%', '30%'],
455
+        title: '分仓'
456
+      })
443 457
     },
444 458
     // 分仓
445
-    btn_warehouse (orderid) {
459
+    btn_warehouse(orderid) {
446 460
       this.$layer.iframe({
447 461
         content: {
448 462
           content: warehouse, // 传递的组件对象
449 463
           parent: this, // 当前的vue对象
450 464
           data: { rowid: orderid } // props
451 465
         },
452
-        area: ["30%", "30%"],
453
-        title: "分仓"
454
-      });
466
+        area: ['30%', '30%'],
467
+        title: '分仓'
468
+      })
455 469
     },
456 470
     // 批量审核
457
-    btn_bulk_review () {
471
+    btn_bulk_review() {
458 472
       if (this.selectOrderId.length < 1) {
459 473
         this.$message({
460
-          message: "请选择订单!",
461
-          type: "warning",
462
-        });
463
-        return;
474
+          message: '请选择订单!',
475
+          type: 'warning'
476
+        })
477
+        return
464 478
       }
465
-      let orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
479
+      const orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
466 480
       this.$layer.iframe({
467 481
         content: {
468 482
           content: review, // 传递的组件对象
469 483
           parent: this, // 当前的vue对象
470 484
           data: { rowid: orderids } // props
471 485
         },
472
-        area: ["30%", "30%"],
473
-        title: "审核"
474
-      });
486
+        area: ['30%', '30%'],
487
+        title: '审核'
488
+      })
475 489
     },
476 490
     // 审核
477
-    btn_review (orderid) {
491
+    btn_review(orderid) {
478 492
       this.$layer.iframe({
479 493
         content: {
480 494
           content: review, // 传递的组件对象
481 495
           parent: this, // 当前的vue对象
482 496
           data: { rowid: orderid } // props
483 497
         },
484
-        area: ["30%", "30%"],
485
-        title: "审核"
486
-      });
498
+        area: ['30%', '30%'],
499
+        title: '审核'
500
+      })
487 501
     },
488 502
     // 批量退回
489
-    btn_bulk_goback () {
503
+    btn_bulk_goback() {
490 504
       if (this.selectOrderId.length < 1) {
491 505
         this.$message({
492
-          message: "请选择订单!",
493
-          type: "warning",
494
-        });
495
-        return;
506
+          message: '请选择订单!',
507
+          type: 'warning'
508
+        })
509
+        return
496 510
       }
497
-      let orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
511
+      const orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
498 512
       this.$layer.iframe({
499 513
         content: {
500 514
           content: goback, // 传递的组件对象
501 515
           parent: this, // 当前的vue对象
502 516
           data: { rowid: orderids } // props
503 517
         },
504
-        area: ["30%", "30%"],
505
-        title: "退回订单"
506
-      });
518
+        area: ['30%', '30%'],
519
+        title: '退回订单'
520
+      })
507 521
     },
508
-    //退回订单
509
-    btn_goback (orderid) {
522
+    // 退回订单
523
+    btn_goback(orderid) {
510 524
       this.$layer.iframe({
511 525
         content: {
512 526
           content: goback, // 传递的组件对象
513 527
           parent: this, // 当前的vue对象
514 528
           data: { rowid: orderid } // props
515 529
         },
516
-        area: ["30%", "30%"],
517
-        title: "退回订单"
518
-      });
530
+        area: ['30%', '30%'],
531
+        title: '退回订单'
532
+      })
519 533
     },
520
-    //导入附件退回
521
-    btn_import_goback () {
534
+    // 导入附件退回
535
+    btn_import_goback() {
522 536
       this.$layer.iframe({
523 537
         content: {
524 538
           content: importGoback, // 传递的组件对象
525 539
           parent: this, // 当前的vue对象
526
-          data: { rowid: "" } // props
540
+          data: { rowid: '' } // props
527 541
         },
528
-        area: ["30%", "30%"],
529
-        title: "导入附件退回"
530
-      });
542
+        area: ['30%', '30%'],
543
+        title: '导入附件退回'
544
+      })
531 545
     },
532
-    //通过订单
533
-    btn_through (orderid) {
546
+    // 通过订单
547
+    btn_through(orderid) {
534 548
       this.$layer.iframe({
535 549
         content: {
536 550
           content: through, // 传递的组件对象
537 551
           parent: this, // 当前的vue对象
538 552
           data: { rowid: orderid } // props
539 553
         },
540
-        area: ["30%", "30%"],
541
-        title: "通过订单"
542
-      });
554
+        area: ['30%', '30%'],
555
+        title: '通过订单'
556
+      })
543 557
     },
544
-    //订单详情
545
-    hadndleOrderCode (ordercode) {
558
+    // 订单详情
559
+    hadndleOrderCode(ordercode) {
546 560
       this.$layer.iframe({
547 561
         content: {
548 562
           content: detail, // 传递的组件对象
@@ -553,8 +567,8 @@ export default {
553 567
         title: '订单详情'
554 568
       })
555 569
     },
556
-    //选择多个
557
-    handleSelectionChange (val) {
570
+    // 选择多个
571
+    handleSelectionChange(val) {
558 572
       const ids = []
559 573
       this.multipleSelection = val
560 574
       for (let i = 0; i < this.multipleSelection.length; i++) {
@@ -607,8 +621,8 @@ export default {
607 621
       }
608 622
       return data
609 623
     },
610
-    //编辑权限
611
-    authority_edit (state) {
624
+    // 编辑权限
625
+    authority_edit(state) {
612 626
       if (state == -1 || state == 0 || state == 1) {
613 627
         return true
614 628
       } else {
@@ -616,7 +630,7 @@ export default {
616 630
       }
617 631
     },
618 632
     // 分仓权限
619
-    authority_warehouse (state) {
633
+    authority_warehouse(state) {
620 634
       if (state == 1 || state == 4) {
621 635
         return true
622 636
       } else {
@@ -624,7 +638,7 @@ export default {
624 638
       }
625 639
     },
626 640
     // 审核权限
627
-    authority_review (state) {
641
+    authority_review(state) {
628 642
       if (state == 7) {
629 643
         return true
630 644
       } else {
@@ -635,7 +649,7 @@ export default {
635 649
     authority_bulk_review() {
636 650
       if (this.activeName == 7) {
637 651
         return true
638
-      } else { 
652
+      } else {
639 653
         return false
640 654
       }
641 655
     },
@@ -647,8 +661,8 @@ export default {
647 661
         return false
648 662
       }
649 663
     },
650
-    //退回权限
651
-    authority_goback (state) {
664
+    // 退回权限
665
+    authority_goback(state) {
652 666
       return true
653 667
       // if (state == 2 || state == 3 || state == 4 || state == 5 || state == 6) {
654 668
       //   return false
@@ -656,20 +670,20 @@ export default {
656 670
       //   return true
657 671
       // }
658 672
     },
659
-    //通过权限
660
-    authority_through (state) {
673
+    // 通过权限
674
+    authority_through(state) {
661 675
       if (state == -1 || state == 0 || state == 1) {
662 676
         return true
663 677
       } else {
664 678
         return false
665 679
       }
666
-    },
680
+    }
667 681
   }
668
-};
682
+}
669 683
 </script>
670 684
 
671 685
 <style rel="stylesheet/scss" lang="scss" scoped>
672 686
 .el {
673 687
   cursor: pointer;
674 688
 }
675
-</style>
689
+</style>

+ 21 - 19
CallCenterWeb.UI/src/views/orderManagement/changeCollectionOrderList/index.vue

@@ -12,12 +12,14 @@
12 12
         <!-- <el-option label="漏发" value="8"/> -->
13 13
       </el-select>
14 14
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
15
-      <el-button type="primary" v-permission="'HY_import_waybill_number'" class="filter-item" @click="btn_import_waybill_number">导入运单号</el-button>
15
+      <el-button v-permission="'HY_import_waybill_number'" type="primary" class="filter-item" @click="btn_import_waybill_number">导入运单号</el-button>
16 16
     </div>
17 17
     <el-tabs v-model="activeName" type="card" @tab-click="handleTabClick" >
18
-      <el-tab-pane label="改代收" name="0"></el-tab-pane>
19
-      <el-tab-pane label="已签收" name="1"></el-tab-pane>
20
-      <el-tab-pane label="已提交" name="2"></el-tab-pane>
18
+      <el-tab-pane label="全部" name="4"/>
19
+      <el-tab-pane label="改代收" name="0"/>
20
+      <el-tab-pane label="已签收" name="1"/>
21
+      <el-tab-pane label="已拒收" name="2"/>
22
+      <el-tab-pane label="已提交" name="3"/>
21 23
     </el-tabs>
22 24
     <div>
23 25
       <span>订单数量:{{ pageParams.total }}</span>
@@ -55,8 +57,8 @@
55 57
           <el-button v-permission="'HY_after_sale_detail'" type="text" @click="btn_after_sale_detail(scope.row.F_Id)">详情</el-button>
56 58
           <el-button
57 59
             v-permission="'HY_waybill_number'"
58
-            type="text"
59 60
             v-if="authority_waybill_number(scope.row.F_ReturnType)"
61
+            type="text"
60 62
             @click="btn_waybill_number(scope.row.F_OrderId)"
61 63
           >运单号</el-button>
62 64
         </template>
@@ -127,10 +129,10 @@ export default {
127 129
         checkState: '-2', // 售后审核状态
128 130
         type: '', // 售后类型
129 131
         isSignfor: '0', // 是否签入
130
-        woState: '',  // 是否提交
131
-        returnType: '改代收', // 退回状态
132
+        woState: '', // 是否提交
133
+        returnType: '改代收' // 退回状态
132 134
       },
133
-      activeName: '0',
135
+      activeName: '4',
134 136
       pickerOptions, // 日期数据
135 137
       pageParams: {
136 138
         pageindex: 1, // 当前第几页
@@ -164,7 +166,7 @@ export default {
164 166
           F_PayState: '-2',
165 167
           F_ReturnType: this.searchData.returnType,
166 168
           IsSignfor: this.searchData.isSignfor, // 是否签入
167
-          F_WoState: this.searchData.woState, // 是否提交
169
+          F_WoState: this.searchData.woState // 是否提交
168 170
         }
169 171
         getAfterSaleList(params).then(response => {
170 172
           this.loading = false
@@ -232,16 +234,16 @@ export default {
232 234
       })
233 235
     },
234 236
     handleTabClick(tab, event) {
235
-      this.pageParams.pageindex=1
236
-      if (this.activeName == "2") {
237
-        this.searchData.woState = "1"
238
-        this.searchData.isSignfor = ""
239
-        this.searchData.returnType = "改代收"
240
-      } else { 
241
-        this.searchData.woState = ""
237
+      this.pageParams.pageindex = 1
238
+      if (this.activeName == '3') {
239
+        this.searchData.woState = '1'
240
+        this.searchData.isSignfor = ''
241
+        this.searchData.returnType = '改代收'
242
+      } else {
243
+        this.searchData.woState = ''
242 244
         this.searchData.isSignfor = this.activeName
243
-        this.searchData.returnType = "改代收"
244
-       }
245
+        this.searchData.returnType = '改代收'
246
+      }
245 247
       this.getList()
246 248
     },
247 249
     btn_search() {
@@ -283,7 +285,7 @@ export default {
283 285
       }
284 286
     },
285 287
     authority_waybill_number(returnType) {
286
-      if (returnType == "改代收") {
288
+      if (returnType == '改代收') {
287 289
         return true
288 290
       } else {
289 291
         return false

+ 10 - 10
CallCenterWeb.UI/src/views/orderManagement/orderList/index.vue

@@ -284,14 +284,14 @@
284 284
             @click="btn_cancel(scope.row.F_Id)"
285 285
             :disabled="isDisable"
286 286
           >撤回</el-button> -->
287
-          <el-button
287
+          <!-- <el-button
288 288
             v-permission="'HY_afterSale'"
289
-            v-if="authority_afterSale(scope.row.F_State)"
289
+            v-if="authority_afterSale(scope.row.State)"
290 290
             :disabled="isDisable"
291 291
             type="text"
292 292
             @click="btn_afterSale(scope.row.F_Id)"
293 293
           >售后</el-button
294
-          >
294
+          > -->
295 295
         </template>
296 296
       </el-table-column>
297 297
     </el-table>
@@ -838,13 +838,13 @@ export default {
838 838
       }
839 839
     },
840 840
     // 售后权限
841
-    authority_afterSale(state) {
842
-      if (this.activeName == 1) {
843
-        return true
844
-      } else {
845
-        return false
846
-      }
847
-    },
841
+    // authority_afterSale(state) {
842
+    //   if (this.activeName == 1) {
843
+    //     return true
844
+    //   } else {
845
+    //     return false
846
+    //   }
847
+    // },
848 848
     // 编辑权限
849 849
     authority_edit(state, type) {
850 850
       if (

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