Commit 7fcca94c by linjinhong

添加压板

parent c2b510b7
[{"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
...@@ -30,30 +30,30 @@ export default new Vuex.Store({ ...@@ -30,30 +30,30 @@ export default new Vuex.Store({
gridSpacing: 10, gridSpacing: 10,
}, },
grid: [ grid: [
// { {
// label: "7×8", label: "7×8",
// value: 4, value: 4,
// row: 7, row: 7,
// col: 8, col: 8,
// h: 0, h: 0,
// w: 0, w: 0,
// }, },
// { {
// label: "10×12", label: "10×12",
// row: 10, row: 10,
// value: 3, value: 3,
// col: 12, col: 12,
// h: 0, h: 0,
// w: 0, w: 0,
// }, },
// { {
// label: "14×16", label: "14×16",
// row: 14, row: 14,
// value: 2, value: 2,
// col: 16, col: 16,
// h: 0, h: 0,
// w: 0, w: 0,
// }, },
{ {
label: "16×18", label: "16×18",
value: 1, value: 1,
...@@ -62,14 +62,14 @@ export default new Vuex.Store({ ...@@ -62,14 +62,14 @@ export default new Vuex.Store({
h: 0, h: 0,
w: 0, w: 0,
}, },
// { {
// label: "16×21", label: "16×21",
// value: 0, value: 0,
// row: 16, row: 16,
// col: 21, col: 21,
// h: 0, h: 0,
// w: 0, w: 0,
// }, },
], ],
}, },
mutations: { mutations: {
......
...@@ -412,18 +412,18 @@ export default { ...@@ -412,18 +412,18 @@ export default {
} catch (error) { } catch (error) {
console.error("清理目录时发生错误:", error.msg); console.error("清理目录时发生错误:", error.msg);
} }
if(this.factoryType!=='US'){ if (this.factoryType !== "US") {
const regex = /^[A-Z]{4}_/; //是否以四个大写字母加下划线开头 const regex = /^[A-Z]{4}_/; //是否以四个大写字母加下划线开头
if (regex.test(this.productionNo)) { if (regex.test(this.productionNo)) {
this.productionNo = this.productionNo =
this.productionNo.split("_")[0] + 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); console.log(423, this.productionNo);
try { try {
...@@ -678,12 +678,7 @@ export default { ...@@ -678,12 +678,7 @@ export default {
</el-select> </el-select>
</div> </div>
<el-dropdown <el-dropdown trigger="click" @command="command" :hide-on-click="false">
trigger="click"
@command="command"
:hide-on-click="false"
:disabled="true"
>
<el-button style="height: 100%;margin-right: 0" size="small" <el-button style="height: 100%;margin-right: 0" size="small"
>{{ grid[selectGridIndex].label }} >{{ grid[selectGridIndex].label }}
</el-button> </el-button>
......
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