Commit b51eec5f by qinjianhui

fix: 【DTF生产】:DTF生产上线之后的bug #1001866

parent c9be6378
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
[{"head_setting":{"gridShow":1,"gridValue":0,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.36","print_setting":{"printer":"","xy":"","byInk":2,"byInkVolume":1,"byDoublePrint":3,"bEcoMode":false,"bMaterialBlack":false,"byHighlight":5,"printNum":1,"bFastMode":false,"bUniPrint":false,"bDivide":false,"bPause":false,"byMask":3,"bTransColor":false,"byChoke":2,"minWhiteInkType":0,"bySaturation":5,"byBrightness":5,"byContrast":5,"iCyanBalance":0,"iMagentaBalance":0,"iBlackBalance":0,"iYellowBalance":0,"byMinWhite":1,"bMultiple":false},"production_no":"OP260622125","print_time":"2026-06-25 14:19:20","position_after_px":{"x":"1.1","rate":1.1252265612127204,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"20.1","h":"22.6","r":0},"position_before_px":{"url":"C:\\work\\electron-printer\\print\\Input\\ab20439f-b5c3-479a-b061-08a5ea1d007e.png","fileName":"ab20439f-b5c3-479a-b061-08a5ea1d007e.png","rate":1.1252265612127204,"w":606.9,"zIndex":0,"x":32.55000000000001,"y":0,"h":682.9,"r":0},"send_api_data":{"printer":"","xy":"","byInk":2,"byInkVolume":1,"byDoublePrint":3,"bEcoMode":false,"bMaterialBlack":false,"byHighlight":5,"printNum":1,"bFastMode":false,"bUniPrint":false,"bDivide":false,"bPause":false,"byMask":3,"bTransColor":false,"byChoke":2,"minWhiteInkType":0,"bySaturation":5,"byBrightness":5,"byContrast":5,"iCyanBalance":0,"iMagentaBalance":0,"iBlackBalance":0,"iYellowBalance":0,"byMinWhite":1,"bMultiple":false,"byPlatenSize":1,"cmd":"GTXproCMD.exe print -X \"Profile\\ab20439f-b5c3-479a-b061-08a5ea1d007e.xml\" -I \"Input\\ab20439f-b5c3-479a-b061-08a5ea1d007e.png\" -A \"Output\\ab20439f-b5c3-479a-b061-08a5ea1d007e.arxp\" -S 36504107 -L 02020006 -D 0 -W 1","fileName":"ab20439f-b5c3-479a-b061-08a5ea1d007e.png","print_cmd":"GTXproCMD.exe send -A \"Output\\ab20439f-b5c3-479a-b061-08a5ea1d007e.arxp\" -P \"导出为WPS PDF"}}]
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -85,12 +85,16 @@ export default { ...@@ -85,12 +85,16 @@ export default {
return ""; return "";
}, },
goBack() { goBack() {
this.$router.push({ name: "design-dtf" }); this.$router.push({
name: "design-dtf",
query: { page: this.$route.query.fromPage }
});
}, },
async downLoadFn() { async downLoadFn() {
if (!this.podOrderProductIds.length) { if (!this.podOrderProductIds.length) {
return this.$message.warning("请选择操作单"); return this.$message.warning("请选择操作单");
} }
console.log(1111)
try { try {
let res = await this.$api.post( let res = await this.$api.post(
pathMap["downloadBySubOrderNumber"]["OP"], pathMap["downloadBySubOrderNumber"]["OP"],
......
...@@ -88,6 +88,7 @@ export default { ...@@ -88,6 +88,7 @@ export default {
}, },
async getCardList(value) { async getCardList(value) {
this.selection = []; this.selection = [];
this.podOrderProductIds = [];
let params = { let params = {
currentPage: this.pageInfo.currentPage, currentPage: this.pageInfo.currentPage,
pageSize: this.pageInfo.pageSize, pageSize: this.pageInfo.pageSize,
...@@ -113,12 +114,12 @@ export default { ...@@ -113,12 +114,12 @@ export default {
}, },
handleSizeChange(size) { handleSizeChange(size) {
this.pageInfo.pageSize = size; this.pageInfo.pageSize = size;
this.pageInfo.pageNum = 1; this.pageInfo.currentPage = 1;
this.loadData(); this.getCardList();
}, },
handleCurrentChange(page) { handleCurrentChange(page) {
this.pageInfo.pageNum = page; this.pageInfo.currentPage = page;
this.loadData(); this.getCardList();
}, },
copyText(text) { copyText(text) {
const { clipboard } = window.require("electron").remote; const { clipboard } = window.require("electron").remote;
......
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
pageInfo: { pageInfo: {
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 50,
total: 2 total: 2
}, },
tableList: [], tableList: [],
...@@ -121,6 +121,10 @@ export default { ...@@ -121,6 +121,10 @@ export default {
}; };
}, },
async mounted() { async mounted() {
const savedPage = Number(this.$route.query.page);
if (savedPage > 0) {
this.pageInfo.currentPage = savedPage;
}
this.loadLocalConfig(); this.loadLocalConfig();
this.fetchBatchList(); this.fetchBatchList();
this.removeStatusListener = onDownloadStatusChange(status => { this.removeStatusListener = onDownloadStatusChange(status => {
...@@ -304,7 +308,8 @@ export default { ...@@ -304,7 +308,8 @@ export default {
name: "dtf-batch-detail", name: "dtf-batch-detail",
params: { params: {
...value ...value
} },
query: { fromPage: this.pageInfo.currentPage }
}); });
}, },
downloadFile: debounce( downloadFile: debounce(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment