liuyifan 5 anni fa
parent
commit
45e3641d15
19 ha cambiato i file con 432 aggiunte e 922 eliminazioni
  1. 22 1
      CallCenterWeb.UI/src/views/afterSaleManagement/afterSaleOrderList/edit.vue
  2. 22 1
      CallCenterWeb.UI/src/views/callScreen/components/createOrder.vue
  3. 5 5
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceJingdong/index.vue
  4. 5 5
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceRhyme/index.vue
  5. 0 95
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceSF/goback.vue
  6. 0 129
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceSF/importSubmit.vue
  7. 0 354
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceSF/index.vue
  8. 5 5
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceSTO/index.vue
  9. 5 5
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceShanXiSF/index.vue
  10. 5 5
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceXinXiangSF/index.vue
  11. 5 5
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceYuantong/index.vue
  12. 5 5
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceZhongtong/index.vue
  13. 2 2
      CallCenterWeb.UI/src/views/customerServiceManagement/orderListPending/index.vue
  14. 21 0
      CallCenterWeb.UI/src/views/memberManagement/memberList/components/addOrder.vue
  15. 10 17
      CallCenterWeb.UI/src/views/memberManagement/memberList/index.vue
  16. 21 0
      CallCenterWeb.UI/src/views/orderManagement/orderList/edit.vue
  17. 299 288
      CallCenterWeb.UI/src/views/orderManagement/orderList/index.vue
  18. BIN
      CallCenterWeb.UI/static/xls/huiyuanxinxiTemplate.xlsx
  19. BIN
      CallCenterWeb.UI/static/xls/importToBeReviewed.xlsx

+ 22 - 1
CallCenterWeb.UI/src/views/afterSaleManagement/afterSaleOrderList/edit.vue

311
           <el-form-item
311
           <el-form-item
312
             v-show="judgmentIsPayment"
312
             v-show="judgmentIsPayment"
313
             label="付款金额"
313
             label="付款金额"
314
-            prop="OrderMoney.F_Money"            
314
+            prop="OrderMoney.F_Money"
315
           >
315
           >
316
             <el-input
316
             <el-input
317
               v-model.number="ruleForm.OrderMoney.F_Money"
317
               v-model.number="ruleForm.OrderMoney.F_Money"
318
               placeholder="请输入付款金额"
318
               placeholder="请输入付款金额"
319
+              :disabled="disabledIsPayment"
320
+              @change="changeOrderMoneyMoney"
319
             />
321
             />
320
           </el-form-item>
322
           </el-form-item>
321
         </el-col>
323
         </el-col>
459
       maxUsePoints: '', // 最大可使用积分
461
       maxUsePoints: '', // 最大可使用积分
460
       pointsDeductedAmount: '', // 最大可使用积分
462
       pointsDeductedAmount: '', // 最大可使用积分
461
       judgmentIsPayment: false, // 判断是否货到付款
463
       judgmentIsPayment: false, // 判断是否货到付款
464
+      disabledIsPayment: false, // 付款金额
462
       totalAmount: '',
465
       totalAmount: '',
463
       selectAddress: 3, // 选择地址
466
       selectAddress: 3, // 选择地址
464
       defaultAddress: {
467
       defaultAddress: {
1046
     changePayType(val) {
1049
     changePayType(val) {
1047
       if (val === '货到付款') {
1050
       if (val === '货到付款') {
1048
         this.judgmentIsPayment = false
1051
         this.judgmentIsPayment = false
1052
+        this.disabledIsPayment = false
1049
       } else if (val === '全额付款') {
1053
       } else if (val === '全额付款') {
1050
         this.judgmentIsPayment = true
1054
         this.judgmentIsPayment = true
1055
+        this.disabledIsPayment = true
1051
         this.ruleForm.OrderMoney.F_Money = this.totalAmount
1056
         this.ruleForm.OrderMoney.F_Money = this.totalAmount
1052
         this.rules.OrderMoney.F_Money[0].required = false
1057
         this.rules.OrderMoney.F_Money[0].required = false
1053
       } else if (val === '部分付款') {
1058
       } else if (val === '部分付款') {
1054
         this.judgmentIsPayment = true
1059
         this.judgmentIsPayment = true
1060
+        this.disabledIsPayment = false
1055
         this.ruleForm.OrderMoney.F_Money = 0
1061
         this.ruleForm.OrderMoney.F_Money = 0
1056
         this.rules.OrderMoney.F_Money[0].required = true
1062
         this.rules.OrderMoney.F_Money[0].required = true
1057
       } else {
1063
       } else {
1058
         this.judgmentIsPayment = true
1064
         this.judgmentIsPayment = true
1065
+        this.disabledIsPayment = false
1059
         this.ruleForm.OrderMoney.F_Money = 0
1066
         this.ruleForm.OrderMoney.F_Money = 0
1060
         this.rules.OrderMoney.F_Money[0].required = false
1067
         this.rules.OrderMoney.F_Money[0].required = false
1061
       }
1068
       }
1175
         this.getTotalAmountFun()
1182
         this.getTotalAmountFun()
1176
       }
1183
       }
1177
     },
1184
     },
1185
+    changeOrderMoneyMoney(val) {
1186
+      let points = this.alreadyPoints == '' ? 0 : this.alreadyPoints
1187
+      if (this.ruleForm.F_PayType === '部分付款') {
1188
+        if (Number(val) > Number(points)) {
1189
+          this.$message({
1190
+            message: '请输入有效付款金额!',
1191
+            type: 'warning'
1192
+          })
1193
+          this.isSubmitForm = true
1194
+        }
1195
+      } else {
1196
+        this.isSubmitForm = false
1197
+      }
1198
+    },
1178
   }
1199
   }
1179
 };
1200
 };
1180
 </script>
1201
 </script>

+ 22 - 1
CallCenterWeb.UI/src/views/callScreen/components/createOrder.vue

536
                 <el-input
536
                 <el-input
537
                   v-model.number="ruleForm.OrderMoney.F_Money"
537
                   v-model.number="ruleForm.OrderMoney.F_Money"
538
                   placeholder="请输入付款金额"
538
                   placeholder="请输入付款金额"
539
+                  :disabled="disabledIsPayment"
540
+                  @change="changeOrderMoneyMoney"
539
                 />
541
                 />
540
               </el-form-item>
542
               </el-form-item>
541
             </el-col>
543
             </el-col>
694
       maxUsePoints: '', // 最大可使用积分
696
       maxUsePoints: '', // 最大可使用积分
695
       pointsDeductedAmount: '', // 最大可使用积分
697
       pointsDeductedAmount: '', // 最大可使用积分
696
       judgmentIsPayment: false, // 判断是否货到付款
698
       judgmentIsPayment: false, // 判断是否货到付款
699
+      disabledIsPayment: false, // 付款金额
697
       totalAmount: 0, // 应付金额
700
       totalAmount: 0, // 应付金额
698
       defaultAddress: {
701
       defaultAddress: {
699
         province: '', // 省
702
         province: '', // 省
827
               message: '请输入付款金额'
830
               message: '请输入付款金额'
828
             }
831
             }
829
           ]
832
           ]
830
-        }        
833
+        }
831
       },
834
       },
832
       loading: false,
835
       loading: false,
833
       staffNumber: '8000'
836
       staffNumber: '8000'
1269
     changePayType(val) {
1272
     changePayType(val) {
1270
       if (val === '货到付款') {
1273
       if (val === '货到付款') {
1271
         this.judgmentIsPayment = false
1274
         this.judgmentIsPayment = false
1275
+        this.disabledIsPayment = false
1272
       } else if (val === '全额付款') {
1276
       } else if (val === '全额付款') {
1273
         this.judgmentIsPayment = true
1277
         this.judgmentIsPayment = true
1278
+        this.disabledIsPayment = true
1274
         this.ruleForm.OrderMoney.F_Money = this.totalAmount
1279
         this.ruleForm.OrderMoney.F_Money = this.totalAmount
1275
         this.rules.OrderMoney.F_Money[0].required = false
1280
         this.rules.OrderMoney.F_Money[0].required = false
1276
       } else if (val === '部分付款') {
1281
       } else if (val === '部分付款') {
1277
         this.judgmentIsPayment = true
1282
         this.judgmentIsPayment = true
1283
+        this.disabledIsPayment = false
1278
         this.ruleForm.OrderMoney.F_Money = 0
1284
         this.ruleForm.OrderMoney.F_Money = 0
1279
         this.rules.OrderMoney.F_Money[0].required = true
1285
         this.rules.OrderMoney.F_Money[0].required = true
1280
       } else {
1286
       } else {
1281
         this.judgmentIsPayment = true
1287
         this.judgmentIsPayment = true
1288
+        this.disabledIsPayment = false
1282
         this.ruleForm.OrderMoney.F_Money = 0
1289
         this.ruleForm.OrderMoney.F_Money = 0
1283
         this.rules.OrderMoney.F_Money[0].required = false
1290
         this.rules.OrderMoney.F_Money[0].required = false
1284
       }
1291
       }
1416
         this.getTotalAmountFun()
1423
         this.getTotalAmountFun()
1417
       }
1424
       }
1418
     },
1425
     },
1426
+    changeOrderMoneyMoney(val) {
1427
+      let points = this.alreadyPoints == '' ? 0 : this.alreadyPoints
1428
+      if (this.ruleForm.F_PayType === '部分付款') {
1429
+        if (Number(val) > Number(points)) {
1430
+          this.$message({
1431
+            message: '请输入有效付款金额!',
1432
+            type: 'warning'
1433
+          })
1434
+          this.isSubmitForm = true
1435
+        }
1436
+      } else {
1437
+        this.isSubmitForm = false
1438
+      }
1439
+    },
1419
   }
1440
   }
1420
 }
1441
 }
1421
 </script>
1442
 </script>

+ 5 - 5
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceJingdong/index.vue

34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
37
-      <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" />
37
+      <!-- <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" /> -->
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
189
           F_Customer: this.searchData.customer, // 客户姓名
189
           F_Customer: this.searchData.customer, // 客户姓名
190
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
190
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
191
           F_TrackingNo: this.searchData.trackingNo, // 运单号
191
           F_TrackingNo: this.searchData.trackingNo, // 运单号
192
-          SearchStartTime: this.searchData.searchTime[0], // 添加开始时间
193
-          SearchEndTime: this.searchData.searchTime[1], // 添加结束时间
192
+          SearchStartTime: this.searchData.searchTime && this.searchData.searchTime[0], // 添加开始时间
193
+          SearchEndTime: this.searchData.searchTime && this.searchData.searchTime[1], // 添加结束时间
194
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
194
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
195
-          startexpress: this.searchData.expressTime[0],
196
-          endexpress: this.searchData.expressTime[1],
195
+          startexpress: this.searchData.expressTime && this.searchData.expressTime[0],
196
+          endexpress: this.searchData.expressTime && this.searchData.expressTime[1],
197
           F_Express: '京东快递'
