|
|
|
@ -338,7 +338,7 @@
|
|
|
|
|
:reserve-keyword="false" |
|
|
|
|
placeholder="请选择处理结果" |
|
|
|
|
@change="changeProcessingResults" |
|
|
|
|
:disabled="$route.query.index == '0' || $route.query.index == '2'" |
|
|
|
|
:disabled="$route.query.RouteIndexs == '0' || $route.query.RouteIndexs == '2'" |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="item in ProcessingResults" |
|
|
|
@ -416,7 +416,7 @@
|
|
|
|
|
clearable |
|
|
|
|
:autosize="{ minRows: 3, maxRows: 4 }" |
|
|
|
|
type="textarea" |
|
|
|
|
:disabled="$route.query.index == '0' || $route.query.index == '2'" |
|
|
|
|
:disabled="$route.query.RouteIndexs == '0' || $route.query.RouteIndexs == '2'" |
|
|
|
|
/> |
|
|
|
|
</el-form-item> |
|
|
|
|
<div class="el_tool"> |
|
|
|
@ -511,14 +511,14 @@
|
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
|
|
|
|
|
|
<!-- 仲裁原因 --> |
|
|
|
|
<!-- 完结说明 --> |
|
|
|
|
<div class="arbitrate" v-if="routerState == 'end'"> |
|
|
|
|
<el-tabs type="border-card" class="demo-tabs"> |
|
|
|
|
<el-tab-pane> |
|
|
|
|
<template #label> |
|
|
|
|
<span class="custom-tabs-label"> |
|
|
|
|
<el-icon><calendar /></el-icon> |
|
|
|
|
<span>仲裁原因</span> |
|
|
|
|
<span>完结说明</span> |
|
|
|
|
</span> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
@ -526,7 +526,7 @@
|
|
|
|
|
v-model="endFrom.arbitrate" |
|
|
|
|
type="textarea" |
|
|
|
|
:autosize="{ minRows: 5, maxRows: 4 }" |
|
|
|
|
placeholder="请输入仲裁原因" |
|
|
|
|
placeholder="请输入完结说明" |
|
|
|
|
/> |
|
|
|
|
</el-tab-pane> |
|
|
|
|
</el-tabs> |
|
|
|
@ -573,7 +573,7 @@
|
|
|
|
|
:action="doubledCount" |
|
|
|
|
:headers="headers" |
|
|
|
|
:on-success="ViodSuccess" |
|
|
|
|
:disabled="$route.query.index == '0'" |
|
|
|
|
:disabled="$route.query.RouteIndexs == '0'" |
|
|
|
|
> |
|
|
|
|
<el-icon class="el-icon--upload"><upload-filled /></el-icon> |
|
|
|
|
<div class="el-upload__text"> |
|
|
|
@ -593,21 +593,21 @@
|
|
|
|
|
|
|
|
|
|
<div class="el_sub"> |
|
|
|
|
<el-button |
|
|
|
|
v-if="$route.query.index != '0' && $route.query.RouterState == 'end'" |
|
|
|
|
v-if="$route.query.RouteIndexs != '0' && $route.query.RouterState == 'end'" |
|
|
|
|
type="primary" |
|
|
|
|
class="button" |
|
|
|
|
@click="submitCompletion" |
|
|
|
|
>完结提交</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
v-if="$route.query.index != '0' && $route.query.RouterState == 'record'" |
|
|
|
|
v-if="$route.query.RouteIndexs != '0' && $route.query.RouterState == 'record'" |
|
|
|
|
type="primary" |
|
|
|
|
class="button" |
|
|
|
|
@click="submitresults(1)" |
|
|
|
|
>处理结果提交</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
v-if="$route.query.index != '0' && $route.query.RouterState == 'record'" |
|
|
|
|
v-if="$route.query.RouteIndexs != '0' && $route.query.RouterState == 'record'" |
|
|
|
|
type="primary" |
|
|
|
|
class="button" |
|
|
|
|
@click="submitresults(2)" |
|
|
|
@ -615,7 +615,7 @@
|
|
|
|
|
> |
|
|
|
|
<!-- <el-button |
|
|
|
|
@click="DetermineStorage" |
|
|
|
|
v-if="$route.query.index != '0'" |
|
|
|
|
v-if="$route.query.RouteIndexs != '0'" |
|
|
|
|
type="primary" |
|
|
|
|
class="button" |
|
|
|
|
>确定</el-button |
|
|
|
@ -626,10 +626,10 @@
|
|
|
|
|
type="primary" |
|
|
|
|
class="button" |
|
|
|
|
@click="CustomerServiceCompleted" |
|
|
|
|
>客服仲裁完结</el-button |
|
|
|
|
>客服完结完结</el-button |
|
|
|
|
> |
|
|
|
|
<el-button |
|
|
|
|
v-if="$route.query.index == '0' && $route.query.workOrderStatus != '21'" |
|
|
|
|
v-if="$route.query.RouteIndexs == '0' && $route.query.workOrderStatus != '21'" |
|
|
|
|
type="primary" |
|
|
|
|
class="button" |
|
|
|
|
@click="ElProcessingResults" |
|
|
|
@ -947,9 +947,8 @@ import { useRoute, useRouter } from 'vue-router';
|
|
|
|
|
import { getDictionaryBiz } from '@/api/system/dict'; |
|
|
|
|
import { computeNumber, isNumber, AddressClosed, deepClone } from '@/utils/util'; |
|
|
|
|
import { useStore } from 'vuex'; |
|
|
|
|
import error from '@/error'; |
|
|
|
|
// 获取vuex仓库 |
|
|
|
|
const $store = useStore(); |
|
|
|
|
const $useStore = useStore(); |
|
|
|
|
const identifying = ref(1); //订单类型 |
|
|
|
|
const ZFdialog = ref(false); //支付方式弹出 |
|
|
|
|
const $route = useRoute(); |
|
|
|
@ -1360,7 +1359,7 @@ const onLoad = async () => {
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
endFrom.value.arbitrate = res.data.data.reasonArbitration; //仲裁原因 |
|
|
|
|
endFrom.value.arbitrate = res.data.data.reasonArbitration; //完结说明 |
|
|
|
|
Pageloading.value = false; |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
@ -1905,7 +1904,7 @@ const personResponsiblechange = (val, index) => {
|
|
|
|
|
}; |
|
|
|
|
// 支付方式选择 |
|
|
|
|
const PaymentSelection = val => { |
|
|
|
|
if ($route.query.index == '0' || $route.query.index == '2') { |
|
|
|
|
if ($route.query.RouteIndexs == '0' || $route.query.RouteIndexs == '2') { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
console.log(val, '支付'); |
|
|
|
@ -2065,6 +2064,9 @@ const submitresults = async value => {
|
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
// 传递要刷新的菜单 |
|
|
|
|
$useStore.commit('EDIT_REFRESHITEM', {title: 'aftersalesWorkOrder',status: true,});//要刷新的页面 |
|
|
|
|
$useStore.commit('Customer_Menu',Number($route.query.RouteIndexs));//要刷新的菜单 |
|
|
|
|
$router.push('/aftersales/aftersalesWorkOrder'); |
|
|
|
|
AddressClosed('/aftersales/aftersalesWorkOrderend'); //删除当前页面 |
|
|
|
|
} |
|
|
|
@ -2083,8 +2085,15 @@ const submitresults = async value => {
|
|
|
|
|
|
|
|
|
|
// 完结信息提交() |
|
|
|
|
const submitCompletion = () => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log( CompensationParty.value); |
|
|
|
|
let _warehouseId= CompensationParty.value.find(res=>!res.warehouseId) |
|
|
|
|
if(_warehouseId){ |
|
|
|
|
ElMessage({ |
|
|
|
|
message: `有赔款方或受款方仓库未选择`, |
|
|
|
|
type: 'warning', |
|
|
|
|
}); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
ElMessageBox.confirm('是否提交完结信息?', '完结', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
@ -2100,7 +2109,7 @@ const submitCompletion = () => {
|
|
|
|
|
id: $route.query.id, |
|
|
|
|
completionRecipientEntities: [], //受款方 |
|
|
|
|
completionRecordEntities: [], //赔款方 |
|
|
|
|
reasonArbitration: endFrom.value.arbitrate, //仲裁原因 |
|
|
|
|
reasonArbitration: endFrom.value.arbitrate, //完结说明 |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
console.log(endFrom.value.duty, '责任方'); |
|
|
|
@ -2113,7 +2122,7 @@ const submitCompletion = () => {
|
|
|
|
|
data[0]['completionRecordEntities'].push({ |
|
|
|
|
reason: item.reason, //原因 |
|
|
|
|
money: item.num, //金额 |
|
|
|
|
reasonArbitration: endFrom.value.arbitrate, //仲裁说明 |
|
|
|
|
reasonArbitration: endFrom.value.arbitrate, //完结说明 |
|
|
|
|
compensationPersonnel: item.compensationPersonnel, //责任人(手动填写) |
|
|
|
|
warehouseId: item.warehouseId, //赔款方是那个仓库(传入ID) |
|
|
|
|
explains: item.reason, //赔款说明 |
|
|
|
@ -2151,6 +2160,9 @@ const submitCompletion = () => {
|
|
|
|
|
message: res.data.msg, |
|
|
|
|
type: 'success', |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$useStore.commit('EDIT_REFRESHITEM', {title: 'aftersalesWorkOrder',status: true,});//要刷新的页面 |
|
|
|
|
$useStore.commit('Customer_Menu',Number($route.query.RouteIndexs));//要刷新的菜单 |
|
|
|
|
$router.push('/aftersales/aftersalesWorkOrder'); |
|
|
|
|
AddressClosed('/aftersales/aftersalesWorkOrderend'); //删除当前页面 |
|
|
|
|
} |
|
|
|
@ -2193,7 +2205,7 @@ const submitCompletions = async val => {
|
|
|
|
|
id: $route.query.id, |
|
|
|
|
completionRecipientEntities: [], //受款方 |
|
|
|
|
completionRecordEntities: [], //赔款方 |
|
|
|
|
reasonArbitration: endFrom.value.arbitrate, //仲裁原因 |
|
|
|
|
reasonArbitration: endFrom.value.arbitrate, //完结说明 |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
console.log(endFrom.value.duty, '责任方'); |
|
|
|
@ -2207,7 +2219,7 @@ const submitCompletions = async val => {
|
|
|
|
|
// indemnitor: item.name, //赔款方 |
|
|
|
|
reason: item.reason, //原因 |
|
|
|
|
money: Number(item.num), //金额 |
|
|
|
|
reasonArbitration: endFrom.value.arbitrate, //仲裁说明 |
|
|
|
|
reasonArbitration: endFrom.value.arbitrate, //完结说明 |
|
|
|
|
compensationPersonnel: item.compensationPersonnel, //责任人(手动填写) |
|
|
|
|
warehouseId: item.warehouseId, //赔款方是那个仓库(传入ID) |
|
|
|
|
explains: item.reason, //赔款说明 |
|
|
|
@ -2621,15 +2633,15 @@ const ElProcessingResults = () => {
|
|
|
|
|
index: '1', |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
$store.commit('DEL_TAG_CURRENT'); |
|
|
|
|
$useStore.commit('DEL_TAG_CURRENT'); |
|
|
|
|
}; |
|
|
|
|
// 客服仲裁完结 |
|
|
|
|
// 客服完结完结 |
|
|
|
|
const CustomerServiceCompleted = () => { |
|
|
|
|
$router.push({ |
|
|
|
|
path: '/aftersales/aftersalesWorkOrdermodify', |
|
|
|
|
query: { |
|
|
|
|
id: $route.query.id, |
|
|
|
|
name: $route.query.businessId + '-客服仲裁完结', |
|
|
|
|
name: $route.query.businessId + '-客服完结完结', |
|
|
|
|
businessId: $route.query.businessId, |
|
|
|
|
warehouseId: $route.query.warehouseId ? $route.query.warehouseId : '', |
|
|
|
|
workOrderNumber: $route.query.workOrderNumber, |
|
|
|
@ -2637,7 +2649,7 @@ const CustomerServiceCompleted = () => {
|
|
|
|
|
index: '1', |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
$store.commit('DEL_TAG_CURRENT'); |
|
|
|
|
$useStore.commit('DEL_TAG_CURRENT'); |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|