This commit is contained in:
linfso 2025-07-10 18:07:58 +08:00
parent 519d7b61e1
commit f989fbe810
5 changed files with 36 additions and 11 deletions

View File

@ -83,6 +83,7 @@
"monaco-editor": "^0.34.1",
"mxgraph-js": "^1.0.1",
"nprogress": "0.2.0",
"pako": "^2.1.0",
"pdf-lib": "^1.17.1",
"pdfjs-dist": "^2.5.207",
"print-js": "^1.6.0",

View File

@ -30,7 +30,14 @@ import './permission' // permission control
import { getDicts } from "@/api/system/dict/data";
import { getConfigKey } from "@/api/system/config";
import "default-passive-events";
import { playAudio,playNoticeTone,parseTime, resetForm, addDateRange,removeDateRange,addQueryParam,addFormParam,insertJsScript, selectDictLabel, selectDictLabels, handleTree,handleOptions,addExportAuditRecord } from "@/utils/custom";
import {
playAudio,playNoticeTone,parseTime, resetForm, addDateRange,removeDateRange,addQueryParam,addFormParam,
insertJsScript, selectDictLabel, selectDictLabels, handleTree,handleOptions,
addExportAuditRecord
} from "@/utils/custom";
import { unzipToJson } from '@/utils/compress.js';
import { deepClone } from '@/utils/index'
// 分页组件
@ -101,6 +108,9 @@ Vue.prototype.MD5 = md5;
Vue.prototype.playAudio = playAudio;
Vue.prototype.playNoticeTone = playNoticeTone;
Vue.prototype.unzipToJson = unzipToJson;
Vue.prototype.deepClone = deepClone;
const tanexPrinter = TanexPrinterSdk.getInstance();
Vue.prototype.$tanexPrinter = tanexPrinter;

View File

@ -289,7 +289,6 @@ import EmisUserSimplePicker0 from '@/views/emis/EmisBaseTools/EmisUserSimplePick
import elDateAdvPicker from '@/components/DatePickerAdv/elDateAdvPicker';
import moment from 'moment'
export default {
name: "EmisCommissionDtl",
components: { elDateSimplePicker,emisCommissionDtlForm,EmisUserSimplePicker0,EmpNamePicker,elDateAdvPicker },
@ -357,7 +356,6 @@ export default {
remark: null,
delFlag: null,
params:{
}
},
formBatch:{
@ -575,6 +573,8 @@ export default {
},
handleExport() {
const that=this;
const loadingInstance = this.$loading({
text: '正在导出...'
})
@ -583,16 +583,20 @@ export default {
this.exportData(this.selectBillList,loadingInstance);
}
else{
let qExportParam={...this.queryParams};
let qParam=this.addDateRange(qExportParam, this.dateRange,"sendDate");
let qExportParam=this.deepClone(this.queryParams);
qExportParam=this.addDateRange(qExportParam, this.dateRange,"sendDate");
qExportParam.pageNum=1;
qExportParam.pageSize=100000;
qExportParam=this.addQueryParam(qExportParam, "blZExport","T");
mapDtlList(qExportParam).then(response => {
if (response.code === 200) {
this.exportData(response.rows,loadingInstance);
let rows=this.unzipToJson(response.rows[0]);
this.exportData(rows,loadingInstance);
}
});
}
},
exportData(selData,loadingInstance){
@ -601,7 +605,11 @@ export default {
const exportParam=this.$refs.refTable.getExportParam();
const tHeader = exportParam.header;
const filterVal = exportParam.filter;
console.time('exportData');
const data = this.formatJson(filterVal, curList, selData)
console.timeEnd('exportData');
excel.export_json_to_excel({
header: tHeader,
data,
@ -615,7 +623,7 @@ export default {
let index = 0
return jsonData.map(v => filterVal.map(j => {
console.log("===>1111===>",v);
// console.log("===>1111===>",v);
if (j === 'index') {
return ++index

View File

@ -381,14 +381,17 @@ export default {
}
else{
let qExportParam={...this.queryParams};
let qExportParam=this.deepClone(this.queryParams);
qExportParam=this.addDateRange(qExportParam, this.dateTimeRange,'sendDate')
qExportParam.pageNum=1;
qExportParam.pageSize=20000;
qExportParam=this.addQueryParam(qExportParam, "blZExport","T");
listEmisTmsSiteBatchMiss(qExportParam).then(response => {
if (response.code === 200) {
this.exportData(response.rows,loadingInstance);
let rows=this.unzipToJson(response.rows[0]);
this.exportData(rows,loadingInstance);
}
});
}

View File

@ -1093,13 +1093,16 @@ export default {
this.exportData(this.selectionList,loadingInstance);
}
else{
let qExportParam=this.initQueryParams();
let initParam=this.initQueryParams();
let qExportParam=this.deepClone(initParam);
qExportParam.pageNum=1;
qExportParam.pageSize=20000;
qExportParam=this.addQueryParam(qExportParam, "blZExport","T");
listEmisWaybill(qExportParam).then(response => {
if (response.code === 200) {
this.exportData(response.rows,loadingInstance);
let rows=this.unzipToJson(response.rows[0]);
this.exportData(rows,loadingInstance);
}
});
}