197
           F_Express: '京东快递'
198
         }
198
         }
199
         getOrderListCustomerService(params).then(response => {
199
         getOrderListCustomerService(params).then(response => {

+ 5 - 5
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceRhyme/index.vue

34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
37
-      <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" />
37
+      <!-- <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" /> -->
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
39
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
39
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
40
       <el-button v-permission="'HY_export'" type="primary" class="filter-item" @click="btn_export">导出</el-button>
40
       <el-button v-permission="'HY_export'" type="primary" class="filter-item" @click="btn_export">导出</el-button>
189
           F_Customer: this.searchData.customer, // 客户姓名
189
           F_Customer: this.searchData.customer, // 客户姓名
190
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
190
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
191
           F_TrackingNo: this.searchData.trackingNo, // 运单号
191
           F_TrackingNo: this.searchData.trackingNo, // 运单号
192
-          SearchStartTime: this.searchData.searchTime[0], // 添加开始时间
193
-          SearchEndTime: this.searchData.searchTime[1], // 添加结束时间
192
+          SearchStartTime: this.searchData.searchTime && this.searchData.searchTime[0], // 添加开始时间
193
+          SearchEndTime: this.searchData.searchTime && this.searchData.searchTime[1], // 添加结束时间
194
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
194
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
195
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
195
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
196
-          startexpress: this.searchData.expressTime[0],
197
-          endexpress: this.searchData.expressTime[1],
196
+          startexpress: this.searchData.expressTime && this.searchData.expressTime[0],
197
+          endexpress: this.searchData.expressTime && this.searchData.expressTime[1],
198
           F_Express: '韵达快递'
198
           F_Express: '韵达快递'
199
         }
199
         }
200
         getOrderListCustomerService(params).then(response => {
200
         getOrderListCustomerService(params).then(response => {

+ 0 - 95
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceSF/goback.vue

1
-<template>
2
-  <div>
3
-    <el-form ref="ruleForm" :model="ruleForm" :rules="rules" label-width="80px">
4
-      <el-form-item label="退回" prop="state">
5
-        <el-select
6
-          v-model="ruleForm.state"
7
-          class="form_select"
8
-          filterable
9
-          clearable
10
-          placeholder="请选择退回"
11
-          @change="selectback"
12
-        >
13
-          <el-option label="退回上一级" value="0" />
14
-          <el-option label="退回销售" value="1" />
15
-        </el-select>
16
-      </el-form-item>
17
-      <el-form-item v-show="ishow" label="退回原因">
18
-        <el-input v-model="ruleForm.remark" type="textarea" placeholder="退回原因"/>
19
-      </el-form-item>
20
-      <el-form-item>
21
-        <el-button type="primary" @click="submitForm()">提交</el-button>
22
-      </el-form-item>
23
-    </el-form>
24
-  </div>
25
-</template>
26
-<script>
27
-import { gobackOrderCustomerService } from '@/api/customerServiceManagement/orderListCustomerService'
28
-export default {
29
-  props: {
30
-    rowid: {
31
-      type: String,
32
-      default: ''
33
-    },
34
-    layerid: {
35
-      type: String,
36
-      default: ''
37
-    }
38
-  },
39
-  data() {
40
-    return {
41
-      ishow: true, // 原因显隐
42
-      ruleForm: {
43
-        orderids: '', // 订单编号
44
-        remark: '', // 备注
45
-        state: ''
46
-      },
47
-      rules: {
48
-        state: [
49
-          {
50
-            required: true,
51
-            trigger: 'change',
52
-            message: '请选择退回'
53
-          }
54
-        ]
55
-      }
56
-    }
57
-  },
58
-  created() {
59
-    if (this.rowid) {
60
-      this.ruleForm.orderids = this.rowid
61
-    }
62
-  },
63
-  methods: {
64
-    submitForm() {
65
-      this.$refs.ruleForm.validate(valid => {
66
-        if (valid) {
67
-          gobackOrderCustomerService(this.ruleForm)
68
-            .then((response) => {
69
-              if (response.state.toLowerCase() === 'success') {
70
-                this.$parent.$layer.close(this.layerid)
71
-                this.$parent.getList() // 重新加载父级数据
72
-                this.$message.success('恭喜你,订单信息退回成功!')
73
-              }
74
-            })
75
-            .catch(() => {
76
-              this.loading = false
77
-            })
78
-        }
79
-      })
80
-    },
81
-    selectback(e) {
82
-      if (e === '0') {
83
-        this.ishow = false
84
-      } else {
85
-        this.ishow = true
86
-      }
87
-    }
88
-  }
89
-}
90
-</script>
91
-<style lang="scss" scoped>
92
-.form_select {
93
-  width: 100%
94
-}
95
-</style>

+ 0 - 129
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceSF/importSubmit.vue

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/importCustomerServiceSubmit.xlsx',
53
-      uploadData: {// 文件上传数据
54
-        uploadHeader: {
55
-          Authorization: getToken(),
56
-        },
57
-        uploadUrl: this.$store.getters.serverConfig.BASE_API + 'api/KFOrder/importordersubmitexcel',
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>

+ 0 - 354
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceSF/index.vue

1
-<template>
2
-  <div class="app-container">
3
-    <div class="filter-container">
4
-      <el-date-picker
5
-        v-model="searchData.searchTime"
6
-        :picker-options="pickerOptions"
7
-        class="filter-item"
8
-        type="daterange"
9
-        format="yyyy年MM月dd日"
10
-        value-format="yyyy-MM-dd"
11
-        align="left"
12
-        unlink-panels
13
-        range-separator="至"
14
-        start-placeholder="开始日期"
15
-        end-placeholder="结束日期"
16
-      />
17
-      <el-input v-model="searchData.adFrom" placeholder="请输入消息/广告媒体来源" class="filter-item" />
18
-      <el-select v-model="searchData.type" class="filter-item" filterable clearable placeholder="请选择订单类型">
19
-        <el-option v-for="item in orderType" :key="item.F_Value" :label="item.F_Value" :value="item.F_Value"/>
20
-      </el-select>
21
-      <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
22
-      <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
23
-      <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
24
-      <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" />
25
-      <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
26
-      <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
27
-      <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
28
-      <el-button v-permission="'HY_import_submit'" type="primary" class="filter-item" @click="btn_import_submit">导入附件提交</el-button>
29
-    </div>
30
-    <el-tabs v-model="activeName" type="card" @tab-click="handleTabClick" >
31
-      <el-tab-pane label="全部" name="3"/>
32
-    </el-tabs>
33
-    <div>
34
-      <span>订单数量:{{ pageParams.total }}</span>
35
-    </div>
36
-    <el-table v-loading="loading" :data="dataLists" border stripe row-key="F_Id" @selection-change="handleSelectionChange">
37
-      <el-table-column :reserve-selection="true" type="selection"/>
38
-      <el-table-column type="index" label="编号" align="center" fixed width="80" />
39
-      <el-table-column prop="F_Id" label="订单编号" align="center" min-width="180" >
40
-        <template slot-scope="scope">
41
-          <el-button type="text" size="small" @click="hadndleOrderCode(scope.row.F_Id)">{{ scope.row.F_Id }}</el-button>
42
-        </template>
43
-      </el-table-column>
44
-      <el-table-column prop="F_Customer" label="客户姓名" align="center" min-width />
45
-      <el-table-column prop="F_CustomerPhone" label="手机号码" align="center" min-width="140" />
46
-      <el-table-column label="订购商品" align="center" min-width>
47
-        <template slot-scope="scope">
48
-          {{ scope.row.OrderDetailList | judgmentOrderGoods }}
49
-        </template>
50
-      </el-table-column>
51
-      <el-table-column prop="F_AddTime" label="下单日期" align="center" />
52
-      <el-table-column label="订单状态" align="center" >
53
-        <template slot-scope="scope">
54
-          {{ scope.row.F_State | judgmentStateName }}
55
-        </template>
56
-      </el-table-column>
57
-      <el-table-column prop="F_PayType" label="付款类型" align="center"/>
58
-      <el-table-column prop="F_RealPrice" label="付款金额" align="center"/>
59
-      <el-table-column prop="F_AddDes" label="送货说明" align="center"/>
60
-      <el-table-column prop="F_AddUserName" label="下单员工" align="center" />
61
-      <el-table-column prop="F_BelongName" label="归属员工" align="center" />
62
-      <el-table-column prop="F_Type" label="订单类型" align="center" />
63
-      <el-table-column prop="F_Express" label="快递公司" align="center" />
64
-      <el-table-column label="操作" width="240" align="center" class-name="oparate_btn" fixed="right">
65
-        <template slot-scope="scope">
66
-          <el-button
67
-            v-permission="'HY_submit'"
68
-            type="text"
69
-            @click="btn_submit(scope.row.F_Id)"
70
-          >提交</el-button>
71
-          <el-button
72
-            v-permission="'HY_goback'"
73
-            type="text"
74
-            @click="btn_goback(scope.row.F_Id)"
75
-          >客服退回</el-button>
76
-        </template>
77
-      </el-table-column>
78
-    </el-table>
79
-    <!-- <pagination
80
-      v-show="pageParams.total > 0"
81
-      :total="pageParams.total"
82
-      :pageindex.sync="pageParams.pageindex"
83
-      :pagesize.sync="pageParams.pagesize"
84
-      class="pagination"
85
-      @pagination="getList"
86
-    /> -->
87
-  </div>
88
-</template>
89
-
90
-<script>
91
-import { getDictionaryValueList } from '@/api/commonAPI'
92
-import { getOrderListCustomerService, submitOrderCustomerService } from '@/api/customerServiceManagement/orderListCustomerService'
93
-import { pickerOptions, formatterContent } from '@/utils'
94
-import goback from './goback'
95
-import importSubmit from './importSubmit'
96
-import detail from '@/views/orderManagement/orderList/detail'
97
-import Pagination from '@/components/Pagination' // 对el-pagination 二次封装
98
-
99
-export default {
100
-  name: 'OrderListCustomerService',
101
-  components: {
102
-    Pagination
103
-  },
104
-  filters: {
105
-    judgmentStateName(status) {
106
-      const statusMap = {
107
-        '0': '未提交',
108
-        '1': '待分仓',
109
-        '2': '已退回',
110
-        '3': '已分仓',
111
-        '4': '无货',
112
-        '5': '仓库待审核',
113
-        '6': '已发货',
114
-        '7': '付款待审核',
115
-        '8': '待分物流',
116
-        '9': '物流未通过'
117
-      }
118
-      return statusMap[status]
119
-    },
120
-    judgmentOrderGoods(status) {
121
-      let orderGoodsNameQuantity = ''
122
-      for (let i = 0; i < status.length; i++) {
123
-        orderGoodsNameQuantity = `${orderGoodsNameQuantity}${status[i].F_ProductName}*${status[i].F_Count},`
124
-      }
125
-      orderGoodsNameQuantity = orderGoodsNameQuantity.substring(0, orderGoodsNameQuantity.length - 1)
126
-      return orderGoodsNameQuantity
127
-    }
128
-  },
129
-  data() {
130
-    return {
131
-      loading: false,
132
-      searchData: {
133
-        adFrom: '', // 消息/广告媒体来源
134
-        type: '', // 订单类型
135
-        id: '', // 订单号
136
-        customer: '', // 客户姓名
137
-        customerPhone: '', // 客户手机号
138
-        trackingNo: '', // 运单号
139
-        searchTime: '' // 订单时间
140
-      },
141
-      activeName: '3', // 标签切换首页
142
-      pickerOptions, // 日期数据
143
-      pageParams: {
144
-        pageindex: 1, // 当前第几页
145
-        pagesize: Number(this.$store.getters.serverConfig.PAGESIZE), // 每页几条数据
146
-        total: 0 // 总共多少数据
147
-      },
148
-      dataLists: [], // 列表数据
149
-      multipleSelection: [], // 选中的数据
150
-      orderType: [], // 订单类型
151
-      selectOrderId: [] // 选中id
152
-    }
153
-  },
154
-  created() {
155
-    this.getOrderType()
156
-    this.getList()
157
-    document.onkeyup = e => {
158
-      if (e.keyCode === 13) {
159
-        this.getList()
160
-      }
161
-    }
162
-  },
163
-  methods: {
164
-    getList() {
165
-      this.loading = true
166
-      return new Promise(resolve => {
167
-        const params = {
168
-          F_State: this.activeName, // 订单状态 -2全部
169
-          pageindex: this.pageParams.pageindex, // int 第几页
170
-          pagesize: this.pageParams.pagesize, // int 每页几条信息
171
-          F_ADFrom: this.searchData.adFrom, // 消息/广告来源
172
-          F_Type: this.searchData.type, // 订单类型
173
-          F_Id: this.searchData.id, // 订单号
174
-          F_Customer: this.searchData.customer, // 客户姓名
175
-          F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
176
-          F_TrackingNo: this.searchData.trackingNo, // 运单号
177
-          SearchStartTime: this.searchData.searchTime[0], // 添加开始时间
178
-          SearchEndTime: this.searchData.searchTime[1], // 添加结束时间
179
-          F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
180
-          F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
181
-          F_Express: '顺丰快递'
182
-        }
183
-        getOrderListCustomerService(params).then(response => {
184
-          this.loading = false
185
-          if (response.state.toLowerCase() === 'success') {
186
-            this.pageParams.total = response.data.Totals
187
-            this.dataLists = response.data.Rows
188
-          }
189
-        })
190
-        resolve()
191
-      })
192
-    },
193
-    // 获取订单类型
194
-    getOrderType() {
195
-      return new Promise(resolve => {
196
-        const params = {
197
-          isleaf: true,
198
-          code: 'ORDERTYPE'
199
-        }
200
-        getDictionaryValueList(params).then(response => {
201
-          if (response.state.toLowerCase() === 'success') {
202
-            this.orderType = response.data.Rows
203
-          }
204
-        })
205
-      })
206
-    },
207
-    handleTabClick(tab, event) {
208
-      this.getList()
209
-    },
210
-    btn_search() {
211
-      this.pageParams.pageindex = 1
212
-      this.getList()
213
-    },
214
-    // 提交
215
-    btn_submit(orderId) {
216
-      this.isDisable = true
217
-      setTimeout(() => {
218
-        this.$confirm('您确定提交吗?', '提示', {
219
-          confirmButtonText: '确定',
220
-          cancelButtonText: '取消',
221
-          type: 'warning'
222
-        })
223
-          .then(() => {
224
-            this.isDisable = false
225
-            const data = {
226
-              orderids: orderId
227
-            }
228
-            submitOrderCustomerService(data).then((response) => {
229
-              if (response.state.toLowerCase() === 'success') {
230
-                this.getList()
231
-                this.$message.success('提交成功!')
232
-              }
233
-            })
234
-          })
235
-          .catch(() => {
236
-            this.$message({
237
-              type: 'info',
238
-              message: '已取消提交'
239
-            })
240
-          })
241
-        this.isDisable = false
242
-      }, 300)
243
-    },
244
-    // 批量退回
245
-    btn_bulk_goback() {
246
-      if (this.selectOrderId.length < 1) {
247
-        this.$message({
248
-          message: '请选择订单!',
249
-          type: 'warning'
250
-        })
251
-        return
252
-      }
253
-      const orderids = this.selectOrderId.join(',').replace(/\s+/g, '')
254
-      this.$layer.iframe({
255
-        content: {
256
-          content: goback, // 传递的组件对象
257
-          parent: this, // 当前的vue对象
258
-          data: { rowid: orderids } // props
259
-        },
260
-        area: ['30%', '30%'],
261
-        title: '退回订单'
262
-      })
263
-    },
264
-
265
-    // 批量提交
266
-    btn_bulk_submit() {
267
-      if (this.selectOrderId.length < 1) {
268
-        this.$message({
269
-          message: '请选择订单!',
270
-          type: 'warning'
271
-        })
272
-        return
273
-      }
274
-      this.isDisable = true
275
-      setTimeout(() => {
276
-        this.$confirm('您确定提交吗?', '提示', {
277
-          confirmButtonText: '确定',
278
-          cancelButtonText: '取消',
279
-          type: 'warning'
280
-        })
281
-          .then(() => {
282
-            this.isDisable = false
283
-            const data = {
284
-              orderids: this.selectOrderId.join(',').replace(/\s+/g, '')
285
-            }
286
-            submitOrderCustomerService(data).then((response) => {
287
-              if (response.state.toLowerCase() === 'success') {
288
-                this.getList()
289
-                this.$message.success('提交成功!')
290
-              }
291
-            })
292
-          })
293
-          .catch(() => {
294
-            this.$message({
295
-              type: 'info',
296
-              message: '已取消提交'
297
-            })
298
-          })
299
-        this.isDisable = false
300
-      }, 300)
301
-    },
302
-    // 退回订单
303
-    btn_goback(orderid) {
304
-      this.$layer.iframe({
305
-        content: {
306
-          content: goback, // 传递的组件对象
307
-          parent: this, // 当前的vue对象
308
-          data: { rowid: orderid } // props
309
-        },
310
-        area: ['30%', '30%'],
311
-        title: '退回订单'
312
-      })
313
-    },
314
-    // 导入附件提交
315
-    btn_import_submit() {
316
-      this.$layer.iframe({
317
-        content: {
318
-          content: importSubmit, // 传递的组件对象
319
-          parent: this, // 当前的vue对象
320
-          data: { rowid: '' } // props
321
-        },
322
-        area: ['30%', '30%'],
323
-        title: '导入附件提交'
324
-      })
325
-    },
326
-    hadndleOrderCode(ordercode) {
327
-      this.$layer.iframe({
328
-        content: {
329
-          content: detail, // 传递的组件对象
330
-          parent: this, // 当前的vue对象
331
-          data: { 'rowid': ordercode }// props
332
-        },
333
-        area: ['80%', '90%'],
334
-        title: '订单详情'
335
-      })
336
-    },
337
-    // 选择多个
338
-    handleSelectionChange(val) {
339
-      const ids = []
340
-      this.multipleSelection = val
341
-      for (let i = 0; i < this.multipleSelection.length; i++) {
342
-        ids.push(this.multipleSelection[i].F_Id)
343
-      }
344
-      this.selectOrderId = ids
345
-    }
346
-  }
347
-}
348
-</script>
349
-
350
-<style rel="stylesheet/scss" lang="scss" scoped>
351
-.el{
352
-  cursor: pointer;
353
-}
354
-</style>

+ 5 - 5
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceSTO/index.vue

34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
37
-      <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" />
37
+      <!-- <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" /> -->
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
190
           F_Customer: this.searchData.customer, // 客户姓名
190
           F_Customer: this.searchData.customer, // 客户姓名
191
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
191
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
192
           F_TrackingNo: this.searchData.trackingNo, // 运单号
192
           F_TrackingNo: this.searchData.trackingNo, // 运单号
193
-          SearchStartTime: this.searchData.searchTime[0], // 添加开始时间
194
-          SearchEndTime: this.searchData.searchTime[1], // 添加结束时间
193
+          SearchStartTime: this.searchData.searchTime && this.searchData.searchTime[0], // 添加开始时间
194
+          SearchEndTime: this.searchData.searchTime && this.searchData.searchTime[1], // 添加结束时间
195
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
195
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
196
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
196
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
197
-          startexpress: this.searchData.expressTime[0],
198
-          endexpress: this.searchData.expressTime[1],
197
+          startexpress: this.searchData.expressTime && this.searchData.expressTime[0],
198
+          endexpress: this.searchData.expressTime && this.searchData.expressTime[1],
199
           F_Express: '申通快递'
199
           F_Express: '申通快递'
200
         }
200
         }
201
         getOrderListCustomerService(params).then(response => {
201
         getOrderListCustomerService(params).then(response => {

+ 5 - 5
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceShanXiSF/index.vue

34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
37
-      <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" />
37
+      <!-- <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" /> -->
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
190
           F_Customer: this.searchData.customer, // 客户姓名
190
           F_Customer: this.searchData.customer, // 客户姓名
191
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
191
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
192
           F_TrackingNo: this.searchData.trackingNo, // 运单号
192
           F_TrackingNo: this.searchData.trackingNo, // 运单号
193
-          SearchStartTime: this.searchData.searchTime[0], // 添加开始时间
194
-          SearchEndTime: this.searchData.searchTime[1], // 添加结束时间
193
+          SearchStartTime: this.searchData.searchTime && this.searchData.searchTime[0], // 添加开始时间
194
+          SearchEndTime: this.searchData.searchTime && this.searchData.searchTime[1], // 添加结束时间
195
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
195
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
196
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
196
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
197
-          startexpress: this.searchData.expressTime[0],
198
-          endexpress: this.searchData.expressTime[1],
197
+          startexpress: this.searchData.expressTime && this.searchData.expressTime[0],
198
+          endexpress: this.searchData.expressTime && this.searchData.expressTime[1],
199
           F_Express: '山西顺丰'
199
           F_Express: '山西顺丰'
200
         }
200
         }
201
         getOrderListCustomerService(params).then(response => {
201
         getOrderListCustomerService(params).then(response => {

+ 5 - 5
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceXinXiangSF/index.vue

34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
37
-      <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" />
37
+      <!-- <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" /> -->
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
190
           F_Customer: this.searchData.customer, // 客户姓名
190
           F_Customer: this.searchData.customer, // 客户姓名
191
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
191
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
192
           F_TrackingNo: this.searchData.trackingNo, // 运单号
192
           F_TrackingNo: this.searchData.trackingNo, // 运单号
193
-          SearchStartTime: this.searchData.searchTime[0], // 添加开始时间
194
-          SearchEndTime: this.searchData.searchTime[1], // 添加结束时间
193
+          SearchStartTime: this.searchData.searchTime && this.searchData.searchTime[0], // 添加开始时间
194
+          SearchEndTime: this.searchData.searchTime && this.searchData.searchTime[1], // 添加结束时间
195
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
195
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
196
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
196
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
197
-          startexpress: this.searchData.expressTime[0],
198
-          endexpress: this.searchData.expressTime[1],
197
+          startexpress: this.searchData.expressTime && this.searchData.expressTime[0],
198
+          endexpress: this.searchData.expressTime && this.searchData.expressTime[1],
199
           F_Express: '新乡顺丰'
199
           F_Express: '新乡顺丰'
200
         }
200
         }
201
         getOrderListCustomerService(params).then(response => {
201
         getOrderListCustomerService(params).then(response => {

+ 5 - 5
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceYuantong/index.vue

34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
37
-      <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" />
37
+      <!-- <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" /> -->
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
190
           F_Customer: this.searchData.customer, // 客户姓名
190
           F_Customer: this.searchData.customer, // 客户姓名
191
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
191
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
192
           F_TrackingNo: this.searchData.trackingNo, // 运单号
192
           F_TrackingNo: this.searchData.trackingNo, // 运单号
193
-          SearchStartTime: this.searchData.searchTime[0], // 添加开始时间
194
-          SearchEndTime: this.searchData.searchTime[1], // 添加结束时间
193
+          SearchStartTime: this.searchData.searchTime && this.searchData.searchTime[0], // 添加开始时间
194
+          SearchEndTime: this.searchData.searchTime && this.searchData.searchTime[1], // 添加结束时间
195
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
195
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
196
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
196
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
197
-          startexpress: this.searchData.expressTime[0],
198
-          endexpress: this.searchData.expressTime[1],
197
+          startexpress: this.searchData.expressTime && this.searchData.expressTime[0],
198
+          endexpress: this.searchData.expressTime && this.searchData.expressTime[1],
199
           F_Express: '圆通快递'
199
           F_Express: '圆通快递'
200
         }
200
         }
201
         getOrderListCustomerService(params).then(response => {
201
         getOrderListCustomerService(params).then(response => {

+ 5 - 5
CallCenterWeb.UI/src/views/customerServiceManagement/orderListCustomerServiceZhongtong/index.vue

34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
34
       <el-input v-model="searchData.id" placeholder="请输入订单号" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
35
       <el-input v-model="searchData.customer" placeholder="请输入客户姓名" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
36
       <el-input v-model="searchData.customerPhone" placeholder="请输入客户手机号" class="filter-item" />
37
-      <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" />
37
+      <!-- <el-input v-model="searchData.trackingNo" placeholder="请输入运单号" class="filter-item" /> -->
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
38
       <el-button type="primary" class="filter-item" icon="el-icon-search" @click="btn_search">搜索</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
39
       <el-button v-permission="'HY_bulk_submit'" type="primary" class="filter-item" @click="btn_bulk_submit">批量提交</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
40
       <el-button v-permission="'HY_bulk_goback'" type="primary" class="filter-item" @click="btn_bulk_goback">批量退回</el-button>
191
           F_Customer: this.searchData.customer, // 客户姓名
191
           F_Customer: this.searchData.customer, // 客户姓名
192
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
192
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
193
           F_TrackingNo: this.searchData.trackingNo, // 运单号
193
           F_TrackingNo: this.searchData.trackingNo, // 运单号
194
-          SearchStartTime: this.searchData.searchTime[0], // 添加开始时间
195
-          SearchEndTime: this.searchData.searchTime[1], // 添加结束时间
194
+          SearchStartTime: this.searchData.searchTime && this.searchData.searchTime[0], // 添加开始时间
195
+          SearchEndTime: this.searchData.searchTime && this.searchData.searchTime[1], // 添加结束时间
196
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
196
           F_IsExpress: 1, // -2全部 0客服未分配快递 1已分配
197
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
197
           F_PayState: -2, // 支付状态-2 全部0待回款 1已完成 2待退款 3已完成
198
-          startexpress: this.searchData.expressTime[0],
199
-          endexpress: this.searchData.expressTime[1],
198
+          startexpress: this.searchData.expressTime && this.searchData.expressTime[0],
199
+          endexpress: this.searchData.expressTime && this.searchData.expressTime[1],
200
           F_Express: '中通快递'
200
           F_Express: '中通快递'
201
         }
201
         }
202
         getOrderListCustomerService(params).then(response => {
202
         getOrderListCustomerService(params).then(response => {

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

26
         change-on-select
26
         change-on-select
27
         @change="handleItemChange"
27
         @change="handleItemChange"
28
       />
28
       />
29
-      <el-input v-model="searchData.minprice" placeholder="请输入最低金额" class="filter-item" />
30
-      <el-input v-model="searchData.maxprice" placeholder="请输入最高金额" class="filter-item" />
29
+      <!-- <el-input v-model="searchData.minprice" placeholder="请输入最低金额" class="filter-item" />
30
+      <el-input v-model="searchData.maxprice" placeholder="请输入最高金额" class="filter-item" /> -->
31
       <el-select
31
       <el-select
32
         v-model="searchData.F_AddDes"
32
         v-model="searchData.F_AddDes"
33
         placeholder="请选择送货说明"
33
         placeholder="请选择送货说明"

+ 21 - 0
CallCenterWeb.UI/src/views/memberManagement/memberList/components/addOrder.vue

536
                 <el-input
536
                 <el-input
537
                   v-model.number="ruleForm.OrderMoney.F_Money"
537
                   v-model.number="ruleForm.OrderMoney.F_Money"
538
                   placeholder="请输入付款金额"
538
                   placeholder="请输入付款金额"
539
+                  :disabled="disabledIsPayment"
540
+                  @change="changeOrderMoneyMoney"
539
                 />
541
                 />
540
               </el-form-item>
542
               </el-form-item>
541
             </el-col>
543
             </el-col>
694
       maxUsePoints: '', // 最大可使用积分
696
       maxUsePoints: '', // 最大可使用积分
695
       pointsDeductedAmount: '', // 最大可使用积分
697
       pointsDeductedAmount: '', // 最大可使用积分
696
       judgmentIsPayment: false, // 判断是否货到付款
698
       judgmentIsPayment: false, // 判断是否货到付款
699
+      disabledIsPayment: false, // 付款金额
697
       totalAmount: 0, // 应付金额
700
       totalAmount: 0, // 应付金额
698
       defaultAddress: {
701
       defaultAddress: {
699
         province: '', // 省
702
         province: '', // 省
1269
     changePayType(val) {
1272
     changePayType(val) {
1270
       if (val === '货到付款') {
1273
       if (val === '货到付款') {
1271
         this.judgmentIsPayment = false
1274
         this.judgmentIsPayment = false
1275
+        this.disabledIsPayment = false
1272
         this.ruleForm.OrderMoney.F_Money = 0
1276
         this.ruleForm.OrderMoney.F_Money = 0
1273
         this.rules.OrderMoney.F_Money[0].required = false
1277
         this.rules.OrderMoney.F_Money[0].required = false
1274
       } else if (val === '全额付款') {
1278
       } else if (val === '全额付款') {
1275
         this.judgmentIsPayment = true
1279
         this.judgmentIsPayment = true
1280
+        this.disabledIsPayment = true
1276
         this.ruleForm.OrderMoney.F_Money = this.totalAmount
1281
         this.ruleForm.OrderMoney.F_Money = this.totalAmount
1277
         this.rules.OrderMoney.F_Money[0].required = false
1282
         this.rules.OrderMoney.F_Money[0].required = false
1278
       } else if (val === '部分付款') {
1283
       } else if (val === '部分付款') {
1279
         this.judgmentIsPayment = true
1284
         this.judgmentIsPayment = true
1285
+        this.disabledIsPayment = false
1280
         this.ruleForm.OrderMoney.F_Money = 0
1286
         this.ruleForm.OrderMoney.F_Money = 0
1281
         this.rules.OrderMoney.F_Money[0].required = true
1287
         this.rules.OrderMoney.F_Money[0].required = true
1282
       } else {
1288
       } else {
1283
         this.judgmentIsPayment = true
1289
         this.judgmentIsPayment = true
1290
+        this.disabledIsPayment = false
1284
         this.ruleForm.OrderMoney.F_Money = 0
1291
         this.ruleForm.OrderMoney.F_Money = 0
1285
         this.rules.OrderMoney.F_Money[0].required = false
1292
         this.rules.OrderMoney.F_Money[0].required = false
1286
       }
1293
       }
1417
         this.getTotalAmountFun()
1424
         this.getTotalAmountFun()
1418
       }
1425
       }
1419
     },
1426
     },
1427
+    changeOrderMoneyMoney(val) {
1428
+      let points = this.alreadyPoints == '' ? 0 : this.alreadyPoints
1429
+      if (this.ruleForm.F_PayType === '部分付款') {
1430
+        if (Number(val) > Number(points)) {
1431
+          this.$message({
1432
+            message: '请输入有效付款金额!',
1433
+            type: 'warning'
1434
+          })
1435
+          this.isSubmitForm = true
1436
+        }
1437
+      } else {
1438
+        this.isSubmitForm = false
1439
+      }
1440
+    },
1420
   }
1441
   }
1421
 }
1442
 }
1422
 </script>
1443
 </script>

+ 10 - 17
CallCenterWeb.UI/src/views/memberManagement/memberList/index.vue

377
     },
377
     },
378
     handleTabClick() {
378
     handleTabClick() {
379
       this.pageParams.pageindex = 1
379
       this.pageParams.pageindex = 1
380
+      let date = new Date()
381
+      date.setTime(date.getTime() - 24 * 60 * 60 * 1000)
382
+      const year = date.getFullYear()
383
+      let month = date.getMonth() + 1
384
+      const day = date.getDate()
385
+      const hour = '00:00:00'
386
+      month = month.toString().padStart(2, '0')
387
+      date = date.toString().padStart(2, '0')
388
+      const defaultDate = `${year}-${month}-${day} ${hour}`
389
+
380
       if (this.activeName == 2) {
390
       if (this.activeName == 2) {
381
-        let date = new Date()
382
-        date.setTime(date.getTime() - 24 * 60 * 60 * 1000)
383
-        const year = date.getFullYear()
384
-        let month = date.getMonth() + 1
385
-        const day = date.getDate()
386
-        const hour = '00:00:00'
387
-        month = month.toString().padStart(2, '0')
388
-        date = date.toString().padStart(2, '0')
389
-        const defaultDate = `${year}-${month}-${day} ${hour}`
390
         this.searchDatas.contactTime = ['', defaultDate]
391
         this.searchDatas.contactTime = ['', defaultDate]
391
       } else if (this.activeName == 1) {
392
       } else if (this.activeName == 1) {
392
-        let date = new Date()
393
-        const year = date.getFullYear()
394
-        let month = date.getMonth() + 1
395
-        const day = date.getDate()
396
-        const hour = '00:00:00'
397
-        month = month.toString().padStart(2, '0')
398
-        date = date.toString().padStart(2, '0')
399
-        const defaultDate = `${year}-${month}-${day} ${hour}`
400
         this.searchDatas.contactTime = ['1970-01-01 00:00:00', defaultDate]
393
         this.searchDatas.contactTime = ['1970-01-01 00:00:00', defaultDate]
401
       } else {
394
       } else {
402
         this.searchDatas.contactTime = ['', '']
395
         this.searchDatas.contactTime = ['', '']

+ 21 - 0
CallCenterWeb.UI/src/views/orderManagement/orderList/edit.vue

316
             <el-input
316
             <el-input
317
               v-model.number="ruleForm.OrderMoney.F_Money"
317
               v-model.number="ruleForm.OrderMoney.F_Money"
318
               placeholder="请输入付款金额"
318
               placeholder="请输入付款金额"
319
+              :disabled="disabledIsPayment"
320
+              @change="changeOrderMoneyMoney"
319
             />
321
             />
320
           </el-form-item>
322
           </el-form-item>
321
         </el-col>
323
         </el-col>
459
       maxUsePoints: '', // 最大可使用积分
461
       maxUsePoints: '', // 最大可使用积分
460
       pointsDeductedAmount: '', // 最大可使用积分
462
       pointsDeductedAmount: '', // 最大可使用积分
461
       judgmentIsPayment: false, // 判断是否货到付款
463
       judgmentIsPayment: false, // 判断是否货到付款
464
+      disabledIsPayment: false, // 付款金额
462
       totalAmount: 0,
465
       totalAmount: 0,
463
       selectAddress: 3, // 选择地址
466
       selectAddress: 3, // 选择地址
464
       defaultAddress: {
467
       defaultAddress: {
1046
     changePayType(val) {
1049
     changePayType(val) {
1047
       if (val === '货到付款') {
1050
       if (val === '货到付款') {
1048
         this.judgmentIsPayment = false
1051
         this.judgmentIsPayment = false
1052
+        this.disabledIsPayment = false
1049
       } else if (val === '全额付款') {
1053
       } else if (val === '全额付款') {
1050
         this.judgmentIsPayment = true
1054
         this.judgmentIsPayment = true
1055
+        this.disabledIsPayment = true
1051
         this.ruleForm.OrderMoney.F_Money = this.totalAmount
1056
         this.ruleForm.OrderMoney.F_Money = this.totalAmount
1052
         this.rules.OrderMoney.F_Money[0].required = false
1057
         this.rules.OrderMoney.F_Money[0].required = false
1053
       } else if (val === '部分付款') {
1058
       } else if (val === '部分付款') {
1054
         this.judgmentIsPayment = true
1059
         this.judgmentIsPayment = true
1060
+        this.disabledIsPayment = false
1055
         this.ruleForm.OrderMoney.F_Money = 0
1061
         this.ruleForm.OrderMoney.F_Money = 0
1056
         this.rules.OrderMoney.F_Money[0].required = true
1062
         this.rules.OrderMoney.F_Money[0].required = true
1057
       } else {
1063
       } else {
1058
         this.judgmentIsPayment = true
1064
         this.judgmentIsPayment = true
1065
+        this.disabledIsPayment = false
1059
         this.ruleForm.OrderMoney.F_Money = 0
1066
         this.ruleForm.OrderMoney.F_Money = 0
1060
         this.rules.OrderMoney.F_Money[0].required = false
1067
         this.rules.OrderMoney.F_Money[0].required = false
1061
       }
1068
       }
1176
         this.getTotalAmountFun()
1183
         this.getTotalAmountFun()
1177
       }
1184
       }
1178
     },
1185
     },
1186
+    changeOrderMoneyMoney(val) {
1187
+      let points = this.alreadyPoints == '' ? 0 : this.alreadyPoints
1188
+      if (this.ruleForm.F_PayType === '部分付款') {
1189
+        if (Number(val) > Number(points)) {
1190
+          this.$message({
1191
+            message: '请输入有效付款金额!',
1192
+            type: 'warning'
1193
+          })
1194
+          this.isSubmitForm = true
1195
+        }
1196
+      } else {
1197
+        this.isSubmitForm = false
1198
+      }
1199
+    },
1179
   }
1200
   }
1180
 };
1201
 };
1181
 </script>
1202
 </script>

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

78
             class="filter-item"
78
             class="filter-item"
79
           />
79
           />
80
         </el-col>
80
         </el-col>
81
-      </el-row>
82
-      <el-row :gutter="20">
83
         <el-col :span="3">
81
         <el-col :span="3">
84
           <el-input
82
           <el-input
85
             v-model="searchData.trackingNo"
83
             v-model="searchData.trackingNo"
88
           />
86
           />
89
         </el-col>
87
         </el-col>
90
         <el-col :span="3">
88
         <el-col :span="3">
89
+          <el-input
90
+            v-model="searchData.keywords"
91
+            placeholder="请输入关键字"
92
+            class="filter-item"
93
+          />
94
+        </el-col>
95
+        <el-col :span="3">
91
           <el-select
96
           <el-select
92
-            v-if="activeName==1"
97
+            v-if="activeName == 1"
93
             v-model="searchData.logisticsStatus"
98
             v-model="searchData.logisticsStatus"
94
             class="form_select"
99
             class="form_select"
95
             filterable
100
             filterable
106
         </el-col>
111
         </el-col>
107
         <el-col :span="3">
112
         <el-col :span="3">
108
           <el-select
113
           <el-select
109
-            v-if="activeName==1"
114
+            v-if="activeName == 1"
110
             v-model="searchData.F_State"
115
             v-model="searchData.F_State"
111
             class="form_select"
116
             class="form_select"
112
             filterable
117
             filterable
127
             class="filter-item"
132
             class="filter-item"
128
             icon="el-icon-search"
133
             icon="el-icon-search"
129
             @click="btn_search"
134
             @click="btn_search"
130
-          >搜索</el-button
135
+            >搜索</el-button
131
           >
136
           >
132
           <el-button
137
           <el-button
133
             v-permission="'HY_export'"
138
             v-permission="'HY_export'"
135
             class="filter-item"
140
             class="filter-item"
136
             icon="el-icon-upload2"
141
             icon="el-icon-upload2"
137
             @click="btn_export"
142
             @click="btn_export"
138
-          >导出</el-button
143
+            >导出</el-button
139
           >
144
           >
140
           <el-button
145
           <el-button
141
             v-permission="'HY_import'"
146
             v-permission="'HY_import'"
143
             class="filter-item"
148
             class="filter-item"
144
             icon="el-icon-download"
149
             icon="el-icon-download"
145
             @click="btn_import"
150
             @click="btn_import"
146
-          >导入</el-button
151
+            >导入</el-button
147
           >
152
           >
148
           <el-button
153
           <el-button
149
             v-permission="'HY_merge'"
154
             v-permission="'HY_merge'"
150
             type="primary"
155
             type="primary"
151
             class="filter-item"
156
             class="filter-item"
152
             @click="btn_merge"
157
             @click="btn_merge"
153
-          >合并</el-button
158
+            >合并</el-button
154
           >
159
           >
155
           <el-button
160
           <el-button
156
             v-permission="'HY_bulk_submit'"
161
             v-permission="'HY_bulk_submit'"
158
             type="primary"
163
             type="primary"
159
             class="filter-item"
164
             class="filter-item"
160
             @click="btn_bulk_submit"
165
             @click="btn_bulk_submit"
161
-          >批量提交</el-button
166
+            >批量提交</el-button
162
           >
167
           >
163
         </el-col>
168
         </el-col>
164
       </el-row>
169
       </el-row>
202
             type="text"
207
             type="text"
203
             size="small"
208
             size="small"
204
             @click="hadndleOrderCode(scope.row.F_Id)"
209
             @click="hadndleOrderCode(scope.row.F_Id)"
205
-          >{{ scope.row.F_Id }}</el-button
210
+            >{{ scope.row.F_Id }}</el-button
206
           >
211
           >
207
         </template>
212
         </template>
208
       </el-table-column>
213
       </el-table-column>
238
           scope.row.F_State | judgmentStateName
243
           scope.row.F_State | judgmentStateName
239
         }}</template>
244
         }}</template>
240
       </el-table-column>
245
       </el-table-column>
241
-      <el-table-column prop="F_CheckRemark" label="客服退回原因" align="center" />
246
+      <el-table-column
247
+        prop="F_CheckRemark"
248
+        label="客服退回原因"
249
+        align="center"
250
+      />
242
       <el-table-column prop="F_AddUserName" label="下单员工" align="center" />
251
       <el-table-column prop="F_AddUserName" label="下单员工" align="center" />
243
       <el-table-column prop="F_BelongName" label="归属员工" align="center" />
252
       <el-table-column prop="F_BelongName" label="归属员工" align="center" />
244
       <el-table-column prop="F_Type" label="订单类型" align="center" />
253
       <el-table-column prop="F_Type" label="订单类型" align="center" />
262
             :disabled="isDisable"
271
             :disabled="isDisable"
263
             type="text"
272
             type="text"
264
             @click="btn_edit(scope.row.F_Id)"
273
             @click="btn_edit(scope.row.F_Id)"
265
-          >编辑</el-button
274
+            >编辑</el-button
266
           >
275
           >
267
           <el-button
276
           <el-button
268
             v-permission="'HY_add_remark'"
277
             v-permission="'HY_add_remark'"
269
             type="text"
278
             type="text"
270
             @click="btn_add_remark(scope.row.F_Id)"
279
             @click="btn_add_remark(scope.row.F_Id)"
271
-          >备注</el-button
280
+            >备注</el-button
272
           >
281
           >
273
           <el-button
282
           <el-button
274
             v-permission="'HY_submit'"
283
             v-permission="'HY_submit'"
276
             :disabled="isDisable"
285
             :disabled="isDisable"
277
             type="text"
286
             type="text"
278
             @click="btn_submit(scope.row.F_Id)"
287
             @click="btn_submit(scope.row.F_Id)"
279
-          >提交</el-button
288
+            >提交</el-button
280
           >
289
           >
281
           <!-- <el-button
290
           <!-- <el-button
282
             v-permission="'HY_cancel'"
291
             v-permission="'HY_cancel'"
308
 </template>
317
 </template>
309
 
318
 
310
 <script>
319
 <script>
311
-import { getDictionaryValueList } from '@/api/commonAPI'
320
+import { getDictionaryValueList } from "@/api/commonAPI";
312
 import {
321
 import {
313
   getOrderLists,
322
   getOrderLists,
314
   cancelOrder,
323
   cancelOrder,
315
   orderBulkSubmit
324
   orderBulkSubmit
316
-} from '@/api/orderManagement/orderList'
317
-import { pickerOptions, formatterContent } from '@/utils'
318
-import { Send } from '@/utils/telWebsocket'
319
-import { getCallOutprefix } from '@/api/teloperation'
320
-import { mapGetters } from 'vuex'
321
-import store from '@/store'
322
-import addOrEditRemark from './addOrEditRemark'
323
-import edit from './edit'
324
-import detail from './detail'
325
-import merge from './merge'
325
+} from "@/api/orderManagement/orderList";
326
+import { pickerOptions, formatterContent } from "@/utils";
327
+import { Send } from "@/utils/telWebsocket";
328
+import { getCallOutprefix } from "@/api/teloperation";
329
+import { mapGetters } from "vuex";
330
+import store from "@/store";
331
+import addOrEditRemark from "./addOrEditRemark";
332
+import edit from "./edit";
333
+import detail from "./detail";
334
+import merge from "./merge";
326
 // import apply from "./apply";
335
 // import apply from "./apply";
327
-import importAuth from './importAuth'
328
-import afterSale from './afterSale'
329
-import payMoney from './payMoney'
330
-import Pagination from '@/components/Pagination' // 对el-pagination 二次封装
336
+import importAuth from "./importAuth";
337
+import afterSale from "./afterSale";
338
+import payMoney from "./payMoney";
339
+import Pagination from "@/components/Pagination"; // 对el-pagination 二次封装
331
 
340
 
332
 export default {
341
 export default {
333
-  name: 'OrderList',
342
+  name: "OrderList",
334
   components: {
343
   components: {
335
     Pagination
344
     Pagination
336
   },
345
   },
337
   filters: {
346
   filters: {
338
     judgmentStateName(status) {
347
     judgmentStateName(status) {
339
       const statusMap = {
348
       const statusMap = {
340
-        0: '未提交',
341
-        1: '待分仓',
342
-        2: '已退回',
343
-        3: '已分仓',
344
-        4: '无货',
345
-        5: '仓库待审核',
346
-        6: '已发货',
347
-        7: '付款待审核',
348
-        8: '待分物流',
349
-        9: '物流未通过'
350
-      }
351
-      return statusMap[status]
349
+        0: "未提交",
350
+        1: "待分仓",
351
+        2: "已退回",
352
+        3: "已分仓",
353
+        4: "无货",
354
+        5: "仓库待审核",
355
+        6: "已发货",
356
+        7: "付款待审核",
357
+        8: "待分物流",
358
+        9: "物流未通过"
359
+      };
360
+      return statusMap[status];
352
     },
361
     },
353
     judgmentStatusName(status) {
362
     judgmentStatusName(status) {
354
       const statusMap = {
363
       const statusMap = {
355
-        0: '未发出',
356
-        1: '未签收',
357
-        2: '签收',
358
-        3: '改代收',
359
-        4: '拒收'
360
-      }
361
-      return statusMap[status]
364
+        0: "未发出",
365
+        1: "未签收",
366
+        2: "签收",
367
+        3: "改代收",
368
+        4: "拒收"
369
+      };
370
+      return statusMap[status];
362
     },
371
     },
363
     judgmentOrderGoods(status) {
372
     judgmentOrderGoods(status) {
364
-      let orderGoodsNameQuantity = ''
373
+      let orderGoodsNameQuantity = "";
365
       for (let i = 0; i < status.length; i++) {
374
       for (let i = 0; i < status.length; i++) {
366
-        orderGoodsNameQuantity = `${orderGoodsNameQuantity}${status[i].F_ProductName}*${status[i].F_Count},`
375
+        orderGoodsNameQuantity = `${orderGoodsNameQuantity}${status[i].F_ProductName}*${status[i].F_Count},`;
367
       }
376
       }
368
       orderGoodsNameQuantity = orderGoodsNameQuantity.substring(
377
       orderGoodsNameQuantity = orderGoodsNameQuantity.substring(
369
         0,
378
         0,
370
         orderGoodsNameQuantity.length - 1
379
         orderGoodsNameQuantity.length - 1
371
-      )
372
-      return orderGoodsNameQuantity
380
+      );
381
+      return orderGoodsNameQuantity;
373
     }
382
     }
374
   },
383
   },
375
   data() {
384
   data() {
377
       isDisable: false, // 防止多次点击
386
       isDisable: false, // 防止多次点击
378
       loading: false,
387
       loading: false,
379
       searchData: {
388
       searchData: {
380
-        adFrom: '', // 消息/广告媒体来源
381
-        type: '', // 订单类型
382
-        payType: '', // 支付方式
383
-        id: '', // 订单号
384
-        customer: '', // 客户姓名
385
-        customerPhone: '', // 客户手机号
386
-        trackingNo: '', // 运单号
387
-        searchTime: '', // 订单时间
388
-        logisticsStatus: '', // 物流状态
389
-        F_State: '0',
390
-        State: ''
389
+        adFrom: "", // 消息/广告媒体来源
390
+        type: "", // 订单类型
391
+        payType: "", // 支付方式
392
+        id: "", // 订单号
393
+        customer: "", // 客户姓名
394
+        customerPhone: "", // 客户手机号
395
+        trackingNo: "", // 运单号
396
+        keywords: "", // 关键字
397
+        searchTime: "", // 订单时间
398
+        logisticsStatus: "", // 物流状态
399
+        F_State: "0",
400
+        State: ""
391
       },
401
       },
392
-      activeName: '0', // 标签切换首页
402
+      activeName: "0", // 标签切换首页
393
       pickerOptions, // 日期数据
403
       pickerOptions, // 日期数据
394
       pageParams: {
404
       pageParams: {
395
         pageindex: 1, // 当前第几页
405
         pageindex: 1, // 当前第几页
405
       selectOrderId: [], // 合并订单id
415
       selectOrderId: [], // 合并订单id
406
       orderstate: [
416
       orderstate: [
407
         {
417
         {
408
-          id: '1',
409
-          value: '待分仓'
418
+          id: "1",
419
+          value: "待分仓"
410
         },
420
         },
411
         // {
421
         // {
412
         //   id: '2',
422
         //   id: '2',
413
         //   value: '客服退回'
423
         //   value: '客服退回'
414
         // },
424
         // },
415
         {
425
         {
416
-          id: '3',
417
-          value: '已分仓'
426
+          id: "3",
427
+          value: "已分仓"
418
         },
428
         },
419
         {
429
         {
420
-          id: '4',
421
-          value: '无货'
430
+          id: "4",
431
+          value: "无货"
422
         },
432
         },
423
         // {
433
         // {
424
         //   id: '5',
434
         //   id: '5',
425
         //   value: '客服提交'
435
         //   value: '客服提交'
426
         // },
436
         // },
427
         {
437
         {
428
-          id: '6',
429
-          value: '已发货'
438
+          id: "6",
439
+          value: "已发货"
430
         },
440
         },
431
         {
441
         {
432
-          id: '7',
433
-          value: '付款待审核'
442
+          id: "7",
443
+          value: "付款待审核"
434
         },
444
         },
435
         {
445
         {
436
-          id: '8',
437
-          value: '待分物流'
446
+          id: "8",
447
+          value: "待分物流"
438
         },
448
         },
439
         {
449
         {
440
-          id: '9',
441
-          value: '物流未通过'
450
+          id: "9",
451
+          value: "物流未通过"
442
         }
452
         }
443
       ]
453
       ]
444
-    }
454
+    };
445
   },
455
   },
446
   created() {
456
   created() {
447
     if (this.$route.params.id) {
457
     if (this.$route.params.id) {
448
       // this.activeName = this.$route.params.id
458
       // this.activeName = this.$route.params.id
449
     }
459
     }
450
-    this.getOrderType()
451
-    this.getOrderF_State()
452
-    this.getList()
453
-    this.getPayType()
454
-    document.onkeyup = (e) => {
460
+    this.getOrderType();
461
+    this.getOrderF_State();
462
+    this.getList();
463
+    this.getPayType();
464
+    document.onkeyup = e => {
455
       if (e.keyCode === 13) {
465
       if (e.keyCode === 13) {
456
-        this.getList()
466
+        this.getList();
457
       }
467
       }
458
-    }
468
+    };
459
   },
469
   },
460
   computed: {
470
   computed: {
461
     ...mapGetters([
471
     ...mapGetters([
462
-      'usercode', // 工号
463
-      'extension', // 分机号
464
-      'sidebar',
465
-      'avatar',
466
-      'telCallType', // 通话类型
467
-      'telIsVisCallout' // 外呼面板是否显示
472
+      "usercode", // 工号
473
+      "extension", // 分机号
474
+      "sidebar",
475
+      "avatar",
476
+      "telCallType", // 通话类型
477
+      "telIsVisCallout" // 外呼面板是否显示
468
     ])
478
     ])
469
   },
479
   },
470
   methods: {
480
   methods: {
471
     getList() {
481
     getList() {
472
-      this.loading = true
473
-      return new Promise((resolve) => {
482
+      this.loading = true;
483
+      return new Promise(resolve => {
474
         const params = {
484
         const params = {
475
           F_State: this.searchData.F_State, // 订单状态
485
           F_State: this.searchData.F_State, // 订单状态
476
           pageindex: 1, // int 第几页
486
           pageindex: 1, // int 第几页
483
           F_Status: this.searchData.logisticsStatus, // 物流状态
493
           F_Status: this.searchData.logisticsStatus, // 物流状态
484
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
494
           F_CustomerPhone: this.searchData.customerPhone, // 客户手机号
485
           F_TrackingNo: this.searchData.trackingNo, // 运单号
495
           F_TrackingNo: this.searchData.trackingNo, // 运单号
486
-          SearchStartTime: this.searchData.searchTime[0], // 添加开始时间
487
-          SearchEndTime: this.searchData.searchTime[1], // 添加结束时间
496
+          keywords: this.searchData.keywords, // 关键字
497
+          SearchStartTime: this.searchData.searchTime && this.searchData.searchTime[0], // 添加开始时间
498
+          SearchEndTime: this.searchData.searchTime && this.searchData.searchTime[1], // 添加结束时间
488
           F_PayState: -2,
499
           F_PayState: -2,
489
           State: this.searchData.State
500
           State: this.searchData.State
490
-        }
491
-        getOrderLists(params).then((response) => {
492
-          this.loading = false
493
-          if (response.state.toLowerCase() === 'success') {
494
-            this.pageParams.total = response.data.Totals
495
-            this.dataLists = response.data.Rows
501
+        };
502
+        getOrderLists(params).then(response => {
503
+          this.loading = false;
504
+          if (response.state.toLowerCase() === "success") {
505
+            this.pageParams.total = response.data.Totals;
506
+            this.dataLists = response.data.Rows;
496
           }
507
           }
497
-        })
498
-        resolve()
499
-      })
508
+        });
509
+        resolve();
510
+      });
500
     },
511
     },
501
     // 获取订单类型
512
     // 获取订单类型
502
     getOrderType() {
513
     getOrderType() {
503
-      return new Promise((resolve) => {
514
+      return new Promise(resolve => {
504
         const params = {
515
         const params = {
505
           isleaf: true,
516
           isleaf: true,
506
-          code: 'ORDERTYPE'
507
-        }
508
-        getDictionaryValueList(params).then((response) => {
509
-          if (response.state.toLowerCase() === 'success') {
510
-            this.orderType = response.data.Rows
517
+          code: "ORDERTYPE"
518
+        };
519
+        getDictionaryValueList(params).then(response => {
520
+          if (response.state.toLowerCase() === "success") {
521
+            this.orderType = response.data.Rows;
511
           }
522
           }
512
-        })
513
-      })
523
+        });
524
+      });
514
     },
525
     },
515
     // 获取支付方式
526
     // 获取支付方式
516
     getPayType() {
527
     getPayType() {
517
-      return new Promise((resolve) => {
528
+      return new Promise(resolve => {
518
         const params = {
529
         const params = {
519
           isleaf: true,
530
           isleaf: true,
520
-          code: 'PayType'
521
-        }
522
-        getDictionaryValueList(params).then((response) => {
523
-          if (response.state.toLowerCase() === 'success') {
524
-            this.payTypeList = response.data.Rows
531
+          code: "PayType"
532
+        };
533
+        getDictionaryValueList(params).then(response => {
534
+          if (response.state.toLowerCase() === "success") {
535
+            this.payTypeList = response.data.Rows;
525
           }
536
           }
526
-        })
527
-      })
537
+        });
538
+      });
528
     },
539
     },
529
     // 获取物流状态
540
     // 获取物流状态
530
     getOrderF_State() {
541
     getOrderF_State() {
531
-      return new Promise((resolve) => {
542
+      return new Promise(resolve => {
532
         const params = {
543
         const params = {
533
           isleaf: true,
544
           isleaf: true,
534
-          code: 'OrderF_State'
535
-        }
536
-        getDictionaryValueList(params).then((response) => {
537
-          if (response.state.toLowerCase() === 'success') {
538
-            const res = response.data.Rows
545
+          code: "OrderF_State"
546
+        };
547
+        getDictionaryValueList(params).then(response => {
548
+          if (response.state.toLowerCase() === "success") {
549
+            const res = response.data.Rows;
539
             res.forEach((e, i) => {
550
             res.forEach((e, i) => {
540
-              if (e.F_Remark === '未签收') {
541
-                this.logisticsList.push(e)
542
-              } else if (e.F_Remark === '签收') {
543
-                this.logisticsList.push(e)
544
-              } else if (e.F_Remark === '拒收') {
545
-                this.logisticsList.push(e)
546
-              } else if (e.F_Remark === '未发出') {
547
-                this.logisticsList.push(e)
551
+              if (e.F_Remark === "未签收") {
552
+                this.logisticsList.push(e);
553
+              } else if (e.F_Remark === "签收") {
554
+                this.logisticsList.push(e);
555
+              } else if (e.F_Remark === "拒收") {
556
+                this.logisticsList.push(e);
557
+              } else if (e.F_Remark === "未发出") {
558
+                this.logisticsList.push(e);
548
               }
559
               }
549
-            })
560
+            });
550
           }
561
           }
551
-        })
552
-      })
562
+        });
563
+      });
553
     },
564
     },
554
     handleTabClick(tab, event) {
565
     handleTabClick(tab, event) {
555
-      this.$refs.multipleTable.clearSelection()
556
-      this.pageParams.pageindex = 1
557
-      if (this.activeName == '1') {
558
-        this.searchData.State = this.activeName
559
-        this.searchData.F_State = ''
566
+      this.$refs.multipleTable.clearSelection();
567
+      this.pageParams.pageindex = 1;
568
+      if (this.activeName == "1") {
569
+        this.searchData.State = this.activeName;
570
+        this.searchData.F_State = "";
560
       } else {
571
       } else {
561
-        this.searchData.F_State = this.activeName
562
-        this.searchData.State = ''
572
+        this.searchData.F_State = this.activeName;
573
+        this.searchData.State = "";
563
       }
574
       }
564
-      this.getList()
575
+      this.getList();
565
     },
576
     },
566
     handle(ordercode) {
577
     handle(ordercode) {
567
       this.$layer.iframe({
578
       this.$layer.iframe({
570
           parent: this, // 当前的vue对象
581
           parent: this, // 当前的vue对象
571
           data: { rowid: ordercode } // props
582
           data: { rowid: ordercode } // props
572
         },
583
         },
573
-        area: ['80%', '90%'],
574
-        title: '订单详情'
575
-      })
584
+        area: ["80%", "90%"],
585
+        title: "订单详情"
586
+      });
576
     },
587
     },
577
     btn_search() {
588
     btn_search() {
578
-      this.pageParams.pageindex = 1
579
-      this.getList()
589
+      this.pageParams.pageindex = 1;
590
+      this.getList();
580
     },
591
     },
581
     // 添加备注
592
     // 添加备注
582
     btn_add_remark(id) {
593
     btn_add_remark(id) {
586
           parent: this, // 当前的vue对象
597
           parent: this, // 当前的vue对象
587
           data: { rowid: id } // props
598
           data: { rowid: id } // props
588
         },
599
         },
589
-        area: ['40%', '50%'],
590
-        title: '添加备注'
591
-      })
600
+        area: ["40%", "50%"],
601
+        title: "添加备注"
602
+      });
592
     },
603
     },
593
     // 编辑
604
     // 编辑
594
     btn_edit(editId) {
605
     btn_edit(editId) {
598
           parent: this, // 当前的vue对象
609
           parent: this, // 当前的vue对象
599
           data: { rowid: editId } // props
610
           data: { rowid: editId } // props
600
         },
611
         },
601
-        area: ['80%', '90%'],
602
-        title: '编辑订单'
603
-      })
612
+        area: ["80%", "90%"],
613
+        title: "编辑订单"
614
+      });
604
     },
