Browse Source

指标列表导出

dev-xx
马远东 1 year ago
parent
commit
0b10641c73
  1. 11
      src/api/classify/classify.js
  2. 28
      src/option/supervise/supervise.js
  3. 375
      src/views/aftersales/aftersalesWorkOrder.vue
  4. 13
      src/views/aftersales/aftersalesWorkOrderAdd.vue
  5. 12
      src/views/aftersales/aftersalesWorkOrderInfo.vue
  6. 9
      src/views/aftersales/aftersalesWorkOrderend.vue
  7. 53
      src/views/aftersales/aftersalesWorkOrdermodify.vue
  8. 17
      src/views/supervise/IndicatorList.vue

11
src/api/classify/classify.js

@ -121,3 +121,14 @@ export const $_selectPointList = (data) => {
data
})
}
// 导出
export const $_exportIndicatorsList = (data) => {
return request({
url: '/api/logpm-supervise/indicators/exportIndicatorsList',
data,
method: 'post',
responseType: 'blob',
})
}

28
src/option/supervise/supervise.js

@ -186,8 +186,8 @@ export const IndicatorColumnList = [
fixed: true,
},
{
prop: 'classifyName',
label: '指标名称',
prop: 'assessDeptName',
label: '考核部门',
type: 1,
values: '',
width: '130',
@ -197,8 +197,8 @@ export const IndicatorColumnList = [
head: false,
},
{
prop: 'parentClassifyName',
label: '指标分类',
prop: 'assessDeptName',
label: '考核人',
type: 1,
values: '',
width: '130',
@ -208,8 +208,8 @@ export const IndicatorColumnList = [
head: false,
},
{
prop: 'examineDeptName',
label: '考核范围',
prop: 'classifyName',
label: '指标名称',
type: 1,
values: '',
width: '130',
@ -219,8 +219,8 @@ export const IndicatorColumnList = [
head: false,
},
{
prop: 'assessDeptName',
label: '考核部门',
prop: 'parentClassifyName',
label: '指标分类',
type: 1,
values: '',
width: '130',
@ -229,6 +229,18 @@ export const IndicatorColumnList = [
sortable: true,
head: false,
},
{
prop: 'examineDeptName',
label: '考核范围',
type: 1,
values: '',
width: '130',
checkarr: [],
fixed: false,
sortable: true,
head: false,
},
{
prop: 'point',

375
src/views/aftersales/aftersalesWorkOrder.vue

@ -19,7 +19,7 @@
<div class="topText">
<el-form-item label="工单号" class="el-times">
<el-input
type="text"
type="text"
v-model="query.workOrderNumber"
placeholder="请输入工单号"
/>
@ -27,13 +27,11 @@
<el-form-item label="订单自编号" class="el-times">
<el-input
type="text"
type="text"
v-model="query.orderCode"
placeholder="请输入订单自编号"
/>
</el-form-item>
</div>
<!-- <div class="el_times">
@ -570,8 +568,6 @@
/>
</div>
<div class="sk_input" v-if="item.state == 0">
<span>责任人</span>
<el-input
@ -581,10 +577,9 @@
:rows="2"
/>
</div>
<div class="sk_input" v-if="item.state == 1"></div>
<el-button type="danger" round @click="payremove(item.state, index)"
>移除</el-button
>
@ -1233,16 +1228,16 @@ const AppealeditorState = ref(false); //申诉是否为编辑状态(默认否)
const AppealStatusT = ref(false); //
const loadingCustomer = ref(false); //
const TabList = ref([
{ name: 0, label: '全部', state: true, request: true,DataList:[],total:''},
{ name: 3, label: '待处理', state: true, request: true,DataList:[],total:''},
{ name: 9, label: '待审核', state: true, request: true,DataList:[],total:''},
{ name: 8, label: '待回复', state: false, request: true ,DataList:[],total:''},
{ name: 1, label: '处理中', state: true, request: true ,DataList:[],total:''},
{ name: 2, label: '处理完毕', state: true, request: true ,DataList:[],total:''},
{ name: 6, label: '仲裁中', state: true, request: true ,DataList:[],total:''},
{ name: 5, label: '客服介入', state: true, request: true ,DataList:[],total:''},
{ name: 4, label: '理赔金额未出', state: true, request: true ,DataList:[],total:''},
{ name: 7, label: '超时未处理', state: true, request: true ,DataList:[],total:''},
{ name: 0, label: '全部', state: true, request: true, DataList: [], total: '' },
{ name: 3, label: '待处理', state: true, request: true, DataList: [], total: '' },
{ name: 9, label: '待审核', state: true, request: true, DataList: [], total: '' },
{ name: 8, label: '待回复', state: false, request: true, DataList: [], total: '' },
{ name: 1, label: '处理中', state: true, request: true, DataList: [], total: '' },
{ name: 2, label: '处理完毕', state: true, request: true, DataList: [], total: '' },
{ name: 6, label: '仲裁中', state: true, request: true, DataList: [], total: '' },
{ name: 5, label: '客服介入', state: true, request: true, DataList: [], total: '' },
{ name: 4, label: '理赔金额未出', state: true, request: true, DataList: [], total: '' },
{ name: 7, label: '超时未处理', state: true, request: true, DataList: [], total: '' },
]); //
const DeliveryDriver = ref([]);
@ -1452,7 +1447,7 @@ const ButtonPermissions = computed(() => {
assignment: false, //
applyArbitration: false, //
DingTalkNumber: false, //
batchFinish:false, //
batchFinish: false, //
appeal: false, //
ManagerConfirmed: false, //
ArbitrationDetermination: false, //
@ -1739,12 +1734,17 @@ const Statusprocessing = val => {
});
};
//
const IndexTable = (val,Refresh) => {
console.log(!TabList.value.find(res=>res.name == TabPermissions.value).request,Refresh,'Refresh');
if(!TabList.value.find(res=>res.name == TabPermissions.value).request && !Refresh){
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList
page.value.total = TabList.value.find(res=>res.name == TabPermissions.value).total
return
const IndexTable = (val, Refresh) => {
console.log(
!TabList.value.find(res => res.name == TabPermissions.value).request,
Refresh,
'页面初始化Refresh'
);
let State = TabList.value.find(res => res.name == TabPermissions.value).request;
if (!State && !Refresh) {
details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList;
page.value.total = TabList.value.find(res => res.name == TabPermissions.value).total;
return;
}
ClaimStatus.value = false;
@ -1787,13 +1787,12 @@ const IndexTable = (val,Refresh) => {
if (TabPermissions.value == 0) {
if (UserPermissions.value != '仓库客服') {
data.workOrderStatus = null;
details.query.workOrderStatus=null
details.query.workOrderStatus = null;
} else {
data.workOrderStatus = '1000';
details.query.workOrderStatus='1000'
details.query.workOrderStatus = '1000';
}
}
console.log(data, '处理的参数');
$_getList(data).then(res => {
Tableheaderswitching(columnList);
@ -1801,23 +1800,27 @@ const IndexTable = (val,Refresh) => {
details.loadingObj.list = false; //
if (res.data.data) {
console.log(res.data.data, '初始化返回值===>');
console.log(res.data.data.records.length,'res.data.data.records');
console.log(TabList.value,'TabList.value===>');
console.log(res.data.data.records.length, 'res.data.data.records');
console.log(TabList.value, 'TabList.value===>');
// page.value.total = res.data.data.total; //
if (res.data.data.records.length) {
console.log(res.data.data.records,'res.data.data.records有值');
TabList.value.find(res=>res.name == TabPermissions.value).DataList = res.data.data.records
TabList.value.find(res=>res.name == TabPermissions.value).total = res.data.data.total
TabList.value.find(res=>res.name == TabPermissions.value).request=false
console.log(TabList.value,'当前存储的值');
console.log(res.data.data.records, 'res.data.data.records有值');
TabList.value.find(res => res.name == TabPermissions.value).DataList =
res.data.data.records;
TabList.value.find(res => res.name == TabPermissions.value).total = res.data.data.total;
TabList.value.find(res => res.name == TabPermissions.value).request = false;
console.log(TabList.value, '当前存储的值');
// details.data = res.data.data.records;
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList
page.value.total = TabList.value.find(res=>res.name == TabPermissions.value).total
console.log(TabList.value,'TabList.value===>');
details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList;
page.value.total = TabList.value.find(res => res.name == TabPermissions.value).total;
console.log(TabList.value, 'TabList.value===>');
Statusprocessing(res.data.data.records);
} else {
TabList.value.find(res => res.name == TabPermissions.value).DataList = [];
TabList.value.find(res => res.name == TabPermissions.value).total = 0;
TabList.value.find(res => res.name == TabPermissions.value).request = true;
// details.data = res.data.data.records;
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList;
details.data = res.data.data.records;
}
}
loading.value = false; //
@ -2317,9 +2320,6 @@ const appeal = (val, state) => {
};
//
const DetermineClaims = val => {
console.log(val.row);
let data = {
id: val.row.lawoId,
@ -2331,12 +2331,12 @@ const DetermineClaims = val => {
.then(res => {
console.log(res);
if (res.data.code == 200) {
tabChenge(TabPermissions.value,{},true);
tabChenge(TabPermissions.value, {}, true);
}
})
.catch(res => {
details.loadingObj.list = false; //
})
});
};
//
const Resultediting = val => {
@ -2354,7 +2354,7 @@ const Resultediting = val => {
workOrderNumber: val.row.workOrderNumber,
RouterState: 'Kfend',
Processingresults: true, //
Resultediting:true,//
Resultediting: true, //
index: '1',
},
});
@ -2373,6 +2373,7 @@ const ProcessedResultediting = val => {
workOrderNumber: val.row.workOrderNumber,
RouterState: 'Kfend',
Processingresults: true, //
Resultediting: true, //
Processed: 'true',
index: '1',
},
@ -2489,14 +2490,14 @@ const Appealbutton = state => {
};
/** 表格表头输入框搜索 */
const inputsc = async(index, row) => {
TabList.value.find(res=>res.name == TabPermissions.value).request=true
const inputsc = async (index, row) => {
TabList.value.find(res => res.name == TabPermissions.value).request = true;
console.log('调用了表格输入参数');
processRowProperty(index, row, details);
details.query[row.prop] = index;
// tabChenge( TabPermissions.value,details.query)
await DataRendering(TabPermissions.value, details.query,true);
TabList.value.find(res=>res.name == TabPermissions.value).request=false
await DataRendering(TabPermissions.value, details.query, true);
TabList.value.find(res => res.name == TabPermissions.value).request = false;
return;
console.log('没有执行');
if (TabPermissions.value == '4') {
@ -2552,7 +2553,7 @@ const inputsc = async(index, row) => {
};
//
const searchChange = () => {
DataRendering(TabPermissions.value, details.query,true);
DataRendering(TabPermissions.value, details.query, true);
return;
if (ClaimStatus.value) {
@ -2594,28 +2595,27 @@ const searchChangeS = () => {
details.search = false; //
// tabValue.value = 0;
// IndexTable(); //
tabChenge(TabPermissions.value,{},true);
tabChenge(TabPermissions.value, {}, true);
};
//
const WorkorderChange=(val)=>{
const WorkorderChange = val => {
console.log(val);
}
};
//
const searchReset = () => {
details.query = {};
IndexTable(details.query,true);
IndexTable(details.query, true);
details.search = false; //
};
/** 表格表头时间选择 */
const timesc = async(index, row) => {
TabList.value.find(res=>res.name == TabPermissions.value).request=true
const timesc = async (index, row) => {
TabList.value.find(res => res.name == TabPermissions.value).request = true;
processRowProperty(index, row, details);
details.query[row.prop] = index;
await DataRendering(TabPermissions.value, details.query,true);
TabList.value.find(res=>res.name == TabPermissions.value).request=false
return
await DataRendering(TabPermissions.value, details.query, true);
TabList.value.find(res => res.name == TabPermissions.value).request = false;
return;
console.log(index, row);
if (!!index) {
@ -2629,18 +2629,18 @@ const timesc = async(index, row) => {
/** 表格表头输入框搜索 */
const btnsc = val => {
TabList.value.find(res=>res.name == TabPermissions.value).request=true
TabList.value.find(res => res.name == TabPermissions.value).request = true;
console.log(val);
};
/** 表格表头下拉框选择 */
const selectsc = async(index, row) => {
TabList.value.find(res=>res.name == TabPermissions.value).request=true
console.log(row,'下拉参数');
const selectsc = async (index, row) => {
TabList.value.find(res => res.name == TabPermissions.value).request = true;
console.log(row, '下拉参数');
processRowProperty(index, row, details);
details.query[row.prop] = index;
await DataRendering(TabPermissions.value, details.query,true);
TabList.value.find(res=>res.name == TabPermissions.value).request=false
await DataRendering(TabPermissions.value, details.query, true);
TabList.value.find(res => res.name == TabPermissions.value).request = false;
return;
@ -2689,11 +2689,11 @@ const selectionChange = list => {
};
/** 页码改变执行的回调 */
const currentChange = async (val) => {
TabList.value.find(res=>res.name == TabPermissions.value).request=true
const currentChange = async val => {
TabList.value.find(res => res.name == TabPermissions.value).request = true;
page.value.currentPage = val;
await DataRendering(TabPermissions.value, details.query,true);
TabList.value.find(res=>res.name == TabPermissions.value).request=false
await DataRendering(TabPermissions.value, details.query, true);
TabList.value.find(res => res.name == TabPermissions.value).request = false;
return;
//
if (TimeoutStatus.value) {
@ -2722,10 +2722,10 @@ const currentChange = async (val) => {
};
//
const sizeChange = async val => {
TabList.value.find(res=>res.name == TabPermissions.value).request=true
TabList.value.find(res => res.name == TabPermissions.value).request = true;
page.value.pageSize = val;
await DataRendering(TabPermissions.value, details.query,true);
TabList.value.find(res=>res.name == TabPermissions.value).request=false
await DataRendering(TabPermissions.value, details.query, true);
TabList.value.find(res => res.name == TabPermissions.value).request = false;
return;
//
if (TimeoutStatus.value) {
@ -2794,12 +2794,16 @@ const changeProcessingResults = val => {
});
};
//
const settlementclaim = (val,Refresh) => {
console.log(!TabList.value.find(res=>res.name == TabPermissions.value).request,Refresh,'Refresh');
if(!TabList.value.find(res=>res.name == TabPermissions.value).request && !Refresh){
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList
page.value.total = TabList.value.find(res=>res.name == TabPermissions.value).total
return
const settlementclaim = (val, Refresh) => {
console.log(
!TabList.value.find(res => res.name == TabPermissions.value).request,
Refresh,
'Refresh'
);
if (!TabList.value.find(res => res.name == TabPermissions.value).request && !Refresh) {
details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList;
page.value.total = TabList.value.find(res => res.name == TabPermissions.value).total;
return;
}
details.loadingObj.list = true; //
console.log(Claimsfield, '理赔数据');
@ -2852,15 +2856,18 @@ const settlementclaim = (val,Refresh) => {
if (res.data.data) {
if (res.data.data.records.length) {
// details.data = res.data.data.records; //
TabList.value.find(res=>res.name == TabPermissions.value).DataList = res.data.data.records
TabList.value.find(res=>res.name == TabPermissions.value).total = res.data.data.total
TabList.value.find(res=>res.name == TabPermissions.value).request=false
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList
page.value.total = TabList.value.find(res=>res.name == TabPermissions.value).total
TabList.value.find(res => res.name == TabPermissions.value).DataList =
res.data.data.records;
TabList.value.find(res => res.name == TabPermissions.value).total = res.data.data.total;
TabList.value.find(res => res.name == TabPermissions.value).request = false;
details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList;
page.value.total = TabList.value.find(res => res.name == TabPermissions.value).total;
} else {
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList;
TabList.value.find(res => res.name == TabPermissions.value).DataList = [];
TabList.value.find(res => res.name == TabPermissions.value).total = 0;
TabList.value.find(res => res.name == TabPermissions.value).request = true;
details.data = res.data.data.records;
}
}
})
.catch(res => {
@ -2891,15 +2898,18 @@ const appealFn = val => {
if (res.data.data.records.length) {
// details.data = res.data.data.records;
TabList.value.find(res=>res.name == TabPermissions.value).DataList = res.data.data.records
TabList.value.find(res=>res.name == TabPermissions.value).total = res.data.data.total
TabList.value.find(res=>res.name == TabPermissions.value).request=false
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList
page.value.total = TabList.value.find(res=>res.name == TabPermissions.value).total;
TabList.value.find(res => res.name == TabPermissions.value).DataList =
res.data.data.records;
TabList.value.find(res => res.name == TabPermissions.value).total = res.data.data.total;
TabList.value.find(res => res.name == TabPermissions.value).request = false;
details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList;
page.value.total = TabList.value.find(res => res.name == TabPermissions.value).total;
} else {
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList;
TabList.value.find(res => res.name == TabPermissions.value).DataList = [];
TabList.value.find(res => res.name == TabPermissions.value).total = 0;
TabList.value.find(res => res.name == TabPermissions.value).request = true;
details.data = res.data.data.records;
}
})
.catch(res => {
details.loadingObj.list = false; //
@ -2919,7 +2929,7 @@ const AppealTab = val => {
let data = {
...details.query,
};
IndexTable(data,true);
IndexTable(data, true);
} else {
AppealListFn(); //
}
@ -2993,13 +3003,16 @@ function getWinHight() {
// });
// };
//
const TimeoutHandling = (val,Refresh) => {
console.log(!TabList.value.find(res=>res.name == TabPermissions.value).request,Refresh,'Refresh');
if(!TabList.value.find(res=>res.name == TabPermissions.value).request && !Refresh){
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList
page.value.total = TabList.value.find(res=>res.name == TabPermissions.value).total
return
const TimeoutHandling = (val, Refresh) => {
console.log(
!TabList.value.find(res => res.name == TabPermissions.value).request,
Refresh,
'Refresh'
);
if (!TabList.value.find(res => res.name == TabPermissions.value).request && !Refresh) {
details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList;
page.value.total = TabList.value.find(res => res.name == TabPermissions.value).total;
return;
}
timeoutList[3].checkarr = []; //
timeoutList[4].checkarr = []; //
@ -3015,20 +3028,30 @@ const TimeoutHandling = (val,Refresh) => {
...val,
};
$_listOwn(data).then(res => {
Statusprocessing(res.data.data.records)
details.loadingObj.list = false; //
details.loadingObj.list = false; //
console.log(res, '超时记录');
// details.data = res.data.data.records;
TabList.value.find(res=>res.name == TabPermissions.value).DataList = res.data.data.records
TabList.value.find(res=>res.name == TabPermissions.value).total = res.data.data.total
TabList.value.find(res=>res.name == TabPermissions.value).request=false
page.value.total = TabList.value.find(res=>res.name == TabPermissions.value).total;
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList
if (res.data.data.records.length) {
Statusprocessing(res.data.data.records);
// details.data = res.data.data.records;
TabList.value.find(res => res.name == TabPermissions.value).DataList = res.data.data.records;
TabList.value.find(res => res.name == TabPermissions.value).total = res.data.data.total;
TabList.value.find(res => res.name == TabPermissions.value).request = false;
page.value.total = TabList.value.find(res => res.name == TabPermissions.value).total;
details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList;
} else {
TabList.value.find(res => res.name == TabPermissions.value).DataList = [];
TabList.value.find(res => res.name == TabPermissions.value).total = 0;
TabList.value.find(res => res.name == TabPermissions.value).request = true;
}
}).catch(res=>{
details.loadingObj.list = false; //
});
};
//
const DataRendering = (val, input,Refresh) => {
const DataRendering = (val, input, Refresh) => {
// val:
//input:
console.log(input, '接搜的搜索参数');
@ -3049,12 +3072,12 @@ const DataRendering = (val, input,Refresh) => {
data.workOrderStatus = 1000;
details.query.workOrderStatus = 1000;
Tableheaderswitching(columnList);
IndexTable(data,Refresh);
IndexTable(data, Refresh);
} else {
data.workOrderStatus = null;
details.query.workOrderStatus = null;
Tableheaderswitching(columnList);
IndexTable(data,Refresh);
IndexTable(data, Refresh);
}
} else if (val == 1) {
//
@ -3068,7 +3091,7 @@ const DataRendering = (val, input,Refresh) => {
ProcessingPartyState.value = false; //
ArbitrationStatus.value = true; //
Tableheaderswitching(columnList);
IndexTable(data,Refresh);
IndexTable(data, Refresh);
} else if (val == 2) {
//
data.workOrderStatus = 30;
@ -3076,7 +3099,7 @@ const DataRendering = (val, input,Refresh) => {
ProcessingPartyState.value = false; //
ArbitrationStatus.value = false; //
Tableheaderswitching(columnList);
IndexTable(data,Refresh);
IndexTable(data, Refresh);
} else if (val == 3) {
//
ProcessingPartyState.value = true; //
@ -3092,14 +3115,14 @@ const DataRendering = (val, input,Refresh) => {
details.query.workOrderStatus = 10;
ArbitrationStatus.value = true; //
Tableheaderswitching(columnList);
IndexTable(data,Refresh);
IndexTable(data, Refresh);
} else if (val == 4) {
//
ProcessingPartyState.value = false; //
details.query.workOrderStatus = null;
ArbitrationStatus.value = false; //
Tableheaderswitching(Claimsfield); //
settlementclaim(data,Refresh);
settlementclaim(data, Refresh);
} else if (val == 5) {
//
ProcessingPartyState.value = false; //
@ -3107,12 +3130,12 @@ const DataRendering = (val, input,Refresh) => {
details.query.workOrderStatus = 70;
ArbitrationStatus.value = false; //
Tableheaderswitching(columnList); //
IndexTable(data,Refresh);
IndexTable(data, Refresh);
} else if (val == 6 && AppealStatusT.value) {
console.log('申诉列表');
data.workOrderStatus = null;
details.query.workOrderStatus = null;
AppealListFn(data,Refresh); //
AppealListFn(data, Refresh); //
} else if (val == 6) {
//
ProcessingPartyState.value = false; //
@ -3120,7 +3143,7 @@ const DataRendering = (val, input,Refresh) => {
details.query.workOrderStatus = 80;
ArbitrationStatus.value = false; //
Tableheaderswitching(columnList); //
IndexTable(data,Refresh);
IndexTable(data, Refresh);
var bodyContent = document.querySelectorAll('.maboxhi');
const _height = getWinHight();
//
@ -3134,7 +3157,7 @@ const DataRendering = (val, input,Refresh) => {
details.query.workOrderStatus = null;
ArbitrationStatus.value = false; //
Tableheaderswitching(timeoutList); //
TimeoutHandling(data,Refresh); //
TimeoutHandling(data, Refresh); //
} else if (val == 8) {
//
if (UserPermissions.value == '仓库客服') {
@ -3142,7 +3165,7 @@ const DataRendering = (val, input,Refresh) => {
data.workOrderStatus = null;
details.query.workOrderStatus = null;
Tableheaderswitching(columnList);
ProcessingPartyFun(data,Refresh);
ProcessingPartyFun(data, Refresh);
}
} else if (val == 9) {
//
@ -3153,14 +3176,14 @@ const DataRendering = (val, input,Refresh) => {
}
ArbitrationStatus.value = true; //
Tableheaderswitching(columnList);
IndexTable(data,Refresh);
IndexTable(data, Refresh);
}
console.log('执行完毕');
};
//
const tabChenge = async (val, input,Refresh=false) => {
const tabChenge = async (val, input, Refresh = false) => {
TabPermissions.value = val; //
if (val != 6) {
@ -3171,8 +3194,8 @@ const tabChenge = async (val, input,Refresh=false) => {
...input, //
};
await empty();
DataRendering(TabPermissions.value, input,Refresh);
DataRendering(TabPermissions.value, input, Refresh);
return;
if (val == 0) {
ProcessingPartyState.value = false; //
@ -3299,12 +3322,16 @@ const showdrawer = _flag => {
};
//
const ProcessingPartyFun = (val,Refresh) => {
console.log(TabList.value.find(res=>res.name == TabPermissions.value).request,Refresh,'待回复');
if(!TabList.value.find(res=>res.name == TabPermissions.value).request && !Refresh){
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList
page.value.total = TabList.value.find(res=>res.name == TabPermissions.value).total
return;
const ProcessingPartyFun = (val, Refresh) => {
console.log(
TabList.value.find(res => res.name == TabPermissions.value).request,
Refresh,
'待回复'
);
if (!TabList.value.find(res => res.name == TabPermissions.value).request && !Refresh) {
details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList;
page.value.total = TabList.value.find(res => res.name == TabPermissions.value).total;
return;
}
console.log('触发了待回复');
ClaimStatus.value = false; //
@ -3325,19 +3352,26 @@ const ProcessingPartyFun = (val,Refresh) => {
$_getProcessor(data)
.then(res => {
details.loadingObj.list = false; //
// page.value.total = res.data.data.total; //
// page.value.total = res.data.data.total; //
if (res.data.data.records.length) {
Statusprocessing(res.data.data.records);
TabList.value.find(res=>res.name == TabPermissions.value).DataList = res.data.data.records
TabList.value.find(res=>res.name == TabPermissions.value).total = res.data.data.total
TabList.value.find(res=>res.name == TabPermissions.value).request = false
console.log(TabList.value.find(res=>res.name == TabPermissions.value).request,'待回复当前状态');
page.value.total= TabList.value.find(res=>res.name == TabPermissions.value).total
TabList.value.find(res => res.name == TabPermissions.value).DataList =
res.data.data.records;
TabList.value.find(res => res.name == TabPermissions.value).total = res.data.data.total;
TabList.value.find(res => res.name == TabPermissions.value).request = false;
console.log(
TabList.value.find(res => res.name == TabPermissions.value).request,
'待回复当前状态'
);
page.value.total = TabList.value.find(res => res.name == TabPermissions.value).total;
// details.data = res.data.data.records;
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList
details.data = TabList.value.find(res => res.name == TabPermissions.value).DataList;
console.log(details.data, '存储的数据');
} else {
details.data = TabList.value.find(res=>res.name == TabPermissions.value).DataList
TabList.value.find(res => res.name == TabPermissions.value).DataList = [];
TabList.value.find(res => res.name == TabPermissions.value).total = 0;
TabList.value.find(res => res.name == TabPermissions.value).request = true;
details.data = res.data.data.record;
}
loading.value = false; //
})
@ -3380,7 +3414,7 @@ const reply = val => {
//
const ProcessingParty = () => {
ProcessingPartyState.value = true; //
ProcessingPartyFun({},true);
ProcessingPartyFun({}, true);
};
//
const messagesendFn = () => {
@ -3484,7 +3518,7 @@ const DetermineStorage = val => {
});
}
console.log(res, '处理完毕确定');
tabChenge(TabPermissions.value,{},true);
tabChenge(TabPermissions.value, {}, true);
})
.catch(res => {
console.log(res, '错误信息');
@ -3511,7 +3545,7 @@ const EndArbitration = val => {
message: res.data.msg,
type: 'success',
});
DataRendering(TabPermissions.value, details.query,true);
DataRendering(TabPermissions.value, details.query, true);
}
})
.catch(res => {
@ -3544,7 +3578,7 @@ const AllEndArbitration = () => {
message: res.data.msg,
type: 'success',
});
DataRendering(TabPermissions.value, details.query,true);
DataRendering(TabPermissions.value, details.query, true);
}
})
.catch(res => {
@ -3622,7 +3656,7 @@ const ResultConfirmation = val => {
type: 'success',
});
}
tabChenge(TabPermissions.value,{},true);
tabChenge(TabPermissions.value, {}, true);
})
.catch(res => {
console.log(res, '错误信息');
@ -3698,7 +3732,7 @@ const ResultConfirmation = val => {
});
}
console.log(res, '处理完毕确定');
tabChenge(TabPermissions.value,{},true);
tabChenge(TabPermissions.value, {}, true);
})
.catch(res => {
console.log(res, '错误信息');
@ -3859,7 +3893,7 @@ const CustomerServiceintervention = () => {
.then(res => {
console.log(res, '仲裁成功返回值');
// PagerefreshPublic();
DataRendering(TabPermissions.value, details.query,true);
DataRendering(TabPermissions.value, details.query, true);
if (res.data.code == 200) {
ElMessage({
message: res.data.msg,
@ -3902,7 +3936,7 @@ const DingTalkSubmit = () => {
type: 'success',
});
dialogDingTalk.value = false; //
DataRendering(TabPermissions.value, details.query,true);
DataRendering(TabPermissions.value, details.query, true);
}
});
};
@ -3910,7 +3944,7 @@ const DingTalkSubmit = () => {
const PagerefreshPublic = () => {
console.log('执行了页面刷新公共函数');
if (ProcessingPartyState.value && ArbitrationStatus.value) {
ProcessingPartyFun({},true);
ProcessingPartyFun({}, true);
} else {
IndexTable(); //
}
@ -4019,7 +4053,7 @@ const Financialfilling = () => {
type: 'success',
});
dialogFinancialaccounting.value = false; //
DataRendering(TabPermissions.value, details.query,true);
DataRendering(TabPermissions.value, details.query, true);
}
AppealListFn();
})
@ -4070,8 +4104,8 @@ const CompletedSubmission = () => {
// datadetails.selectionList
let data = details.selectionList.map(() => ({
id:details.selectionList[0].id,
reasonArbitration:Reasonarbitration.value,
id: details.selectionList[0].id,
reasonArbitration: Reasonarbitration.value,
completionRecipientEntities: [],
completionRecordEntities: [],
}));
@ -4088,7 +4122,7 @@ const CompletedSubmission = () => {
money: Number(party.num),
reasonArbitration: Reasonarbitration.value,
warehouseId: party.warehouseId, //
compensationPersonnel: party.personResponsibleName,//
compensationPersonnel: party.personResponsibleName, //
workOrderId: selection.id, //id
};
// completionRecordEntities
@ -4113,7 +4147,7 @@ const CompletedSubmission = () => {
//
console.log(data, '处理好的值');
$_addCompletionEnd(data).then(res => {
DataRendering(TabPermissions.value, details.query,true);
DataRendering(TabPermissions.value, details.query, true);
PLloading.value = false; //
dialogBatchcompletion.value = false; //
console.log(res, '完结成功返回值');
@ -4216,9 +4250,7 @@ const exportReport = () => {
downloadXls(res.data, `导出工单数据${formattedDate}.xlsx`);
});
})
.catch(() => {
});
.catch(() => {});
};
//
const TimedoutExport = () => {
@ -4236,9 +4268,7 @@ const TimedoutExport = () => {
downloadXls(res.data, `超时导出数据.xlsx`);
});
})
.catch(() => {
});
.catch(() => {});
};
//
const defaultAssignments = () => {
@ -4262,7 +4292,6 @@ const defaultAssignments = () => {
};
//
const assignsizeChange = val => {
console.log('123');
(assignpageSize.value = val), defaultAssignments();
};
@ -4622,13 +4651,13 @@ const AssignSubmission = () => {
margin-left: 20px;
width: 20%;
display: flex;
span{
width: 70px;
font-size: 16px;
font-weight: 300;
display: flex;
align-items: center;
justify-content: flex-start;
span {
width: 70px;
font-size: 16px;
font-weight: 300;
display: flex;
align-items: center;
justify-content: flex-start;
}
}
.el-button {
@ -4664,9 +4693,9 @@ const AssignSubmission = () => {
:deep(.el_tims_box) {
width: 100%;
display: flex;
.el-form-item {
margin: 6px 0;
}
.el-form-item {
margin: 6px 0;
}
}
.el-fr-d {
margin: 6px 0px;
@ -4678,7 +4707,7 @@ const AssignSubmission = () => {
flex-direction: row;
margin-right: 0;
margin-bottom: 0;
:deep(.el-form-item__content){
:deep(.el-form-item__content) {
flex-direction: row;
flex-wrap: nowrap;
}
@ -4710,8 +4739,8 @@ const AssignSubmission = () => {
}
.topText {
width: 100%;
:deep(.el-form-item){
margin-right:4px;
:deep(.el-form-item) {
margin-right: 4px;
}
}
.content {

13
src/views/aftersales/aftersalesWorkOrderAdd.vue

@ -939,7 +939,6 @@ if(groundlineType.value == 5 || groundlineType.value == 6){
}
if(groundlineType.value == 3){
let dataMain= MainlineUnloadingData.value.find(res=>res.trainNumber ==Indexform.value.trainNumber )
if(dataMain){
Indexform.value.vehicleRoute = dataMain.vehicleRoute; //线
@ -1603,9 +1602,9 @@ const ChangePackageInfo = (val, index) => {
console.log(res, '包件信息');
console.log(res.data.data, '包件信息');
if (res.data.data.length) {
TrainnumberList.value=[]
if(groundlineType.value == 5 || groundlineType.value == 6){
TrainnumberList.value=[]
//
//
//driverName
@ -1619,19 +1618,21 @@ const ChangePackageInfo = (val, index) => {
})
})
//
console.log(TrainnumberList.value,'车次号');
}
//
if(groundlineType.value == 3){
TrainnumberList.value=[]
res.data.data.forEach(item=>{
console.log(item,'item');
item.trunklines.forEach(itemChid=>{
console.log(itemChid,'itemChid');
TrainnumberList.value.push({label:itemChid.trainNumber,value:itemChid.trainNumber})//
console.log( TrainnumberList.value,' TrainnumberList.value');
MainlineUnloadingData.value.push(itemChid)
})
})
console.log(TrainnumberList.value,'车次号');
}
console.log(NumberPackages.value, 'NumberPackages.value ');
console.log(PackageInfo.value, 'PackageInfo.value');
const packageData = res.data.data[0];

12
src/views/aftersales/aftersalesWorkOrderInfo.vue

@ -729,7 +729,7 @@
<el-timeline-item
v-for="(item, index) in MessageContent"
:key="index"
:timestamp="item.time" placement="top"
>
<el-card
:class="{
@ -744,7 +744,9 @@
<el-icon> <User /> </el-icon>:
<h4>{{ item.username }}{{ item.name }}</h4>
</div>
<div class="e_ico e_time">
<h4>{{ item.time }}</h4>
</div>
<el-tag
:class="{
identifyingC1: item.difference == '1',
@ -1105,6 +1107,7 @@ const Chathistory = res => {
}
}, 0);
console.log(res, '聊天记录');
console.log(MessageContent.value);
Msgloading.value = false; //
})
.catch(res => {
@ -2427,7 +2430,10 @@ const ResultDetermination=()=>{
display: flex;
align-items: center;
}
.e_time{
color: #999;
font-size: 12px;
}
.img {
width: 50px;
height: 50px;

9
src/views/aftersales/aftersalesWorkOrderend.vue

@ -643,7 +643,6 @@
<el-timeline-item
v-for="(item, index) in MessageContent"
:key="index"
:timestamp="item.time"
placement="top"
>
<el-card>
@ -652,7 +651,9 @@
<el-icon><User /></el-icon>:
<h4>{{ item.username }}{{ item.name }}</h4>
</div>
<div class="e_ico e_time">
<h4>{{ item.time }}</h4>
</div>
<el-tag
:class="{
identifyingC1: item.difference == '1',
@ -2709,6 +2710,10 @@ const CustomerServiceCompleted = () => {
display: flex;
align-items: center;
}
.e_time{
color: #999;
font-size: 12px;
}
.img {
width: 50px;
height: 50px;

53
src/views/aftersales/aftersalesWorkOrdermodify.vue

@ -514,7 +514,7 @@
</span>
</template>
<!-- v-if="RouterState != 'Infoedit'" -->
<div class="el-ckbtn">
<div class="el-ckbtn" v-if="!CompleteDisabling">
<el-button type="primary" @click="AddCompensation">添加赔款方</el-button>
<el-button type="primary" @click="AddPayee">添加受款方</el-button>
</div>
@ -597,7 +597,7 @@
<!-- <el-input v-model="item.explain" placeholder="请填写说明" /> -->
<!-- </div> -->
<!-- v-if="RouterState != 'Infoedit'" -->
<div class="el_cwBtn">
<div class="el_cwBtn" v-if="!CompleteDisabling">
<el-button type="primary" @click="payremove(item.state, index, item)">
移除
</el-button>
@ -697,7 +697,7 @@
@click="UnpaidClaimsEdited"
v-if="$route.query.Resultediting"
>
理赔金额未出编辑提交
处理结果修改提交
</el-button>
@ -1114,7 +1114,27 @@ const onLoad = () => {
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++;
}
});
}
};
//
getDictionaryBiz('payment_method').then(res => {
//
@ -1139,7 +1159,7 @@ const onLoad = () => {
$_getInfo({ id: $route.query.id }).then(res => {
@ -1351,31 +1371,12 @@ const onLoad = () => {
item => item.value == Indexform.value.workOrderType
).value;
console.log(SelectType.value, '异常类型');
Statistics()
});
};
onLoad(); //
//
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 abnormalChange = val => {

17
src/views/supervise/IndicatorList.vue

@ -395,6 +395,7 @@ import {
$_selectParentCalssifyList,
$_parentId,
$_selectPointList,
$_exportIndicatorsList,
} from '@/api/classify/classify';
const loadingclassification = ref(false); //
const classificationdata = ref([]); //
@ -680,7 +681,21 @@ const BatchDelete = () => {
//
const exportList=()=>{
ElMessageBox.confirm('是否导出数据?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
})
.then(() => {
console.log('导出数据');
let data={
...searchFrom.value
}
$_exportIndicatorsList(data).then(res => {
downloadXls(res.data, `导出数据.xlsx`);
});
})
.catch(() => {});
}
//
const CategoryDeletion = val => {

Loading…
Cancel
Save