This commit is contained in:
wuteng 2025-07-17 17:21:14 +08:00
parent e87b5e7672
commit 668c9b0bc1

View File

@ -162,7 +162,9 @@
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<TanexPrinterPanel ref="tanexPrinter" :isShowPinters="true" :isShowTpl="true" :isShowSubBillRange="true" @onPrint="handleBatchPrint"></TanexPrinterPanel> </el-col> <TanexPrinterPanel ref="tanexPrinter" :isShowPinters="true" :isShowTpl="true" :isShowSubBillRange="true" @onPrint="handleBatchPrint"></TanexPrinterPanel>
</el-col>
</el-row> </el-row>
</div> </div>
<el-table-column label="序号" align="center" min-width="60"> <el-table-column label="序号" align="center" min-width="60">
@ -291,13 +293,11 @@ import ProblemTypePicker from '@/views/emis/EmisBaseTools/ProblemTypePicker.vue'
import TanexPrinterPanel from '@/views/emis/EmisBaseTools/TanexPrinterPanel.vue'; import TanexPrinterPanel from '@/views/emis/EmisBaseTools/TanexPrinterPanel.vue';
import { formatSearchStr,deepClone } from '@/utils/index' import { formatSearchStr,deepClone } from '@/utils/index'
import {timeDiffTime,timeFormat} from '@/utils/dateUtils' import {timeDiffTime,timeFormat} from '@/utils/dateUtils'
import TanexPrinterBatchPanel from "../EmisBaseTools/TanexPrinterBatchPanel.vue";
export default { export default {
name: "WaybillIsPrinted", name: "WaybillIsPrinted",
components: { components: {
TanexPrinterPanel, TanexPrinterPanel,
TanexPrinterBatchPanel,
elDateAdvPicker, elDateAdvPicker,
emisWaybillForm, emisWaybillForm,
CountryPicker1, CountryPicker1,
@ -577,9 +577,11 @@ export default {
// batchPrint(orderList,tplCode,orderDetailList) // batchPrint(orderList,tplCode,orderDetailList)
if(printCnt){ if(printCnt){
console.log("====printCnt==>",printCnt)
for(let i=0; i<printCnt; i++){ for(let i=0; i<printCnt; i++){
this.$refs.tanexPrinter.batchPrint(orderList,null,this.currentSelection); this.$refs.tanexPrinter.batchPrint(orderList,null,this.currentSelection);
} }
}else{ }else{
this.$refs.tanexPrinter.batchPrint(orderList,null,this.currentSelection); this.$refs.tanexPrinter.batchPrint(orderList,null,this.currentSelection);
} }