|
|
|
@ -1,13 +1,15 @@
|
|
|
|
|
<template> |
|
|
|
|
<el-card class="box-card"> |
|
|
|
|
<template #header> |
|
|
|
|
<el-card class="box-card" |
|
|
|
|
v-loading="Pageloading" |
|
|
|
|
element-loading-text="Loading..."> |
|
|
|
|
<!-- <template #header> |
|
|
|
|
<div class="card-header"> |
|
|
|
|
<span>{{ |
|
|
|
|
$route.query.index == '0' ? '回复' : $route.query.index == '1' ? '新增记录' : '完结' |
|
|
|
|
}}</span> |
|
|
|
|
<!-- <el-button class="button" v-if="$route.query.index=='1' || $route.query.index=='2'" @click="submit">提交</el-button> --> |
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</template> --> |
|
|
|
|
|
|
|
|
|
<div class="contemtMax"> |
|
|
|
|
<div class="left"> |
|
|
|
@ -449,7 +451,7 @@
|
|
|
|
|
}}</b></span |
|
|
|
|
> |
|
|
|
|
<span> |
|
|
|
|
<el-icon><Coin /></el-icon>收款金额总和:<b>{{ TotalamountReceived }}</b></span |
|
|
|
|
<el-icon><Coin /></el-icon>受款金额总和:<b>{{ TotalamountReceived }}</b></span |
|
|
|
|
> |
|
|
|
|
</div> |
|
|
|
|
</el-tab-pane> |
|
|
|
@ -580,14 +582,14 @@
|
|
|
|
|
> --> |
|
|
|
|
|
|
|
|
|
<el-button |
|
|
|
|
v-if="$route.query.index == '0'" |
|
|
|
|
v-if="$route.query.workOrderStatus == '10' && UserPermissions.value != '仓库客服' " |
|
|
|
|
type="primary" |
|
|
|
|
class="button" |
|
|
|
|
@click="CustomerServiceCompleted" |
|
|
|
|
>客服仲裁完结</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
v-if="$route.query.index == '0' && $route.query.workOrderStatus!='21'" |
|
|
|
|
v-if="$route.query.index == '0' && $route.query.workOrderStatus != '21'" |
|
|
|
|
type="primary" |
|
|
|
|
class="button" |
|
|
|
|
@click="ElProcessingResults" |
|
|
|
@ -631,10 +633,33 @@
|
|
|
|
|
> |
|
|
|
|
<!-- {time: '2021-08-06 16:00:00',content:'内容4',name:'营业部名称'}, --> |
|
|
|
|
<el-card> |
|
|
|
|
<div class="e_ico"> |
|
|
|
|
<el-icon><User /></el-icon>: |
|
|
|
|
<h4>{{ item.username }}【{{ item.name }}】</h4> |
|
|
|
|
<div class="header-top"> |
|
|
|
|
<div class="e_ico"> |
|
|
|
|
<el-icon><User /></el-icon>: |
|
|
|
|
<h4>{{ item.username }}【{{ item.name }}】</h4> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-tag |
|
|
|
|
:class="{ |
|
|
|
|
identifyingC1: item.difference == '1', |
|
|
|
|
identifyingC2: item.difference == '2', |
|
|
|
|
identifyingC3: item.difference == '3', |
|
|
|
|
'mx-1': true, |
|
|
|
|
}" |
|
|
|
|
effect="dark" |
|
|
|
|
>{{ |
|
|
|
|
item.difference == '1' |
|
|
|
|
? ' 调查记录' |
|
|
|
|
: item.difference == '2' |
|
|
|
|
? '指定记录' |
|
|
|
|
: item.difference == '3' |
|
|
|
|
? '操作记录' |
|
|
|
|
: '' |
|
|
|
|
}} |
|
|
|
|
</el-tag> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="e_ico"> |
|
|
|
|
<el-icon><ChatRound /></el-icon>:<span> {{ item.content }}</span> |
|
|
|
|
</div> |
|
|
|
@ -663,31 +688,11 @@
|
|
|
|
|
</span> |
|
|
|
|
</a> |
|
|
|
|
</div> |
|
|
|
|
<div class="e_ico"> |
|
|
|
|
<el-icon><Timer /></el-icon>: |
|
|
|
|
<p>{{ item.time }}</p> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="identifying"> |
|
|
|
|
<el-tag |
|
|
|
|
:class="{ |
|
|
|
|
identifyingC1: item.difference == '1', |
|
|
|
|
identifyingC2: item.difference == '2', |
|
|
|
|
identifyingC3: item.difference == '3', |
|
|
|
|
'mx-1': true, |
|
|
|
|
}" |
|
|
|
|
effect="dark" |
|
|
|
|
>{{ |
|
|
|
|
item.difference == '1' |
|
|
|
|
? ' 调查记录' |
|
|
|
|
: item.difference == '2' |
|
|
|
|
? '指定记录' |
|
|
|
|
: item.difference == '3' |
|
|
|
|
? '操作记录' |
|
|
|
|
: '' |
|
|
|
|
}} |
|
|
|
|
</el-tag> |
|
|
|
|
|
|
|
|
|
<div class="e_ico"> |
|
|
|
|
<el-icon><Timer /></el-icon>: |
|
|
|
|
<p>{{ item.time }}</p> |
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
class="tag" |
|
|
|
|
v-if=" |
|
|
|
@ -901,6 +906,7 @@ const amplifyurl = ref(''); //当前点击的图片
|
|
|
|
|
const amplifysrcList = ref([]); //图片循环列表 |
|
|
|
|
const Replycopy = ref([]); //拷贝一份回复方 |
|
|
|
|
const Mydata = ref(); //当前登录人信息 |
|
|
|
|
const Pageloading=ref(false);//页面加载load |
|
|
|
|
const PackageInfo = ref([ |
|
|
|
|
//包件信息 |
|
|
|
|
{ packageCode: '', orderCode: '', waybillNumber: '' }, |
|
|
|
@ -1081,196 +1087,199 @@ const onLoad = () => {
|
|
|
|
|
} |
|
|
|
|
console.log(UserPermissions.value, '当前角色权限'); |
|
|
|
|
Chathistory(); //聊天的历史记录 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 获取页面参数 |
|
|
|
|
if ($route.query.id) { |
|
|
|
|
console.log($route.query); |
|
|
|
|
routerState.value = $route.query.RouterState; //当前是新增记录 |
|
|
|
|
console.log(routerState.value, '当前状态'); |
|
|
|
|
$_getInfo({ id: $route.query.id }).then(res => { |
|
|
|
|
console.log(res, '回显返回值参数'); |
|
|
|
|
endFrom.value = res.data.data; |
|
|
|
|
endFrom.value.result = []; |
|
|
|
|
endFrom.value.processor = []; |
|
|
|
|
endFrom.value.packageImage = []; |
|
|
|
|
//图片处理回显 |
|
|
|
|
if(res.data.data.discoveryNode=='1'){ |
|
|
|
|
groundlineType.value = '1' |
|
|
|
|
}else{ |
|
|
|
|
groundlineType.value = 'null' |
|
|
|
|
} |
|
|
|
|
res.data.data.decreaseImageVOList.forEach(res => { |
|
|
|
|
amplifysrcList.value.push(res.imagePath); |
|
|
|
|
endFrom.value['packageImage'].push({ |
|
|
|
|
name: res.imageName, |
|
|
|
|
url: res.imagePath, |
|
|
|
|
// 获取页面参数 |
|
|
|
|
if ($route.query.id) { |
|
|
|
|
console.log($route.query); |
|
|
|
|
routerState.value = $route.query.RouterState; //当前是新增记录 |
|
|
|
|
console.log(routerState.value, '当前状态'); |
|
|
|
|
$_getInfo({ id: $route.query.id }).then(res => { |
|
|
|
|
console.log(res, '回显返回值参数'); |
|
|
|
|
endFrom.value = res.data.data; |
|
|
|
|
endFrom.value.result = []; |
|
|
|
|
endFrom.value.processor = []; |
|
|
|
|
endFrom.value.packageImage = []; |
|
|
|
|
//图片处理回显 |
|
|
|
|
if (res.data.data.discoveryNode == '1') { |
|
|
|
|
groundlineType.value = '1'; |
|
|
|
|
} else { |
|
|
|
|
groundlineType.value = 'null'; |
|
|
|
|
} |
|
|
|
|
res.data.data.decreaseImageVOList.forEach(res => { |
|
|
|
|
amplifysrcList.value.push(res.imagePath); |
|
|
|
|
endFrom.value['packageImage'].push({ |
|
|
|
|
name: res.imageName, |
|
|
|
|
url: res.imagePath, |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
// 包件回显 |
|
|
|
|
PackageInfo.value = res.data.data.abnormalPackageVOList; |
|
|
|
|
// 要修改 |
|
|
|
|
// 责任方回显 |
|
|
|
|
FangAddList.value = res.data.data.processorVOList |
|
|
|
|
.filter(item => item && item.typesOf && item.typesOf === '1') |
|
|
|
|
.map(item => { |
|
|
|
|
return { businessName: item.businessId }; |
|
|
|
|
// 包件回显 |
|
|
|
|
PackageInfo.value = res.data.data.abnormalPackageVOList; |
|
|
|
|
// 要修改 |
|
|
|
|
// 责任方回显 |
|
|
|
|
FangAddList.value = res.data.data.processorVOList |
|
|
|
|
.filter(item => item && item.typesOf && item.typesOf === '1') |
|
|
|
|
.map(item => { |
|
|
|
|
return { businessName: item.businessId }; |
|
|
|
|
}); |
|
|
|
|
let factorydata = res.data.data.personResponsibleVOS.find(item => item.typesOf); |
|
|
|
|
if (factorydata.typesOf) { |
|
|
|
|
groundlineType.value = true; //切换处理方模式 |
|
|
|
|
} |
|
|
|
|
FangAddList.value = res.data.data.personResponsibleVOS.map(res => { |
|
|
|
|
console.log(groundlineType.value, '当前责任方状态'); |
|
|
|
|
return { |
|
|
|
|
businessName: res.businessName, //责任方ID |
|
|
|
|
personResponsibleName: res.personResponsibleName, //责任人名称 |
|
|
|
|
responsibilityRatio: res.responsibilityRatio, //占比 |
|
|
|
|
description: res.description, //说明 |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
let factorydata = res.data.data.personResponsibleVOS.find(item => item.typesOf); |
|
|
|
|
if (factorydata.typesOf) { |
|
|
|
|
groundlineType.value = true; //切换处理方模式 |
|
|
|
|
} |
|
|
|
|
FangAddList.value = res.data.data.personResponsibleVOS.map(res => { |
|
|
|
|
console.log(groundlineType.value, '当前责任方状态'); |
|
|
|
|
return { |
|
|
|
|
businessName: res.businessName, //责任方ID |
|
|
|
|
personResponsibleName: res.personResponsibleName, //责任人名称 |
|
|
|
|
responsibilityRatio: res.responsibilityRatio, //占比 |
|
|
|
|
description: res.description, //说明 |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 要修改 |
|
|
|
|
res.data.data.processorVOList.forEach(item => { |
|
|
|
|
if (item) { |
|
|
|
|
if (item.typesOf == 2) { |
|
|
|
|
// 处理方 |
|
|
|
|
endFrom.value.processor.push(item.businessId); |
|
|
|
|
MessageResponsibility.value.push(item.businessId); |
|
|
|
|
Replycopy.value.push(item.businessId); //拷贝一份要回复的 |
|
|
|
|
// 要修改 |
|
|
|
|
res.data.data.processorVOList.forEach(item => { |
|
|
|
|
if (item) { |
|
|
|
|
if (item.typesOf == 2) { |
|
|
|
|
// 处理方 |
|
|
|
|
endFrom.value.processor.push(item.businessId); |
|
|
|
|
MessageResponsibility.value.push(item.businessId); |
|
|
|
|
Replycopy.value.push(item.businessId); //拷贝一份要回复的 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
console.log(JSON.parse(localStorage.getItem('my_data')).id); |
|
|
|
|
if (UserPermissions.value == '仓库客服') { |
|
|
|
|
MessageResponsibility.value.push(JSON.parse(localStorage.getItem('my_data')).id); |
|
|
|
|
MessageResponsibility.value = [...new Set(MessageResponsibility.value)]; //对回复方去重 |
|
|
|
|
MessageResponsibility.value = MessageResponsibility.value.filter( |
|
|
|
|
item => item !== JSON.parse(localStorage.getItem('my_data')).id |
|
|
|
|
); //过滤掉当前登录人的仓库 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
console.log(JSON.parse(localStorage.getItem('my_data')).id); |
|
|
|
|
MessageResponsibility.value.push(JSON.parse(localStorage.getItem('my_data')).id); |
|
|
|
|
MessageResponsibility.value = [...new Set(MessageResponsibility.value)]; //对回复方去重 |
|
|
|
|
MessageResponsibility.value = MessageResponsibility.value.filter( |
|
|
|
|
item => item !== JSON.parse(localStorage.getItem('my_data')).id |
|
|
|
|
); //过滤掉当前登录人的仓库 |
|
|
|
|
console.log(endFrom.value.processor, ' endFrom.value.processor'); |
|
|
|
|
getDictionaryBiz('pc_work_order').then(res => { |
|
|
|
|
//处理结果字典 |
|
|
|
|
console.log(res, '环节字典'); |
|
|
|
|
endFrom.value.workOrderType = res.data.data.find( |
|
|
|
|
res => res.dictKey == endFrom.value.workOrderType |
|
|
|
|
).dictValue; //异常类型回显 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
//发现环节回显 |
|
|
|
|
getDictionaryBiz('pc_discovery_node').then(res => { |
|
|
|
|
console.log(res, '发现环节'); |
|
|
|
|
TransportlossList.value = res.data.data; |
|
|
|
|
console.log(TransportlossList.value, '处理好的发现环节'); |
|
|
|
|
}); |
|
|
|
|
console.log(endFrom.value.processor, ' endFrom.value.processor'); |
|
|
|
|
getDictionaryBiz('pc_work_order').then(res => { |
|
|
|
|
//处理结果字典 |
|
|
|
|
console.log(res, '环节字典'); |
|
|
|
|
endFrom.value.workOrderType = res.data.data.find( |
|
|
|
|
res => res.dictKey == endFrom.value.workOrderType |
|
|
|
|
).dictValue; //异常类型回显 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 公司占比回显计算 |
|
|
|
|
let sum = 0; |
|
|
|
|
FangAddList.value.forEach(item => { |
|
|
|
|
if (item.responsibilityRatio) { |
|
|
|
|
item.responsibilityRatio = item.responsibilityRatio.replace(/%/g, ''); |
|
|
|
|
sum = Number(item.responsibilityRatio) + sum; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
FangAddList.value.forEach(item => { |
|
|
|
|
item.responsibilityRatio = item.responsibilityRatio + '%'; |
|
|
|
|
}); |
|
|
|
|
companyProportion.value = 100 - sum; |
|
|
|
|
if (res.data.data.processingResultsVO.processingMoneyEntityList) { |
|
|
|
|
ProcessingList.value = res.data.data.processingResultsVO.processingMoneyEntityList.map( |
|
|
|
|
item => { |
|
|
|
|
endFrom.value.result.push(item.resultType); |
|
|
|
|
return { |
|
|
|
|
input: item.money, |
|
|
|
|
min: 0, |
|
|
|
|
max: 9999999999999999999999999999, |
|
|
|
|
state: item.resultType, |
|
|
|
|
payment: item.compensationMethod, |
|
|
|
|
name: item.resultTypeName, |
|
|
|
|
text: item.compensationMethodName, |
|
|
|
|
compensationTime: item.compensationTime, |
|
|
|
|
paymentUnit: item.paymentUnit, |
|
|
|
|
}; |
|
|
|
|
//发现环节回显 |
|
|
|
|
getDictionaryBiz('pc_discovery_node').then(res => { |
|
|
|
|
console.log(res, '发现环节'); |
|
|
|
|
TransportlossList.value = res.data.data; |
|
|
|
|
console.log(TransportlossList.value, '处理好的发现环节'); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 公司占比回显计算 |
|
|
|
|
let sum = 0; |
|
|
|
|
FangAddList.value.forEach(item => { |
|
|
|
|
if (item.responsibilityRatio) { |
|
|
|
|
item.responsibilityRatio = item.responsibilityRatio.replace(/%/g, ''); |
|
|
|
|
sum = Number(item.responsibilityRatio) + sum; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
FangAddList.value.forEach(item => { |
|
|
|
|
item.responsibilityRatio = item.responsibilityRatio + '%'; |
|
|
|
|
}); |
|
|
|
|
companyProportion.value = 100 - sum; |
|
|
|
|
if (res.data.data.processingResultsVO.processingMoneyEntityList) { |
|
|
|
|
ProcessingList.value = res.data.data.processingResultsVO.processingMoneyEntityList.map( |
|
|
|
|
item => { |
|
|
|
|
endFrom.value.result.push(item.resultType); |
|
|
|
|
return { |
|
|
|
|
input: item.money, |
|
|
|
|
min: 0, |
|
|
|
|
max: 9999999999999999999999999999, |
|
|
|
|
state: item.resultType, |
|
|
|
|
payment: item.compensationMethod, |
|
|
|
|
name: item.resultTypeName, |
|
|
|
|
text: item.compensationMethodName, |
|
|
|
|
compensationTime: item.compensationTime, |
|
|
|
|
paymentUnit: item.paymentUnit, |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 总金额回显 |
|
|
|
|
TotalClaimAmount.value = res.data.data.processingResultsVO.money; |
|
|
|
|
// 理赔支付时间 |
|
|
|
|
// endFrom.value.compensationTime = res.data.data.processingResultsVO.compensationTime; |
|
|
|
|
// 处理结果说明回显 |
|
|
|
|
endFrom.value.resultDescription = res.data.data.processingResultsVO.resultDescription; |
|
|
|
|
|
|
|
|
|
// 完结信息回显 |
|
|
|
|
// 受款方 |
|
|
|
|
|
|
|
|
|
if (res.data.data.completionRecipientEntityList.length > 0) { |
|
|
|
|
CompensationParty.value = []; |
|
|
|
|
res.data.data.completionRecipientEntityList.forEach((item, index) => { |
|
|
|
|
TotalamountReceived.value += Number(item.money); |
|
|
|
|
CompensationParty.value.push({ |
|
|
|
|
state: 1, //状态 |
|
|
|
|
num: item.money, //金额 |
|
|
|
|
name: item.recipient, //受款方名字 |
|
|
|
|
reason: item.reasonReceivingPayment, //受款方原因 |
|
|
|
|
// explains: item.explains, //受款方说明 |
|
|
|
|
cld: index + 1, |
|
|
|
|
id: item.id, |
|
|
|
|
// 总金额回显 |
|
|
|
|
TotalClaimAmount.value = res.data.data.processingResultsVO.money; |
|
|
|
|
// 理赔支付时间 |
|
|
|
|
// endFrom.value.compensationTime = res.data.data.processingResultsVO.compensationTime; |
|
|
|
|
// 处理结果说明回显 |
|
|
|
|
endFrom.value.resultDescription = res.data.data.processingResultsVO.resultDescription; |
|
|
|
|
|
|
|
|
|
// 完结信息回显 |
|
|
|
|
// 受款方 |
|
|
|
|
|
|
|
|
|
if (res.data.data.completionRecipientEntityList.length > 0) { |
|
|
|
|
CompensationParty.value = []; |
|
|
|
|
res.data.data.completionRecipientEntityList.forEach((item, index) => { |
|
|
|
|
TotalamountReceived.value += Number(item.money); |
|
|
|
|
CompensationParty.value.push({ |
|
|
|
|
state: 1, //状态 |
|
|
|
|
num: item.money, //金额 |
|
|
|
|
name: item.recipient, //受款方名字 |
|
|
|
|
reason: item.reasonReceivingPayment, //受款方原因 |
|
|
|
|
// explains: item.explains, //受款方说明 |
|
|
|
|
cld: index + 1, |
|
|
|
|
id: item.id, |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
// 赔款方 |
|
|
|
|
if (res.data.data.completionRecordEntities.length) { |
|
|
|
|
res.data.data.completionRecordEntities.forEach((item, index) => { |
|
|
|
|
TotalamountCompensation.value += Number(item.money); |
|
|
|
|
CompensationParty.value.push({ |
|
|
|
|
state: 0, //状态 |
|
|
|
|
num: item.money, //金额 |
|
|
|
|
name: item.indemnitor, //受款方名字 |
|
|
|
|
reason: item.reason, //受款方原因 |
|
|
|
|
// explains: item.explains, //受款方说明 |
|
|
|
|
cld: index + 1, |
|
|
|
|
id: item.id, |
|
|
|
|
accounting: item.accounting ? item.accounting : '', |
|
|
|
|
warehouseId:item.warehouseId,//仓库 |
|
|
|
|
compensationPersonnel:item.compensationPersonnel,//赔款人员 |
|
|
|
|
} |
|
|
|
|
// 赔款方 |
|
|
|
|
if (res.data.data.completionRecordEntities.length) { |
|
|
|
|
res.data.data.completionRecordEntities.forEach((item, index) => { |
|
|
|
|
TotalamountCompensation.value += Number(item.money); |
|
|
|
|
CompensationParty.value.push({ |
|
|
|
|
state: 0, //状态 |
|
|
|
|
num: item.money, //金额 |
|
|
|
|
name: item.indemnitor, //受款方名字 |
|
|
|
|
reason: item.reason, //受款方原因 |
|
|
|
|
// explains: item.explains, //受款方说明 |
|
|
|
|
cld: index + 1, |
|
|
|
|
id: item.id, |
|
|
|
|
accounting: item.accounting ? item.accounting : '', |
|
|
|
|
warehouseId: item.warehouseId, //仓库 |
|
|
|
|
compensationPersonnel: item.compensationPersonnel, //赔款人员 |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
endFrom.value.arbitrate = res.data.data.reasonArbitration; //仲裁原因 |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
endFrom.value.arbitrate = res.data.data.reasonArbitration; //仲裁原因 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
getDictionaryBiz('result_handling').then(res => { |
|
|
|
|
console.log(res, '处理结果'); |
|
|
|
|
ProcessingResults.value = res.data.data; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
getDictionaryBiz('result_handling').then(res => { |
|
|
|
|
console.log(res, '处理结果'); |
|
|
|
|
ProcessingResults.value = res.data.data; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 异常类型业务字典 |
|
|
|
|
getDictionaryBiz('work_order_status').then(res => { |
|
|
|
|
//处理结果字典 |
|
|
|
|
endFrom.value.workOrderStatus = res.data.data.filter( |
|
|
|
|
obj => obj.dictKey == endFrom.value.workOrderStatus |
|
|
|
|
).dictValue; //异常类型处理 |
|
|
|
|
}); |
|
|
|
|
// 异常类型业务字典 |
|
|
|
|
getDictionaryBiz('work_order_status').then(res => { |
|
|
|
|
//处理结果字典 |
|
|
|
|
endFrom.value.workOrderStatus = res.data.data.filter( |
|
|
|
|
obj => obj.dictKey == endFrom.value.workOrderStatus |
|
|
|
|
).dictValue; //异常类型处理 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 支付方式字典 |
|
|
|
|
getDictionaryBiz('payment_method').then(res => { |
|
|
|
|
//处理结果字典 |
|
|
|
|
console.log(res); |
|
|
|
|
Paymentmethod.value = res.data.data; |
|
|
|
|
}); |
|
|
|
|
// 支付方式字典 |
|
|
|
|
getDictionaryBiz('payment_method').then(res => { |
|
|
|
|
//处理结果字典 |
|
|
|
|
console.log(res); |
|
|
|
|
Paymentmethod.value = res.data.data; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
getDeptWarehouse({}).then(res => { |
|
|
|
|
// 验证本地仓库用于回复选择,自己不能选择自己仓库 |
|
|
|
|
console.log(res, '处理方'); |
|
|
|
|
localStorage.getItem('WarehouseName'); |
|
|
|
|
console.log(localStorage.getItem('WarehouseName'), '当前本地仓库'); |
|
|
|
|
res.data.data.forEach(item => { |
|
|
|
|
warehouseData.value.push({ |
|
|
|
|
value: item.id, |
|
|
|
|
label: item.name, |
|
|
|
|
disabled: item.name == localStorage.getItem('WarehouseName'), |
|
|
|
|
getDeptWarehouse({}).then(res => { |
|
|
|
|
// 验证本地仓库用于回复选择,自己不能选择自己仓库 |
|
|
|
|
console.log(res, '处理方'); |
|
|
|
|
localStorage.getItem('WarehouseName'); |
|
|
|
|
console.log(localStorage.getItem('WarehouseName'), '当前本地仓库'); |
|
|
|
|
res.data.data.forEach(item => { |
|
|
|
|
warehouseData.value.push({ |
|
|
|
|
value: item.id, |
|
|
|
|
label: item.name, |
|
|
|
|
disabled: item.name == localStorage.getItem('WarehouseName'), |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
@ -1870,7 +1879,7 @@ const submit = () => {
|
|
|
|
|
console.log(data, '处理好的值'); |
|
|
|
|
|
|
|
|
|
// 赔款方 |
|
|
|
|
|
|
|
|
|
Pageloading.value = true;//开启页面加载 |
|
|
|
|
$_addCompletionEnd(data) |
|
|
|
|
.then(res => { |
|
|
|
|
console.log(res, '完结成功返回值'); |
|
|
|
@ -1885,6 +1894,7 @@ const submit = () => {
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(res => { |
|
|
|
|
Pageloading.value = false;//开启页面加载 |
|
|
|
|
console.log(res, '提交失败'); |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
@ -1895,9 +1905,8 @@ const submit = () => {
|
|
|
|
|
let data = { |
|
|
|
|
aftersalesProcessingResultsDTO: { |
|
|
|
|
// ...info, |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
processingMoneyEntityList: [], //赔付方式 |
|
|
|
|
// processingMoneyEntityList: [], //赔付方式 |
|
|
|
|
}; |
|
|
|
|
data.id = $route.query.id; |
|
|
|
|
data.aftersalesProcessingResultsDTO['workOrderId'] = $route.query.id; //异常工单ID |
|
|
|
@ -1908,7 +1917,7 @@ const submit = () => {
|
|
|
|
|
} |
|
|
|
|
data.aftersalesProcessingResultsDTO.money = sum; //金额汇总 |
|
|
|
|
// data.resultDescription=endFrom.value.resultDescription;//处理结果说明 |
|
|
|
|
data.aftersalesProcessingResultsDTO.resultDescription=endFrom.value.resultDescription;//处理结果说明 |
|
|
|
|
data.aftersalesProcessingResultsDTO.resultDescription = endFrom.value.resultDescription; //处理结果说明 |
|
|
|
|
// data['compensationMethod'] = Paymentmethod.value.filter( |
|
|
|
|
// item => item.dictKey == endFrom.value.compensationMethod |
|
|
|
|
// )[0].dictValue; //目前是单选 |
|
|
|
@ -1919,7 +1928,7 @@ const submit = () => {
|
|
|
|
|
data.aftersalesProcessingResultsDTO['compensationMethod'] = ProcessingList.value |
|
|
|
|
.map(item => item.text) |
|
|
|
|
.join(','); |
|
|
|
|
data.aftersalesProcessingResultsDTO.processingMoneyEntityList = ProcessingList.value |
|
|
|
|
data.aftersalesProcessingResultsDTO.processingMoneyEntityList = ProcessingList.value |
|
|
|
|
.map(item => { |
|
|
|
|
console.log(item); |
|
|
|
|
let match = ProcessingResults.value.find(element => element.dictValue == item.name); |
|
|
|
@ -1970,7 +1979,7 @@ const submit = () => {
|
|
|
|
|
|
|
|
|
|
data.aftersalesProcessingResultsDTO.warehouseId = info.warehouseId; //仓库ID |
|
|
|
|
console.log(data, '处理好的数据'); |
|
|
|
|
|
|
|
|
|
Pageloading.value = true;//开启页面加载 |
|
|
|
|
$_addProcessingResults(data) |
|
|
|
|
.then(res => { |
|
|
|
|
console.log(res, '提交后的参数'); |
|
|
|
@ -1984,7 +1993,9 @@ const submit = () => {
|
|
|
|
|
AddressClosed('/aftersales/aftersalesWorkOrderend'); //删除当前页面 |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(res => {}); |
|
|
|
|
.catch(res => { |
|
|
|
|
Pageloading.value = false;//开启页面加载 |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 消息回复 |
|
|
|
@ -2578,6 +2589,14 @@ const CustomerServiceCompleted = () => {
|
|
|
|
|
cursor: pointer; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.header-top { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
:deep(.el-tag){ |
|
|
|
|
width: 70px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.inputMax { |
|
|
|
|
position: absolute; |
|
|
|
@ -2739,6 +2758,10 @@ const CustomerServiceCompleted = () => {
|
|
|
|
|
.identifying { |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
align-items: center; |
|
|
|
|
.el-tag{ |
|
|
|
|
width: 70px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.identifyingC1 { |
|
|
|
|
background-color: #409eff; |
|
|
|
|