Commit dbc9f951 by linjinhong

修改直接打印单不可以裁切问题

parent f70c7aa5
...@@ -317,7 +317,14 @@ export default { ...@@ -317,7 +317,14 @@ export default {
ipcRenderer.send("win-subScreen", findByPodProductionNo.data); ipcRenderer.send("win-subScreen", findByPodProductionNo.data);
if (imageResList && imageResList.length) { if (imageResList && imageResList.length) {
this.checked = false; if (this.checked) {
this.$message.warning({
message: "该生产单为直接打印单不可裁切,已取消自动裁切选项",
duration: 3000, // 设置显示时间为 5000 毫秒(5 秒)
});
this.checked = false;
}
let obj = { let obj = {
type: "sendFile", type: "sendFile",
value: imageResList, value: imageResList,
......
...@@ -704,6 +704,14 @@ export default { ...@@ -704,6 +704,14 @@ export default {
async cutImgFn() { async cutImgFn() {
if (!this.checkList?.length) return; if (!this.checkList?.length) return;
if (this.detail.mssHeight && this.detail.mssWidth) {
return this.$confirm(`该生产单为直接打印单不可进行裁切!`, "提示", {
confirmButtonText: "确定",
showCancelButton: false,
type: "warning",
});
}
try { try {
const processQueue = await Promise.all( const processQueue = await Promise.all(
this.checkList.map(async (el) => { this.checkList.map(async (el) => {
......
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