Browse Source

修改客服已bug

pre-production
马远东 11 months ago
parent
commit
50fe948ccf
  1. 8
      src/option/aftersales/vueTvemp.js
  2. 53
      src/views/aftersales/aftersalesWorkOrder.vue
  3. 32
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  4. 6
      src/views/aftersales/aftersalesWorkOrderend.vue
  5. 47
      src/views/aftersales/aftersalesWorkOrdermodify.vue

8
src/option/aftersales/vueTvemp.js

@ -740,7 +740,7 @@ export const AppealList = [
{
prop: 'workOrderTypeName',
label: '异常类型',
type: 3,
type: 1,
values: '',
width: '130',
checkarr: [],
@ -751,7 +751,7 @@ export const AppealList = [
{
prop: 'discoveryNodeName',
label: '发现节点',
type: 3,
type: 1,
values: '',
width: '130',
checkarr: [],
@ -761,8 +761,8 @@ export const AppealList = [
},
{
prop: 'typesOfName',
label: '状态名称',
type: 2,
label: '工单状态',
type: 1,
values: '',
width: '130',
checkarr: [],

53
src/views/aftersales/aftersalesWorkOrder.vue

@ -641,7 +641,7 @@
<el-dialog
v-model="dialogappeal"
:title="AppealeditorState ? '工单申述编辑' : '工单申诉'"
width="30%"
width="40%"
>
<div class="el_appeal" v-loading="loadingappeal" element-loading-text="Loading...">
<el-form-item label="选择实际责任方">
@ -660,13 +660,16 @@
/>
</el-select>
</el-form-item>
<el-input
<el-form-item label="申诉原因">
<el-input
v-model="Reasonforappeal"
:rows="4"
type="textarea"
placeholder="请输入申诉原因"
/>
<el-upload
</el-form-item>
<el-form-item label="`照片">
<el-upload
v-model:file-list="AppealAttachment"
list-type="picture-card"
:on-preview="AppealAttachmentpictureList"
@ -680,6 +683,8 @@
>
<el-icon><Plus /></el-icon>
</el-upload>
</el-form-item>
<span class="el_sdialog-footer">
<el-button @click="dialogappeal = false">取消</el-button>
<el-button type="primary" @click="Appealbutton"> 确定 </el-button>
@ -1746,6 +1751,10 @@ const Statusprocessing = val => {
item.workOrderStatusNameS = columnList[10].checkarr[8].label; //
} else if (item.workOrderStatus == 21) {
item.workOrderStatusNameS = columnList[10].checkarr[9].label; //
}else if(item.workOrderStatus == 100){
item.workOrderStatusNameS = columnList[10].checkarr[10].label; //
}else if(item.workOrderStatus == 110){
item.workOrderStatusNameS = columnList[10].checkarr[11].label; //
}
// } else if (item.workOrderStatus == 100) {
// item.workOrderStatusNameS = columnList[10].checkarr[10].label; //
@ -1903,7 +1912,7 @@ watch(() => $route.path, (newPath, oldPath) => {
console.log(TabPermissions.value,'当前TabPermissions.value');
console.log( tabValue.value,'当前 tabValue.value');
tabValue.value=$useStore.state.Customer.Customerobj;//
if([0,2,3,4].includes(TabPermissions.value)){
if([0,2,3,4,6].includes(TabPermissions.value)){
//0.
//4.
tabChenge(TabPermissions.value,null,true)
@ -2467,7 +2476,17 @@ const CompletedEditing = val => {
};
//
const Appealbutton = state => {
if (UserPermissions.value == '仓库客服') {
ElMessageBox.confirm(
'是否确认发起工单申诉?',
'提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}
)
.then(() => {
if (UserPermissions.value == '仓库客服') {
if (AppealAttachment.value.length > 1) {
ElMessage({
message: '只能上传一张图片',
@ -2555,6 +2574,11 @@ const Appealbutton = state => {
});
});
}
})
.catch(() => {})
};
/** 表格表头输入框搜索 */
@ -2837,8 +2861,11 @@ const appealFn = val => {
ClaimStatus.value = false; //
AppealList[5].checkarr = []; //
AppealList[6].checkarr = []; //
AppealList[7].checkarr = []; //
updateDictionary(AppealList[5].checkarr, 'pc_work_order'); //
updateDictionary(AppealList[6].checkarr, 'pc_discovery_node'); //
updateDictionary(AppealList[7].checkarr, 'work_order_status'); //
console.log('当前是申诉列表');
let data = {
current: details.page.currentPage,
@ -2851,7 +2878,6 @@ const appealFn = val => {
details.loadingObj.list = false; //
pageLoad.value=false
console.log(res, '申诉列表返回值');
if (res.data.data.records.length) {
// details.data = res.data.data.records;
TabList.value.find(res => res.name == TabPermissions.value).DataList =
@ -2907,10 +2933,10 @@ function AppealListFn(val) {
data.workOrderStatus = '';
console.log(data.workOrderStatus, '当前搜索状态');
Tableheaderswitching(AppealList); //
AppealList.forEach(item => {
//
item.values = '';
});
// AppealList.forEach(item => {
// //
// item.values = '';
// });
appealFn(val); //
}
@ -4859,6 +4885,13 @@ const AssignSubmission = () => {
width: 100% !important;
margin-bottom: 10px;
}
:deep(.el-form-item){
flex-direction: column;
align-items: flex-start;
.el-form-item__content{
width: 100% !important;
}
}
}
.el_sdialog-footer {
display: flex;

32
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -502,13 +502,13 @@
<!-- 仲裁原因 -->
<!-- v-if="routerState == 'end'" -->
<div class="arbitrate">
<el-form-item label="完结原因">
<el-form-item label="仲裁原因">
<el-input
v-model="Indexform.arbitrate"
type="textarea"
:autosize="{ minRows: 5, maxRows: 4 }"
disabled
placeholder="暂无完结原因"
placeholder="暂无仲裁原因"
/>
</el-form-item>
</div>
@ -903,7 +903,10 @@ const PermissionButton = computed(() => {
$route.query.workOrderStatus != '80' &&
$route.query.workOrderStatus != '30' &&
$route.query.workOrderStatus != '20' &&
$route.query.workOrderStatus != '40', //
$route.query.workOrderStatus != '40' &&
$route.query.workOrderStatus != '100' &&
$route.query.workOrderStatus != '110'
, //
Processing_results:
!appeal.value &&
(($route.query.RouteIndexs == '0' && $route.query.workOrderStatus == '10') ||
@ -933,8 +936,8 @@ const PermissionButton = computed(() => {
(($route.query.RouteIndexs == '0' && $route.query.workOrderStatus == '10') ||
($route.query.RouteIndexs == '3' && $route.query.workOrderStatus == '10')) &&
warehouseIdState.value, //
Appeal_established: appeal.value && AppealReview.value, //
Appeal_rejection: appeal.value && AppealReview.value, //
Appeal_established: appeal.value && AppealReview.value && UserPermissions.value=='总部客服经理', //
Appeal_rejection: appeal.value && AppealReview.value && UserPermissions.value=='总部客服经理', //
Processing_confirmation:
(UserPermissions.value != '仓库客服' &&
$route.query.RouteIndexs == '0' &&
@ -1381,7 +1384,17 @@ const AppealEstablished = () => {
//
const AppealRejection = () => {
let data = {
ElMessageBox.confirm(
'是否确认申诉驳回?',
'提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}
)
.then(() => {
let data = {
id: $route.query.appealID, //ID
typesOf: '2', //
workOrderId: $route.query.id, //ID
@ -1395,6 +1408,11 @@ const AppealRejection = () => {
message: '申诉驳回成功',
type: 'success',
});
$useStore.commit('EDIT_REFRESHITEM', {
title: 'aftersalesWorkOrder',
status: true,
});
$useStore.commit('Customer_Menu',6);//
$useStore.commit('DEL_TAG_CURRENT'); //
$router.push({
path: '/aftersales/aftersalesWorkOrder',
@ -1407,6 +1425,8 @@ const AppealRejection = () => {
.finally(() => {
Pageloading.value = false; //
});
})
.catch(() => {})
};
//

6
src/views/aftersales/aftersalesWorkOrderend.vue

@ -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>

47
src/views/aftersales/aftersalesWorkOrdermodify.vue

@ -622,7 +622,7 @@
<template #label>
<span class="custom-tabs-label">
<el-icon><calendar /></el-icon>
<span>完结原因</span>
<span>仲裁原因</span>
</span>
</template>
@ -630,7 +630,7 @@
v-model="Indexform.arbitrate"
type="textarea"
:autosize="{ minRows: 5, maxRows: 4 }"
placeholder="请输入完结原因"
placeholder="请输入仲裁原因"
:disabled="ProcessingresultsState"
/>
</el-tab-pane>
@ -821,7 +821,7 @@ import { computeNumber, isNumber } from '@/utils/util';
import { useStore } from 'vuex';
import error from '@/error';
const $router = useRouter();
const $store = useStore();
const $useStore = useStore();
const $route = useRoute();
const TotalamountCompensation = ref(0); //
const TotalamountReceived = ref(0); //
@ -1067,6 +1067,7 @@ const ResponsiblePartychange = (val, index) => {
};
const onLoad = () => {
editloading.value=true;//
RouterState.value = $route.query.RouterState;
console.log($route.query.Appealeditor, '申诉===');
if ($route.query.Appealeditor) {
@ -1082,10 +1083,14 @@ const onLoad = () => {
}
//
if ($route.query.ProcessingresultsState && UserPermissions.value != '仓库客服') {
if($route.query.AppealEstablished==true){
ProcessingresultsState.value = true;
}else{
ProcessingresultsState.value = false;
}
console.log($route.query.Processingresults, '理赔金未出编辑');
ProcessingresultsState.value = false;
} else {
ProcessingresultsState.value = true;
ProcessingresultsState.value = false;
}
//
if ($route.query.CustomerServiceCompleted && UserPermissions.value != '仓库客服') {
@ -1138,7 +1143,6 @@ const onLoad = () => {
console.log(res);
Paymentmethod.value = res.data.data;
});
console.log($route.query.id, '页面初始化');
routerState.value = $route.query.routerState;
updateDictionary(IndexException.value, 'pc_work_order'); //
@ -1362,6 +1366,7 @@ const onLoad = () => {
).value;
console.log(SelectType.value, '异常类型');
Statistics();
editloading.value=false;//
});
};
onLoad(); //
@ -2011,6 +2016,17 @@ const ConfirmForm = () => {
//
const AppealEditor = () => {
ElMessageBox.confirm(
'是否确认申诉成立编辑提交?',
'提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}
)
.then(() => {
//
if ($route.query.AppealEstablished) {
editloading.value = true; //
@ -2079,7 +2095,12 @@ const AppealEditor = () => {
message: res.data.msg,
type: 'success',
});
$store.commit('DEL_TAG_CURRENT'); //
$useStore.commit('EDIT_REFRESHITEM', {
title: 'aftersalesWorkOrder',
status: true,
});
$useStore.commit('Customer_Menu',6);//
$useStore.commit('DEL_TAG_CURRENT'); //
$router.push({
//
path: '/aftersales/aftersalesWorkOrder',
@ -2090,8 +2111,9 @@ const AppealEditor = () => {
editloading.value = false; //
});
console.log('申诉下面编辑完结信息');
return;
}
})
.catch(() => {})
};
//
@ -2387,7 +2409,7 @@ const Arbitrationcompleted = () => {
// message: res.data.msg,
// type: 'success',
// });
// $store.commit('DEL_TAG_CURRENT'); //
// $useStore.commit('DEL_TAG_CURRENT'); //
// $router.push({
// //
// path: '/aftersales/aftersalesWorkOrder',
@ -2563,7 +2585,7 @@ const Arbitrationcompleted = () => {
// // message: res.data.msg,
// // type: 'success',
// // });
// // $store.commit('DEL_TAG_CURRENT'); //
// // $useStore.commit('DEL_TAG_CURRENT'); //
// // $router.push({
// // //
// // path: '/aftersales/aftersalesWorkOrder',
@ -3286,4 +3308,9 @@ const isShowFormItem2 = computed(() => {
}
}
}
:deep(.el-loading-mask) {
position: fixed;
left: 12%;
top: 10%;
}
</style>

Loading…
Cancel
Save