This commit is contained in:
linfso 2024-12-26 10:46:36 +08:00
parent 0a68428d57
commit 67dc3f208a

View File

@ -1201,12 +1201,18 @@ methods: {
}, },
handleTestPrintPreview(){ handleTestPrintPreview(){
this.printerStatus=1; this.printerStatus=1;
this.handlePrintPreview(); this.handlePrintPreview();
}, },
async handlePrintPreview(){ async handlePrintPreview(){
if(this.printerStatus == 1){ if(this.printerStatus == 1){
if(this.form.billCode){ if(this.form.billCode){
let printDataList=[] let printDataList=[]
@ -1295,11 +1301,16 @@ methods: {
// showCancelButton: false, // showCancelButton: false,
// showClose: false // showClose: false
// }).then(() => { // }).then(() => {
// }); // });
this.billCode=null;
this.form.billCode=null; if(this.action=='got'){
this.initData(); this.jumpToOrderList();
}
else{
this.billCode=null;
this.form.billCode=null;
this.initData();
}
}, },
onDestCountryChange(item){ onDestCountryChange(item){
if(item){ if(item){
@ -1564,7 +1575,7 @@ methods: {
}, },
jumpToOrderList(){ jumpToOrderList(){
this.$store.dispatch("tagsView/delView", this.$route); this.$store.dispatch("tagsView/delView", this.$route);
this.$router.replace({ path: '/d24/orderManagement/UserOrderList'}); this.$router.replace({ path: '/d24/waybillManagement/WaybillRecord',query:{action:'add'}});
}, },
// 取消按钮 // 取消按钮
cancel() { cancel() {