|
|
|
@ -574,7 +574,6 @@
|
|
|
|
|
</el-form-item> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sk_input" v-if="item.state == 0"> |
|
|
|
|
<el-form-item label="责任人"> |
|
|
|
|
<el-input |
|
|
|
@ -594,7 +593,7 @@
|
|
|
|
|
<!-- <el-input v-model="item.explains" placeholder="请填写说明" /> --> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div class="sk_input" v-if="item.state == 1"> --> |
|
|
|
|
<!-- <el-input v-model="item.explain" placeholder="请填写说明" /> --> |
|
|
|
|
<!-- <el-input v-model="item.explain" placeholder="请填写说明" /> --> |
|
|
|
|
<!-- </div> --> |
|
|
|
|
<!-- v-if="RouterState != 'Infoedit'" --> |
|
|
|
|
<div class="el_cwBtn" v-if="!CompleteDisabling"> |
|
|
|
@ -668,16 +667,19 @@
|
|
|
|
|
|
|
|
|
|
<div class="dialog-footer"> |
|
|
|
|
<!-- <el-button @click="Indexdialog = false">取消</el-button> --> |
|
|
|
|
<el-button type="primary" @click="ConfirmForm" v-if="$route.query.EditInformation && UserPermissions=='仓库客服'"> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="ConfirmForm" |
|
|
|
|
v-if="$route.query.EditInformation && UserPermissions == '仓库客服'" |
|
|
|
|
> |
|
|
|
|
编辑提交 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--编辑提交--> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="Arbitrationcompleted" |
|
|
|
|
v-if="$route.query.CustomerServiceCompleted && UserPermissions !='仓库客服'" |
|
|
|
|
v-if="$route.query.CustomerServiceCompleted && UserPermissions != '仓库客服'" |
|
|
|
|
> |
|
|
|
|
仲裁完结提交 |
|
|
|
|
</el-button> |
|
|
|
@ -686,21 +688,16 @@
|
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="AppealEditor" |
|
|
|
|
v-if="$route.query.AppealEstablished && UserPermissions !='仓库客服'" |
|
|
|
|
v-if="$route.query.AppealEstablished && UserPermissions != '仓库客服'" |
|
|
|
|
> |
|
|
|
|
申诉成立编辑提交 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
<!-- 理赔金未出编辑 --> |
|
|
|
|
<el-button |
|
|
|
|
type="primary" |
|
|
|
|
@click="UnpaidClaimsEdited" |
|
|
|
|
v-if="$route.query.Resultediting" |
|
|
|
|
> |
|
|
|
|
<el-button type="primary" @click="UnpaidClaimsEdited" v-if="$route.query.Resultediting"> |
|
|
|
|
处理结果修改提交 |
|
|
|
|
</el-button> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--客服仲裁完结 --> |
|
|
|
|
</div> |
|
|
|
|
</el-card> |
|
|
|
@ -815,6 +812,7 @@ import {
|
|
|
|
|
$_shippingInformation, |
|
|
|
|
$_updateCompletionEnd, |
|
|
|
|
$_addProcessingResults, |
|
|
|
|
$_settlementUpdate, |
|
|
|
|
} from '@/api/aftersales/aftersalesWorkOrder'; |
|
|
|
|
import { ref, reactive, toRefs, computed, onMounted, nextTick } from 'vue'; |
|
|
|
|
import { AddressClosed } from '@/utils/util'; |
|
|
|
@ -850,7 +848,7 @@ const ShortageList = ref([]); //少货件数
|
|
|
|
|
const fleeingList = ref([]); //窜货件数 |
|
|
|
|
const valueStrictly = ref(); |
|
|
|
|
const routerID = ref(null); //路由参数ID |
|
|
|
|
const ProcessingProhibited= ref(true);//是否可以编辑处理结果 |
|
|
|
|
const ProcessingProhibited = ref(true); //是否可以编辑处理结果 |
|
|
|
|
const routerState = ref(''); //路由状态 |
|
|
|
|
const personResponsibleList = ref([]); //责任人列表 |
|
|
|
|
const companyProportion = ref(100); //公司占比 |
|
|
|
@ -888,10 +886,10 @@ const CompletedEditing = ref(false); //完结编辑
|
|
|
|
|
const amplifyurl = ref(''); //当前点击的图片 |
|
|
|
|
const amplifysrcList = ref([]); //图片循环列表 |
|
|
|
|
const ProcessingresultsState = ref(false); //理赔是否可以编辑 |
|
|
|
|
const CompleteDisabling=ref(true);//完结信息是否可以编辑 |
|
|
|
|
const CompleteDisabling = ref(true); //完结信息是否可以编辑 |
|
|
|
|
const ProcessedId = ref(null); //处理完毕里面编辑的iD |
|
|
|
|
const Copyprocessingresults = ref(); //处理结果拷贝 |
|
|
|
|
const UserPermissions=ref('');//存储当前角色信息 |
|
|
|
|
const UserPermissions = ref(''); //存储当前角色信息 |
|
|
|
|
// ref 用于跟踪哪些字段被修改过 |
|
|
|
|
// 当字段改变时标记它为已修改 |
|
|
|
|
|
|
|
|
@ -1083,58 +1081,57 @@ const onLoad = () => {
|
|
|
|
|
CompletedEditing.value = false; |
|
|
|
|
} |
|
|
|
|
// 判断是否为理赔金未出编辑 |
|
|
|
|
if ($route.query.ProcessingresultsState && UserPermissions.value !='仓库客服' ) { |
|
|
|
|
if ($route.query.ProcessingresultsState && UserPermissions.value != '仓库客服') { |
|
|
|
|
console.log($route.query.Processingresults, '理赔金未出编辑'); |
|
|
|
|
ProcessingresultsState.value = false; |
|
|
|
|
|
|
|
|
|
} else{ |
|
|
|
|
} else { |
|
|
|
|
ProcessingresultsState.value = true; |
|
|
|
|
} |
|
|
|
|
// 客服仲裁完结提交(完结信息) |
|
|
|
|
if($route.query.CustomerServiceCompleted && UserPermissions.value !='仓库客服'){ |
|
|
|
|
if ($route.query.CustomerServiceCompleted && UserPermissions.value != '仓库客服') { |
|
|
|
|
CompleteDisabling.value = false; |
|
|
|
|
}else{ |
|
|
|
|
} else { |
|
|
|
|
CompleteDisabling.value = true; |
|
|
|
|
} |
|
|
|
|
// 仲裁成立编辑完结信息 |
|
|
|
|
if($route.query.AppealEstablished){ |
|
|
|
|
CompleteDisabling.value=false;//可以编辑完结信息 |
|
|
|
|
if ($route.query.AppealEstablished) { |
|
|
|
|
CompleteDisabling.value = false; //可以编辑完结信息 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 是否可以编辑处理结果 |
|
|
|
|
if($route.query.Resultediting){ |
|
|
|
|
ProcessingProhibited.value=false;//可以编辑处理结果 |
|
|
|
|
}else{ |
|
|
|
|
ProcessingProhibited.value=true;//可以编辑处理结果 |
|
|
|
|
if ($route.query.Resultediting) { |
|
|
|
|
ProcessingProhibited.value = false; //可以编辑处理结果 |
|
|
|
|
} else { |
|
|
|
|
ProcessingProhibited.value = true; //可以编辑处理结果 |
|
|
|
|
} |
|
|
|
|
console.log(RouterState.value, '路由状态'); |
|
|
|
|
console.log(ProcessingresultsState.value,'当前状态'); |
|
|
|
|
console.log(ProcessingresultsState.value, '当前状态'); |
|
|
|
|
getDictionaryBiz('result_handling').then(res => { |
|
|
|
|
console.log(res, '发现环节'); |
|
|
|
|
ProcessingResults.value = res.data.data; |
|
|
|
|
console.log(ProcessingResults.value, '发现环节'); |
|
|
|
|
}); |
|
|
|
|
// 统计包件个数 |
|
|
|
|
const Statistics = () => { |
|
|
|
|
// 订单统计包件个数 |
|
|
|
|
if (identifying.value == 1) { |
|
|
|
|
Indexform.value.number = 0; |
|
|
|
|
PackageInfo.value.map(res => { |
|
|
|
|
if (res.packageCode) { |
|
|
|
|
Indexform.value.number++; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
// 零担统计包件个数 |
|
|
|
|
Indexform.value.number = 0; |
|
|
|
|
PackageInfo.value.map(res => { |
|
|
|
|
console.log(res); |
|
|
|
|
if (res.waybillNumber) { |
|
|
|
|
Indexform.value.number++; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 统计包件个数 |
|
|
|
|
const Statistics = () => { |
|
|
|
|
// 订单统计包件个数 |
|
|
|
|
if (identifying.value == 1) { |
|
|
|
|
Indexform.value.number = 0; |
|
|
|
|
PackageInfo.value.map(res => { |
|
|
|
|
if (res.packageCode) { |
|
|
|
|
Indexform.value.number++; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} else { |
|
|
|
|
// 零担统计包件个数 |
|
|
|
|
Indexform.value.number = 0; |
|
|
|
|
PackageInfo.value.map(res => { |
|
|
|
|
console.log(res); |
|
|
|
|
if (res.waybillNumber) { |
|
|
|
|
Indexform.value.number++; |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
// 支付方式字典 |
|
|
|
|
getDictionaryBiz('payment_method').then(res => { |
|
|
|
|
//处理结果字典 |
|
|
|
@ -1148,14 +1145,13 @@ const Statistics = () => {
|
|
|
|
|
updateDictionary(DiscoveringNodes.value, 'pc_discovery_node'); //发现环节 |
|
|
|
|
handle(); //处理方和责任方信息 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getDictionaryBiz('after_sales_visits').then(res=>{ |
|
|
|
|
const matchingItem = res.data.data.find( |
|
|
|
|
getDictionaryBiz('after_sales_visits').then(res => { |
|
|
|
|
const matchingItem = res.data.data.find( |
|
|
|
|
item => item.dictValue == JSON.parse(localStorage.getItem('TWMS-userInfo')).content.role_name |
|
|
|
|
); |
|
|
|
|
UserPermissions.value = matchingItem.dictValue |
|
|
|
|
console.log(UserPermissions.value,'当前角色信息'); |
|
|
|
|
}) |
|
|
|
|
UserPermissions.value = matchingItem.dictValue; |
|
|
|
|
console.log(UserPermissions.value, '当前角色信息'); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$_getInfo({ id: $route.query.id }).then(res => { |
|
|
|
|
groundlineType.value = res.data.data.discoveryNode; //发现节点回显 |
|
|
|
@ -1365,13 +1361,11 @@ const Statistics = () => {
|
|
|
|
|
item => item.value == Indexform.value.workOrderType |
|
|
|
|
).value; |
|
|
|
|
console.log(SelectType.value, '异常类型'); |
|
|
|
|
Statistics() |
|
|
|
|
Statistics(); |
|
|
|
|
}); |
|
|
|
|
}; |
|
|
|
|
onLoad(); //初始化程序 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 异常类型事件 |
|
|
|
|
const abnormalChange = val => { |
|
|
|
|
console.log(val, '异常事件类型'); |
|
|
|
@ -1539,8 +1533,8 @@ const changeProcessingResults = val => {
|
|
|
|
|
|
|
|
|
|
// 支付方式选择 |
|
|
|
|
const PaymentSelection = val => { |
|
|
|
|
if(ProcessingProhibited.value){ |
|
|
|
|
return |
|
|
|
|
if (ProcessingProhibited.value) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
console.log(val, '支付'); |
|
|
|
|
console.log(Paymentmethod.value); |
|
|
|
@ -2016,9 +2010,9 @@ const ConfirmForm = () => {
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 申诉成立编辑 |
|
|
|
|
const AppealEditor =()=>{ |
|
|
|
|
// 申诉下面的编辑完结信息 |
|
|
|
|
if ($route.query.AppealEstablished) { |
|
|
|
|
const AppealEditor = () => { |
|
|
|
|
// 申诉下面的编辑完结信息 |
|
|
|
|
if ($route.query.AppealEstablished) { |
|
|
|
|
editloading.value = true; //开启加载效果 |
|
|
|
|
let data = { |
|
|
|
|
completionRecipientEntities: [], //处理结果受款方 |
|
|
|
@ -2069,7 +2063,7 @@ const AppealEditor =()=>{
|
|
|
|
|
.join(',') |
|
|
|
|
) |
|
|
|
|
.join(','), |
|
|
|
|
warehouseId: item.warehouseId, //仓库ID |
|
|
|
|
warehouseId: item.warehouseId, //仓库ID |
|
|
|
|
workOrderId: $route.query.id, //异常工单 |
|
|
|
|
id: item.id, |
|
|
|
|
}; |
|
|
|
@ -2095,13 +2089,13 @@ const AppealEditor =()=>{
|
|
|
|
|
.catch(res => { |
|
|
|
|
editloading.value = false; //关闭加载效果 |
|
|
|
|
}); |
|
|
|
|
console.log('申诉下面编辑完结信息'); |
|
|
|
|
console.log('申诉下面编辑完结信息'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 理赔金未出编辑 |
|
|
|
|
const UnpaidClaimsEdited=()=>{ |
|
|
|
|
const UnpaidClaimsEdited = () => { |
|
|
|
|
if (ProcessingresultsState.value) { |
|
|
|
|
// 理赔金额未出编辑 |
|
|
|
|
// 处理结果编辑 |
|
|
|
@ -2118,21 +2112,19 @@ const UnpaidClaimsEdited=()=>{
|
|
|
|
|
}, |
|
|
|
|
}; |
|
|
|
|
// 查找被删除的 |
|
|
|
|
if( Copyprocessingresults.value){ |
|
|
|
|
if (Copyprocessingresults.value) { |
|
|
|
|
let missingObjects = Copyprocessingresults.value.filter(objA => { |
|
|
|
|
let matchingObjects = ProcessingList.value.filter( |
|
|
|
|
objB => objB.state === objA.state && objB.id === objA.id |
|
|
|
|
); |
|
|
|
|
return matchingObjects.length === 0; |
|
|
|
|
}); |
|
|
|
|
if (missingObjects.length) { |
|
|
|
|
console.log(missingObjects); |
|
|
|
|
data.aftersalesProcessingResultsDTO['assignList'] = missingObjects.map(item => item.id); |
|
|
|
|
} |
|
|
|
|
let matchingObjects = ProcessingList.value.filter( |
|
|
|
|
objB => objB.state === objA.state && objB.id === objA.id |
|
|
|
|
); |
|
|
|
|
return matchingObjects.length === 0; |
|
|
|
|
}); |
|
|
|
|
if (missingObjects.length) { |
|
|
|
|
console.log(missingObjects); |
|
|
|
|
data.aftersalesProcessingResultsDTO['assignList'] = missingObjects.map(item => item.id); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
data.aftersalesProcessingResultsDTO['processingMoneyEntityList'] = ProcessingList.value |
|
|
|
|
.map(item => { |
|
|
|
|
console.log(item); |
|
|
|
@ -2188,24 +2180,50 @@ const UnpaidClaimsEdited=()=>{
|
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
$router.push({ |
|
|
|
|
path: '/aftersales/aftersalesWorkOrder', |
|
|
|
|
}); |
|
|
|
|
AddressClosed('/aftersales/aftersalesWorkOrdermodify'); //关闭当前页面 |
|
|
|
|
ElMessageBox.confirm('处理结果已修改成功?是否确认理赔金额', '提示', { |
|
|
|
|
confirmButtonText: '确认', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning', |
|
|
|
|
}) |
|
|
|
|
.then(() => { |
|
|
|
|
let data = { |
|
|
|
|
id: $route.query.id, |
|
|
|
|
workOrderStatus: 30, |
|
|
|
|
}; |
|
|
|
|
$_settlementUpdate(data).then(res => { |
|
|
|
|
if (res.data.code == 200) { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
$router.push({ |
|
|
|
|
path: '/aftersales/aftersalesWorkOrder', |
|
|
|
|
}); |
|
|
|
|
AddressClosed('/aftersales/aftersalesWorkOrdermodify'); //关闭当前页面 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
}) |
|
|
|
|
.catch(() => {}) |
|
|
|
|
.finally(() => { |
|
|
|
|
$router.push({ |
|
|
|
|
path: '/aftersales/aftersalesWorkOrder', |
|
|
|
|
}); |
|
|
|
|
AddressClosed('/aftersales/aftersalesWorkOrdermodify'); //关闭当前页面 |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.catch(error => { |
|
|
|
|
ElMessage({ |
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
type: 'warning', |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
console.log('理赔金额未出编辑'); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// 客服仲裁完结 |
|
|
|
|
const Arbitrationcompleted=()=>{ |
|
|
|
|
}; |
|
|
|
|
// 客服仲裁完结 |
|
|
|
|
const Arbitrationcompleted = () => { |
|
|
|
|
let data = { |
|
|
|
|
id: $route.query.id, |
|
|
|
|
completionRecipientEntities: [], //处理结果受款方 |
|
|
|
@ -2298,7 +2316,7 @@ const Arbitrationcompleted=()=>{
|
|
|
|
|
AddressClosed('/aftersales/aftersalesWorkOrdermodify'); ///删除当前页面 |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// const Arbitrationcompleted = () => { |
|
|
|
|
// // 申诉成立编辑 |
|
|
|
@ -2415,8 +2433,6 @@ const Arbitrationcompleted=()=>{
|
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// data.aftersalesProcessingResultsDTO['processingMoneyEntityList'] = ProcessingList.value |
|
|
|
|
// .map(item => { |
|
|
|
|
// console.log(item); |
|
|
|
|