Browse Source

修复客服已知bug

pre-production
马远东 1 year ago
parent
commit
32d9954fef
  1. 6
      src/views/aftersales/aftersalesWorkOrder.vue
  2. 4
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  3. 93
      src/views/aftersales/aftersalesWorkOrdermodify.vue
  4. 26
      src/views/distribution/inventory/distrilbutionBillLadingView.vue

6
src/views/aftersales/aftersalesWorkOrder.vue

@ -1468,7 +1468,7 @@ const ButtonPermissions = computed(() => {
assignment: false, // assignment: false, //
applyArbitration: UserPermissions.value == '仓库客服', // applyArbitration: UserPermissions.value == '仓库客服', //
DingTalkNumber: false, // DingTalkNumber: false, //
batchFinish: UserPermissions.value != '仓库客服', // batchFinish: false, //
Batchdetermination: UserPermissions.value != '仓库客服', // Batchdetermination: UserPermissions.value != '仓库客服', //
appeal: false, // appeal: false, //
ManagerConfirmed: false, // ManagerConfirmed: false, //
@ -1501,7 +1501,7 @@ const ButtonPermissions = computed(() => {
batchReject: UserPermissions.value == '总部客服', // batchReject: UserPermissions.value == '总部客服', //
assignment: false, // assignment: false, //
applyArbitration: false, // applyArbitration: false, //
batchFinish: UserPermissions.value != '仓库客服', // batchFinish: false, //
appeal: false, // appeal: false, //
Batchdetermination: false, // Batchdetermination: false, //
DingTalkNumber: false, // DingTalkNumber: false, //
@ -1601,7 +1601,7 @@ const ButtonPermissions = computed(() => {
batchReject: false, // batchReject: false, //
assignment: UserPermissions.value == '总部客服经理', // assignment: UserPermissions.value == '总部客服经理', //
applyArbitration: false, // applyArbitration: false, //
batchFinish: false, // batchFinish: UserPermissions.value != '仓库客服', //
appeal: false, // appeal: false, //
Batchdetermination: false, // Batchdetermination: false, //
ManagerConfirmed: UserPermissions.value == '总部客服经理', // ManagerConfirmed: UserPermissions.value == '总部客服经理', //

4
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -1520,6 +1520,7 @@ const CustomerServiceCompleted = () => {
warehouseId: $route.query.warehouseId, warehouseId: $route.query.warehouseId,
workOrderNumber: $route.query.workOrderNumber, workOrderNumber: $route.query.workOrderNumber,
RouterState: 'Kfend', RouterState: 'Kfend',
workOrderStatus: $route.query.workOrderStatus, //
CompletedEditing: 'true', // CompletedEditing: 'true', //
index: '1', index: '1',
}, },
@ -1538,6 +1539,8 @@ const EditInformation = () => {
workOrderNumber: $route.query.workOrderNumber, workOrderNumber: $route.query.workOrderNumber,
RouterState: 'Infoedit', RouterState: 'Infoedit',
ProcessType: $route.query.ProcessType, // 1 2 ProcessType: $route.query.ProcessType, // 1 2
ProcessingresultsState:UserPermissions.value !='仓库客服'?true:false, //
workOrderStatus: $route.query.workOrderStatus, //
}, },
}); });
}; };
@ -1552,6 +1555,7 @@ const AppealEstablished = () => {
warehouseId: $route.query.warehouseId, warehouseId: $route.query.warehouseId,
workOrderNumber: $route.query.workOrderNumber, workOrderNumber: $route.query.workOrderNumber,
RouterState: 'Kfend', RouterState: 'Kfend',
workOrderStatus: $route.query.workOrderStatus, //
Appealeditor: 'appeal', // Appealeditor: 'appeal', //
appealID: $route.query.appealID, //ID appealID: $route.query.appealID, //ID
AppealEstablished: 'true', // AppealEstablished: 'true', //

93
src/views/aftersales/aftersalesWorkOrdermodify.vue

@ -505,7 +505,7 @@
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
<el-tabs type="border-card" class="demo-tabs" v-if="!Processingresults"> <el-tabs type="border-card" class="demo-tabs" v-if="CompensationParty.length">
<el-tab-pane> <el-tab-pane>
<template #label> <template #label>
<span class="custom-tabs-label"> <span class="custom-tabs-label">
@ -533,7 +533,7 @@
:placeholder="item.state == 0 ? '请填写赔款方' : '请填写受款方'" :placeholder="item.state == 0 ? '请填写赔款方' : '请填写受款方'"
:disabled="Processingresults" :disabled="Processingresults"
/> />
Processingresults表示此刻只能编辑处理结果 ProcessingresultsState表示此刻只能编辑处理结果
</div> --> </div> -->
<div class="sk_input"> <div class="sk_input">
@ -542,7 +542,7 @@
v-model="item.warehouseId" v-model="item.warehouseId"
filterable filterable
placeholder="请选择仓库" placeholder="请选择仓库"
:disabled="Processingresults" :disabled="ProcessingresultsState"
> >
<el-option <el-option
v-for="item in warehouseData" v-for="item in warehouseData"
@ -557,7 +557,7 @@
<el-form-item label="原因"> <el-form-item label="原因">
<el-input <el-input
v-model="item.reason" v-model="item.reason"
:disabled="Processingresults" :disabled="ProcessingresultsState"
placeholder="请填写原因" placeholder="请填写原因"
/> />
</el-form-item> </el-form-item>
@ -569,7 +569,7 @@
:min="0" :min="0"
v-model="item.num" v-model="item.num"
placeholder="金额" placeholder="金额"
:disabled="Processingresults" :disabled="ProcessingresultsState"
/> />
</el-form-item> </el-form-item>
</div> </div>
@ -582,7 +582,7 @@
placeholder="请填写责任人" placeholder="请填写责任人"
clearable clearable
:rows="2" :rows="2"
:disabled="Processingresults" :disabled="ProcessingresultsState"
/> />
</el-form-item> </el-form-item>
</div> </div>
@ -617,7 +617,7 @@
</el-tabs> </el-tabs>
<!-- 仲裁原因 --> <!-- 仲裁原因 -->
<div class="arbitrate" v-if="!Processingresults"> <div class="arbitrate" v-if="CompensationParty.length">
<el-tabs type="border-card" class="demo-tabs"> <el-tabs type="border-card" class="demo-tabs">
<el-tab-pane> <el-tab-pane>
<template #label> <template #label>
@ -632,7 +632,7 @@
type="textarea" type="textarea"
:autosize="{ minRows: 5, maxRows: 4 }" :autosize="{ minRows: 5, maxRows: 4 }"
placeholder="请输入仲裁原因" placeholder="请输入仲裁原因"
:disabled="Processingresults" :disabled="ProcessingresultsState"
/> />
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
@ -668,7 +668,7 @@
<div class="dialog-footer"> <div class="dialog-footer">
<!-- <el-button @click="Indexdialog = false">取消</el-button> --> <!-- <el-button @click="Indexdialog = false">取消</el-button> -->
<el-button type="primary" @click="ConfirmForm" v-if="RouterState == 'Infoedit'"> <el-button type="primary" @click="ConfirmForm" v-if="RouterState == 'Infoedit' && !UserPermissions=='仓库客服'">
提交 提交
</el-button> </el-button>
<!--编辑提交--> <!--编辑提交-->
@ -676,9 +676,10 @@
type="primary" type="primary"
@click="Arbitrationcompleted" @click="Arbitrationcompleted"
v-if=" v-if="
(RouterState == 'Kfend' && !Appealeditor) || Appealeditor == 'appeal' || Processingresults (RouterState == 'Kfend' && !Appealeditor) || Appealeditor == 'appeal' || ProcessingresultsState
" "
> >
<!-- 申诉编辑 -->
提交 提交
</el-button> </el-button>
@ -867,9 +868,10 @@ const dialogImgList = ref(false); //图片预览弹窗
const CompletedEditing = ref(false); // const CompletedEditing = ref(false); //
const amplifyurl = ref(''); // const amplifyurl = ref(''); //
const amplifysrcList = ref([]); // const amplifysrcList = ref([]); //
const Processingresults = ref(false); // const ProcessingresultsState = ref(false); //
const ProcessedId = ref(null); //iD const ProcessedId = ref(null); //iD
const Copyprocessingresults = ref(); // const Copyprocessingresults = ref(); //
const UserPermissions=ref('');//
// ref // ref
// //
@ -878,26 +880,26 @@ const markFieldAsModified = fieldName => {
modifiedFields.value.add(fieldName); modifiedFields.value.add(fieldName);
}; };
const CompensationParty = ref([ const CompensationParty = ref([
{ // {
name: '', // name: '',
state: 0, // state: 0,
num: null, // num: null,
reason: '', // reason: '',
cld: 1, // cld: 1,
explains: '', // explains: '',
warehouseId: '', // warehouseId: '',
personResponsibleList: '', // personResponsibleList: '',
}, // // }, //
{ // {
name: '', // name: '',
state: 1, // state: 1,
num: null, // num: null,
reason: '', // reason: '',
cld: 1, // cld: 1,
explains: '', // explains: '',
warehouseId: '', // warehouseId: '',
personResponsibleList: '', // personResponsibleList: '',
}, // // }, //
]); /// ]); ///
const PackageInfo = ref([ const PackageInfo = ref([
// //
@ -1061,11 +1063,12 @@ const onLoad = () => {
CompletedEditing.value = false; CompletedEditing.value = false;
} }
// //
if ($route.query.Processingresults) { if ($route.query.Processingresults == true && UserPermissions.value !='仓库客服' ) {
console.log($route.query.Processingresults, '理赔金未出编辑'); console.log($route.query.Processingresults, '理赔金未出编辑');
Processingresults.value = true; ProcessingresultsState.value = false;
} else {
Processingresults.value = false; } else{
ProcessingresultsState.value = true;
} }
console.log(RouterState.value, '路由状态'); console.log(RouterState.value, '路由状态');
getDictionaryBiz('result_handling').then(res => { getDictionaryBiz('result_handling').then(res => {
@ -1087,7 +1090,22 @@ const onLoad = () => {
updateDictionary(DiscoveringNodes.value, 'pc_discovery_node'); // updateDictionary(DiscoveringNodes.value, 'pc_discovery_node'); //
handle(); // handle(); //
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,'当前角色信息');
})
$_getInfo({ id: $route.query.id }).then(res => { $_getInfo({ id: $route.query.id }).then(res => {
groundlineType.value = res.data.data.discoveryNode; // groundlineType.value = res.data.data.discoveryNode; //
oldData.value = JSON.parse(JSON.stringify(res.data.data)); oldData.value = JSON.parse(JSON.stringify(res.data.data));
console.log(oldData.value, '旧数据'); console.log(oldData.value, '旧数据');
@ -2041,13 +2059,14 @@ const Arbitrationcompleted = () => {
.catch(res => { .catch(res => {
editloading.value = false; // editloading.value = false; //
}); });
console.log('申诉下面编辑完结信息');
return; return;
} }
console.log(Copyprocessingresults.value, '初始化处理结果参数'); console.log(Copyprocessingresults.value, '初始化处理结果参数');
console.log(ProcessingList.value, '最新的处理结果参数'); console.log(ProcessingList.value, '最新的处理结果参数');
if (Processingresults.value) { if (ProcessingresultsState.value && $route.query.workOrderStatus !='10') {
// //
// //
let data = { let data = {
@ -2142,6 +2161,7 @@ const Arbitrationcompleted = () => {
type: 'success', type: 'success',
}); });
}); });
console.log('理赔金额未出编辑');
return; return;
} }
@ -2215,6 +2235,7 @@ const Arbitrationcompleted = () => {
.catch(res => { .catch(res => {
editloading.value = false; // editloading.value = false; //
}); });
console.log('申诉完结信息编辑');
return; return;
// //
} }

26
src/views/distribution/inventory/distrilbutionBillLadingView.vue

@ -217,21 +217,21 @@ export default {
values: '', values: '',
width: '150', width: '150',
checkarr: [], checkarr: [],
fixed: true, fixed: true,
sortable: true,
head: false,
},
{
prop: 'waybillNumber',
label: '客户车次号',
type: 2,
values: '',
width: '150',
checkarr: [],
fixed: true,
sortable: true, sortable: true,
head: false, head: false,
}, },
// {
// prop: 'trainNumber',
// label: '',
// type: 2,
// values: '',
// width: '150'
// checkarr: [],
// fixed: true,
// sortable: true,
// head: false,
// },
{ {
prop: 'sendWarehouseName', prop: 'sendWarehouseName',
label: '始发仓', label: '始发仓',
@ -767,7 +767,7 @@ export default {
head: false, head: false,
}, },
{ {
prop: 'waybillNumber', prop: 'trainNumber',
label: '客户车次号', label: '客户车次号',
type: 2, type: 2,
values: '', values: '',

Loading…
Cancel
Save