Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
electron-printer
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhuzhequan
electron-printer
Commits
7fcca94c
Commit
7fcca94c
authored
Aug 19, 2025
by
linjinhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加压板
parent
c2b510b7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
42 deletions
+39
-42
logs/2025-08-19/api.log
+0
-0
logs/2025-08-19/print.json
+2
-0
src/store/index.js
+32
-32
src/views/design/head/index.vue
+5
-10
No files found.
logs/2025-08-19/api.log
0 → 100644
View file @
7fcca94c
This diff is collapsed.
Click to expand it.
logs/2025-08-19/print.json
0 → 100644
View file @
7fcca94c
[{
"head_setting"
:{
"gridShow"
:
1
,
"gridValue"
:
4
,
"unit"
:
"inch"
,
"language"
:
"cn"
,
"autoPrint"
:
false
,
"gridSpacing"
:
1
},
"version"
:
"1.0.18"
,
"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"
:
"USPSC250620151"
,
"print_time"
:
"2025-08-19 01:33:10"
,
"position_unit"
:{
"x"
:
408.8
,
"rate"
:
1.396341463414634
,
"sx"
:
0
,
"zIndex"
:
0
,
"sh"
:
0
,
"sw"
:
0
,
"sy"
:
0
,
"y"
:
458.6
,
"w"
:
594.4
,
"h"
:
826.7
,
"r"
:
0
},
"position_after_px"
:{
"x"
:
"0.2"
,
"rate"
:
1.2007104795737122
,
"sx"
:
0
,
"zIndex"
:
0
,
"sh"
:
0
,
"sw"
:
0
,
"sy"
:
0
,
"y"
:
"1.5"
,
"w"
:
"22.0"
,
"h"
:
"26.4"
,
"r"
:
0
},
"position_before_px"
:{
"url"
:
"D:
\\
work
\\
electron-printer
\\
print
\\
Input
\\
2d4d5260-e42f-4356-9d35-b26fa772e835.png"
,
"fileName"
:
"2d4d5260-e42f-4356-9d35-b26fa772e835.png"
,
"rate"
:
1.2007104795737122
,
"w"
:
662.6076923076923
,
"zIndex"
:
0
,
"x"
:
5.696153846153834
,
"y"
:
44.19999999999999
,
"h"
:
795.6
,
"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
\\
2d4d5260-e42f-4356-9d35-b26fa772e835.xml
\"
-I
\"
Input
\\
2d4d5260-e42f-4356-9d35-b26fa772e835.png
\"
-A
\"
Output
\\
2d4d5260-e42f-4356-9d35-b26fa772e835.arxp
\"
-S 32833942 -L 00330224 -D 0 -W 1"
,
"fileName"
:
"2d4d5260-e42f-4356-9d35-b26fa772e835.png"
,
"print_cmd"
:
"GTXproCMD.exe send -A
\"
Output
\\
2d4d5260-e42f-4356-9d35-b26fa772e835.arxp
\"
-P
\"
Brother GTX pro FileOutput"
}}]
\ No newline at end of file
src/store/index.js
View file @
7fcca94c
...
...
@@ -30,30 +30,30 @@ export default new Vuex.Store({
gridSpacing
:
10
,
},
grid
:
[
//
{
//
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: "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
:
"14×16"
,
row
:
14
,
value
:
2
,
col
:
16
,
h
:
0
,
w
:
0
,
},
{
label
:
"16×18"
,
value
:
1
,
...
...
@@ -62,14 +62,14 @@ export default new Vuex.Store({
h
:
0
,
w
:
0
,
},
//
{
//
label: "16×21",
//
value: 0,
//
row: 16,
//
col: 21,
//
h: 0,
//
w: 0,
//
},
{
label
:
"16×21"
,
value
:
0
,
row
:
16
,
col
:
21
,
h
:
0
,
w
:
0
,
},
],
},
mutations
:
{
...
...
src/views/design/head/index.vue
View file @
7fcca94c
...
...
@@ -412,18 +412,18 @@ export default {
} catch (error) {
console.error("
清理目录时发生错误
:
", error.msg);
}
if
(this.factoryType!=='US')
{
if
(this.factoryType !== "
US
")
{
const regex = /^[A-Z]{4}_/; //是否以四个大写字母加下划线开头
if (regex.test(this.productionNo)) {
this.productionNo =
this.productionNo.split("
_
")[0] +
"
-
" +
this.productionNo.split("
_
")[this.productionNo.split("
_
").length - 1];
this.productionNo.split("
_
")[
this.productionNo.split("
_
").length - 1
];
}
}
console.log(423, this.productionNo);
try {
...
...
@@ -678,12 +678,7 @@ export default {
</el-select>
</div>
<el-dropdown
trigger=
"click"
@
command=
"command"
:hide-on-click=
"false"
:disabled=
"true"
>
<el-dropdown
trigger=
"click"
@
command=
"command"
:hide-on-click=
"false"
>
<el-button
style=
"height: 100%;margin-right: 0"
size=
"small"
>
{{
grid
[
selectGridIndex
].
label
}}
</el-button>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment