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