From bca698a9e6fbfc3f6f07d7bc6de4a7da7707f662 Mon Sep 17 00:00:00 2001 From: xzg <4727863@qq.com> Date: Thu, 21 Dec 2023 15:02:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=81=8A=E5=A4=A9=E8=AE=B0?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/aftersales/aftersalesWorkOrder.js | 1 + .../aftersales/aftersalesWorkOrderend.vue | 119 +++++++++--------- 2 files changed, 63 insertions(+), 57 deletions(-) diff --git a/src/api/aftersales/aftersalesWorkOrder.js b/src/api/aftersales/aftersalesWorkOrder.js index 12fc2daa..64d7ff11 100644 --- a/src/api/aftersales/aftersalesWorkOrder.js +++ b/src/api/aftersales/aftersalesWorkOrder.js @@ -351,3 +351,4 @@ export const $_syncOrder = (data) => { data }) } +// /aftersalesWorkOrder/updateWorkList 修改 钉钉流程号、审核人、审核日期,财务理赔入账日期、操作人 \ No newline at end of file diff --git a/src/views/aftersales/aftersalesWorkOrderend.vue b/src/views/aftersales/aftersalesWorkOrderend.vue index 34c91555..3c517839 100644 --- a/src/views/aftersales/aftersalesWorkOrderend.vue +++ b/src/views/aftersales/aftersalesWorkOrderend.vue @@ -294,7 +294,6 @@ disabled @input="ProportionInput" /> -
说明: @@ -368,7 +367,12 @@
- 财务处理 + + 财务处理 + 移除 @@ -709,7 +713,13 @@ />
- 回复 + + 回复 +
@@ -849,7 +859,7 @@ const CompensationParty = ref([ const ProcessingList = ref([]); //处理结果已经选择的列表 // 责任方列表 const FangAddList = ref([ - { businessName: '', personResponsibleName: '', responsibilityRatio: '' +'%', description: '' }, + { businessName: '', personResponsibleName: '', responsibilityRatio: '' + '%', description: '' }, ]); const TransportlossList = ref([ //运损发现节点 @@ -901,9 +911,7 @@ const details = reactive({ // 处理记录 recordList, // 处理记录数据 - recorddata: [ - - ], + recorddata: [], /** 页面loading */ loadingObj: { /** 列表加载loading */ @@ -961,7 +969,6 @@ const TransportChange = val => { // 页面初始化数据 const onLoad = () => { - // 获取角色权限 getDictionaryBiz('after_sales_visits').then(res => { console.log(res, '角色字典'); @@ -995,7 +1002,7 @@ const onLoad = () => { }); }); // 包件回显 - PackageInfo.value = res.data.data.abnormalPackageVOList + PackageInfo.value = res.data.data.abnormalPackageVOList; // 责任方回显 FangAddList.value = res.data.data.processorVOList @@ -1046,32 +1053,30 @@ const onLoad = () => { // 公司占比回显计算 let sum = 0; FangAddList.value.forEach(item => { - item.responsibilityRatio=item.responsibilityRatio.replace(/%/g, ''); + item.responsibilityRatio = item.responsibilityRatio.replace(/%/g, ''); sum = Number(item.responsibilityRatio) + sum; - }); - FangAddList.value.forEach(item=>{ - item.responsibilityRatio=item.responsibilityRatio+'%' - }) + FangAddList.value.forEach(item => { + item.responsibilityRatio = item.responsibilityRatio + '%'; + }); companyProportion.value = 100 - sum; - if(res.data.data.processingResultsVO.processingMoneyEntityList.length){ + if (res.data.data.processingResultsVO.processingMoneyEntityList.length) { 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, - }; - } - ); + 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, + }; + } + ); } - // 总金额回显 TotalClaimAmount.value = res.data.data.processingResultsVO.money; // 理赔支付时间 @@ -1081,7 +1086,7 @@ const onLoad = () => { // 完结信息回显 // 收款方 - + if (res.data.data.completionRecipientEntityList.length > 0) { CompensationParty.value = []; res.data.data.completionRecipientEntityList.forEach((item, index) => { @@ -1110,17 +1115,16 @@ const onLoad = () => { }); }); } - endFrom.value.arbitrate= res.data.data.reasonArbitration; //仲裁原因 - + endFrom.value.arbitrate = res.data.data.reasonArbitration; //仲裁原因 }); - // 查询处理记录 - $_getTrackRecord({ - id:$route.query.id - }).then(res=>{ - console.log(res,'处理记录返回值'); - details.recorddata=res.data.data.surveyRecordEntities - }) + // 查询处理记录 + $_getTrackRecord({ + id: $route.query.id, + }).then(res => { + console.log(res, '处理记录返回值'); + details.recorddata = res.data.data.surveyRecordEntities; + }); } // 异常类型业务字典 @@ -1141,13 +1145,13 @@ const onLoad = () => { getDeptWarehouse({}).then(res => { // 验证本地仓库用于回复选择,自己不能选择自己仓库 console.log(res, '处理方'); - localStorage.getItem('WarehouseName') - console.log(localStorage.getItem('WarehouseName'),'当前本地仓库'); + 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') + disabled: item.name == localStorage.getItem('WarehouseName'), }); }); }); @@ -1190,16 +1194,15 @@ const Chathistory = () => { MessageContent.value = []; //先清空内容,防止内容重复叠加 Msgloading.value = false; //关闭加载效果 console.log(res, '聊天记录'); - if (res.data.data.processorVOList.length) { - msgState.value = res.data.data.processorVOList[0].processingStatus; //获取聊天状态 - } - res.data.data.surveyRecordEntities.forEach(item => { if (item.pictureUrl) { filetype = Fileidentifier(item.pictureUrl); } - - // MessageContent.value.push() + if (res.data.data.processorVOList) { + if (res.data.data.processorVOList.length) { + msgState.value = res.data.data.processorVOList[0].processingStatus; //获取聊天状态 + } + } MessageContent.value.push({ time: item.createTime, //时间 content: item.content, //消息内容 @@ -1211,6 +1214,9 @@ const Chathistory = () => { imgList: [filetype == 'png' ? item.pictureUrl : ''], }); }); + console.log(MessageContent.value, '处理好的聊天记录'); + + // 滚动到最后 setTimeout(() => { const container = scrollContainer.value; @@ -1218,8 +1224,6 @@ const Chathistory = () => { container.scrollTop = container.scrollHeight; } }, 0); - }).catch(res=>{ - Msgloading.value = false; //关闭加载效果 }); }; @@ -1397,7 +1401,7 @@ const payremove = (state, val) => { amountMoney(); }; // 公司占比计算 -const ProportionInput = (val) => { +const ProportionInput = val => { console.log(FangAddList.value, '公司占比'); let sum = 0; FangAddList.value.forEach(item => { @@ -1630,7 +1634,7 @@ const submit = () => { type: 'success', }); } - }) + }); } else { // 新增记录处理结果 console.log($route.query.id, '异常ID'); @@ -1683,7 +1687,8 @@ const submit = () => { } }) .filter(item => item !== null); - data.aftersalesProcessingResultsDTO.processingMoneyEntityList = data['processingMoneyEntityList']; + data.aftersalesProcessingResultsDTO.processingMoneyEntityList = + data['processingMoneyEntityList']; console.log('走到了这一步'); data.aftersalesProcessingResultsDTO.workOrderId = $route.query.id; //异常工单ID data.aftersalesProcessingResultsDTO['resultType'] = ProcessingList.value @@ -1704,7 +1709,7 @@ const submit = () => { delete data.aftersalesProcessingResultsDTO.id; //删除ID字段 data.aftersalesProcessingResultsDTO.warehouseId = info.warehouseId; //仓库ID - console.log(data, '处理好的数据'); + console.log(data, '处理好的数据'); $_addProcessingResults(data).then(res => { console.log(res, '提交后的参数'); $router.push('/aftersales/aftersalesWorkOrder'); @@ -1717,7 +1722,7 @@ const submit = () => { } }); } -} +}; // 消息回复 const replyMessage = () => { console.log(MessageContent.value, '当前的聊天记录'); @@ -2126,7 +2131,7 @@ const ViewPackageDetails = val => { font-size: 14px; color: #606266; margin-top: 30px; - .title{ + .title { border: 1px solid #ccc; padding: 2px 8px; display: flex; @@ -2263,7 +2268,7 @@ const ViewPackageDetails = val => { margin-top: 16px; display: flex; align-items: center; - + span { width: 120px; font-size: 14px;