Browse Source

修复客服已知问题

pre-production
马远东 1 year ago
parent
commit
8d3f829b80
  1. 94
      src/views/aftersales/aftersalesWorkOrder.vue
  2. 2
      src/views/aftersales/aftersalesWorkOrdermodify.vue

94
src/views/aftersales/aftersalesWorkOrder.vue

@ -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 = () => {

2
src/views/aftersales/aftersalesWorkOrdermodify.vue

@ -354,7 +354,7 @@
:value="item.id"
/>
</el-select>
<el-input v-else v-model="item.personResponsibleName" clearable placeholder="请输入责任人" />
<el-input v-else v-model="item.personResponsibleName" :disabled="RouterState == 'Kfend'" clearable placeholder="请输入责任人" />
</div>
<div class="maxBox el_zb">
<span class="title">占比:</span>

Loading…
Cancel
Save