|
|
|
@ -90,7 +90,10 @@
|
|
|
|
|
<el-button type="primary" @click="exportReport"> |
|
|
|
|
<el-icon><Plus /></el-icon>导出报表</el-button |
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="defaultAssignments"> |
|
|
|
|
<el-icon><Plus /></el-icon>默认指派</el-button |
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
<!-- <el-button type="primary" @click="BatchDelete"> |
|
|
|
|
<el-icon><Delete /></el-icon>批量删除</el-button |
|
|
|
@ -192,7 +195,7 @@
|
|
|
|
|
@selection="selectionChange" |
|
|
|
|
:tableRowClassName=" |
|
|
|
|
(row, index) => { |
|
|
|
|
if (row.customerServiceName) return 'Abnormal'; |
|
|
|
|
if ((row.departStatus !=null && row.departStatus)) return 'Abnormal'; |
|
|
|
|
else return ''; |
|
|
|
|
} |
|
|
|
|
" |
|
|
|
@ -699,6 +702,87 @@
|
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog |
|
|
|
|
v-model="CustomerServicea" |
|
|
|
|
title="客服指派" |
|
|
|
|
width="50%" |
|
|
|
|
class="el_Customer" |
|
|
|
|
> |
|
|
|
|
<div> |
|
|
|
|
<el-row> |
|
|
|
|
<!-- 列表模块 --> |
|
|
|
|
<tablecmt |
|
|
|
|
:columnList="CustomerColumnList" |
|
|
|
|
:tableData="CustomerData" |
|
|
|
|
:loading="CustomerLoad" |
|
|
|
|
@inputTxt="inputsc" |
|
|
|
|
@timeCheck="timesc" |
|
|
|
|
@btnCheck="btnsc" |
|
|
|
|
@selectCheck="selectsc" |
|
|
|
|
@selection="selectionChange" |
|
|
|
|
> |
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<template v-if="slotProps.scope.column.label === '操作'"> |
|
|
|
|
<div class="ElBtnClass"> |
|
|
|
|
<el-button @click="view(slotProps.scope)">解绑</el-button> |
|
|
|
|
<el-button @click="view(slotProps.scope)">设为默认</el-button> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
</tablecmt> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
<!-- 分页模块 --> |
|
|
|
|
<el-row class="el_FyCustomer"> |
|
|
|
|
<div></div> |
|
|
|
|
<el-pagination |
|
|
|
|
align="right" |
|
|
|
|
background |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@current-change="currentChange" |
|
|
|
|
:current-page="page.currentPage" |
|
|
|
|
:page-sizes="[30, 50, 80, 120]" |
|
|
|
|
:page-size="page.pageSize" |
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" |
|
|
|
|
:total="CustomerTotal" |
|
|
|
|
> |
|
|
|
|
</el-pagination> |
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
|
|
|
|
|
<el-form-item label="仓库选择"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="BatchFrom.businessDepartment" |
|
|
|
|
multiple |
|
|
|
|
filterable |
|
|
|
|
default-first-option |
|
|
|
|
:reserve-keyword="false" |
|
|
|
|
placeholder="请选择仓库" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in warehouseData" |
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
<template #footer> |
|
|
|
|
<span class="dialog-footer"> |
|
|
|
|
<el-button @click="dialogVisible = false">取消</el-button> |
|
|
|
|
<el-button type="primary" @click="dialogVisible = false"> |
|
|
|
|
确定 |
|
|
|
|
</el-button> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</basic-container> |
|
|
|
|
</div> |
|
|
|
|
</el-tabs> |
|
|
|
@ -745,6 +829,7 @@ import {
|
|
|
|
|
$_settlementUpdate, |
|
|
|
|
$_updateArbitrateStatu, |
|
|
|
|
$_exportAftersalesWorkOrder, |
|
|
|
|
$_aftersalesCustomerMall, |
|
|
|
|
} from '@/api/aftersales/aftersalesWorkOrder'; |
|
|
|
|
import { getToken } from '@/utils/auth'; |
|
|
|
|
import NProgress from 'nprogress'; |
|
|
|
@ -768,6 +853,7 @@ import {
|
|
|
|
|
Claimsfield, |
|
|
|
|
AppealList, |
|
|
|
|
timeoutList, |
|
|
|
|
CustomerColumnList, |
|
|
|
|
} from '@/option/aftersales/vueTvemp.js'; |
|
|
|
|
import { processRowProperty, isNumer, computeNumber } from '@/utils/util'; |
|
|
|
|
import { useRouter } from 'vue-router'; |
|
|
|
@ -826,6 +912,7 @@ const PermissionButton = computed(() => {
|
|
|
|
|
information_editing: accessControl.information_editing, //信息编辑 |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
const CustomerServicea = ref(false);//客服指派弹窗 |
|
|
|
|
const dialogCustomer=ref(false);//客服介入弹窗 |
|
|
|
|
const CustomerServiceForm=ref({});//客服介入表单 |
|
|
|
|
const DingTalkfilling = ref({}); //钉钉号表单 |
|
|
|
@ -836,6 +923,7 @@ const scrollContainer = ref(null); //客服实例
|
|
|
|
|
const workOrderStatus = ref(null); //侧边栏参数 |
|
|
|
|
const BatchFrom = ref({}); //批量打回 |
|
|
|
|
const selectList = ref([]); //表格勾选选中 |
|
|
|
|
const CustomerLoad = ref(false);//客服指派查询弹窗加载 |
|
|
|
|
const currentPage = ref(1); // 默认页码 |
|
|
|
|
const TransportlossList = ref([ |
|
|
|
|
//运损发现节点 |
|
|
|
@ -845,6 +933,7 @@ const AppealAttachment = ref([]); //申诉附件
|
|
|
|
|
const total = ref(0); //页码总页数 |
|
|
|
|
const KFinput = ref(''); //客服发送消息 |
|
|
|
|
const Appealselection = ref([]); //申诉选择的责任人 |
|
|
|
|
const CustomerTotal= ref(0);//总页码客服指派 |
|
|
|
|
const KFfeel = ref(''); //文件附件地址 |
|
|
|
|
const pageList = ref([5, 10, 50, 100, 200]); // 选择每页显示多少条 |
|
|
|
|
const background = ref(true); // 是否开启背景颜色 |
|
|
|
@ -883,6 +972,7 @@ const screenHeight = ref(0); // 屏幕高度
|
|
|
|
|
const eightyPercentHeight = ref(0); // 80% 高度 |
|
|
|
|
const list = ref([]); |
|
|
|
|
const options = ref([]); |
|
|
|
|
const CustomerData= ref([]);//客服指派表格查询 |
|
|
|
|
const repulse = ref(false); |
|
|
|
|
const dialogBatchcompletion = ref(false); //批量完结弹窗 |
|
|
|
|
const PLloading = ref(false); |
|
|
|
@ -911,8 +1001,8 @@ const TabList = ref([
|
|
|
|
|
{ name: 8, label: '待回复', state: false }, |
|
|
|
|
{ name: 1, label: '处理中', state: true }, |
|
|
|
|
{ name: 2, label: '处理完毕', state: true }, |
|
|
|
|
{ name: 6, label: '完结', state: true }, |
|
|
|
|
{ name: 5, label: '仲裁中', state: true }, |
|
|
|
|
{ name: 6, label: '仲裁中', state: true }, |
|
|
|
|
{ name: 5, label: '客服介入', state: true }, |
|
|
|
|
{ name: 4, label: '理赔金额未出', state: true }, |
|
|
|
|
{ name: 7, label: '超时未处理', state: true }, |
|
|
|
|
]); //标签栏 |
|
|
|
@ -3416,8 +3506,6 @@ const Assignbutton = () => {
|
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
// 客服介入(申请仲裁) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const arbitrate=()=>{ |
|
|
|
|
if (!details.selectionList.length) { |
|
|
|
|
console.log('当前没有数据'); |
|
|
|
@ -3427,7 +3515,7 @@ const arbitrate=()=>{
|
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
let resultState = details.selectionList.every(item => item.workOrderStatus != '30'); //判断勾选中的数据是否存在不符合条件的 |
|
|
|
|
let resultState = details.selectionList.every(item => item.workOrderStatus == '10' && item.workOrderStatus =='20'); //判断勾选中的数据是否存在不符合条件的 |
|
|
|
|
if (!resultState) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: '勾选数据不符合(待处理或处理中才可以申请仲裁)', |
|
|
|
@ -3757,6 +3845,24 @@ console.log('导出报表');
|
|
|
|
|
// console.log(res,'导出报表成功'); |
|
|
|
|
// }) |
|
|
|
|
} |
|
|
|
|
// 默认指派 |
|
|
|
|
const defaultAssignments=()=>{ |
|
|
|
|
CustomerServicea.value = true;//开启弹窗 |
|
|
|
|
let data={ |
|
|
|
|
current: details.page.currentPage, |
|
|
|
|
size: details.page.pageSize, |
|
|
|
|
} |
|
|
|
|
CustomerLoad.value=true;//开启加载 |
|
|
|
|
$_aftersalesCustomerMall(data).then(res=>{ |
|
|
|
|
console.log(res,''); |
|
|
|
|
CustomerData.value = res.data.data.records |
|
|
|
|
CustomerTotal.value = res.data.data.total |
|
|
|
|
}).catch(res=>{ |
|
|
|
|
|
|
|
|
|
}).finally(res=>{ |
|
|
|
|
CustomerLoad.value=false;//关闭加载 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
@ -4321,4 +4427,13 @@ console.log('导出报表');
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.el_Customer{ |
|
|
|
|
#bodys{ |
|
|
|
|
height: 300px !important; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.el_FyCustomer{ |
|
|
|
|
margin-top: 3px; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|