|
|
|
@ -716,6 +716,10 @@
|
|
|
|
|
> |
|
|
|
|
<div> |
|
|
|
|
<el-button type="primary" @click="CreateAdditions">新增创建</el-button> |
|
|
|
|
<el-tabs type="border-card" @tab-click="AssignSwitch"> |
|
|
|
|
<el-tab-pane name="0" label="总部指派"></el-tab-pane> |
|
|
|
|
<el-tab-pane name="1" label="商场指派"></el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
<el-row> |
|
|
|
|
<!-- 列表模块 --> |
|
|
|
|
<tablecmt |
|
|
|
@ -728,17 +732,21 @@
|
|
|
|
|
@selectCheck="selectsc" |
|
|
|
|
@selection="selectionChange" |
|
|
|
|
:tableRowClassName=" |
|
|
|
|
(row, index) => { |
|
|
|
|
if (row.conditions != null && row.conditions == '1') return 'Abnormal'; |
|
|
|
|
else return ''; |
|
|
|
|
} |
|
|
|
|
" |
|
|
|
|
(row, index) => { |
|
|
|
|
if (row.conditions != null && row.conditions == '1') return 'Abnormal'; |
|
|
|
|
else return ''; |
|
|
|
|
} |
|
|
|
|
" |
|
|
|
|
> |
|
|
|
|
<template #default="slotProps"> |
|
|
|
|
<template v-if="slotProps.scope.column.label === '操作'"> |
|
|
|
|
<div class="ElBtnClass"> |
|
|
|
|
<el-button @click="Unbindassignment(slotProps.scope)">解绑</el-button> |
|
|
|
|
<el-button v-if="slotProps.scope.row.conditions != '1'" @click="setAsdefault(slotProps.scope)">设为默认</el-button> |
|
|
|
|
<el-button |
|
|
|
|
v-if="slotProps.scope.row.conditions != '1'" |
|
|
|
|
@click="setAsdefault(slotProps.scope)" |
|
|
|
|
>设为默认</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
@ -751,8 +759,8 @@
|
|
|
|
|
<el-pagination |
|
|
|
|
align="right" |
|
|
|
|
background |
|
|
|
|
@size-change="sizeChange" |
|
|
|
|
@current-change="currentChange" |
|
|
|
|
@size-change="assignsizeChange" |
|
|
|
|
@current-change="assigncurrentChange" |
|
|
|
|
:current-page="page.currentPage" |
|
|
|
|
:page-sizes="[30, 50, 80, 120]" |
|
|
|
|
:page-size="page.pageSize" |
|
|
|
@ -1060,6 +1068,7 @@ const AppealStatus = ref(false); //申诉列表状态
|
|
|
|
|
const dialogModifyAmount = ref(false); //超时金额修改弹出状态 |
|
|
|
|
const UserPermissions = ref('仓库客服'); //客服权限 |
|
|
|
|
const TabPermissions = ref(0); //菜单权限 |
|
|
|
|
const AssignmentType = ref('1');//指派切换类型 |
|
|
|
|
const AppealeditorState = ref(false); //申诉是否为编辑状态(默认否) |
|
|
|
|
const AppealStatusT = ref(false); //是否为申诉列表 |
|
|
|
|
const loadingCustomer = ref(false); //客服介入弹窗加载 |
|
|
|
@ -1534,12 +1543,11 @@ const IndexTable = val => {
|
|
|
|
|
TabList.value.find(res => res.name == '8').state = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(UserPermissions.value == '总部客服经理'){ |
|
|
|
|
if (UserPermissions.value == '总部客服经理') { |
|
|
|
|
TabList.value.find(res => res.name == '9').state = true; |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
TabList.value.find(res => res.name == '9').state = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
console.log(UserPermissions.value, '当前角色权限'); |
|
|
|
|
let data = { |
|
|
|
@ -2841,12 +2849,12 @@ const DataRendering = (val, input) => {
|
|
|
|
|
Tableheaderswitching(columnList); |
|
|
|
|
ProcessingPartyFun(data); |
|
|
|
|
} |
|
|
|
|
}else if (val == 9){ |
|
|
|
|
// 待审核 |
|
|
|
|
} else if (val == 9) { |
|
|
|
|
// 待审核 |
|
|
|
|
ProcessingPartyState.value = true; //开启处理方 |
|
|
|
|
if (UserPermissions.value == '总部客服经理') { |
|
|
|
|
data.workOrderStatus = 500; |
|
|
|
|
details.query.workOrderStatus = 500; |
|
|
|
|
data.workOrderStatus = 500; |
|
|
|
|
details.query.workOrderStatus = 500; |
|
|
|
|
} |
|
|
|
|
ArbitrationStatus.value = true; //可以申请仲裁 |
|
|
|
|
Tableheaderswitching(columnList); |
|
|
|
@ -3927,11 +3935,12 @@ const defaultAssignments = () => {
|
|
|
|
|
let data = { |
|
|
|
|
current: details.page.currentPage, |
|
|
|
|
size: details.page.pageSize, |
|
|
|
|
typesOf:AssignmentType.value, |
|
|
|
|
}; |
|
|
|
|
CustomerLoad.value = true; //开启加载 |
|
|
|
|
$_aftersalesCustomerMall(data) |
|
|
|
|
.then(res => { |
|
|
|
|
console.log(res, ''); |
|
|
|
|
console.log(res, '获取成功值'); |
|
|
|
|
CustomerData.value = res.data.data.records; |
|
|
|
|
CustomerTotal.value = res.data.data.total; |
|
|
|
|
}) |
|
|
|
@ -3975,9 +3984,17 @@ const Unbindassignment = val => {
|
|
|
|
|
// 设为默认 |
|
|
|
|
const setAsdefault = val => { |
|
|
|
|
let data = {}; |
|
|
|
|
(data = val.row), |
|
|
|
|
data = val.row; |
|
|
|
|
CreateassignmentLoading.value = true; //开启加载 |
|
|
|
|
$_aftersalesCustomerMallsetDefault(data).then(res => { |
|
|
|
|
console.log(res, '设为默认'); |
|
|
|
|
if(res.data.code == 200){ |
|
|
|
|
defaultAssignments() |
|
|
|
|
} |
|
|
|
|
}).catch(res=>{ |
|
|
|
|
|
|
|
|
|
}).finally(()=>{ |
|
|
|
|
CreateassignmentLoading.value = false; //关闭加载 |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
@ -3993,6 +4010,19 @@ const CreateAdditions = () => {
|
|
|
|
|
console.log(error, '客服列表错误'); |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
// 指派切换 |
|
|
|
|
const AssignSwitch=(val)=>{ |
|
|
|
|
console.log(val); |
|
|
|
|
|
|
|
|
|
if(val.props.name == '0'){ |
|
|
|
|
// 总部指派 |
|
|
|
|
AssignmentType.value='1' |
|
|
|
|
}else if(val.props.name == '1'){ |
|
|
|
|
// 商场指派 |
|
|
|
|
AssignmentType.value='2' |
|
|
|
|
} |
|
|
|
|
defaultAssignments() |
|
|
|
|
} |
|
|
|
|
// 指派提交 |
|
|
|
|
const AssignSubmission = () => { |
|
|
|
|
let data = { |
|
|
|
@ -4005,7 +4035,7 @@ const AssignSubmission = () => {
|
|
|
|
|
clientId: BatchFrom.value.AssignWarehouse, //客服仓库ID |
|
|
|
|
clientName: warehouseData.value.find(res => res.value == BatchFrom.value.AssignWarehouse) |
|
|
|
|
.label, //客服绑定仓库 |
|
|
|
|
typesOf: '1', |
|
|
|
|
typesOf:AssignmentType.value, |
|
|
|
|
conditions: '2', |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
@ -4023,6 +4053,7 @@ const AssignSubmission = () => {
|
|
|
|
|
Createassignment.value = false; //关闭页面 |
|
|
|
|
AssignCustomerlist.value = []; //清空选中列表 |
|
|
|
|
BatchFrom.value.AssignWarehouse = ''; //清空选择 |
|
|
|
|
defaultAssignments() |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}); |
|
|
|
|
} |
|
|
|
|