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

Loading…
Cancel
Save