Commit 71d60c1a by linjinhong

feat:添加600SC驱动兼容

parent 8163590c
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.32","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":"CNPSC260326022","print_time":"2026-05-29 17:38:03","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"-1.1","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print600SC\\Input\\bc7cc9c6-6001-444b-b301-a9fedb96286a.png","fileName":"bc7cc9c6-6001-444b-b301-a9fedb96286a.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":-33.55000000000001,"y":0,"h":831.7,"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":"GTX6SPCMD.exe print -X \"Profile\\bc7cc9c6-6001-444b-b301-a9fedb96286a.xml\" -I \"Input\\bc7cc9c6-6001-444b-b301-a9fedb96286a.png\" -A \"Output\\bc7cc9c6-6001-444b-b301-a9fedb96286a.arxp\" -S 44445003 -L \"-0196,0006\" -D 0 -W 1","fileName":"bc7cc9c6-6001-444b-b301-a9fedb96286a.png","print_cmd":"GTX6SPCMD.exe send -A \"Output\\bc7cc9c6-6001-444b-b301-a9fedb96286a.arxp\" -P \"Brother GTX-6 Extra Colors ORGR FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":0,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:34:40","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"-1.1","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print600SC\\Input\\5144bcc2-5be4-4ef4-bb2d-cfe822f0db3f.png","fileName":"5144bcc2-5be4-4ef4-bb2d-cfe822f0db3f.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":-33.55000000000001,"y":0,"h":831.7,"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\\5144bcc2-5be4-4ef4-bb2d-cfe822f0db3f.xml\" -I \"Input\\5144bcc2-5be4-4ef4-bb2d-cfe822f0db3f.png\" -A \"Output\\5144bcc2-5be4-4ef4-bb2d-cfe822f0db3f.arxp\" -S 44445003 -L \"-0196,0006\" -D 0 -W 1","fileName":"5144bcc2-5be4-4ef4-bb2d-cfe822f0db3f.png","print_cmd":"GTXproCMD.exe send -A \"Output\\5144bcc2-5be4-4ef4-bb2d-cfe822f0db3f.arxp\" -P \"Brother GTX-6 Extra Colors ORGR FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":0,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:31:56","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"-1.1","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print4.0\\Input\\7184719b-c107-49a3-843e-9f1e07c05ac2.png","fileName":"7184719b-c107-49a3-843e-9f1e07c05ac2.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":-33.55000000000001,"y":0,"h":831.7,"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\\7184719b-c107-49a3-843e-9f1e07c05ac2.xml\" -I \"Input\\7184719b-c107-49a3-843e-9f1e07c05ac2.png\" -A \"Output\\7184719b-c107-49a3-843e-9f1e07c05ac2.arxp\" -S 44445003 -L \"-0196,0006\" -D 0 -W 1","fileName":"7184719b-c107-49a3-843e-9f1e07c05ac2.png","print_cmd":"GTXproCMD.exe send -A \"Output\\7184719b-c107-49a3-843e-9f1e07c05ac2.arxp\" -P \"Brother GTX-6 Extra Colors ORGR FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":6,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:31:38","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"4.5","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print4.0\\Input\\71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.png","fileName":"71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":134.45,"y":0,"h":831.7,"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":5,"cmd":"GTXproCMD.exe print -X \"Profile\\71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.xml\" -I \"Input\\71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.png\" -A \"Output\\71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.arxp\" -S 51845837 -L 09500007 -D 0 -W 1","fileName":"71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.png","print_cmd":"GTXproCMD.exe send -A \"Output\\71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.arxp\" -P \"Brother GTX-6 Extra Colors ORGR FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":6,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:28:16","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"4.5","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print4.0\\Input\\71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.png","fileName":"71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":134.45,"y":0,"h":831.7,"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":5,"cmd":"GTXproCMD.exe print -X \"Profile\\71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.xml\" -I \"Input\\71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.png\" -A \"Output\\71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.arxp\" -S 51845837 -L 09500007 -D 0 -W 1","fileName":"71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.png","print_cmd":"GTXproCMD.exe send -A \"Output\\71feb06e-22aa-4b5e-8d9d-34a70a34e9fb.arxp\" -P \"Brother GTX-6 Extra Colors ORGR FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":1,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:27:28","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"-1.1","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print4.0\\Input\\5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.png","fileName":"5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":-33.55000000000001,"y":0,"h":831.7,"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":0,"cmd":"GTXproCMD.exe print -X \"Profile\\5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.xml\" -I \"Input\\5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.png\" -A \"Output\\5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.arxp\" -S 44445003 -L \"-0196,0006\" -D 0 -W 1","fileName":"5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.png","print_cmd":"GTXproCMD.exe send -A \"Output\\5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.arxp\" -P \"Brother GTX-6 Extra Colors ORGR FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":0,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:26:51","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"-1.1","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print4.0\\Input\\5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.png","fileName":"5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":-33.55000000000001,"y":0,"h":831.7,"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\\5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.xml\" -I \"Input\\5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.png\" -A \"Output\\5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.arxp\" -S 44445003 -L \"-0196,0006\" -D 0 -W 1","fileName":"5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.png","print_cmd":"GTXproCMD.exe send -A \"Output\\5c3c63fe-06bb-4b88-a8c9-f2a78d3c63ef.arxp\" -P \"Brother GTX-6 Extra Colors ORGR FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":0,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:03:19","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"-1.1","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print4.0\\Input\\529b3b1d-b216-4613-b9bc-42676ed0ef94.png","fileName":"529b3b1d-b216-4613-b9bc-42676ed0ef94.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":-33.55000000000001,"y":0,"h":831.7,"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\\529b3b1d-b216-4613-b9bc-42676ed0ef94.xml\" -I \"Input\\529b3b1d-b216-4613-b9bc-42676ed0ef94.png\" -A \"Output\\529b3b1d-b216-4613-b9bc-42676ed0ef94.arxp\" -S 44445003 -L \"-0196,0006\" -D 0 -W 1","fileName":"529b3b1d-b216-4613-b9bc-42676ed0ef94.png","print_cmd":"GTXproCMD.exe send -A \"Output\\529b3b1d-b216-4613-b9bc-42676ed0ef94.arxp\" -P \"Brother GTX pro FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":0,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:03:07","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"-1.1","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print4.0\\Input\\529b3b1d-b216-4613-b9bc-42676ed0ef94.png","fileName":"529b3b1d-b216-4613-b9bc-42676ed0ef94.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":-33.55000000000001,"y":0,"h":831.7,"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\\529b3b1d-b216-4613-b9bc-42676ed0ef94.xml\" -I \"Input\\529b3b1d-b216-4613-b9bc-42676ed0ef94.png\" -A \"Output\\529b3b1d-b216-4613-b9bc-42676ed0ef94.arxp\" -S 44445003 -L \"-0196,0006\" -D 0 -W 1","fileName":"529b3b1d-b216-4613-b9bc-42676ed0ef94.png","print_cmd":"GTXproCMD.exe send -A \"Output\\529b3b1d-b216-4613-b9bc-42676ed0ef94.arxp\" -P \"Brother GTX-6 FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":0,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:02:39","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"-1.1","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print600\\Input\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.png","fileName":"36e7ffc8-7419-4647-8e34-2aeb39bcc768.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":-33.55000000000001,"y":0,"h":831.7,"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":"GTX6CMD.exe print -X \"Profile\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.xml\" -I \"Input\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.png\" -A \"Output\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.arxp\" -S 44445003 -L \"-0196,0006\" -D 0 -W 1","fileName":"36e7ffc8-7419-4647-8e34-2aeb39bcc768.png","print_cmd":"GTX6CMD.exe send -A \"Output\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.arxp\" -P \"Brother GTX pro FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":0,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:02:14","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"-1.1","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print600\\Input\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.png","fileName":"36e7ffc8-7419-4647-8e34-2aeb39bcc768.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":-33.55000000000001,"y":0,"h":831.7,"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":"GTX6CMD.exe print -X \"Profile\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.xml\" -I \"Input\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.png\" -A \"Output\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.arxp\" -S 44445003 -L \"-0196,0006\" -D 0 -W 1","fileName":"36e7ffc8-7419-4647-8e34-2aeb39bcc768.png","print_cmd":"GTX6CMD.exe send -A \"Output\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.arxp\" -P \"Brother GTX-6 FileOutput"}},{"head_setting":{"gridShow":1,"gridValue":0,"unit":"inch","language":"cn","autoPrint":false,"gridSpacing":1},"version":"1.0.32","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":"CNPSC260326022","print_time":"2026-05-29 17:02:03","position_unit":{"x":336.4,"rate":1.1260340632603407,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":484.3,"w":672.8,"h":757.3,"r":0},"position_after_px":{"x":"-1.1","rate":1.1252875118387229,"sx":0,"zIndex":0,"sh":0,"sw":0,"sy":0,"y":"0.0","w":"24.5","h":"27.6","r":0},"position_before_px":{"url":"D:\\work\\electron-printer\\print600\\Input\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.png","fileName":"36e7ffc8-7419-4647-8e34-2aeb39bcc768.png","rate":1.1252875118387229,"w":739.1,"zIndex":0,"x":-33.55000000000001,"y":0,"h":831.7,"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":"GTX6CMD.exe print -X \"Profile\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.xml\" -I \"Input\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.png\" -A \"Output\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.arxp\" -S 44445003 -L \"-0196,0006\" -D 0 -W 1","fileName":"36e7ffc8-7419-4647-8e34-2aeb39bcc768.png","print_cmd":"GTX6CMD.exe send -A \"Output\\36e7ffc8-7419-4647-8e34-2aeb39bcc768.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.
......@@ -2,7 +2,7 @@
"name": "JomallProductionAssistant",
"productName": "JomallProductionAssistant",
"description": "",
"version": "1.0.32",
"version": "1.0.33",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
......
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>5</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
GTX6SPCMD.exe print -X "Profile\CO12.xml" -I "Input\sample.png" -A "Output\pO12.arxp" -S 01000200 -L 02540254
echo %errorlevel%
\ No newline at end of file
GTX6SPCMD.exe print -X "Profile\CO12.xml" -I "Input\sample.png" -A "Output\pO12.arxp" -S 01000200 -L 02540254
echo %errorlevel%
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>1</byPlatenSize>
<bMultiple>1</bMultiple>
<byResolution>1</byResolution>
<byInk>1</byInk>
<byInkVolume>1</byInkVolume>
<byDoublePrint>1</byDoublePrint>
<bySaturation>1</bySaturation>
<byBrightness>1</byBrightness>
<byContrast>1</byContrast>
<iCyanBalance>1</iCyanBalance>
<iMagentaBalance>1</iMagentaBalance>
<iYellowBalance>1</iYellowBalance>
<iBlackBalance>1</iBlackBalance>
<bUniPrint>1</bUniPrint>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>1</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>1</byPlatenSize>
<byHighlight>1</byHighlight>
<byMask>1</byMask>
<bDivide>1</bDivide>
<bTransColor>1</bTransColor>
<bySaturation>1</bySaturation>
<byBrightness>1</byBrightness>
<byContrast>1</byContrast>
<bUniPrint>1</bUniPrint>
<byResolution>1</byResolution>
<byInk>1</byInk>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>1</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>1</byPlatenSize>
<bEcoMode>1</bEcoMode>
<byInk>1</byInk>
<bMaterialBlack>1</bMaterialBlack>
<bMultiple>1</bMultiple>
<byHighlight>1</byHighlight>
<byMask>1</byMask>
<bFastMode>1</bFastMode>
<bDivide>1</bDivide>
<bPause>1</bPause>
<bTransColor>1</bTransColor>
<byChoke>1</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>1</bySaturation>
<byBrightness>1</byBrightness>
<byContrast>1</byContrast>
<iCyanBalance>1</iCyanBalance>
<bUniPrint>1</bUniPrint>
<iMagentaBalance>1</iMagentaBalance>
<iYellowBalance>1</iYellowBalance>
<iBlackBalance>1</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>0</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>1</byPlatenSize>
<byResolution>1</byResolution>
<byInk>1</byInk>
<bMultiple>1</bMultiple>
<byInkVolume>1</byInkVolume>
<byDoublePrint>1</byDoublePrint>
<bySaturation>1</bySaturation>
<byBrightness>1</byBrightness>
<byContrast>1</byContrast>
<iBlackBalance>1</iBlackBalance>
<bUniPrint>1</bUniPrint>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>1</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>4</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>1</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>1</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>4</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>1</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>4</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<GTOPTION xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<szFileName />
<uiCopies>1</uiCopies>
<byPlatenSize>4</byPlatenSize>
<bEcoMode>false</bEcoMode>
<byInk>2</byInk>
<bMaterialBlack>false</bMaterialBlack>
<bMultiple>false</bMultiple>
<byHighlight>5</byHighlight>
<byMask>3</byMask>
<bFastMode>false</bFastMode>
<bDivide>false</bDivide>
<bPause>false</bPause>
<bTransColor>false</bTransColor>
<byChoke>2</byChoke>
<byMinWhite>1</byMinWhite>
<bySaturation>5</bySaturation>
<byBrightness>5</byBrightness>
<byContrast>5</byContrast>
<iCyanBalance>0</iCyanBalance>
<bUniPrint>false</bUniPrint>
<iMagentaBalance>0</iMagentaBalance>
<iYellowBalance>0</iYellowBalance>
<iBlackBalance>0</iBlackBalance>
<byResolution>1</byResolution>
</GTOPTION>
\ No newline at end of file
GTX6SPCMD.exe print -X "Profile\CO12.xml" -I "Input\sample.png" -A "Output\pO12.arxp" -S 01000200 -L 02540254
echo %errorlevel%
\ No newline at end of file
GTX6SPCMD.exe send -A "D:\sample\Output\pO12.arxp" -P "Brother GTX pro" -D 1
echo %errorlevel%
\ No newline at end of file
......@@ -7,7 +7,7 @@ const defaultSetting = {
language: "cn",
gridValue: 0,
autoPrint: false,
gridSpacing: "10mm",
gridSpacing: "10mm"
};
export default new Vuex.Store({
state: {
......@@ -17,8 +17,8 @@ export default new Vuex.Store({
productDetail: {},
windowWH: { width: 0, height: 0 },
desktopDevice: 1, //1是兄弟,2是其他
desktoVersion: getVersion() || "print", //print2.0是2.0,print4.0是4.0 print600是600
orderType: "GC", //GC是POD,CN是PODCN US是PODUS
desktoVersion: getVersion() || "print", //print2.0是2.0,print4.0是4.0 print600是600 print600SC是600SC
orderType: "GC", //GC是POD,CN是PODCN US是PODUS OP是操作单
WHproportion: 1, //宽高比例
defaultProportion: 1,
isPreView: false,
......@@ -30,7 +30,7 @@ export default new Vuex.Store({
unit: "mm",
language: "cn",
autoPrint: false,
gridSpacing: 10,
gridSpacing: 10
},
defaultGrid: [
{
......@@ -39,7 +39,7 @@ export default new Vuex.Store({
row: 16,
col: 18,
h: 0,
w: 0,
w: 0
},
{
label: "16×21",
......@@ -47,7 +47,7 @@ export default new Vuex.Store({
row: 16,
col: 21,
h: 0,
w: 0,
w: 0
},
{
label: "7×8",
......@@ -55,7 +55,7 @@ export default new Vuex.Store({
row: 7,
col: 8,
h: 0,
w: 0,
w: 0
},
{
label: "10×12",
......@@ -63,7 +63,7 @@ export default new Vuex.Store({
value: 3,
col: 12,
h: 0,
w: 0,
w: 0
},
{
label: "14×16",
......@@ -71,7 +71,7 @@ export default new Vuex.Store({
value: 2,
col: 16,
h: 0,
w: 0,
w: 0
},
{
label: "40×50",
......@@ -80,10 +80,10 @@ export default new Vuex.Store({
col: 50,
h: 0,
w: 0,
disabled: true,
},
disabled: true
}
],
grid: [],
grid: []
},
mutations: {
setDefaultSetting(state) {
......@@ -127,15 +127,8 @@ export default new Vuex.Store({
return (state.grid = [arr]);
}
let proportion = state.WHproportion;
console.log(130, proportion);
state.grid.forEach((el) => {
state.grid.forEach(el => {
if (el.value == 0) {
// if (state.defaultProportion == 1.5) {
// proportion = 1.4;
// } else if (state.defaultProportion == 1.7) {
// proportion = 1.4;
// }
el.h = 630 * proportion;
el.w = 480 * proportion;
} else if (el.value == 1) {
......@@ -179,7 +172,7 @@ export default new Vuex.Store({
row: 18,
col: 22,
h: 0,
w: 0,
w: 0
},
{
label: "24×24",
......@@ -187,13 +180,64 @@ export default new Vuex.Store({
row: 24,
col: 24,
h: 0,
w: 0,
w: 0
}
];
} else if (state.desktoVersion == "print600SC") {
state.grid = [
{
label: "16×18",
value: 1,
row: 16,
col: 18,
h: 0,
w: 0
},
{
label: "14×16",
row: 14,
value: 2,
col: 16,
h: 0,
w: 0
},
{
label: "7×8",
value: 4,
row: 7,
col: 8,
h: 0,
w: 0
},
{
label: "10×12",
row: 10,
value: 3,
col: 12,
h: 0,
w: 0
},
{
label: "24×24",
value: 5,
row: 24,
col: 24,
h: 0,
w: 0
},
{
label: "18×22",
value: 6,
row: 18,
col: 22,
h: 0,
w: 0
}
];
} else {
state.grid = [...state.defaultGrid];
}
},
}
},
getters: {
systemSetting(state) {
......@@ -202,9 +246,9 @@ export default new Vuex.Store({
getActionList(state) {
return state.actionList;
},
getActionIndex: (state) => state.actionIndex,
imgList: (state) => state.imgList,
getActionIndex: state => state.actionIndex,
imgList: state => state.imgList
},
actions: {},
modules: {},
modules: {}
});
......@@ -15,6 +15,7 @@ const uuid = require("uuid");
import { mapState } from "vuex";
const {
getVersion,
setVersion,
getHostApi,
setDesktopDevice,
getDesktopDevice,
......@@ -26,7 +27,7 @@ const {
setOrderInfo,
getLocation,
setNowDate,
getNowDate,
getNowDate
} = require("@/server/utils/store");
export default {
......@@ -35,11 +36,11 @@ export default {
user: {
default: () => ({
avatar: "",
factory: {},
factory: {}
}),
type: Object,
type: Object
},
factoryType: { type: String, default: "CN" },
factoryType: { type: String, default: "CN" }
},
data() {
return {
......@@ -51,20 +52,20 @@ export default {
cacheList: [
{
label: "清除当前登录信息",
value: "token",
value: "token"
},
{
label: "登录记录",
value: "userList",
value: "userList"
},
{
label: "打印预设",
value: "print-setting",
value: "print-setting"
},
{
label: "系统设置",
value: "setting",
},
value: "setting"
}
],
selectGridIndex: 0,
pkg,
......@@ -81,7 +82,7 @@ export default {
unit: "inch",
language: "cn",
autoPrint: false,
gridSpacing: 1,
gridSpacing: 1
},
detail: null,
config: getHostApi(),
......@@ -102,11 +103,11 @@ export default {
"hsva(120, 40, 94, 0.5)",
"hsl(181, 100%, 37%)",
"hsla(209, 100%, 56%, 0.73)",
"#c7158577",
"#c7158577"
],
faceType: "A",
dialogVisible: false,
showforcedProduc: false,
showforcedProduc: false
};
},
computed: {
......@@ -119,8 +120,8 @@ export default {
"countryList",
"orderType",
"grid",
"imgList",
]),
"imgList"
])
},
mounted() {
// console.log(pkg, "pkg");
......@@ -151,14 +152,14 @@ export default {
bus.$emit("busEmit", { type: "updateSystemSetting" });
},
deep: true,
deep: true
},
config: {
handler(val) {
this.newApiApiHost = this.getDomainFromUrl(val.apiApiHost);
},
immediate: true,
deep: true,
deep: true
},
desktopDevice() {
this.checked = false;
......@@ -168,7 +169,7 @@ export default {
handler(value) {
if (this.detail && value?.length && this.desktopDevice === 3) {
const item = this.detail?.saveImgList?.find(
(el) => el.fileName == value[0].fileName,
el => el.fileName == value[0].fileName
);
if (item) {
item.power = true;
......@@ -176,11 +177,11 @@ export default {
//复制图片到当前文件夹下
copySingleImage(
item.productionFile,
getLocation("downloadLocation1"),
getLocation("downloadLocation1")
);
copySingleImage(
item.productionFile,
getLocation("downloadLocation2"),
getLocation("downloadLocation2")
);
} catch (error) {
this.$message.error("发送失败");
......@@ -193,13 +194,13 @@ export default {
console.log("updateOrderInfoItemitem", item);
console.log("本地数据updateOrderInfoItem:", getOrderInfoMap());
}
},
}
// deep: true,
},
}
},
methods: {
checkUpdate() {
this.$refs.updateDialog.checkUpdate().then((data) => {
this.$refs.updateDialog.checkUpdate().then(data => {
if (data) {
// 有新版本更新
this.$refs.updateDialog.open(data, 2);
......@@ -214,7 +215,7 @@ export default {
this.$confirm("是否退出登录?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
type: "warning"
})
.then(() => {
this.$dataStore.delete("user");
......@@ -233,7 +234,7 @@ export default {
if (!data) return this.$message.warning("请扫描生产单号/操作单号");
let params = {
id: data.id,
orderType: this.orderType,
orderType: this.orderType
};
if (this.orderType === "CN") {
params.podJomallOrderCnId = data.podJomallOrderCnId;
......@@ -245,7 +246,7 @@ export default {
//如果为惠立彩则判断当前saveImgList字段中的power是否全是true 是则生产完成
const canCallApi =
this.desktopDevice != 3 ||
(data.saveImgList?.every((el) => el.power) ?? false);
(data.saveImgList?.every(el => el.power) ?? false);
if (canCallApi) {
console.log("生产完成");
......@@ -258,7 +259,7 @@ export default {
//生产完成后在本地删除
await this.$api.post(
pathMap["completeDelivery"][this.orderType],
params,
params
);
this.$message.success("操作成功");
}
......@@ -270,7 +271,7 @@ export default {
this.$confirm(`确定生产完成?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
type: "warning"
}).then(async () => {
await this.setData(this.detail);
});
......@@ -282,15 +283,15 @@ export default {
this.$confirm("是否确定清除?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
type: "warning"
})
.then(() => {
for (let k of this.checkList) {
if (k === "print-setting" || k === "deviceId") {
let list = Object.keys(this.$dataStore.store).filter((el) =>
el.includes(k),
let list = Object.keys(this.$dataStore.store).filter(el =>
el.includes(k)
);
list.forEach((el) => {
list.forEach(el => {
this.$dataStore.delete(el);
});
} else if (k === "token") {
......@@ -311,9 +312,9 @@ export default {
try {
axios
.get(item?.src, {
responseType: "blob",
responseType: "blob"
})
.then((res) => {
.then(res => {
var url = URL.createObjectURL(res.data);
let img = new Image();
img.crossorigin = "";
......@@ -334,7 +335,7 @@ export default {
resolve();
};
})
.catch((e) => {
.catch(e => {
console.log(e);
reject(e);
});
......@@ -362,7 +363,7 @@ export default {
const { canvasWidth, canvasHeight, list: drawItems } = canvasConfig;
if (!canvasWidth || !canvasHeight || !Array.isArray(drawItems)) {
throw new Error(
"canvas配置项必须包含canvasWidth/canvasHeight/list(数组)属性",
"canvas配置项必须包含canvasWidth/canvasHeight/list(数组)属性"
);
}
......@@ -373,8 +374,8 @@ export default {
canvas.height = canvasHeight;
// 批量执行绘制方法,收集异步绘制Promise(语义化变量名,替代原模糊的list)
const drawPromises = drawItems.map((drawItem) =>
this.drawImage(canvas, drawItem),
const drawPromises = drawItems.map(drawItem =>
this.drawImage(canvas, drawItem)
);
// 等待当前canvas的所有绘制操作完成
await Promise.all(drawPromises);
......@@ -415,7 +416,7 @@ export default {
async hasDesignImagesCanvasJsonList(
designImagesCanvasJsonList,
bool,
isForcedProduction,
isForcedProduction
) {
let imageResList = [];
......@@ -498,13 +499,13 @@ export default {
device: this.desktopDevice,
orderType: this.orderType,
forceProduction:
this.isForcedProduction || isForcedProduction || false,
},
this.isForcedProduction || isForcedProduction || false
}
);
console.log("downloadBySubOrderNumber", res);
if (!res.data.length) return this.$message.warning("未找到素材图!");
res.data.forEach((el) => {
res.data.forEach(el => {
imageResList = imageResList.concat(el.list || []);
});
} catch (error) {
......@@ -517,7 +518,7 @@ export default {
if (this.checked) {
imageResList = await this.cutImgFn(imageResList);
imageResList.forEach((el) => {
imageResList.forEach(el => {
el.isCut = true;
});
}
......@@ -540,7 +541,7 @@ export default {
let obj = {
type: "sendFile",
value: [...newImgList],
productMark: this.detail.productMark,
productMark: this.detail.productMark
};
if (
......@@ -550,12 +551,12 @@ export default {
) {
obj.size = {
width: this.detail.mssWidth,
height: this.detail.mssHeight,
height: this.detail.mssHeight
};
}
//设置储存图片的字段,并添加power标识
if (!this.detail["saveImgList"]?.length) {
this.detail["saveImgList"] = [...newImgList].map((el) => {
this.detail["saveImgList"] = [...newImgList].map(el => {
el.power = false;
return { ...el };
});
......@@ -591,11 +592,11 @@ export default {
if (this.detail && !this.isAutoFinish && this.desktopDevice == 3) {
//惠立彩判断是否全部图片都已经打印完成
const canCallApi =
this.detail.saveImgList?.every((el) => el.power) ?? false;
this.detail.saveImgList?.every(el => el.power) ?? false;
if (canCallApi) {
bus.$emit("busEmit", {
value: this.detail.newId,
type: "completeFail",
type: "completeFail"
});
}
}
......@@ -610,8 +611,8 @@ export default {
if (!this.isAutoFinish && today != getNowDate()) {
this.$confirm("请注意自动完成上一单未勾选", "提示", {
confirmButtonText: "跳过提示",
type: "warning",
}).then((res) => {
type: "warning"
}).then(res => {
if (res == "confirm") {
setNowDate(today);
}
......@@ -622,7 +623,7 @@ export default {
if (this.productionNo.includes("_")) {
this.$store.commit(
"setOrderType",
this.classifyField(this.productionNo),
this.classifyField(this.productionNo)
);
} else {
let str;
......@@ -645,7 +646,7 @@ export default {
const apiRequestParams = {
thirdSubOrderNumber: this.productionNo,
orderType: this.orderType,
resizable: this.desktopDevice == 3 ? true : false,
resizable: this.desktopDevice == 3 ? true : false
};
//判断是否为惠立彩
......@@ -658,12 +659,12 @@ export default {
localItem ||
(await this.$api.post(
pathMap["findByPodProductionNo"][this.orderType],
apiRequestParams,
apiRequestParams
));
} else {
findByPodProductionNo = await this.$api.post(
pathMap["findByPodProductionNo"][this.orderType],
apiRequestParams,
apiRequestParams
);
}
......@@ -678,7 +679,7 @@ export default {
await this.hasDesignImagesCanvasJsonList(
designImagesCanvasJsonList,
this.desktopDevice === 3 ? (localItem ? true : false) : false,
isForcedProduction,
isForcedProduction
);
this.$store.commit("setProductDetail", this.detail);
ipcRenderer.send("win-subScreen", findByPodProductionNo.data);
......@@ -689,7 +690,7 @@ export default {
console.log(err);
if (!err.data) {
this.$message.error(
"未使用英文输入法输入/扫码,或该生产单号未拣胚或已完成",
"未使用英文输入法输入/扫码,或该生产单号未拣胚或已完成"
);
}
this.productionNo = "";
......@@ -726,7 +727,7 @@ export default {
unit: "mm",
language: "cn",
autoPrint: false,
gridSpacing: 10,
gridSpacing: 10
};
this.$message.success("重置应用程序设置成功");
},
......@@ -747,8 +748,8 @@ export default {
formData.append("file", f);
let { data } = await this.$api.post("/uploadImage", formData, {
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
"Content-Type": "application/x-www-form-urlencoded"
}
});
bus.$emit("busEmit", { type: "uploadImage", value: data });
return false;
......@@ -768,7 +769,7 @@ export default {
this.$store.commit("updateSystemSetting", {
field: "gridValue",
value: this.grid[i],
value: this.grid[i]
});
bus.$emit("busEmit", { type: "grid", value: this.grid[i] });
},
......@@ -791,10 +792,11 @@ export default {
// window.location.reload();
},
changeDesktoVersionFn(value) {
// console.log(553, value);
setVersion(value);
this.selectGridIndex = 0;
this.$store.commit("changeDesktoVersion", value);
ipcRenderer.send("update-version", value);
this.$store.commit("getNewGrid");
this.$store.commit("setGrid");
this.command(0);
},
......@@ -810,7 +812,7 @@ export default {
const outputPath = path.join(outputDir, outputFileName);
const params = {
inputPath: el.productionFile,
outputPath: outputPath,
outputPath: outputPath
};
let res;
res = await this.$api.post("/processImage", params);
......@@ -818,18 +820,18 @@ export default {
return {
fileName: outputFileName,
productionFile: res.msg[0]?.outputPath,
designId: el.designId || index,
designId: el.designId || index
};
} catch (error) {
console.error(`处理失败: ${el.productionFile}`, error);
}
}),
})
);
// 等待所有异步操作完成
await new Promise((resolve) => setTimeout(resolve, 100));
const newMap = new Map(processQueue.map((el) => [el.designId, el]));
processQueue.forEach((el) => {
await new Promise(resolve => setTimeout(resolve, 100));
const newMap = new Map(processQueue.map(el => [el.designId, el]));
processQueue.forEach(el => {
if (newMap.has(el.designId)) {
el.fileName = newMap.get(el.designId).fileName;
el.productionFile = newMap.get(el.designId).productionFile;
......@@ -844,7 +846,7 @@ export default {
},
getCountryName(code) {
if (code) {
const item = this.countryList?.find((el) => el.countryCode == code);
const item = this.countryList?.find(el => el.countryCode == code);
if (item) {
return `(${item.nameCn})`;
}
......@@ -877,8 +879,8 @@ export default {
this.detail = null;
this.$store.commit("setProductDetail", {});
this.dialogVisible = false;
},
},
}
}
};
</script>
<style scoped>
......@@ -923,6 +925,7 @@ export default {
<el-option label="2.0" value="print"></el-option>
<el-option label="4.0" value="print4.0"></el-option>
<el-option label="600" value="print600"></el-option>
<el-option label="600SC" value="print600SC"></el-option>
</el-select>
</div>
......@@ -990,7 +993,7 @@ export default {
<el-form-item prop="setting" label="网格显示">
<el-select
style="width:100%"
@change="(e) => settingChange('gridShow', e)"
@change="e => settingChange('gridShow', e)"
clearable
v-model="setting.gridShow"
>
......@@ -1001,7 +1004,7 @@ export default {
<el-form-item prop="gridSpacing" label="单位">
<el-select
style="width:100%"
@change="(e) => settingChange('unit', e)"
@change="e => settingChange('unit', e)"
clearable
v-model="setting.unit"
>
......@@ -1012,7 +1015,7 @@ export default {
<el-form-item prop="gridSpacing" label="网格间隔">
<el-select
style="width:100%"
@change="(e) => settingChange('gridSpacing', e)"
@change="e => settingChange('gridSpacing', e)"
clearable
v-model="setting.gridSpacing"
>
......@@ -1041,7 +1044,7 @@ export default {
<el-form-item prop="language" label="语言设置">
<el-select
style="width:100%"
@change="(e) => settingChange('language', e)"
@change="e => settingChange('language', e)"
clearable
v-model="setting.language"
>
......@@ -1133,7 +1136,7 @@ export default {
{{
user.factory.countryCode
? `${user.factory.countryCode}${getCountryName(
user.factory.countryCode,
user.factory.countryCode
)}`
: "CN(中国)"
}}
......@@ -1211,7 +1214,7 @@ export default {
>
<el-button
v-if="!showforcedProduc"
@click="(e) => forcedProductionFN(e, true)"
@click="e => forcedProductionFN(e, true)"
style="color: red;"
>自动强制生产</el-button
>
......
......@@ -24,17 +24,17 @@ export default {
settingName: "",
printInkList: [
{
label: "仅彩色油墨",
label: "仅彩色油墨"
},
{
label: "仅白色油墨",
label: "仅白色油墨"
},
{
label: "彩色 + 白色油墨",
label: "彩色 + 白色油墨"
},
{
label: "仅黑色油墨",
},
label: "仅黑色油墨"
}
],
detailShow: false,
showPopover: false,
......@@ -64,27 +64,27 @@ export default {
iBlackBalance: 0,
iYellowBalance: 0,
byMinWhite: 1,
bMultiple: false,
},
bMultiple: false
}
};
},
props: {
visible: {
default: false,
type: Boolean,
type: Boolean
},
isDisabled: {
default: false,
type: Boolean,
type: Boolean
},
byPlatenSize: {
default: 0,
type: Number,
type: Number
},
imgList: {
default: () => [],
type: Array,
},
type: Array
}
},
mounted() {
this.$dataStore.set("default-print-setting", this.printSetting);
......@@ -93,24 +93,22 @@ export default {
// console.log(this.$dataStore, "select");
if (select) {
this.printSettingSelectLabel = select;
let index = this.printSettingList.findIndex(
(el) => el.label === select,
);
let index = this.printSettingList.findIndex(el => el.label === select);
if (index >= 0) {
this.printSettingVal = index;
this.printSetting = JSON.parse(
JSON.stringify(this.printSettingList[index].value),
JSON.stringify(this.printSettingList[index].value)
);
} else {
this.printSettingVal = 0;
this.printSetting = JSON.parse(
JSON.stringify(this.printSettingList[0].value),
JSON.stringify(this.printSettingList[0].value)
);
}
} else {
this.printSettingVal = 0;
this.printSetting = JSON.parse(
JSON.stringify(this.printSettingList[0].value),
JSON.stringify(this.printSettingList[0].value)
);
}
});
......@@ -128,7 +126,7 @@ export default {
return "1.5";
}
},
...mapState(["WHproportion", "grid"]),
...mapState(["WHproportion", "grid"])
},
watch: {
printSetting: {
......@@ -136,11 +134,11 @@ export default {
this.$dataStore.set("print-setting", this.printSetting);
},
deep: true,
immediate: true,
immediate: true
},
visible() {
this.dialogShow = this.visible;
},
}
},
created() {
this.getPrinter();
......@@ -169,10 +167,10 @@ export default {
this.$confirm(`确定删除该预设?`, "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
type: "warning"
}).then(() => {
this.$dataStore.delete(
this.printSettingList[this.printSettingVal].label + "-print-setting",
this.printSettingList[this.printSettingVal].label + "-print-setting"
);
this.getPrintSettingList();
this.printSettingVal = 0;
......@@ -184,7 +182,7 @@ export default {
if (k.includes("-print-setting")) {
arr.push({
label: k.replace("-print-setting", ""),
value: this.$dataStore.get(k),
value: this.$dataStore.get(k)
});
}
}
......@@ -195,19 +193,19 @@ export default {
let label = this.printSettingList[v].label;
this.$dataStore.set("print-setting-select", label);
this.printSetting = JSON.parse(
JSON.stringify(this.printSettingList[v].value),
JSON.stringify(this.printSettingList[v].value)
);
},
saveSetting() {
if (this.settingName.trim() === "") {
return this.$message.warning("预设名称不能为空");
}
if (this.printSettingList.find((el) => el.label === this.settingName)) {
if (this.printSettingList.find(el => el.label === this.settingName)) {
return this.$message.warning("预设名称不能重复");
}
this.$dataStore.set(
`${this.settingName}-print-setting`,
this.printSetting,
this.printSetting
);
this.showPopover = false;
this.printSettingVal = this.printSettingList.length;
......@@ -263,7 +261,7 @@ export default {
u8arr[n] = bstr.charCodeAt(n);
}
return new Blob([u8arr], {
type: mime,
type: mime
});
},
......@@ -286,7 +284,7 @@ export default {
canvas: canvas1,
backgroundColor: null,
useCORS: true,
allowTaint: true,
allowTaint: true
}).then(async function(canvas) {
let dataURL = canvas.toDataURL("image/png");
let pageBlob = that.dataURLtoBlob(dataURL);
......@@ -296,13 +294,13 @@ export default {
let { data } = await that.$api.post("/uploadImage", params, {
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
"Content-Type": "application/x-www-form-urlencoded"
}
});
let w_mm = Number((canvas1.width * 0.84183).toFixed(1));
let h_mm = Number((canvas1.height * 0.84183).toFixed(1));
let size = `${that.singleStr(Number(w_mm).toFixed(1))}${that.singleStr(
Number(h_mm).toFixed(1),
Number(h_mm).toFixed(1)
)}`;
await that.sendCmd(data.fileName, size, "00000000", 0);
//canvas转换成url,然后利用a标签的download属性,直接下载,绕过上传服务器再下载
......@@ -348,7 +346,7 @@ export default {
y: y_mm,
w: w_mm,
h: h_mm,
r,
r
};
// 返回计算结果
......@@ -417,22 +415,27 @@ export default {
await this.sendCmd(imgFileName, size, position, r);
},
async sendCmd(imgFileName, size, position, r) {
// console.log(402, getVersion());
const printCmd =
getVersion() === "print600" ? "GTX6CMD.exe" : "GTXproCMD.exe";
console.log(402, getVersion());
const printMap = {
print600: "GTX6CMD.exe",
print: "GTXproCMD.exe",
"print4.0": "GTXproCMD.exe",
print600SC: "GTX6SPCMD.exe"
};
const printCmd = printMap[getVersion()];
// getVersion() === "print600" ? "GTX6CMD.exe" : "GTXproCMD.exe";
const whitePrint = [1, 2].includes(this.printSetting.byInk) ? 1 : 0; // 白色打印
let cmd = `${printCmd} print -X "${`Profile\\${imgFileName.replace(
".png",
"",
""
)}.xml`}" -I "${"Input\\" +
imgFileName}" -A "Output\\${imgFileName.replace(
".png",
"",
""
)}.arxp" -S ${size} -L ${position} -D ${r} -W ${whitePrint}`;
let print_cmd = `${printCmd} send -A "Output\\${imgFileName.replace(
".png",
"",
""
)}.arxp" -P "${this.printer}`;
let data = {
...this.printSetting,
......@@ -440,8 +443,8 @@ export default {
byPlatenSize: this.byPlatenSize,
cmd,
fileName: imgFileName,
print_cmd,
},
print_cmd
}
};
await this.toWritePrintLog(data);
......@@ -468,7 +471,7 @@ export default {
position_unit,
position_after_px,
position_before_px,
send_api_data,
send_api_data
};
await this.$api.post("/writePrintLog", data);
},
......@@ -485,8 +488,8 @@ export default {
setDetailShow() {
this.detailShow = !this.detailShow;
},
},
}
}
};
</script>
......
......@@ -10,7 +10,7 @@ module.exports = {
/** vue3.0内置了webpack所有东西,
* webpack配置,see https://github.com/vuejs/vue-cli/blob/dev/docs/webpack.md
**/
chainWebpack: (config) => {
chainWebpack: config => {
const svgRule = config.module.rule("svg");
svgRule.uses.clear();
svgRule
......@@ -18,7 +18,7 @@ module.exports = {
.loader("svg-sprite-loader")
.options({
symbolId: "icon-[name]",
include: ["./src/icons"],
include: ["./src/icons"]
});
config.module
......@@ -28,15 +28,15 @@ module.exports = {
.loader("pug-html-loader")
.end();
},
configureWebpack: (config) => {
configureWebpack: config => {
config.resolve = {
// 配置解析别名
extensions: [".js", ".json", ".vue"], // 自动添加文件名后缀
alias: {
vue: "vue/dist/vue.js",
"@": path.resolve(__dirname, "./src"),
"@c": path.resolve(__dirname, "./src/components"),
},
"@c": path.resolve(__dirname, "./src/components")
}
};
},
// 生产环境是否生成 sourceMap 文件
......@@ -50,11 +50,11 @@ module.exports = {
// css预设器配置项
loaderOptions: {
sass: {
prependData: `@import "./src/styles/main.css";`,
},
prependData: `@import "./src/styles/main.css";`
}
},
// 启用 CSS modules for all css / pre-processor files.
requireModuleExtension: true, // 是否开启支持‘foo.module.css’样式
requireModuleExtension: true // 是否开启支持‘foo.module.css’样式
},
// use thread-loader for babel & TS in production build
// enabled by default if the machine has more than 1 cores
......@@ -80,15 +80,15 @@ module.exports = {
ws: true,
changOrigin: true,
pathRewrite: {
"^/devApi": "",
},
},
"^/devApi": ""
}
}
},
overlay: {
// 全屏模式下是否显示脚本错误
warnings: true,
errors: true,
},
errors: true
}
},
/**
* 第三方插件配置
......@@ -100,41 +100,45 @@ module.exports = {
extraResources: [
{
from: "./print/",
to: "../print",
to: "../print"
},
{
from: "./print4.0/",
to: "../print4.0",
to: "../print4.0"
},
{
from: "./print600/",
to: "../print600",
to: "../print600"
},
{
from: "./print600SC/",
to: "../print600SC"
},
{
from: "./logs/",
to: "../logs",
to: "../logs"
},
{
from: "./config/",
to: "../config",
to: "../config"
},
{
from: "./dialogstatic/",
to: "../dialogstatic",
to: "../dialogstatic"
},
{
from: "./html/",
to: "../html",
to: "../html"
},
{
from: "./huiLiCaiImg/",
to: "../huiLiCaiImg",
to: "../huiLiCaiImg"
},
{
from: "scripts", // 本地脚本目录
to: "scripts", // 输出到 resources/scripts
filter: ["**/*"], // 包含所有文件
},
filter: ["**/*"] // 包含所有文件
}
],
win: {
......@@ -142,16 +146,16 @@ module.exports = {
target: [
{
target: "nsis",
arch: ["x64", "ia32"], // 支持64位和32位系统
},
],
arch: ["x64", "ia32"] // 支持64位和32位系统
}
]
},
nsis: {
oneClick: false, // 禁用一键安装
allowToChangeInstallationDirectory: true, // 允许用户更改安装目录
perMachine: true, // 为所有用户安装
},
},
},
},
perMachine: true // 为所有用户安装
}
}
}
}
};
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