615
     },
605
     // 售后
616
     // 售后
606
     btn_afterSale(id) {
617
     btn_afterSale(id) {
610
           parent: this, // 当前的vue对象
621
           parent: this, // 当前的vue对象
611
           data: { rowid: id } // props
622
           data: { rowid: id } // props
612
         },
623
         },
613
-        area: ['80%', '90%'],
614
-        title: '售后'
615
-      })
624
+        area: ["80%", "90%"],
625
+        title: "售后"
626
+      });
616
     },
627
     },
617
     // 导出
628
     // 导出
618
     btn_export() {},
629
     btn_export() {},
622
         content: {
633
         content: {
623
           content: importAuth, // 传递的组件对象
634
           content: importAuth, // 传递的组件对象
624
           parent: this, // 当前的vue对象
635
           parent: this, // 当前的vue对象
625
-          data: { rowid: '' } // props//该方法会自动添加一个key为layerid的值, 该值为创建层的id, 可以直接使用
636
+          data: { rowid: "" } // props//该方法会自动添加一个key为layerid的值, 该值为创建层的id, 可以直接使用
626
         },
637
         },
627
-        area: ['40%', '380px'],
638
+        area: ["40%", "380px"],
628
         shadeClose: false,
639
         shadeClose: false,
629
-        title: '导入订单信息'
630
-      })
640
+        title: "导入订单信息"
641
+      });
631
     },
642
     },
632
     // 撤回
643
     // 撤回
633
     btn_cancel(orderId) {
644
     btn_cancel(orderId) {
634
-      this.isDisable = true
645
+      this.isDisable = true;
635
       setTimeout(() => {
646
       setTimeout(() => {
636
-        this.$confirm('您确定撤回吗?', '提示', {
637
-          confirmButtonText: '确定',
638
-          cancelButtonText: '取消',
639
-          type: 'warning'
647
+        this.$confirm("您确定撤回吗?", "提示", {
648
+          confirmButtonText: "确定",
649
+          cancelButtonText: "取消",
650
+          type: "warning"
640
         })
651
         })
641
           .then(() => {
652
           .then(() => {
642
-            this.isDisable = false
653
+            this.isDisable = false;
643
             const data = {
654
             const data = {
644
               orderids: orderId,
655
               orderids: orderId,
645
               state: 0 // 撤回 0
656
               state: 0 // 撤回 0
646
-            }
647
-            cancelOrder(data).then((response) => {
648
-              if (response.state.toLowerCase() === 'success') {
649
-                this.getList()
650
-                this.$message.success('撤回成功!')
657
+            };
658
+            cancelOrder(data).then(response => {
659
+              if (response.state.toLowerCase() === "success") {
660
+                this.getList();
661
+                this.$message.success("撤回成功!");
651
               }
662
               }
652
-            })
663
+            });
653
           })
664
           })
654
           .catch(() => {
665
           .catch(() => {
655
             this.$message({
666
             this.$message({
656
-              type: 'info',
657
-              message: '已取消撤回'
658
-            })
659
-          })
660
-        this.isDisable = false
661
-      }, 300)
667
+              type: "info",
668
+              message: "已取消撤回"
669
+            });
670
+          });
671
+        this.isDisable = false;
672
+      }, 300);
662
     },
673
     },
