|
|
|
@ -329,6 +329,10 @@
|
|
|
|
|
<div class="Paymentname" @click="PaymentSelection(item)"> |
|
|
|
|
{{ item.payment ? item.text : '支付方式' }} |
|
|
|
|
</div> |
|
|
|
|
<div class="el_PaymentUnit"> |
|
|
|
|
<span>支付单位:</span> |
|
|
|
|
<el-input v-model="item.paymentUnit" placeholder="请输入支付单位" /> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="item.compensationTime" |
|
|
|
@ -342,7 +346,7 @@
|
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="el_tool"> |
|
|
|
|
<span>总金额:{{ TotalClaimAmount }}元</span> |
|
|
|
|
</div> |
|
|
|
@ -548,7 +552,11 @@
|
|
|
|
|
>提交</el-button |
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
<el-button @click="DetermineStorage" v-if="$route.query.index != '0'" type="primary" class="button" |
|
|
|
|
<el-button |
|
|
|
|
@click="DetermineStorage" |
|
|
|
|
v-if="$route.query.index != '0'" |
|
|
|
|
type="primary" |
|
|
|
|
class="button" |
|
|
|
|
>确定</el-button |
|
|
|
|
> |
|
|
|
|
|
|
|
|
@ -799,6 +807,7 @@ import {
|
|
|
|
|
$_getList, |
|
|
|
|
$_getProcessor, |
|
|
|
|
$_updateWorkOrderStatus, |
|
|
|
|
$_updateManagerConfirmed, |
|
|
|
|
} from '@/api/aftersales/aftersalesWorkOrder'; |
|
|
|
|
import { columnList, recordList } from '@/option/aftersales/vueTvemp.js'; |
|
|
|
|
import { getToken } from '@/utils/auth'; |
|
|
|
@ -822,6 +831,7 @@ const TotalamountReceived = ref(0); //收款金额合计
|
|
|
|
|
const personResponsibleList = ref([]); //责任人列表 |
|
|
|
|
const msgHight = ref(100); //聊天框消息高度 |
|
|
|
|
const msgTop = ref(0); //聊天框吸顶距离 |
|
|
|
|
const paymentUnit = ref(''); //支付单位 |
|
|
|
|
const scrollContainer = ref(null); //客服实例 |
|
|
|
|
const KFfeel = ref([]); //附件链接 |
|
|
|
|
const MessageResponsibility = ref([]); //消息的处理方选择 |
|
|
|
@ -1094,6 +1104,7 @@ const onLoad = () => {
|
|
|
|
|
name: item.resultTypeName, |
|
|
|
|
text: item.compensationMethodName, |
|
|
|
|
compensationTime: item.compensationTime, |
|
|
|
|
paymentUnit:item.paymentUnit, |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
@ -1281,6 +1292,7 @@ const changeProcessingResults = val => {
|
|
|
|
|
payment: '', |
|
|
|
|
text: '', |
|
|
|
|
compensationTime: '', |
|
|
|
|
paymentUnit:'', |
|
|
|
|
}; |
|
|
|
|
// 根据num为newItem的name字段赋值 |
|
|
|
|
switch (num) { |
|
|
|
@ -1346,7 +1358,6 @@ const fellSuccess = (response, uploadFile) => {
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 视频上传成功 |
|
|
|
|
const ViodSuccess = response => { |
|
|
|
|
if (response.success == true) { |
|
|
|
@ -1620,87 +1631,39 @@ const PaymentConfirmation = val => {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 确定存储 |
|
|
|
|
const DetermineStorage=()=>{ |
|
|
|
|
console.log($route.query.id, '异常ID'); |
|
|
|
|
console.log(ProcessingList.value, 'ProcessingList12312'); |
|
|
|
|
let data = { |
|
|
|
|
aftersalesProcessingResultsDTO: { |
|
|
|
|
}, |
|
|
|
|
processingMoneyEntityList: [], //赔付方式 |
|
|
|
|
assignList:[{}] |
|
|
|
|
}; |
|
|
|
|
let a={} |
|
|
|
|
a=$route.query.id |
|
|
|
|
data['assignList'].push(a) |
|
|
|
|
data.id = $route.query.id; |
|
|
|
|
data.aftersalesProcessingResultsDTO['workOrderId'] = $route.query.id; //异常工单ID |
|
|
|
|
let sum = 0; //金额总计 |
|
|
|
|
for (let i = 0; i < ProcessingList.value.length; i++) { |
|
|
|
|
console.log(ProcessingList.value[i].input); |
|
|
|
|
sum = computeNumber(sum, '+', ProcessingList.value[i].input).result; |
|
|
|
|
} |
|
|
|
|
data.aftersalesProcessingResultsDTO.money = sum; //金额汇总 |
|
|
|
|
// data['compensationMethod'] = Paymentmethod.value.filter( |
|
|
|
|
// item => item.dictKey == endFrom.value.compensationMethod |
|
|
|
|
// )[0].dictValue; //目前是单选 |
|
|
|
|
|
|
|
|
|
// data['compensationMethod'] = endFrom.value.compensationMethod.join(','); //赔付方式多选 |
|
|
|
|
// console.log(data['compensationMethod']); |
|
|
|
|
console.log(Paymentmethod.value, 'Paymentmethod.value'); |
|
|
|
|
data.aftersalesProcessingResultsDTO['compensationMethod'] = ProcessingList.value |
|
|
|
|
.map(item => item.text) |
|
|
|
|
.join(','); |
|
|
|
|
data['processingMoneyEntityList'] = ProcessingList.value |
|
|
|
|
.map(item => { |
|
|
|
|
console.log(item); |
|
|
|
|
let match = ProcessingResults.value.find(element => element.dictValue == item.name); |
|
|
|
|
if (match) { |
|
|
|
|
let paymentMethodMatch = Paymentmethod.value.find( |
|
|
|
|
paymentMethod => paymentMethod.dictKey == item.payment |
|
|
|
|
); |
|
|
|
|
return { |
|
|
|
|
resultType: match.dictKey, //赔方式的key |
|
|
|
|
money: item.input, //金额 |
|
|
|
|
typesOf: 1, //固定参数 |
|
|
|
|
compensationMethod: paymentMethodMatch ? paymentMethodMatch.dictKey : '未知支付方式', |
|
|
|
|
compensationMethodName: paymentMethodMatch |
|
|
|
|
? paymentMethodMatch.dictValue |
|
|
|
|
: '未知支付方式', |
|
|
|
|
resultName: item.name, //处理结果名字 |
|
|
|
|
compensationTime: item.compensationTime, //赔付时间 |
|
|
|
|
}; |
|
|
|
|
} else { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.filter(item => item !== null); |
|
|
|
|
data.aftersalesProcessingResultsDTO.processingMoneyEntityList = |
|
|
|
|
data['processingMoneyEntityList']; |
|
|
|
|
console.log('走到了这一步'); |
|
|
|
|
data.aftersalesProcessingResultsDTO.workOrderId = $route.query.id; //异常工单ID |
|
|
|
|
data.aftersalesProcessingResultsDTO['resultType'] = ProcessingList.value |
|
|
|
|
.map(item => item.name) |
|
|
|
|
.join(','); //处理结果说明文字拼接 |
|
|
|
|
let imgLink = ''; //存储图片地址 |
|
|
|
|
// 图片处理存在问题 |
|
|
|
|
// if (endFrom.value['packageImage'].length) { |
|
|
|
|
// imgLink = endFrom.value['packageImage'].map(item => item.response.data.link).join(','); //图片处理 |
|
|
|
|
// } |
|
|
|
|
if (videoUrl.value && imgLink) { |
|
|
|
|
data.aftersalesProcessingResultsDTO['annex'] = videoUrl.value + ',' + imgLink; |
|
|
|
|
} else { |
|
|
|
|
data.aftersalesProcessingResultsDTO['annex'] = imgLink; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
console.log(data, '处理好的数据'); |
|
|
|
|
delete data.aftersalesProcessingResultsDTO.id; //删除ID字段 |
|
|
|
|
|
|
|
|
|
data.aftersalesProcessingResultsDTO.warehouseId = info.warehouseId; //仓库ID |
|
|
|
|
const DetermineStorage = () => { |
|
|
|
|
let data = { |
|
|
|
|
assignList: [], |
|
|
|
|
}; |
|
|
|
|
let a = {}; |
|
|
|
|
a = $route.query.id; |
|
|
|
|
data['assignList'].push(a); |
|
|
|
|
if (routerState.value == 'end') { |
|
|
|
|
$_updateManagerConfirmed(data).then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
console.log(res, '完结确定'); |
|
|
|
|
}); |
|
|
|
|
// 赔款方 |
|
|
|
|
console.log(data, '处理好的值'); |
|
|
|
|
} else { |
|
|
|
|
console.log(a); |
|
|
|
|
console.log(data, '处理好的数据'); |
|
|
|
|
// $_updateWorkOrderStatus(data).then(res=>{ |
|
|
|
|
// console.log(res,'确定提交存储'); |
|
|
|
|
// }) |
|
|
|
|
} |
|
|
|
|
$_updateWorkOrderStatus(data).then(res => { |
|
|
|
|
console.log(res, '确定提交存储'); |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 提交信息 |
|
|
|
|
const submit = () => { |
|
|
|
@ -1842,12 +1805,14 @@ const submit = () => {
|
|
|
|
|
: '未知支付方式', |
|
|
|
|
resultName: item.name, //处理结果名字 |
|
|
|
|
compensationTime: item.compensationTime, //赔付时间 |
|
|
|
|
paymentUnit: item.paymentUnit, //赔付单位 |
|
|
|
|
}; |
|
|
|
|
} else { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.filter(item => item !== null); |
|
|
|
|
// data.aftersalesProcessingResultsDTO.paymentUnit = paymentUnit.value; //支付单位 |
|
|
|
|
data.aftersalesProcessingResultsDTO.processingMoneyEntityList = |
|
|
|
|
data['processingMoneyEntityList']; |
|
|
|
|
console.log('走到了这一步'); |
|
|
|
@ -1888,7 +1853,6 @@ const submit = () => {
|
|
|
|
|
// 消息回复 |
|
|
|
|
const replyMessage = () => { |
|
|
|
|
console.log(MessageContent.value, '当前的聊天记录'); |
|
|
|
|
|
|
|
|
|
console.log(warehouseData.value, '参数1212312312312312'); |
|
|
|
|
console.log(MessageResponsibility, '责任方'); |
|
|
|
|
let msgData = { |
|
|
|
@ -2119,10 +2083,11 @@ const CustomerServiceCompleted = () => {
|
|
|
|
|
display: flex; |
|
|
|
|
margin-bottom: 20px; |
|
|
|
|
height: 30px; |
|
|
|
|
width: 46%; |
|
|
|
|
width: 100%; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
span { |
|
|
|
|
display: block; |
|
|
|
|
width: 30%; |
|
|
|
|
width:140px; |
|
|
|
|
color: #606266; |
|
|
|
|
font-size: 16px; |
|
|
|
|
} |
|
|
|
@ -2297,7 +2262,7 @@ const CustomerServiceCompleted = () => {
|
|
|
|
|
} |
|
|
|
|
// 数字输入框 |
|
|
|
|
:deep(.el-input-number) { |
|
|
|
|
width: 47%; |
|
|
|
|
width: 160px; |
|
|
|
|
} |
|
|
|
|
.contemtMax { |
|
|
|
|
display: flex; |
|
|
|
@ -2567,4 +2532,16 @@ const CustomerServiceCompleted = () => {
|
|
|
|
|
.el-endtabs { |
|
|
|
|
margin-top: 26px; |
|
|
|
|
} |
|
|
|
|
.el_PaymentUnit { |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
span { |
|
|
|
|
display: flex; |
|
|
|
|
width: 80px !important; |
|
|
|
|
align-items: center; |
|
|
|
|
} |
|
|
|
|
:deep(.el-input) { |
|
|
|
|
width: 150px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|