11/28 内部码打印优化

20240912_adapter
wangwei 4 months ago
parent f06f755998
commit dea900801e

@ -104,6 +104,15 @@ export function filterTemp(query) {
}); });
} }
export function getLabls(query) {
return axios(
{
url: "/udiwms/invInnerOrderPdfTemp/filter",
method: "get",
params: query
}
)
}
//---------打印订单 //---------打印订单

@ -149,9 +149,9 @@
<pagination <pagination
v-show="labltotal>0" v-show="labltotal>0"
:total="labltotal" :total="labltotal"
:limit.sync="refreshQuery.limit" :limit.sync="lablQuery.limit"
:page.sync="refreshQuery.page" :page.sync="lablQuery.page"
@pagination="handleLableChange" @pagination="getLablList"
></pagination> ></pagination>
</el-dialog> </el-dialog>
@ -170,7 +170,8 @@ import {
orderDetailPDFFromTemplateFile, orderDetailPDFFromTemplateFile,
stockQRCodeTextPDFFromTemplateFile, stockQRCodeTextPDFFromTemplateFile,
stockQRCodeTextPDFFromTemplateFileMax, stockQRCodeTextPDFFromTemplateFileMax,
stockQRCodeTextPDFFromTemplateStatementFile stockQRCodeTextPDFFromTemplateStatementFile,
getLabls
} from "@/api/itextpdf/itextpdf"; } from "@/api/itextpdf/itextpdf";
import {generateInCodeQRCodeText, generateInnerQRCodeText} from "@/api/inout/innerOrderQRCode"; import {generateInCodeQRCodeText, generateInnerQRCodeText} from "@/api/inout/innerOrderQRCode";
@ -217,6 +218,12 @@ export default {
printCodeIdFk: null, printCodeIdFk: null,
stockOrderFk: null, stockOrderFk: null,
}, },
lablQuery:{
page: 1,
limit: 10,
printCodeIdFk: null,
stockOrderFk: null,
},
filterUDIType: false, filterUDIType: false,
statusMap: { statusMap: {
0: "未打印", 0: "未打印",
@ -247,7 +254,7 @@ export default {
window.open(this.pdffileUrl + row.fileName, '_blank'); window.open(this.pdffileUrl + row.fileName, '_blank');
}, },
refeshLabel() { refeshLabel() {
filterTemp(this.refreshQuery).then((response) => { getLabls(this.lablQuery).then((response) => {
if (response.code == 20000) { if (response.code == 20000) {
this.lableFileLsit = response.data.list; this.lableFileLsit = response.data.list;
this.labelPrintVisible = true; this.labelPrintVisible = true;
@ -261,6 +268,14 @@ export default {
this.query.page = val.page; this.query.page = val.page;
this.getStockQRCodeTextList(); this.getStockQRCodeTextList();
}, },
getLablList(){
getLabls(this.lablQuery).then(res => {
if (res.code == 20000){
this.lableFileLsit = res.data.list
this.labltotal = res.data.total || 0;
}
})
},
getStockQRCodeTextList() { getStockQRCodeTextList() {
this.loading = true; this.loading = true;
filterPrint(this.query) // filterPrint(this.query) //
@ -330,11 +345,15 @@ export default {
}; };
if (row == null) { if (row == null) {
tQuery.orderId = this.formData.billNo; tQuery.orderId = this.formData.billNo;
this.lablQuery.stockOrderFk = this.formData.billNo
this.lablQuery.printCodeIdFk = null
} else { } else {
if (row.reCount <= 0) { if (row.reCount <= 0) {
return this.$message.error('数量错误'); return this.$message.error('数量错误');
} }
tQuery.queryId = row.id; tQuery.queryId = row.id;
this.lablQuery.printCodeIdFk =row.id
this.lablQuery.stockOrderFk = null
} }
this.printStockOrderDetailPDFLoading = true; this.printStockOrderDetailPDFLoading = true;
@ -377,6 +396,7 @@ export default {
printCodeIdFk: tQuery.queryId, printCodeIdFk: tQuery.queryId,
stockOrderFk: tQuery.orderId, stockOrderFk: tQuery.orderId,
} }
this.lablQuery.page = 1
this.printStockOrderDetailPDFLoading = false; this.printStockOrderDetailPDFLoading = false;
this.$message.warning("打印文件正在生成中,请点击刷新按钮查看进度,请勿关闭按钮重复打印!"); this.$message.warning("打印文件正在生成中,请点击刷新按钮查看进度,请勿关闭按钮重复打印!");
} }

Loading…
Cancel
Save