663
     // 提交
674
     // 提交
664
     btn_submit(orderId) {
675
     btn_submit(orderId) {
665
-      this.isDisable = true
676
+      this.isDisable = true;
666
       setTimeout(() => {
677
       setTimeout(() => {
667
-        this.$confirm('您确定提交吗?', '提示', {
668
-          confirmButtonText: '确定',
669
-          cancelButtonText: '取消',
670
-          type: 'warning'
678
+        this.$confirm("您确定提交吗?", "提示", {
679
+          confirmButtonText: "确定",
680
+          cancelButtonText: "取消",
681
+          type: "warning"
671
         })
682
         })
672
           .then(() => {
683
           .then(() => {
673
-            this.isDisable = false
684
+            this.isDisable = false;
674
             const data = {
685
             const data = {
675
               orderids: orderId
686
               orderids: orderId
676
-            }
677
-            orderBulkSubmit(data).then((response) => {
678
-              if (response.state.toLowerCase() === 'success') {
679
-                this.getList()
680
-                this.$message.success('提交成功!')
687
+            };
688
+            orderBulkSubmit(data).then(response => {
689
+              if (response.state.toLowerCase() === "success") {
690
+                this.getList();
691
+                this.$message.success("提交成功!");
681
               }
692
               }
682
-            })
693
+            });
683
           })
694
           })
684
           .catch(() => {
695
           .catch(() => {
685
             this.$message({
696
             this.$message({
686
-              type: 'info',
687
-              message: '已取消提交'
688
-            })
689
-          })
690
-        this.isDisable = false
691
-      }, 300)
697
+              type: "info",
698
+              message: "已取消提交"
699
+            });
700
+          });
701
+        this.isDisable = false;
702
+      }, 300);
692
     },
703
     },
