|
|
|
@ -590,7 +590,6 @@
|
|
|
|
|
type="textarea" |
|
|
|
|
:autosize="{ minRows: 5, maxRows: 4 }" |
|
|
|
|
disabled |
|
|
|
|
placeholder="暂无仲裁原因" |
|
|
|
|
/> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
@ -673,6 +672,12 @@
|
|
|
|
|
<el-button type="primary" v-if="PermissionButton.Appeal_rejection" @click="AppealRejection" |
|
|
|
|
>申诉驳回</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
v-if="PermissionButton.Processing_confirmation" |
|
|
|
|
@click="ResultConfirmation" |
|
|
|
|
>确定</el-button |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
|
|
|
|
|
@ -851,6 +856,8 @@ import {
|
|
|
|
|
$_getInfo, |
|
|
|
|
$_batchReturn, |
|
|
|
|
$_Cancelappeal, |
|
|
|
|
$_updateWorkOrderStatus, |
|
|
|
|
$_updateManagerConfirmed, |
|
|
|
|
} from '@/api/aftersales/aftersalesWorkOrder'; |
|
|
|
|
import { ref, reactive, computed, onMounted } from 'vue'; |
|
|
|
|
import { getToken } from '@/utils/auth'; |
|
|
|
@ -912,7 +919,7 @@ const BatchFrom = ref({}); //打回内容
|
|
|
|
|
const dialogReturn = ref(false); //打回弹窗 |
|
|
|
|
const appeal = ref(false); //工单申诉状态 |
|
|
|
|
const AppealReview = ref(false); //申诉状态只能查看 |
|
|
|
|
const warehouseIdState = ref(false);//当前订单仓库状态 |
|
|
|
|
const warehouseIdState = ref(false); //当前订单仓库状态 |
|
|
|
|
const CompensationParty = ref([ |
|
|
|
|
{ |
|
|
|
|
name: '', |
|
|
|
@ -989,14 +996,51 @@ const PermissionButton = computed(() => {
|
|
|
|
|
// else if ( $route.query.workOrderStatus != '21')return false |
|
|
|
|
// return true |
|
|
|
|
return { |
|
|
|
|
reply: !appeal.value && $route.query.workOrderStatus != '80' && $route.query.workOrderStatus != '30', //回复 |
|
|
|
|
Processing_results: !appeal.value && (($route.query.RouteIndexs =='0' && $route.query.workOrderStatus == '10') || ($route.query.RouteIndexs =='3' && $route.query.workOrderStatus == '10')), //处理结果10 20 21 |
|
|
|
|
work_order_completion: !appeal.value && (($route.query.RouteIndexs =='0' && $route.query.workOrderStatus != '80' && UserPermissions.value !='仓库客服') || ($route.query.RouteIndexs =='3' && $route.query.workOrderStatus != '80' && UserPermissions.value !='仓库客服')) , //完结 |
|
|
|
|
repulse: !appeal.value && (($route.query.RouteIndexs =='0' && $route.query.workOrderStatus == '10') || ($route.query.RouteIndexs =='3' && $route.query.workOrderStatus == '10')) && UserPermissions.value !='仓库客服', //打回 |
|
|
|
|
apply_arbitration: !appeal.value && (($route.query.RouteIndexs =='0' && $route.query.workOrderStatus == '70') || ($route.query.RouteIndexs =='3' && $route.query.workOrderStatus == '70')) && UserPermissions.value !='仓库客服', //客服仲裁完结 |
|
|
|
|
information_editing: !appeal.value && (($route.query.RouteIndexs =='0' && $route.query.workOrderStatus == '10' ) || ($route.query.RouteIndexs =='3' && $route.query.workOrderStatus == '10' ))&& warehouseIdState.value, //信息编辑 只能待处理和当前仓库人 |
|
|
|
|
reply: |
|
|
|
|
!appeal.value && |
|
|
|
|
$route.query.workOrderStatus != '80' && |
|
|
|
|
$route.query.workOrderStatus != '30' && |
|
|
|
|
$route.query.workOrderStatus != '20' && |
|
|
|
|
$route.query.workOrderStatus != '40', //回复 |
|
|
|
|
Processing_results: |
|
|
|
|
!appeal.value && |
|
|
|
|
(($route.query.RouteIndexs == '0' && $route.query.workOrderStatus == '10') || |
|
|
|
|
($route.query.RouteIndexs == '3' && $route.query.workOrderStatus == '10')), //处理结果10 20 21 |
|
|
|
|
work_order_completion: |
|
|
|
|
!appeal.value && |
|
|
|
|
(($route.query.RouteIndexs == '0' && |
|
|
|
|
$route.query.workOrderStatus != '80' && |
|
|
|
|
UserPermissions.value != '仓库客服' && |
|
|
|
|
$route.query.workOrderStatus != '20') || |
|
|
|
|
($route.query.RouteIndexs == '3' && |
|
|
|
|
$route.query.workOrderStatus != '80' && |
|
|
|
|
UserPermissions.value != '仓库客服' && |
|
|
|
|
$route.query.workOrderStatus != '20')), //完结 |
|
|
|
|
repulse: |
|
|
|
|
!appeal.value && |
|
|
|
|
(($route.query.RouteIndexs == '0' && $route.query.workOrderStatus == '10') || |
|
|
|
|
($route.query.RouteIndexs == '3' && $route.query.workOrderStatus == '10')) && |
|
|
|
|
UserPermissions.value != '仓库客服', //打回 |
|
|
|
|
apply_arbitration: |
|
|
|
|
!appeal.value && |
|
|
|
|
(($route.query.RouteIndexs == '0' && $route.query.workOrderStatus == '70') || |
|
|
|
|
($route.query.RouteIndexs == '3' && $route.query.workOrderStatus == '70')) && |
|
|
|
|
UserPermissions.value != '仓库客服', //客服仲裁完结 |
|
|
|
|
information_editing: |
|
|
|
|
!appeal.value && |
|
|
|
|
(($route.query.RouteIndexs == '0' && $route.query.workOrderStatus == '10') || |
|
|
|
|
($route.query.RouteIndexs == '3' && $route.query.workOrderStatus == '10')) && |
|
|
|
|
warehouseIdState.value, //信息编辑 只能待处理和当前仓库人 |
|
|
|
|
Appeal_established: appeal.value && AppealReview.value, //申诉成立 |
|
|
|
|
Appeal_rejection:appeal.value && AppealReview.value, //申诉驳回 |
|
|
|
|
Appeal_rejection: appeal.value && AppealReview.value, //申诉驳回 |
|
|
|
|
Processing_confirmation: |
|
|
|
|
(UserPermissions.value != '仓库客服' && |
|
|
|
|
$route.query.RouteIndexs == '0' && |
|
|
|
|
$route.query.workOrderStatus == '40') || |
|
|
|
|
(UserPermissions.value != '仓库客服' && |
|
|
|
|
$route.query.RouteIndexs == '1' && |
|
|
|
|
$route.query.workOrderStatus == '40') || |
|
|
|
|
$route.query.RouteIndexs == '2', |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -1172,7 +1216,7 @@ const onLoad = () => {
|
|
|
|
|
$_getInfo({ id: $route.query.id }).then(res => { |
|
|
|
|
if ($route.query.Routstate) { |
|
|
|
|
appeal.value = true; |
|
|
|
|
console.log(appeal.value,'appeal.value'); |
|
|
|
|
console.log(appeal.value, 'appeal.value'); |
|
|
|
|
} |
|
|
|
|
// 只能查看申诉信息 |
|
|
|
|
if ($route.query.AppealReview) { |
|
|
|
@ -1185,15 +1229,18 @@ const onLoad = () => {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(res, '回显返回值参数'); |
|
|
|
|
Indexform.value = res.data.data; |
|
|
|
|
if(res.data.data.warehouseId == Mydata.value.id){ |
|
|
|
|
|
|
|
|
|
if (res.data.data.warehouseId == Mydata.value.id) { |
|
|
|
|
// 判断订单是否是当前登陆人发起的,用于修改订单信息(必须是待处理) |
|
|
|
|
warehouseIdState.value=true; |
|
|
|
|
warehouseIdState.value = true; |
|
|
|
|
} |
|
|
|
|
Indexform.value['result'] = []; |
|
|
|
|
Indexform.value['processor'] = []; |
|
|
|
|
//图片处理回显 |
|
|
|
|
Indexform.value.arbitrate = res.data.data.reasonArbitration;//仲裁原因 |
|
|
|
|
Indexform.value.packList = res.data.data.decreaseImageVOList.map(res => { |
|
|
|
|
amplifysrcList.value.push(res.imagePath); |
|
|
|
|
return { |
|
|
|
@ -1273,7 +1320,6 @@ const onLoad = () => {
|
|
|
|
|
Indexform.value.resultDescription = res.data.data.processingResultsVO.resultDescription; |
|
|
|
|
CompensationParty.value = []; |
|
|
|
|
if (res.data.data.completionRecipientEntityList.length) { |
|
|
|
|
|
|
|
|
|
res.data.data.completionRecipientEntityList.forEach((item, index) => { |
|
|
|
|
TotalamountReceived.value += Number(item.money); |
|
|
|
|
CompensationParty.value.push({ |
|
|
|
@ -1307,6 +1353,7 @@ const onLoad = () => {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
// 中擦原因回显 |
|
|
|
|
|
|
|
|
|
console.log(Mydata.value, '记录本地登录'); |
|
|
|
|
getDictionaryBiz('result_handling').then(res => { |
|
|
|
@ -1355,7 +1402,7 @@ const addireply = () => {
|
|
|
|
|
businessId: $route.query.workOrderNumber, |
|
|
|
|
RouterState: 'determine', |
|
|
|
|
index: '0', |
|
|
|
|
workOrderStatus:$route.query.workOrderStatus,//工单状态 |
|
|
|
|
workOrderStatus: $route.query.workOrderStatus, //工单状态 |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
@ -1465,7 +1512,7 @@ const AppealRejection = () => {
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(res => { |
|
|
|
|
console.log('错误信息',res); |
|
|
|
|
console.log('错误信息', res); |
|
|
|
|
}) |
|
|
|
|
.finally(() => { |
|
|
|
|
Pageloading.value = false; //关闭加载效果 |
|
|
|
@ -1508,6 +1555,105 @@ const ConfirmReturn = () => {
|
|
|
|
|
dialogReturn.value = false; //关闭打回弹窗 |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 待处理确定 和处理完毕确定 |
|
|
|
|
|
|
|
|
|
// 处理完毕里面确定(仓库客服用的) |
|
|
|
|
|
|
|
|
|
const ResultConfirmation = () => { |
|
|
|
|
if (UserPermissions.value == '仓库客服') { |
|
|
|
|
//处理完毕菜单下面确定按钮用于确定处理结果(仓库客服用的) |
|
|
|
|
let data = { |
|
|
|
|
assignList: [], |
|
|
|
|
}; |
|
|
|
|
let ID = {}; |
|
|
|
|
ID = $route.query.id; |
|
|
|
|
data['assignList'].push(ID); |
|
|
|
|
|
|
|
|
|
if ($route.query.workOrderStatus != '30') { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: '状态错误,已经确认过', |
|
|
|
|
type: 'warning', |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// 仓库客服 |
|
|
|
|
|
|
|
|
|
console.log(data, '处理好的数据'); |
|
|
|
|
$_updateWorkOrderStatus(data) |
|
|
|
|
.then(res => { |
|
|
|
|
console.log(res, '确定提交存储'); |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(res => {}); |
|
|
|
|
} 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; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 完结结果确定 |
|
|
|
|
$_updateManagerConfirmed(data) |
|
|
|
|
.then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
console.log(res, '处理完毕确定'); |
|
|
|
|
}) |
|
|
|
|
.catch(res => { |
|
|
|
|
console.log(res, '错误信息'); |
|
|
|
|
}) |
|
|
|
|
.finally(res => {}); |
|
|
|
|
// 赔款方 |
|
|
|
|
console.log(data, '处理好的值'); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style scoped lang="scss"> |
|
|
|
|