Commit fbe92a53 by linjinhong

fix:添加直接打印功能

parent a327daff
...@@ -363,6 +363,7 @@ export default { ...@@ -363,6 +363,7 @@ export default {
imageResList.forEach((el) => { imageResList.forEach((el) => {
el.isCut = true; el.isCut = true;
}); });
this.detail.isCut = true;
} }
// 延迟后强制激活窗口 // 延迟后强制激活窗口
......
...@@ -931,6 +931,8 @@ export default { ...@@ -931,6 +931,8 @@ export default {
this.getBackFile({ files: [this.selectImgList[0]] }); this.getBackFile({ files: [this.selectImgList[0]] });
} catch (error) { } catch (error) {
console.error("错误", error); console.error("错误", error);
} finally {
this.detail.isCut = true;
} }
}, },
// startLoading, // startLoading,
...@@ -1588,21 +1590,22 @@ export default { ...@@ -1588,21 +1590,22 @@ export default {
</div> </div>
</div> </div>
</div> </div>
<!-- <div <div
class="print-tip" class="print-tip"
:style="{ left: isView ? '' : '22%' }" :style="{ left: isView ? '' : '22%' }"
v-if=" v-if="
detail && detail &&
detail.mssWidth && detail.mssWidth &&
detail.mssHeight && detail.mssHeight &&
selectImgList.length selectImgList.length &&
!detail.isCut
" "
> >
<b style="color: green" v-if="hasSize" <b style="color: green" v-if="hasSize"
>该生产单无需拖动设计,直接打印</b >该生产单无需拖动设计,直接打印</b
> >
<b style="color: red" v-else>该生产单需要拖动设计打印</b> <!-- <b style="color: red" v-else>该生产单需要拖动设计打印</b> -->
</div> --> </div>
</div> </div>
<img <img
......
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