693
     // 合并
704
     // 合并
694
     btn_merge() {
705
     btn_merge() {
695
       if (this.selectOrderId.length < 2) {
706
       if (this.selectOrderId.length < 2) {
696
         this.$message({
707
         this.$message({
697
-          message: '最少选择两条订单!',
698
-          type: 'warning'
699
-        })
700
-        return
708
+          message: "最少选择两条订单!",
709
+          type: "warning"
710
+        });
711
+        return;
701
       }
712
       }
702
       this.$layer.iframe({
713
       this.$layer.iframe({
703
         content: {
714
         content: {
705
           parent: this, // 当前的vue对象
716
           parent: this, // 当前的vue对象
706
           data: { rowid: this.selectOrderId } // props
717
           data: { rowid: this.selectOrderId } // props
707
         },
718
         },
708
-        area: ['80%', '90%'],
709
-        title: '合并订单'
710
-      })
719
+        area: ["80%", "90%"],
720
+        title: "合并订单"
721
+      });
711
     },
722
     },
712
     // 批量提交
723
     // 批量提交
713
     btn_bulk_submit() {
724
     btn_bulk_submit() {
714
       if (this.selectOrderId.length < 1) {
725
       if (this.selectOrderId.length < 1) {
715
         this.$message({
726
         this.$message({
716
-          message: '请选择订单!',
717
-          type: 'warning'
718
-        })
719
-        return
727
+          message: "请选择订单!",
728
+          type: "warning"
729
+        });
730
+        return;
720
       }
731
       }
721
-      this.isDisable = true
732
+      this.isDisable = true;
722
       setTimeout(() => {
733
       setTimeout(() => {
723
-        this.$confirm('您确定提交吗?', '提示', {
724
-          confirmButtonText: '确定',
725
-          cancelButtonText: '取消',
726
-          type: 'warning'
734
+        this.$confirm("您确定提交吗?", "提示", {
735
+          confirmButtonText: "确定",
736
+          cancelButtonText: "取消",
737
+          type: "warning"
727
         })
738
         })
728
           .then(() => {
739
           .then(() => {
729
-            this.isDisable = false
740
+            this.isDisable = false;
730
             const data = {
741
             const data = {
731
-              orderids: this.selectOrderId.join(',').replace(/\s+/g, '')
732
-            }
733
-            orderBulkSubmit(data).then((response) => {
734
-              if (response.state.toLowerCase() === 'success') {
735
-                this.getList()
736
-                this.$message.success('提交成功!')
742
+              orderids: this.selectOrderId.join(",").replace(/\s+/g, "")
743
+            };
744
+            orderBulkSubmit(data).then(response => {
745
+              if (response.state.toLowerCase() === "success") {
746
+                this.getList();
747
+                this.$message.success("提交成功!");
737
               }
748
               }
738
-            })
749
+            });
739
           })
750
           })
740
           .catch(() => {
751
           .catch(() => {
741
             this.$message({
752
             this.$message({
742
-              type: 'info',
743
-              message: '已取消提交'
744
-            })
745
-          })
746
-        this.isDisable = false
747
-      }, 300)
753
+              type: "info",
754
+              message: "已取消提交"
755
+            });
756
+          });
757
+        this.isDisable = false;
758
+      }, 300);
748
     },
759
     },
