签收异常对比导出

This commit is contained in:
wuteng 2026-04-10 09:46:29 +08:00
parent 5cf5da07a4
commit 4b6ba32e9e

View File

@ -78,7 +78,7 @@
type="primary"
plain
size="mini"
@click="getList"
@click="handleExport"
>导出</el-button>
</el-col>
</el-row>
@ -87,12 +87,12 @@
<el-table-column :label="$t('网点名称')" align="center" prop="scanSiteName" min-width="100" />
<el-table-column :label="$t('扫描票数')" align="center" prop="scanCount" min-width="150" />
<el-table-column :label="$t('已签收票数')" align="center" prop="signCount" min-width="150" />
<el-table-column :label="$t('未签收票数')" align="center" prop="destName" min-width="150">
<el-table-column :label="$t('未签收票数')" align="center" prop="unSignCount" min-width="150">
<template slot-scope="scope">
<span>{{ (scope.row.scanCount - scope.row.signCount) }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('签收率')" align="center" prop="registerSite" min-width="100">
<el-table-column :label="$t('签收率')" align="center" prop="signRate" min-width="100">
<template slot-scope="scope">
<span>{{ ((scope.row.signCount / scope.row.scanCount) * 100).toFixed(2) + '%' }}</span>
</template>
@ -216,16 +216,7 @@ export default {
/** 查询统计信息 */
getList() {
this.loading = true;
console.log("---->this.queryParams,", this.dateTimeRange);
if (null != this.dateTimeRange && '' != this.dateTimeRange) {
this.queryParams.params.beginScanDate = dateToStr(this.dateTimeRange[0]);
this.queryParams.params.endScanDate = dateToStr(this.dateTimeRange[1]);
}else{
this.queryParams.params.beginScanDate = null;
this.queryParams.params.endScanDate = null;
}
this.tempQueryParams = {...this.queryParams};
this.tempQueryParams = this.initQueryParams(this.queryParams);
queryStatList(this.tempQueryParams).then(response => {
if(!response ||response.code != 200){
this.$modal.msgError(response && response.msg || "未知错误")
@ -288,7 +279,18 @@ export default {
this.queryParams.isAsc = column.order;
this.getList();
},
initQueryParams(){
let qParam=null;
if (null != this.dateTimeRange && '' != this.dateTimeRange) {
this.queryParams.params.beginScanDate = dateToStr(this.dateTimeRange[0]);
this.queryParams.params.endScanDate = dateToStr(this.dateTimeRange[1]);
}else{
this.queryParams.params.beginScanDate = null;
this.queryParams.params.endScanDate = null;
}
qParam={...this.queryParams};
return qParam;
},
/** 导出按钮操作 */
handleExport() {
const loadingInstance = this.$loading({
@ -304,7 +306,7 @@ export default {
qExportParam.pageNum=1;
qExportParam.pageSize=5000;
listEmisWaybill(qExportParam).then(response => {
queryStatList(qExportParam).then(response => {
if (response.code === 200) {
this.exportData(response.rows,loadingInstance);
}
@ -321,7 +323,7 @@ export default {
excel.export_json_to_excel({
header: tHeader,
data,
filename: '统计',
filename: '签收异常对比统计',
autoWidth: true
})
loadingInstance.close()
@ -337,59 +339,11 @@ export default {
if (j === 'kjlx') {
return v['sendSiteName']+'--'+v['dispatchUnderlingSiteName'];
}
if (j === 'fjr') {
return v['sendName']+'--'+v['receiveName'];
if(j==='unSignCount'){
return v['scanCount']-v['signCount'];
}
if (j === 'sendMobile') {
return "";
}
if (j === 'paymentStatus') {
return this.selectDictLabel(this.dict.type.emis_payment_status,v[j]);
}
if (j === 'pickupMethod') {
return this.selectDictLabel(this.dict.type.emis_qujian_fangshi,v[j]);
}
if (j === 'customsEclaration') {
return this.selectDictLabel(this.dict.type.emis_declare_mode,v[j]);
}
if (j === 'customsClear') {
return this.selectDictLabel(this.dict.type.emis_customs_clear,v[j]);
}
if (j === 'packType') {
return this.selectDictLabels(this.dict.type.emis_tab_packing_type,v[j]);
}
if (j === 'dispatchMethod') {
if(v[j] == 1){
return '派送';
}else{
return '自提';
}
}
if (j === 'blMessage') {
if(v[j] == 1){
return '发送';
}else{
return '不发送';
}
}
if (j === 'blAcceptMessage') {
if(v[j] == 1){
return '发送';
}else{
return '不发送';
}
}
if (j === 'blSign') {
if(v[j] == 1){
return '已签收';
}else{
return '未签收';
}
}
if (j === 'paymentType') {
return this.selectDictLabel(this.dict.type.emis_payment_type,v[j]);
if(j==='signRate'){
return ((v['signCount'] / v['scanCount']) * 100).toFixed(2) + '%';
}
return v[j]
}))