|
|
|
@ -104,11 +104,11 @@
|
|
|
|
|
>批量确定</el-button |
|
|
|
|
> |
|
|
|
|
<!-- 总部客服批量确定 --> |
|
|
|
|
<el-button |
|
|
|
|
<!-- <el-button |
|
|
|
|
v-if="ButtonPermissions.ManagerConfirmed" |
|
|
|
|
@click="DetermineStorage" |
|
|
|
|
>批量确定</el-button |
|
|
|
|
> |
|
|
|
|
> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -198,17 +198,17 @@
|
|
|
|
|
" --> |
|
|
|
|
<!-- 处理结果确定和处理完毕 --> |
|
|
|
|
<!-- 总部客服确定 --> |
|
|
|
|
<el-button |
|
|
|
|
<!-- <el-button |
|
|
|
|
v-if="TabPermissions == '2' && UserPermissions == '总部客服经理'" |
|
|
|
|
@click="DetermineStorage(slotProps.scope)" |
|
|
|
|
@click="ResultConfirmation(slotProps.scope)" |
|
|
|
|
>确定</el-button |
|
|
|
|
> |
|
|
|
|
> --> |
|
|
|
|
<!-- 仓库客服确定 --> |
|
|
|
|
<el-button |
|
|
|
|
v-if=" |
|
|
|
|
TabPermissions == '2' && |
|
|
|
|
slotProps.scope.row.workOrderStatus == '21' && |
|
|
|
|
UserPermissions == '仓库客服' |
|
|
|
|
UserPermissions == '仓库客服' && UserPermissions == '总部客服经理' |
|
|
|
|
" |
|
|
|
|
@click="ResultConfirmation(slotProps.scope)" |
|
|
|
|
>确定</el-button |
|
|
|
@ -260,7 +260,7 @@
|
|
|
|
|
>编辑</el-button |
|
|
|
|
> |
|
|
|
|
<!-- 完结信息编辑 --> |
|
|
|
|
<el-button |
|
|
|
|
<!-- <el-button |
|
|
|
|
v-if=" |
|
|
|
|
TabPermissions == '6' && |
|
|
|
|
UserPermissions != '仓库客服' && |
|
|
|
@ -268,7 +268,7 @@
|
|
|
|
|
" |
|
|
|
|
@click="CompletedEditing(slotProps.scope)" |
|
|
|
|
>编辑</el-button |
|
|
|
|
> |
|
|
|
|
> --> |
|
|
|
|
|
|
|
|
|
<!-- 理赔金额确定 --> |
|
|
|
|
<el-button |
|
|
|
@ -1065,7 +1065,7 @@ const ButtonPermissions = computed(() => {
|
|
|
|
|
// DingTalkNumber:true,//钉钉号填写 |
|
|
|
|
// batchFinish:true, //批量完结 |
|
|
|
|
// appeal: true, //申诉 |
|
|
|
|
add: UserPermissions.value == '仓库客服', //新增按钮 |
|
|
|
|
add:true, //新增按钮 |
|
|
|
|
batchReject: UserPermissions.value != '仓库客服', //批量打回 |
|
|
|
|
assignment: UserPermissions.value == '总部客服经理', //工单指派 |
|
|
|
|
applyArbitration: UserPermissions.value == '仓库客服', //客服介入 |
|
|
|
@ -1080,7 +1080,7 @@ const ButtonPermissions = computed(() => {
|
|
|
|
|
batchReject: UserPermissions.value == '职能客服' || UserPermissions.value == '客服经理', //批量打回 |
|
|
|
|
assignment: false, //工单指派 |
|
|
|
|
applyArbitration: UserPermissions.value == '仓库客服', //客服介入 |
|
|
|
|
batchFinish: false, //批量完结 |
|
|
|
|
batchFinish: UserPermissions.value != '仓库客服', //批量完结 |
|
|
|
|
Batchdetermination: UserPermissions.value != '仓库客服', //批量确定 |
|
|
|
|
appeal: false, //申诉 |
|
|
|
|
ManagerConfirmed:false,//处理完毕下面的客服经理批量确定 |
|
|
|
@ -1102,7 +1102,7 @@ const ButtonPermissions = computed(() => {
|
|
|
|
|
batchReject: UserPermissions.value == '总部客服', //批量打回 |
|
|
|
|
assignment: UserPermissions.value == '总部客服经理', //工单指派 |
|
|
|
|
applyArbitration: UserPermissions.value == '仓库客服', //客服介入 |
|
|
|
|
batchFinish: false, //批量完结 |
|
|
|
|
batchFinish:UserPermissions.value != '仓库客服' , //批量完结 |
|
|
|
|
appeal: false, //申诉 |
|
|
|
|
Batchdetermination: false, //批量确定 |
|
|
|
|
ManagerConfirmed:false,//处理完毕下面的客服经理批量确定 |
|
|
|
@ -1135,7 +1135,7 @@ const ButtonPermissions = computed(() => {
|
|
|
|
|
batchReject: false, //批量打回 |
|
|
|
|
assignment: false, //工单指派 |
|
|
|
|
applyArbitration: false, //客服介入 |
|
|
|
|
batchFinish: UserPermissions.value != '仓库客服', //批量完结 |
|
|
|
|
batchFinish: false, //批量完结 |
|
|
|
|
appeal: true, //申诉 |
|
|
|
|
Batchdetermination: false, //批量确定 |
|
|
|
|
ManagerConfirmed:false,//处理完毕下面的客服经理批量确定 |
|
|
|
@ -1856,10 +1856,11 @@ const ProcessedResultediting = val => {
|
|
|
|
|
|
|
|
|
|
// 完结菜单的编辑 |
|
|
|
|
const CompletedEditing = val => { |
|
|
|
|
console.log(val); |
|
|
|
|
$router.push({ |
|
|
|
|
path: '/aftersales/aftersalesWorkOrdermodify', |
|
|
|
|
query: { |
|
|
|
|
id: val.row.id, |
|
|
|
|
id: val.row.workOrderId, |
|
|
|
|
name: val.row.workOrderNumber + '-完结编辑', |
|
|
|
|
businessId: val.row.businessId, |
|
|
|
|
warehouseId: val.row.warehouseId, |
|
|
|
@ -2959,6 +2960,7 @@ const DetermineStorage = val => {
|
|
|
|
|
// 处理完毕里面确定(仓库客服用的) |
|
|
|
|
|
|
|
|
|
const ResultConfirmation = (val) => { |
|
|
|
|
if(UserPermissions.value == '仓库客服'){ |
|
|
|
|
let data = { |
|
|
|
|
assignList: [], |
|
|
|
|
}; |
|
|
|
@ -3021,6 +3023,72 @@ const ResultConfirmation = (val) => {
|
|
|
|
|
.catch(res => { |
|
|
|
|
details.loadingObj.list = false; //关闭加载效果 |
|
|
|
|
}); |
|
|
|
|
}else{ |
|
|
|
|
let data = { |
|
|
|
|
assignList: [], |
|
|
|
|
}; |
|
|
|
|
let ConfirmStatus = false; //批量确认状态 |
|
|
|
|
if (!val.row) { |
|
|
|
|
// 说明点击的批量确定 |
|
|
|
|
console.log('当前点击的批量确定'); |
|
|
|
|
if (!details.selectionList.length) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: '请勾选要处理的数据数据', |
|
|
|
|
type: 'warning', |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} else { |
|
|
|
|
ConfirmStatus = true; //说明走的是批量 |
|
|
|
|
data['assignList'] = details.selectionList.map(item => item.id); |
|
|
|
|
console.log(data['assignList'], '批量确定处理好的参数'); |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
let ID = {}; |
|
|
|
|
ID = val.row.id; |
|
|
|
|
data['assignList'].push(ID); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (ConfirmStatus) { |
|
|
|
|
// 走的批量确认 |
|
|
|
|
let state = details.selectionList.every(item => item.workOrderStatus == '40'); |
|
|
|
|
if (!state) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: '批量确认中状态只能为待审核', |
|
|
|
|
type: 'warning', |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
if(val.workOrderStatus != '40'){ |
|
|
|
|
ElMessage({ |
|
|
|
|
message: '状态错误,已经确认过', |
|
|
|
|
type: 'warning', |
|
|
|
|
}); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
details.loadingObj.list = true; //开启加载效果 |
|
|
|
|
// 完结结果确定 |
|
|
|
|
$_updateManagerConfirmed(data) |
|
|
|
|
.then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
console.log(res, '处理完毕确定'); |
|
|
|
|
tabChenge(TabPermissions.value); |
|
|
|
|
}) |
|
|
|
|
.catch(res => { |
|
|
|
|
console.log(res,'错误信息'); |
|
|
|
|
}).finally(res=>{ |
|
|
|
|
details.loadingObj.list = false; //关闭加载效果 |
|
|
|
|
}) |
|
|
|
|
// 赔款方 |
|
|
|
|
console.log(data, '处理好的值'); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 批量打回 |
|
|
|
|
const BatchReturn = () => { |
|
|
|
|