749
     // 批量撤回
760
     // 批量撤回
750
     btn_bulk_revoke() {
761
     btn_bulk_revoke() {
751
       if (this.selectOrderId.length < 1) {
762
       if (this.selectOrderId.length < 1) {
752
         this.$message({
763
         this.$message({
753
-          message: '请选择订单!',
754
-          type: 'warning'
755
-        })
756
-        return
764
+          message: "请选择订单!",
765
+          type: "warning"
766
+        });
767
+        return;
757
       }
768
       }
758
-      this.isDisable = true
769
+      this.isDisable = true;
759
       setTimeout(() => {
770
       setTimeout(() => {
760
-        this.$confirm('您确定撤回吗?', '提示', {
761
-          confirmButtonText: '确定',
762
-          cancelButtonText: '取消',
763
-          type: 'warning'
771
+        this.$confirm("您确定撤回吗?", "提示", {
772
+          confirmButtonText: "确定",
773
+          cancelButtonText: "取消",
774
+          type: "warning"
764
         })
775
         })
765
           .then(() => {
776
           .then(() => {
766
-            this.isDisable = false
777
+            this.isDisable = false;
767
             const data = {
778
             const data = {
768
-              orderids: this.selectOrderId.join(',').replace(/\s+/g, ''),
779
+              orderids: this.selectOrderId.join(",").replace(/\s+/g, ""),
769
               state: 0
780
               state: 0
770
-            }
771
-            cancelOrder(data).then((response) => {
772
-              if (response.state.toLowerCase() === 'success') {
773
-                this.getList()
774
-                this.$message.success('撤回成功!')
781
+            };
782
+            cancelOrder(data).then(response => {
783
+              if (response.state.toLowerCase() === "success") {
784
+                this.getList();
785
+                this.$message.success("撤回成功!");
775
               }
786
               }
776
-            })
787
+            });
777
           })
788
           })
778
           .catch(() => {
789
           .catch(() => {
779
             this.$message({
790
             this.$message({
780
-              type: 'info',
781
-              message: '已取消撤回'
782
-            })
783
-          })
784
-        this.isDisable = false
785
-      }, 300)
791
+              type: "info",
792
+              message: "已取消撤回"
793
+            });
794
+          });
795
+        this.isDisable = false;
796
+      }, 300);
786
     },
797
     },
