|
|
|
@ -1,50 +1,5 @@
|
|
|
|
|
<template> |
|
|
|
|
<el-card class="box-card" v-loading="editloading" element-loading-text="正在处理中..."> |
|
|
|
|
<el-tabs type="border-card" class="PackageInformation"> |
|
|
|
|
<el-tab-pane label="订单"> |
|
|
|
|
<el-form-item label="异常类型" prop="workOrderType" class="el_inputTop"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="Indexform.workOrderType" |
|
|
|
|
clearable |
|
|
|
|
placeholder="选择工单异常类型" |
|
|
|
|
@change="abnormalChange" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in IndexException" |
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="发现节点" prop="discoveryNode" class="el_inputTop"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="Indexform.discoveryNode" |
|
|
|
|
clearable |
|
|
|
|
placeholder="选择发现节点" |
|
|
|
|
@change="DiscoveringNodesChange" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in DiscoveringNodes" |
|
|
|
|
:key="item.value" |
|
|
|
|
:label="item.label" |
|
|
|
|
:value="item.value" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="异常工单号" class="el_inputTop"> |
|
|
|
|
<el-input |
|
|
|
|
v-model="Indexform.workOrderNumber" |
|
|
|
|
disabled |
|
|
|
|
placeholder="异常工单号(自动生成)" |
|
|
|
|
clearable |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
|
|
<el-tabs type="border-card" class="PackageInformation"> |
|
|
|
|
<el-tab-pane label="包件信息"> |
|
|
|
|
<div class="ResponsibilityBoxS"> |
|
|
|
@ -249,8 +204,8 @@
|
|
|
|
|
</el-form-item> |
|
|
|
|
<!-- 必填 --> |
|
|
|
|
<!-- <el-form-item label="异常问题描述"> |
|
|
|
|
<el-input v-model="Indexform.problemDescription" placeholder="请输入异常问题" clearable /> |
|
|
|
|
</el-form-item> --> |
|
|
|
|
<el-input v-model="Indexform.problemDescription" placeholder="请输入异常问题" clearable /> |
|
|
|
|
</el-form-item> --> |
|
|
|
|
|
|
|
|
|
<el-form-item label="处理方"> |
|
|
|
|
<el-select |
|
|
|
@ -1119,7 +1074,7 @@ const onLoad = () => {
|
|
|
|
|
console.log(res, '环节字典'); |
|
|
|
|
Indexform.value.workOrderType = res.data.data.find( |
|
|
|
|
res => res.dictKey == Indexform.value.workOrderType |
|
|
|
|
).dictKey; //异常类型回显 |
|
|
|
|
).dictValue; //异常类型回显 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
//发现环节回显 |
|
|
|
@ -1168,7 +1123,7 @@ const onLoad = () => {
|
|
|
|
|
// 总金额回显 |
|
|
|
|
TotalClaimAmount.value = res.data.data.processingResultsVO.money; |
|
|
|
|
// 理赔支付时间 |
|
|
|
|
Indexform.value.compensationTime = res.data.data.processingResultsVO.compensationTime; |
|
|
|
|
// Indexform.value.compensationTime = res.data.data.processingResultsVO.compensationTime; |
|
|
|
|
// 处理结果说明回显 |
|
|
|
|
Indexform.value.resultDescription = res.data.data.processingResultsVO.resultDescription; |
|
|
|
|
|
|
|
|
@ -1581,8 +1536,11 @@ function removeEmptyProperties(obj) {
|
|
|
|
|
return obj; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//表单提交 |
|
|
|
|
//信息编辑表单提交 |
|
|
|
|
const ConfirmForm = () => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(ProcessingpartyData.value, '处理方信息'); |
|
|
|
|
// 支付方式校验 |
|
|
|
|
if (ProcessingList.value.length) { |
|
|
|
@ -1825,6 +1783,7 @@ const ConfirmForm = () => {
|
|
|
|
|
// warehouseId: $route.query.warehouseId == '/' ? '' : $route.query.warehouseId, // 仓库ID |
|
|
|
|
warehouseId: item.warehouseId, //责任仓库 |
|
|
|
|
personResponsibleList: item.personResponsibleList, //责任人 |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
DataSubmit['completionRecipientEntities'].push({ |
|
|
|
@ -1851,7 +1810,7 @@ const ConfirmForm = () => {
|
|
|
|
|
DataSubmit.aftersalesProcessingResultsDTO['compensationMethod'] = ProcessingList.value |
|
|
|
|
.map(item => item.text) |
|
|
|
|
.join(','); |
|
|
|
|
|
|
|
|
|
DataSubmit.aftersalesProcessingResultsDTO.resultDescription=Indexform.value.resultDescription, //处理结果说明 |
|
|
|
|
DataSubmit.aftersalesProcessingResultsDTO['processingMoneyEntityList'] = ProcessingList.value |
|
|
|
|
.map(item => { |
|
|
|
|
console.log(item); |
|
|
|
@ -1868,12 +1827,14 @@ const ConfirmForm = () => {
|
|
|
|
|
compensationMethodName: paymentMethodMatch ? paymentMethodMatch.dictValue : '', |
|
|
|
|
resultName: item.name, //处理结果名字 |
|
|
|
|
paymentUnit: item.paymentUnit, //支付单位 |
|
|
|
|
compensationTime:item.compensationTime,//理赔支付时间 |
|
|
|
|
}; |
|
|
|
|
} else { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.filter(item => item !== null); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//移除的货损图片 |
|
|
|
|
DataSubmit = removeEmptyProperties(DataSubmit); |
|
|
|
@ -1908,11 +1869,12 @@ const ConfirmForm = () => {
|
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 客服仲裁完结 |
|
|
|
|
// 客服仲裁完结 编辑提交 |
|
|
|
|
const Arbitrationcompleted = () => { |
|
|
|
|
console.log(Copyprocessingresults.value, '初始化处理结果参数'); |
|
|
|
|
console.log(ProcessingList.value, '最新的处理结果参数'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (Processingresults.value) { |
|
|
|
|
// 理赔金额未出编辑 |
|
|
|
|
// 处理结果编辑 |
|
|
|
@ -1939,7 +1901,6 @@ const Arbitrationcompleted = () => {
|
|
|
|
|
console.log(missingObjects); |
|
|
|
|
data.aftersalesProcessingResultsDTO['assignList'] = missingObjects.map(item => item.id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
data.aftersalesProcessingResultsDTO['processingMoneyEntityList'] = ProcessingList.value |
|
|
|
|
.map(item => { |
|
|
|
|
console.log(item); |
|
|
|
@ -1966,11 +1927,21 @@ const Arbitrationcompleted = () => {
|
|
|
|
|
.filter(item => item !== null); |
|
|
|
|
|
|
|
|
|
// 总金额 |
|
|
|
|
let sum = 0; //金额总计 |
|
|
|
|
for (let i = 0; i < ProcessingList.value.length; i++) { |
|
|
|
|
sum = computeNumber(sum, '+', ProcessingList.value[i].input).result; |
|
|
|
|
} |
|
|
|
|
data.aftersalesProcessingResultsDTO.money = sum; //金额汇总 |
|
|
|
|
// let sum = 0; //金额总计 |
|
|
|
|
// for (let i = 0; i < ProcessingList.value.length; i++) { |
|
|
|
|
// sum = computeNumber(sum, '+', ProcessingList.value[i].input).result; |
|
|
|
|
// } |
|
|
|
|
// data.aftersalesProcessingResultsDTO.money = sum; //金额汇总 |
|
|
|
|
|
|
|
|
|
let TotalAmount=0;//总金额 |
|
|
|
|
ProcessingList.value.forEach(res=>{ |
|
|
|
|
console.log(res); |
|
|
|
|
TotalAmount += Number(res.input) |
|
|
|
|
}) |
|
|
|
|
console.log(TotalAmount,'总金额'); |
|
|
|
|
DataSubmit.aftersalesProcessingResultsDTO.money = TotalAmount; //金额汇总 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data.aftersalesProcessingResultsDTO['resultType'] = ProcessingList.value |
|
|
|
|
.map(item => item.name) |
|
|
|
|
.join(','); //处理结果说明文字拼接 |
|
|
|
@ -2057,11 +2028,10 @@ const Arbitrationcompleted = () => {
|
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
console.log(data, '处理好的值'); |
|
|
|
|
$_updateCompletionEnd(data) |
|
|
|
|
.then(res => { |
|
|
|
|
console.log(res, '完结成功'); |
|
|
|
|
console.log(res, '完结编辑'); |
|
|
|
|
editloading.value = false; //关闭加载效果 |
|
|
|
|
$_updateCompletionEnd(data).then(res => { |
|
|
|
|
console.log(res, '完结成功'); |
|
|
|
|
console.log(res, '完结编辑'); |
|
|
|
|
editloading.value = false; //关闭加载效果 |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
@ -2073,10 +2043,9 @@ const Arbitrationcompleted = () => {
|
|
|
|
|
path: '/aftersales/aftersalesWorkOrder', |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(res => { |
|
|
|
|
editloading.value = false; //关闭加载效果 |
|
|
|
|
}); |
|
|
|
|
}).catch(res=>{ |
|
|
|
|
editloading.value = false; //关闭加载效果 |
|
|
|
|
}); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -2219,6 +2188,7 @@ const Arbitrationcompleted = () => {
|
|
|
|
|
resultName: item.name, //处理结果名字 |
|
|
|
|
paymentUnit: item.paymentUnit, //支付单位 |
|
|
|
|
id: item.id, //当前id |
|
|
|
|
compensationTime:item.compensationTime,//理赔支付时间 |
|
|
|
|
}; |
|
|
|
|
} else { |
|
|
|
|
return null; |
|
|
|
|