md
This commit is contained in:
parent
f7c3e5223a
commit
b2fd5a9a9a
@ -10,7 +10,6 @@ VUE_APP_VERSION = '20240520'
|
|||||||
VUE_APP_PDOMAIN = 'tanex56'
|
VUE_APP_PDOMAIN = 'tanex56'
|
||||||
VUE_APP_DATA_FROM = 'pc'
|
VUE_APP_DATA_FROM = 'pc'
|
||||||
VUE_APP_BASE_API = 'https://api.emis.tanex56.com/api/bizsvr'
|
VUE_APP_BASE_API = 'https://api.emis.tanex56.com/api/bizsvr'
|
||||||
|
|
||||||
VUE_APP_WS_HOST = 'wss://api.emis.tanex56.com/api/bizsvr'
|
VUE_APP_WS_HOST = 'wss://api.emis.tanex56.com/api/bizsvr'
|
||||||
|
|
||||||
VUE_APP_PRINTER_HOST = '127.0.0.1:17080'
|
VUE_APP_PRINTER_HOST = '127.0.0.1:17080'
|
||||||
|
|||||||
Binary file not shown.
@ -545,7 +545,7 @@ export default {
|
|||||||
key: ''
|
key: ''
|
||||||
},
|
},
|
||||||
tableData:[],
|
tableData:[],
|
||||||
|
dropCol:[],
|
||||||
|
|
||||||
isDragging: false,
|
isDragging: false,
|
||||||
startRowIndex: -1,
|
startRowIndex: -1,
|
||||||
@ -838,14 +838,13 @@ export default {
|
|||||||
getTablePosition() {
|
getTablePosition() {
|
||||||
return this.tableDom.getBoundingClientRect();
|
return this.tableDom.getBoundingClientRect();
|
||||||
},
|
},
|
||||||
/**
|
// 列拖拽
|
||||||
* 列拖拽
|
|
||||||
*/
|
|
||||||
columnDrop() {
|
columnDrop() {
|
||||||
const _this = this;
|
const _this = this;
|
||||||
var xdTableObj = document.getElementById(this.tableId);
|
var xdTableObj = document.getElementById(this.tableId);
|
||||||
// var tbHeader1=xdTableObj.getElementsByClassName("el-table__body-wrapper")[0];
|
// var tbHeader1=xdTableObj.getElementsByClassName("el-table__body-wrapper")[0];
|
||||||
const wrapperTr = xdTableObj.querySelector('.el-table__header-wrapper tr');
|
const wrapperTr = xdTableObj.querySelector('.el-table__header-wrapper tr');
|
||||||
|
console.log("===>columnDrop==>",wrapperTr)
|
||||||
this.sortable = Sortable.create(wrapperTr, {
|
this.sortable = Sortable.create(wrapperTr, {
|
||||||
animation: 180,
|
animation: 180,
|
||||||
delay: 0,
|
delay: 0,
|
||||||
@ -856,7 +855,7 @@ export default {
|
|||||||
this.newCol=evt.newIndex-1
|
this.newCol=evt.newIndex-1
|
||||||
_this.dropCol.splice(evt.oldIndex- empty, 1);
|
_this.dropCol.splice(evt.oldIndex- empty, 1);
|
||||||
_this.dropCol.splice(evt.newIndex- empty, 0, oldItem);
|
_this.dropCol.splice(evt.newIndex- empty, 0, oldItem);
|
||||||
console.log(_this.dropCol)
|
console.log("===>columnDrop==>",_this.dropCol)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@ -116,6 +116,8 @@
|
|||||||
subBillEnd:null,
|
subBillEnd:null,
|
||||||
openPdfView:false,
|
openPdfView:false,
|
||||||
|
|
||||||
|
orderDetailMap:new Map(),
|
||||||
|
|
||||||
isInitA4:false,
|
isInitA4:false,
|
||||||
|
|
||||||
printManCode:this.$store.getters.empCode,
|
printManCode:this.$store.getters.empCode,
|
||||||
@ -259,7 +261,7 @@
|
|||||||
this.tanexPrinter.batchPrintAdv(printDataList,this.printManCode);
|
this.tanexPrinter.batchPrintAdv(printDataList,this.printManCode);
|
||||||
},
|
},
|
||||||
|
|
||||||
batchPrint(orderList,tplCode){
|
batchPrint(orderList,tplCode,orderDetailList){
|
||||||
|
|
||||||
if(this.printerStatus !=1){
|
if(this.printerStatus !=1){
|
||||||
this.$modal.msgError("打印机未连接");
|
this.$modal.msgError("打印机未连接");
|
||||||
@ -267,6 +269,13 @@
|
|||||||
}
|
}
|
||||||
this.isInitA4=false;
|
this.isInitA4=false;
|
||||||
|
|
||||||
|
this.orderDetailMap=new Map();
|
||||||
|
if(orderDetailList){
|
||||||
|
orderDetailList.map(v=>{
|
||||||
|
this.orderDetailMap[v.billCode]=v;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
let that = this;
|
let that = this;
|
||||||
let newOrderList=[];
|
let newOrderList=[];
|
||||||
if(orderList){
|
if(orderList){
|
||||||
@ -286,10 +295,13 @@
|
|||||||
subBillStart=this.subBillStart;
|
subBillStart=this.subBillStart;
|
||||||
}
|
}
|
||||||
|
|
||||||
let subBillEnd=50;
|
let billDetail = this.orderDetailMap[billCode];
|
||||||
if(this.subBillEnd){
|
|
||||||
subBillEnd = this.subBillEnd;
|
let subBillEnd=parseInt(billDetail.parcelQty);
|
||||||
|
if(this.subBillEnd&&this.subBillEnd!=''){
|
||||||
|
subBillEnd = parseInt(this.subBillEnd)<=parseInt(billDetail.parcelQty)?parseInt(this.subBillEnd):parseInt(billDetail.parcelQty);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 循环子单范围
|
// 循环子单范围
|
||||||
for(let i=subBillStart;i<=subBillEnd;i++){
|
for(let i=subBillStart;i<=subBillEnd;i++){
|
||||||
let subBillCode = billCode+""+this.lpadZero(i,4);
|
let subBillCode = billCode+""+this.lpadZero(i,4);
|
||||||
@ -301,8 +313,8 @@
|
|||||||
newOrderList=[...orderList];
|
newOrderList=[...orderList];
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("tnprint===>",newOrderList);
|
// console.log("tnprint===>",newOrderList);
|
||||||
console.log("tnprint===>",that.selTplCode);
|
// console.log("tnprint===>",that.selTplCode);
|
||||||
|
|
||||||
that.tanexPrinter.batchPrint(that.selTplCode,that.selPrinterName,newOrderList,this.printManCode)
|
that.tanexPrinter.batchPrint(that.selTplCode,that.selPrinterName,newOrderList,this.printManCode)
|
||||||
},
|
},
|
||||||
@ -356,13 +368,23 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
printPreview(orderList,isA4,tplCode){
|
printPreview(orderList,isA4,tplCode,orderDetailList){
|
||||||
this.refreshKey();
|
this.refreshKey();
|
||||||
if(this.printerStatus !=1){
|
if(this.printerStatus !=1){
|
||||||
this.$modal.msgError("打印机未连接");
|
this.$modal.msgError("打印机未连接");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
this.orderDetailMap=new Map();
|
||||||
|
if(orderDetailList){
|
||||||
|
orderDetailList.map(v=>{
|
||||||
|
this.orderDetailMap[v.billCode]=v;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// console.log("====>orderDetailMap==>",this.orderDetailMap);
|
||||||
|
|
||||||
if(tplCode){
|
if(tplCode){
|
||||||
this.selTplCode=tplCode;
|
this.selTplCode=tplCode;
|
||||||
}
|
}
|
||||||
@ -377,6 +399,8 @@
|
|||||||
this.orderList=[...orderList]
|
this.orderList=[...orderList]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// 打印子单
|
// 打印子单
|
||||||
if(this.selTplCode=="TAN-GC-130"){
|
if(this.selTplCode=="TAN-GC-130"){
|
||||||
for(let i=0;i<this.orderList.length;i++){
|
for(let i=0;i<this.orderList.length;i++){
|
||||||
@ -386,10 +410,14 @@
|
|||||||
subBillStart=this.subBillStart;
|
subBillStart=this.subBillStart;
|
||||||
}
|
}
|
||||||
|
|
||||||
let subBillEnd=50;
|
let billDetail = this.orderDetailMap[billCode];
|
||||||
|
// console.log("====>billDetail==>",billDetail);
|
||||||
|
|
||||||
|
let subBillEnd=parseInt(billDetail.parcelQty);
|
||||||
if(this.subBillEnd){
|
if(this.subBillEnd){
|
||||||
subBillEnd = this.subBillEnd;
|
subBillEnd = parseInt(this.subBillEnd)<=parseInt(billDetail.parcelQty)?parseInt(this.subBillEnd):parseInt(billDetail.parcelQty);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 循环子单范围
|
// 循环子单范围
|
||||||
for(let i=subBillStart;i<=subBillEnd;i++){
|
for(let i=subBillStart;i<=subBillEnd;i++){
|
||||||
let subBillCode = billCode+""+this.lpadZero(i,4);
|
let subBillCode = billCode+""+this.lpadZero(i,4);
|
||||||
@ -439,13 +467,20 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
downPDF(orderList,isA4,tplCode){
|
downPDF(orderList,isA4,tplCode,orderDetailList){
|
||||||
|
|
||||||
if(this.printerStatus !=1){
|
if(this.printerStatus !=1){
|
||||||
this.$modal.msgError("打印机未连接");
|
this.$modal.msgError("打印机未连接");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.orderDetailMap=new Map();
|
||||||
|
if(orderDetailList){
|
||||||
|
orderDetailList.map(v=>{
|
||||||
|
this.orderDetailMap[v.billCode]=v;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if(tplCode){
|
if(tplCode){
|
||||||
this.selTplCode=tplCode;
|
this.selTplCode=tplCode;
|
||||||
}
|
}
|
||||||
@ -470,9 +505,12 @@
|
|||||||
subBillStart=this.subBillStart;
|
subBillStart=this.subBillStart;
|
||||||
}
|
}
|
||||||
|
|
||||||
let subBillEnd=50;
|
let billDetail = this.orderDetailMap[billCode];
|
||||||
|
// console.log("====>billDetail==>",billDetail);
|
||||||
|
|
||||||
|
let subBillEnd=parseInt(billDetail.parcelQty);
|
||||||
if(this.subBillEnd){
|
if(this.subBillEnd){
|
||||||
subBillEnd = this.subBillEnd;
|
subBillEnd = parseInt(this.subBillEnd)<=parseInt(billDetail.parcelQty)?parseInt(this.subBillEnd):parseInt(billDetail.parcelQty);
|
||||||
}
|
}
|
||||||
|
|
||||||
for(let i=subBillStart;i<=subBillEnd;i++){
|
for(let i=subBillStart;i<=subBillEnd;i++){
|
||||||
|
|||||||
@ -300,6 +300,8 @@
|
|||||||
:height="(slotProps.contentHeight)+'px'"
|
:height="(slotProps.contentHeight)+'px'"
|
||||||
|
|
||||||
ref="refTable"
|
ref="refTable"
|
||||||
|
|
||||||
|
row-key="id"
|
||||||
storageName="sendWaybillList_main_240702"
|
storageName="sendWaybillList_main_240702"
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
border
|
border
|
||||||
|
|||||||
@ -461,8 +461,8 @@ export default {
|
|||||||
orderList.push(item.billCode);
|
orderList.push(item.billCode);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// batchPrint(orderList,tplCode,orderDetailList)
|
||||||
this.$refs.tanexPrinter.batchPrint(orderList,null,false);
|
this.$refs.tanexPrinter.batchPrint(orderList,null,this.currentSelection);
|
||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
|
|
||||||
},
|
},
|
||||||
@ -471,14 +471,15 @@ export default {
|
|||||||
this.currentSelection.forEach(item=>{
|
this.currentSelection.forEach(item=>{
|
||||||
orderList.push(item.billCode);
|
orderList.push(item.billCode);
|
||||||
});
|
});
|
||||||
this.$refs.tanexPrinter.printPreview(orderList,false);
|
// printPreview(orderList,isA4,tplCode,orderDetailList)
|
||||||
|
this.$refs.tanexPrinter.printPreview(orderList,false,null,this.currentSelection);
|
||||||
},
|
},
|
||||||
handleDownPDF(){
|
handleDownPDF(){
|
||||||
let orderList=[];
|
let orderList=[];
|
||||||
this.currentSelection.forEach(item=>{
|
this.currentSelection.forEach(item=>{
|
||||||
orderList.push(item.billCode);
|
orderList.push(item.billCode);
|
||||||
});
|
});
|
||||||
this.$refs.tanexPrinter.downPDF(orderList,false);
|
this.$refs.tanexPrinter.downPDF(orderList,false,null,this.currentSelection);
|
||||||
},
|
},
|
||||||
/** 查询运单列表列表 */
|
/** 查询运单列表列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user