787
     // 支付金额
798
     // 支付金额
788
     btn_pay_money(orderId) {
799
     btn_pay_money(orderId) {
792
           parent: this, // 当前的vue对象
803
           parent: this, // 当前的vue对象
793
           data: { rowid: orderId } // props
804
           data: { rowid: orderId } // props
794
         },
805
         },
795
-        area: ['80%', '80%'],
796
-        title: '支付金额'
797
-      })
806
+        area: ["80%", "80%"],
807
+        title: "支付金额"
808
+      });
798
     },
809
     },
799
     hadndleOrderCode(ordercode) {
810
     hadndleOrderCode(ordercode) {
800
       this.$layer.iframe({
811
       this.$layer.iframe({
803
           parent: this, // 当前的vue对象
814
           parent: this, // 当前的vue对象
804
           data: { rowid: ordercode } // props
815
           data: { rowid: ordercode } // props
805
         },
816
         },
806
-        area: ['80%', '90%'],
807
-        title: '订单详情'
808
-      })
817
+        area: ["80%", "90%"],
818
+        title: "订单详情"
819
+      });
809
     },
820
     },
810
     // 选择多个
821
     // 选择多个
811
     handleSelectionChange(val) {
822
     handleSelectionChange(val) {
812
-      const ids = []
813
-      this.multipleSelection = val
823
+      const ids = [];
824
+      this.multipleSelection = val;
814
       for (let i = 0; i < this.multipleSelection.length; i++) {
825
       for (let i = 0; i < this.multipleSelection.length; i++) {
815
-        ids.push(this.multipleSelection[i].F_Id)
826
+        ids.push(this.multipleSelection[i].F_Id);
816
       }
827
       }
817
-      this.selectOrderId = ids
828
+      this.selectOrderId = ids;
818
     },
829
     },
819
     // 撤回权限
830
     // 撤回权限
820
     authority_cancel(state) {
831
     authority_cancel(state) {
821
       if (state == 1) {
832
       if (state == 1) {
822
-        return true
833
+        return true;
823
       } else {
834
       } else {
824
-        return false
835
+        return false;
825
       }
836
       }
826
     },
837
     },
827
     authority_submit() {
838
     authority_submit() {
830
         this.activeName == 2 ||
841
         this.activeName == 2 ||
831
         this.activeName == 9
842
         this.activeName == 9
832
       ) {
843
       ) {
833
-        return true
844
+        return true;
834
       } else {
845
       } else {
835
-        return false
846
+        return false;
836
       }
847
       }
837
     },
848
     },
838
     // 售后权限
849
     // 售后权限
850
         this.activeName == 2 ||
861
         this.activeName == 2 ||
851
         this.activeName == 9
862
         this.activeName == 9
852
       ) {
863
       ) {
853
-        return true
864
+        return true;
854
       } else {
865
       } else {
855
-        return false
866
+        return false;
856
       }
867
       }
857
     },
868
     },
858
     // 外呼权限
869
     // 外呼权限
859
     authority_call_out(status) {
870
     authority_call_out(status) {
860
       if (status == 0 || status == 1) {
871
       if (status == 0 || status == 1) {
861
-        return true
872
+        return true;
862
       } else {
873
       } else {
863
-        return false
874
+        return false;
864
       }
875
       }
865
     },
876
     },
866
     // 外呼
877
     // 外呼
867
     clickCallOut(phoneNumber) {
878
     clickCallOut(phoneNumber) {
868
-      this.callOut(phoneNumber)
879
+      this.callOut(phoneNumber);
869
     },
880
     },
870
     // 外呼
881
     // 外呼
871
     callOut(phoneNumber) {
882
     callOut(phoneNumber) {
872
       if (phoneNumber) {
883
       if (phoneNumber) {
873
-        getCallOutprefix(phoneNumber).then((response) => {
874
-          if (response.state.toLowerCase() === 'success') {
875
-            const res = response.data
884
+        getCallOutprefix(phoneNumber).then(response => {
885
+          if (response.state.toLowerCase() === "success") {
886
+            const res = response.data;
876
             this.scoketDatas = {
887
             this.scoketDatas = {
877
-              Type: 'MakeCall',
888
+              Type: "MakeCall",
878
               AgentID: this.usercode,
889
               AgentID: this.usercode,
879
               AgentExten: this.extension,
890
               AgentExten: this.extension,
880
               Header: res.fix, // 号码前缀 用于截断前缀得到真实号码
891
               Header: res.fix, // 号码前缀 用于截断前缀得到真实号码
881
               DestinationNumber: res.phone //
892
               DestinationNumber: res.phone //
882
-            }
883
-            store.dispatch('ChangeCallNum', phoneNumber)
884
-            Send(this.scoketDatas)
885
-            store.dispatch('UpdateCalloutScreen', false) // 关闭外呼面板
886
-            store.dispatch('UpdateOutboundScreen', false) // 关闭外呼弹屏
893
+            };
894
+            store.dispatch("ChangeCallNum", phoneNumber);
895
+            Send(this.scoketDatas);
896
+            store.dispatch("UpdateCalloutScreen", false); // 关闭外呼面板
897
+            store.dispatch("UpdateOutboundScreen", false); // 关闭外呼弹屏
887
           }
898
           }
888
-        })
899
+        });
889
       } else {
900
       } else {
890
         this.$message({
901
         this.$message({
891
-          message: '请先输入电话号码!',
892
-          type: 'warning'
893
-        })
902
+          message: "请先输入电话号码!",
903
+          type: "warning"
904
+        });
894
       }
905
       }
895
-    }
906
+    },
896
   }
907
   }
897
-}
908
+};
898
 </script>
909
 </script>
899
 
910
 
900
 <style rel="stylesheet/scss" lang="scss" scoped>
911
 <style rel="stylesheet/scss" lang="scss" scoped>

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


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